|
@@ -480,11 +480,14 @@ public class WorkOrderCurrentController extends BaseController {
|
|
|
@PostMapping("/delEntrust")
|
|
|
public AjaxResult delEntrust(@RequestBody BizEntrust bizEntrust) {
|
|
|
List<BizEntrust> entrustList = bizEntrustService.getList(bizEntrust);
|
|
|
- DateTime currentMonth = DateTime.of(bizEntrust.getWorkMonth());
|
|
|
- bizEntrust.setWorkMonth(currentMonth.offset(DateField.MONTH, 1).toSqlDate());
|
|
|
- List<BizEntrust> nextEntrustList = bizEntrustService.getList(bizEntrust);
|
|
|
-
|
|
|
- boolean status = (entrustList.isEmpty() || bizEntrustService.removeByIds(entrustList.stream().map(BizEntrust::getId).collect(Collectors.toList()))) && (nextEntrustList.isEmpty() || bizEntrustService.removeByIds(nextEntrustList.stream().map(BizEntrust::getId).collect(Collectors.toList())));
|
|
|
+// DateTime currentMonth = DateTime.of(bizEntrust.getWorkMonth());
|
|
|
+// bizEntrust.setWorkMonth(currentMonth.offset(DateField.MONTH, 1).toSqlDate());
|
|
|
+ bizEntrust.setCurrentMonth(bizEntrust.getCurrentMonth());
|
|
|
+// List<BizEntrust> nextEntrustList = bizEntrustService.getList(bizEntrust);
|
|
|
+
|
|
|
+ boolean status = (entrustList.isEmpty() || bizEntrustService.removeByIds(entrustList.stream().map(BizEntrust::getId).collect(Collectors.toList())));
|
|
|
+// && (nextEntrustList.isEmpty() ||
|
|
|
+// bizEntrustService.removeByIds(nextEntrustList.stream().map(BizEntrust::getId).collect(Collectors.toList()))
|
|
|
// 取消委托
|
|
|
return toAjax(status);
|
|
|
}
|