Commit 626cde107de3d972f67b1fad9ad4125e1b08d3cb
1 parent
a86bbb3a
1.删除内存中排班
Showing
1 changed file
with
2 additions
and
8 deletions
src/main/java/com/bsth/controller/realcontrol/AdminUtilsController.java
| ... | ... | @@ -177,7 +177,7 @@ public class AdminUtilsController { |
| 177 | 177 | * @return 被删除的班次信息 |
| 178 | 178 | */ |
| 179 | 179 | @RequestMapping("/deleteSchduleBC") |
| 180 | - public Map deleteSchduleBC(Long id) { | |
| 180 | + public Map<String, Object> deleteSchduleBC(Long id) { | |
| 181 | 181 | Map<String, Object> rs = new HashMap<>(); |
| 182 | 182 | rs.put("status", ResponseCode.ERROR); |
| 183 | 183 | ScheduleRealInfo sch = null; |
| ... | ... | @@ -187,13 +187,7 @@ public class AdminUtilsController { |
| 187 | 187 | rs.put("msg", "无效的id号"); |
| 188 | 188 | return rs; |
| 189 | 189 | } |
| 190 | - Date date=new Date(); | |
| 191 | - SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); | |
| 192 | - String dateStr=sdf.format(date); | |
| 193 | - if (sch.getScheduleDateStr().equals(dateStr)){ | |
| 194 | - rs.put("msg", "不能删除当日排班"); | |
| 195 | - return rs; | |
| 196 | - } | |
| 190 | + | |
| 197 | 191 | //内存中删除 |
| 198 | 192 | dayOfSchedule.deleteBC(sch); |
| 199 | 193 | rs.put("delete", sch); | ... | ... |