Commit db0a376a zshaohui

原材料仓取最新的条码上的数量

1 个父辈 afcbc917
...@@ -195,6 +195,7 @@ public class CodeResolve { ...@@ -195,6 +195,7 @@ public class CodeResolve {
//设置label数量 //设置label数量
if (barcodeFromRule.getLabelAmount() != barcode.getLabelAmount()) { if (barcodeFromRule.getLabelAmount() != barcode.getLabelAmount()) {
barcode.setLabelAmount(barcodeFromRule.getLabelAmount()); barcode.setLabelAmount(barcodeFromRule.getLabelAmount());
barcode.setAmount(barcodeFromRule.getLabelAmount());
needUpdate = true; needUpdate = true;
} }
if(needUpdate){ if(needUpdate){
......
...@@ -135,6 +135,8 @@ public class CDeviceController { ...@@ -135,6 +135,8 @@ public class CDeviceController {
String codeStr = paramMap.get("codeStr"); //物料条码 String codeStr = paramMap.get("codeStr"); //物料条码
String materialStr = paramMap.get("materialStr"); //料串信息 String materialStr = paramMap.get("materialStr"); //料串信息
log.info("物料放入料格,料格为:"+binCodeStr+",物料条码为:"+codeStr+",料串信息为:"+materialStr);
//判断入参是否为空 //判断入参是否为空
if (StringUtils.isEmpty(binCodeStr)) { if (StringUtils.isEmpty(binCodeStr)) {
return ResultBean.newErrorResult(-1, "smfcore.valueCanotNull", "{0}不能为空", new String[]{"料格信息"}); return ResultBean.newErrorResult(-1, "smfcore.valueCanotNull", "{0}不能为空", new String[]{"料格信息"});
......
package com.neotel.smfcore.custom.luxsan.factory_c.third.util; package com.neotel.smfcore.custom.luxsan.factory_c.third.util;
import com.neotel.smfcore.common.utils.StringUtils;
import com.neotel.smfcore.core.barcode.service.po.Barcode; import com.neotel.smfcore.core.barcode.service.po.Barcode;
import com.neotel.smfcore.core.device.util.DataCache; import com.neotel.smfcore.core.device.util.DataCache;
import com.neotel.smfcore.custom.luxsan.factory_c.third.bean.MaterialLoc; import com.neotel.smfcore.custom.luxsan.factory_c.third.bean.MaterialLoc;
...@@ -31,8 +32,10 @@ public class MaterialLocUtil { ...@@ -31,8 +32,10 @@ public class MaterialLocUtil {
materialLoc = new MaterialLoc(); materialLoc = new MaterialLoc();
} }
String name = MaterialLocEnum.findNameById(loc); if (StringUtils.isNotEmpty(loc)) {
materialLoc.setLoc(name); String name = MaterialLocEnum.findNameById(loc);
materialLoc.setLoc(name);
}
materialLoc.setMaterial(materialStr); materialLoc.setMaterial(materialStr);
materialLoc.setUpdateDate(new Date()); materialLoc.setUpdateDate(new Date());
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!