Commit 07c67de9d9a5ab79ddb41bf8b9241478e39779e8

Authored by 王通
1 parent 90970423

1.线路配置中删除线路实际排班时子任务和实际排班的外键解除

src/main/java/com/bsth/common/Constants.java
... ... @@ -54,4 +54,9 @@ public class Constants {
54 54 * 批量解除调度指令和班次的外键约束
55 55 */
56 56 public static final String MULTI_REMOVE_DIRECTIVE_SCH_FK = "update bsth_v_directive_60 set sch=NULL where sch in ";
  57 +
  58 + /**
  59 + * 批量解除子任务和班次的外键约束
  60 + */
  61 + public static final String MULTI_REMOVE_CHILDTASK_SCH_FK = "update bsth_c_s_child_task set schedule=NULL where schedule in ";
57 62 }
... ...
src/main/java/com/bsth/data/schedule/DayOfSchedule.java
... ... @@ -1020,6 +1020,7 @@ public class DayOfSchedule {
1020 1020 }
1021 1021 inStr.deleteCharAt(inStr.length() - 1).append(")");
1022 1022 jdbcTemplate.update(Constants.MULTI_REMOVE_DIRECTIVE_SCH_FK + " " + inStr.toString());
  1023 + jdbcTemplate.update(Constants.MULTI_REMOVE_CHILDTASK_SCH_FK + " " + inStr.toString());
1023 1024 }
1024 1025  
1025 1026 //删除班次数据
... ...