|
|
@@ -67,6 +67,12 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|
|
map.put("errMsg", "物料信息未录入,请联系管理员");
|
|
|
return map;
|
|
|
}
|
|
|
+ Map<String, Object> mapVal = warehousingMapper.getScanIsNot(wllbCode, suppId, unique, producDate, warehouseWhere);
|
|
|
+ if (Integer.parseInt(mapVal.get("inventoryCount").toString()) != 0 || Integer.parseInt(mapVal.get("virtualCount").toString()) != 0) {
|
|
|
+ map.put("msg", "500");
|
|
|
+ map.put("errMsg", "已被扫描");
|
|
|
+ return map;
|
|
|
+ }
|
|
|
if(materialClass.getPartType().equals("半成品")){
|
|
|
List<StorageLocation> listTwo = warehousingMapper.getRecommendTwo("1");
|
|
|
map.put("data", listTwo);
|
|
|
@@ -79,12 +85,6 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|
|
map.put("listString", new HashMap<>());//返回库位剩余数量
|
|
|
return map;
|
|
|
}
|
|
|
- Map<String, Object> mapVal = warehousingMapper.getScanIsNot(wllbCode, suppId, unique, producDate, warehouseWhere);
|
|
|
- if (Integer.parseInt(mapVal.get("inventoryCount").toString()) != 0 || Integer.parseInt(mapVal.get("virtualCount").toString()) != 0) {
|
|
|
- map.put("msg", "500");
|
|
|
- map.put("errMsg", "已被扫描");
|
|
|
- return map;
|
|
|
- }
|
|
|
//判断如果是混合则走单独逻辑
|
|
|
String isNotSisable = warehousingMapper.getIsNotSisable(wllbCode);
|
|
|
if (isNotSisable.equals("1")) {
|
|
|
@@ -669,9 +669,10 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|
|
map.put("errMsg", "库位已满");
|
|
|
return map;
|
|
|
}
|
|
|
- Notice notice1 = warehousingMapper.getNoticeId(new Notice().setNoticeId(notice.getNoticeId()).setMaterialId(notice.getMaterialId()));
|
|
|
+ Notice notice1 = warehousingMapper.getNoticeId(new Notice().setNoticeId(notice.getNoticeId()).setMaterialId(notice.getMaterialId()).setEntryNumber(notice.getEntryNumber()));
|
|
|
+ String numSaoMiao = warehousingMapper.getnumSaoMiao(new Notice().setNoticeId(notice.getNoticeId()).setMaterialId(notice.getMaterialId()).setEntryNumber(notice.getEntryNumber()));
|
|
|
if(notice1 != null) {
|
|
|
- Double contrast = Double.parseDouble(notice1.getWarehousingNum()) + Double.parseDouble(notice.getWarehousingNum());
|
|
|
+ Double contrast = Double.parseDouble(notice1.getWarehousingNum()) + Double.parseDouble(notice.getWarehousingNum()) + Double.parseDouble(numSaoMiao);
|
|
|
if(Double.doubleToLongBits(contrast) > Double.doubleToLongBits(Double.parseDouble(notice1.getNum()))) {
|
|
|
map.put("msg", "500");
|
|
|
map.put("errMsg", "扫描数量超出报工单数量");
|
|
|
@@ -772,7 +773,7 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|
|
//查询物料信息
|
|
|
Notice notice = new Notice().setMaterialCode(warehousingVirtual.getWllbCode());
|
|
|
MaterialClass material = warehousingMapper.getMaterial(notice);
|
|
|
- Notice notice1 = warehousingMapper.getNoticeId(new Notice().setNoticeId(noticeId).setMaterialId(material.getTldId()));
|
|
|
+ Notice notice1 = warehousingMapper.getNoticeId(new Notice().setNoticeId(noticeId).setMaterialId(material.getTldId()).setEntryNumber(warehousingVirtual.getEntryNumber()));
|
|
|
Notice notice2 = new Notice()
|
|
|
.setMaterialId(material.getTldId())
|
|
|
.setStorageLocationCode(warehousingVirtual.getStorageLocationCode())
|