소스 검색

增加指标报表分子分母id维护

hsh 1 년 전
부모
커밋
5b95711d33
1개의 변경된 파일10개의 추가작업 그리고 4개의 파일을 삭제
  1. 10 4
      src/main/java/thyyxxk/webserver/dao/his/targetmanagement/ZbZdBaseInfoDao.java

+ 10 - 4
src/main/java/thyyxxk/webserver/dao/his/targetmanagement/ZbZdBaseInfoDao.java

@@ -56,10 +56,10 @@ public interface ZbZdBaseInfoDao {
             "</script>")
     List<TargetDictTree> selectTargetDictTree(TargetManagement dto);
 
-    @Insert("insert into zb_zd_base_info (id, name, pid, sort, score, ratio, type, state, open_time, " +
-            "dept, dept_code, op, op_id, definition, method, score_rule, source, is_leaf) " +
-            "values (#{id},#{name},#{pid},#{sort},#{score},#{ratio},#{type},#{state},#{openTime}, " +
-            "#{dept},#{deptCode},#{op},#{opId},#{definition},#{method},#{scoreRule},#{source},#{isLeaf})")
+    @Insert("insert into zb_zd_base_info (id, name, pid, sort, score, ratio, type, state, open_time, dept, dept_code, " +
+            "op, op_id, definition, method, score_rule, source, is_leaf, child_id, mom_id) " +
+            "values (#{id},#{name},#{pid},#{sort},#{score},#{ratio},#{type},#{state},#{openTime},#{dept},#{deptCode}, " +
+            "#{op},#{opId},#{definition},#{method},#{scoreRule},#{source},#{isLeaf},#{childId},#{momId})")
     int saveZbZdBaseInfo(ZbZdBaseInfo zbZdBaseInfo);
 
     @Update("<script>" +
@@ -119,6 +119,12 @@ public interface ZbZdBaseInfoDao {
             "<if test=\"isLeaf != null\">" +
             "is_leaf = #{isLeaf}, " +
             "</if>" +
+            "<if test=\"childId != null\">" +
+            "child_id = #{childId}, " +
+            "</if>" +
+            "<if test=\"momId != null\">" +
+            "mom_id = #{momId}, " +
+            "</if>" +
             "</trim>" +
             "where id = #{id} and pid = #{pid} and state = 'Y' " +
             "</script>")