|
@@ -33,9 +33,9 @@ public interface MedicalIndicatorMapper {
|
|
|
* 新增指标
|
|
|
*/
|
|
|
@Insert("INSERT INTO fs_medical_indicator(indicator_name, indicator_category, unit_id, reference_min, " +
|
|
|
- "reference_max, reference_text, description, sort_order, status) " +
|
|
|
+ "reference_max, reference_text, description, sort_order, status,type) " +
|
|
|
"VALUES(#{indicatorName}, #{indicatorCategory}, #{unitId}, #{referenceMin}, " +
|
|
|
- "#{referenceMax}, #{referenceText}, #{description}, #{sortOrder}, #{status})")
|
|
|
+ "#{referenceMax}, #{referenceText}, #{description}, #{sortOrder}, #{status},#{type})")
|
|
|
@Options(useGeneratedKeys = true, keyProperty = "indicatorId")
|
|
|
int insert(MedicalIndicator indicator);
|
|
|
|
|
@@ -53,6 +53,7 @@ public interface MedicalIndicatorMapper {
|
|
|
"<if test='description != null'>description = #{description}, </if>" +
|
|
|
"<if test='sortOrder != null'>sort_order = #{sortOrder}, </if>" +
|
|
|
"<if test='status != null'>status = #{status}, </if>" +
|
|
|
+ "<if test='type != null'>type = #{type}, </if>" +
|
|
|
"update_time = NOW() " +
|
|
|
"WHERE indicator_id = #{indicatorId}" +
|
|
|
"</script>")
|
|
@@ -91,6 +92,9 @@ public interface MedicalIndicatorMapper {
|
|
|
"<if test='description != null and description != ""'>" +
|
|
|
"AND description LIKE CONCAT('%', #{description}, '%') " +
|
|
|
"</if>" +
|
|
|
+ "<if test='type != null and type != ""'>" +
|
|
|
+ "AND type LIKE CONCAT('%', #{type}, '%') " +
|
|
|
+ "</if>" +
|
|
|
"<if test='status != null'>" +
|
|
|
"AND status = #{status} " +
|
|
|
"</if>" +
|