diff --git a/zi-wms-pda/src/main/java/com/cim/idm/service/Impl/MESToWMSServiceImpl.java b/zi-wms-pda/src/main/java/com/cim/idm/service/Impl/MESToWMSServiceImpl.java index ea13900..cd29fb5 100644 --- a/zi-wms-pda/src/main/java/com/cim/idm/service/Impl/MESToWMSServiceImpl.java +++ b/zi-wms-pda/src/main/java/com/cim/idm/service/Impl/MESToWMSServiceImpl.java @@ -90,7 +90,7 @@ public class MESToWMSServiceImpl implements MESToWMSService { String flag = jb.get("flag") == null ? "" : jb.get("flag").toString(); String charge = jb.get("CHARGE") == null ? "" : jb.get("CHARGE").toString(); String erpLocation = jb.get("erpLocation") == null ? "" : jb.get("erpLocation").toString();//工厂 - payMentDate = jb.get("payMentDate").toString(); + payMentDate = jb.get("payMentDate") == null ? "" : jb.get("payMentDate").toString(); //判空 if (StringUtils.isBlank(materialSpecName) || StringUtils.isBlank(qty)) { result = AjaxResult.me().setSuccess(false).setErrorCode(500).setMessage("料号或数量不能为空"); @@ -108,6 +108,14 @@ public class MESToWMSServiceImpl implements MESToWMSService { MessageLogUtil.writeMessageLog(loginfo); return result; } + if (StringUtils.isBlank(payMentDate)) { + result = AjaxResult.me().setSuccess(false).setErrorCode(500).setMessage("过账日期不能为空"); + loginfo.setResultCode("1"); + loginfo.setReturnMsg(JSONObject.toJSONString(result)); + // 消息保存日志,erp推送wms的数据写入表BS_ERPMESSAGELOG中 + MessageLogUtil.writeMessageLog(loginfo); + return result; + } //调用存储MES_CONSUME String procedureName = "MES_CONSUME"; // 调用存储过程返回参数