到货通知单状态处理
This commit is contained in:
parent
9132b2a7f4
commit
0fc34558e8
@ -120,6 +120,18 @@ public class WmArrivalNoticeController extends BaseController
|
|||||||
if(CollectionUtils.isEmpty(lines)){
|
if(CollectionUtils.isEmpty(lines)){
|
||||||
return AjaxResult.error("请添加到货物资!");
|
return AjaxResult.error("请添加到货物资!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//这里进行判断,待收货物资是否需要检验,如果没有需要检验的则直接将状态更改为待入库
|
||||||
|
boolean needCheck = false;
|
||||||
|
for(WmArrivalNoticeLine line:lines){
|
||||||
|
if(line.getIqcCheck() == UserConstants.YES){
|
||||||
|
needCheck = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!needCheck){
|
||||||
|
wmArrivalNotice.setStatus(UserConstants.ORDER_STATUS_APPROVED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return toAjax(wmArrivalNoticeService.updateWmArrivalNotice(wmArrivalNotice));
|
return toAjax(wmArrivalNoticeService.updateWmArrivalNotice(wmArrivalNotice));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user