update wms/meswms_materialconsume_request物料消耗接口修改,增加MES未传过账日期判空

This commit is contained in:
18110972313 2025-05-07 18:44:07 +08:00
parent 7ccc883a7c
commit 5b8f02b3c2

View File

@ -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";
// 调用存储过程返回参数