重庆app退料申请无数据bug修改

This commit is contained in:
liang.chao 2024-09-29 18:02:17 +08:00
parent 4a57f9a3bc
commit 90c0b9b1d6
1 changed files with 1 additions and 1 deletions

View File

@ -218,9 +218,9 @@ public class AppBackApplyController 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("退料任务明细插入失败");