update 二次确认物料出库请求接口/meswms_materialout_request,增加必填字段判空

This commit is contained in:
18110972313 2025-05-13 14:27:54 +08:00
parent e62be693e1
commit 4df4664fac

View File

@ -177,7 +177,7 @@ public class MESToWMSServiceImpl implements MESToWMSService {
shipRequestName = jb.get("shipRequestName") == null ? "" : jb.get("shipRequestName").toString(); // 领料单号
payMentDate = jb.get("payMentDate") == null ? "" : jb.get("payMentDate").toString(); // 过账时间
//判空
if (StringUtils.isNotEmpty(payMentDate) || StringUtils.isNotEmpty(shipRequestName) || StringUtils.isNotEmpty(materialPackingName)) {
if (StringUtils.isEmpty(payMentDate) || StringUtils.isEmpty(shipRequestName) || StringUtils.isEmpty(materialPackingName)) {
result = AjaxResult.me().setSuccess(false).setErrorCode(500).setMessage("过账日期、单号、条码不能为空");
loginfo.setResultCode("1");
loginfo.setReturnMsg(JSONObject.toJSONString(result));