|
@@ -27,6 +27,13 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|
|
public Map<String, Object> getRecommend(String wllbCode, String suppId, String num, String unique, String producDate) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
try{
|
|
|
+ //判断物料是否录入
|
|
|
+ int count = warehousingMapper.getMateriaIsExist(wllbCode);
|
|
|
+ if(count == 0){
|
|
|
+ map.put("msg", "500");
|
|
|
+ map.put("errMsg", "物料信息未录入,请联系管理员");
|
|
|
+ return map;
|
|
|
+ }
|
|
|
Map<String, Object> mapVal = warehousingMapper.getScanIsNot(wllbCode, suppId, unique, producDate);
|
|
|
if(Integer.parseInt(mapVal.get("inventoryCount").toString()) != 0 || Integer.parseInt(mapVal.get("virtualCount").toString()) != 0){
|
|
|
map.put("msg", "500");
|