Commit 8fee91db zshaohui

松亚入库判断接口修改

1 个父辈 def3ef94
package com.neotel.smfcore.custom.sungya20456; package com.neotel.smfcore.custom.sungya20456;
import com.alibaba.fastjson.JSONObject;
import com.neotel.smfcore.common.exception.ApiException; import com.neotel.smfcore.common.exception.ApiException;
import com.neotel.smfcore.common.exception.ValidateException; import com.neotel.smfcore.common.exception.ValidateException;
import com.neotel.smfcore.common.utils.DateUtil; import com.neotel.smfcore.common.utils.DateUtil;
...@@ -22,6 +23,7 @@ import com.neotel.smfcore.core.storage.service.po.Storage; ...@@ -22,6 +23,7 @@ import com.neotel.smfcore.core.storage.service.po.Storage;
import com.neotel.smfcore.core.system.service.po.DataLog; import com.neotel.smfcore.core.system.service.po.DataLog;
import com.neotel.smfcore.custom.sungya20456.bean.Item; import com.neotel.smfcore.custom.sungya20456.bean.Item;
import com.neotel.smfcore.custom.sungya20456.bean.SungyaResult; import com.neotel.smfcore.custom.sungya20456.bean.SungyaResult;
import com.sun.corba.se.pept.transport.InboundConnectionCache;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -78,7 +80,7 @@ public class SungyaApi extends BaseSmfApiListener { ...@@ -78,7 +80,7 @@ public class SungyaApi extends BaseSmfApiListener {
Map<String, Object> paramMap = new HashMap<>(); Map<String, Object> paramMap = new HashMap<>();
paramMap.put("funcname", "INWHCK"); paramMap.put("funcname", "INWHCK");
Map<String, String> bodyMap = new HashMap<>(); Map<String, String> bodyMap = new HashMap<>();
bodyMap.put("reelId", barcode.getBarcode()); bodyMap.put("reelId", StringUtils.isBlank(barcode.getFullCode()) ? barcode.getBarcode() : barcode.getFullCode());
bodyMap.put("fullCode", StringUtils.isBlank(barcode.getFullCode()) ? barcode.getBarcode() : barcode.getFullCode()); bodyMap.put("fullCode", StringUtils.isBlank(barcode.getFullCode()) ? barcode.getBarcode() : barcode.getFullCode());
paramMap.put("body", bodyMap); paramMap.put("body", bodyMap);
...@@ -98,8 +100,8 @@ public class SungyaApi extends BaseSmfApiListener { ...@@ -98,8 +100,8 @@ public class SungyaApi extends BaseSmfApiListener {
barcode.setProvider(item.getVendor()); barcode.setProvider(item.getVendor());
} }
//物料数量 //物料数量
if (item.getQty() != null) { if (StringUtils.isNotBlank(item.getQty())) {
barcode.setAmount(item.getQty()); barcode.setAmount(JSONObject.parseObject(item.getQty(),Integer.class));
} }
//尺寸 //尺寸
if (item.getW() != null) { if (item.getW() != null) {
......
...@@ -17,7 +17,7 @@ public class Item { ...@@ -17,7 +17,7 @@ public class Item {
/** /**
* 物料数量 * 物料数量
*/ */
private Integer qty; private String qty;
/** /**
* 尺寸 * 尺寸
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!