|
@@ -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>")
|