|
@@ -384,9 +384,12 @@ public class BizWorkOrderController extends BaseController {
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody BizWorkOrder bizWorkOrder) throws NoSuchFieldException, IllegalAccessException {
|
|
|
setTenantId(bizWorkOrder);
|
|
|
+ return toAjax(bizWorkOrderService.updateById(bizWorkOrder) && saveInputMonth(bizWorkOrder));
|
|
|
+ }
|
|
|
+ private boolean saveInputMonth(BizWorkOrder bizWorkOrder) {
|
|
|
List<BizArchiveInputDetail> inputDetailList = bizArchiveInputDetailService.query()
|
|
|
- .eq("id",bizWorkOrder.getContractDetailId())
|
|
|
- .eq("task_type_id",bizWorkOrder.getTaskTypeId()).list();
|
|
|
+ .eq("id", bizWorkOrder.getContractDetailId())
|
|
|
+ .eq("task_type_id", bizWorkOrder.getTaskTypeId()).list();
|
|
|
if(!inputDetailList.isEmpty()){
|
|
|
BizArchiveInputDetail inputDetail = inputDetailList.get(0);
|
|
|
if(null == inputDetail.getInputStartMonth() && null == inputDetail.getInputEndMonth()){
|
|
@@ -395,7 +398,7 @@ public class BizWorkOrderController extends BaseController {
|
|
|
bizArchiveInputDetailService.updateById(inputDetail);
|
|
|
}
|
|
|
}
|
|
|
- return toAjax(bizWorkOrderService.updateById(bizWorkOrder));
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
/**
|