退料申请代码优化
This commit is contained in:
parent
f85c9d5831
commit
1ed1afc0ee
|
|
@ -218,9 +218,9 @@ public class BackApplyController extends BaseController {
|
|||
if (CollUtil.isEmpty(record.getBackApplyDetails())) {
|
||||
return AjaxResult.error("退料设备明细为空,请重新选择后上传!");
|
||||
}
|
||||
backApplyService.updateBackInfo(record.getParentId(),record.getCompanyId());
|
||||
for (BackApplyInfo backApplyInfo : record.getBackApplyDetails()) {
|
||||
backApplyInfo.setParentId(record.getParentId());
|
||||
backApplyService.updateBackInfo(record.getParentId(),record.getCompanyId());
|
||||
boolean re = backApplyService.upload(backApplyInfo) > 0;
|
||||
if (!re) {
|
||||
return AjaxResult.error("退料任务明细插入失败");
|
||||
|
|
|
|||
Loading…
Reference in New Issue