Commit a59128fd zshaohui

1.给CTU返回空隔口信息增加库位字段

1 个父辈 9cab9d63
......@@ -462,7 +462,7 @@ public class StoragePosManagerImpl implements IStoragePosManager {
c = c.and("storageId").is(storageId);
}
Query query = new Query(c);
query.fields().include("barcode.posName","barcode.barcode","barcode.status","barcode.subCodeList.posName","barcode.partNumber").exclude("id");
query.fields().include("barcode.posName","barcode.barcode","barcode.status","barcode.subCodeList.posName","barcode.partNumber","posName").exclude("id");
return storagePosDao.findByQuery(query);
}
......
......@@ -795,10 +795,9 @@ public class CDeviceController {
callAgvTask(stackerId, stackerBarcode);
} catch (Exception e) {
log.info("入料机构获取可用料格:"+stackerId+"结果异常:"+e.getMessage());
//e.printStackTrace();
isProcess.set(false);
e.printStackTrace();
return ResultBean.newErrorResult(-1,"",stackerId+"获取可用料格失败:"+e.getMessage());
}
isProcess.set(false);
log.info("入料机构获取可用料格:"+stackerId+"返回的数据为:"+JSON.toJSONString(validBin));
return ResultBean.newOkResult(validBin);
......
......@@ -438,6 +438,7 @@ public class CtuDeviceController {
String warehouseCode = StringUtils.isNotEmpty(binCodeCacheMap.get(binCode)) ? binCodeCacheMap.get(binCode) : "";
resultMap.put("warehouseCode",warehouseCode);
resultMap.put("remainNum",count);
resultMap.put("posName",pos.getPosName());
resultList.add(resultMap);
}
}
......
......@@ -448,7 +448,7 @@ public class BinCacheUtil {
List<Barcode> subCodeList = boxBarcode.getSubCodeList();
if (subCodeList != null) {
for (Barcode barcode : subCodeList) {
if (barcode.getPosName().equals(binId)) {
if (binId.equals(barcode.getPosName())) {
//因为bin中的物料都是一样的料号,供应商,库别,过账日期,所以只需要找到Bin中的第一个物料进行比对就可以了
if (!barcode.getPartNumber().equals(reelBarcode.getPartNumber())) {
return "料格中[" + binId + "]物料的料号[" + barcode.getPartNumber() + "]与[" + reelBarcode.getBarcode() + "]的料号[" + reelBarcode.getPartNumber() + "]不一致";
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!