Browse Source

校验库位物品接口修改。

master
刘忱 2 years ago
parent
commit
3e35ba9f76
  1. 4
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/location/LocationServiceImpl.java
  2. 5
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/rule/RuleServiceImpl.java

4
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/location/LocationServiceImpl.java

@ -417,9 +417,6 @@ public class LocationServiceImpl implements LocationService {
List<RuleRespVO> ruleRespVOList = ruleService.getGroundingList(locationValidateVO.getItemCode(), locationValidateVO.getInventoryStatus()); List<RuleRespVO> ruleRespVOList = ruleService.getGroundingList(locationValidateVO.getItemCode(), locationValidateVO.getInventoryStatus());
boolean validateResult = false; boolean validateResult = false;
String msg = ""; String msg = "";
if(ruleRespVOList.size() == 1) {
validateResult = true;
} else {
for (RuleRespVO ruleRespVO : ruleRespVOList) { for (RuleRespVO ruleRespVO : ruleRespVOList) {
JSONObject jsonObject = JSONUtil.parseObj(ruleRespVO.getConfiguration()); JSONObject jsonObject = JSONUtil.parseObj(ruleRespVO.getConfiguration());
//增加过滤条件 //增加过滤条件
@ -485,7 +482,6 @@ public class LocationServiceImpl implements LocationService {
break; break;
} }
} }
}
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("itemCode", locationValidateVO.getItemCode()); map.put("itemCode", locationValidateVO.getItemCode());
map.put("batch", locationValidateVO.getBatch()); map.put("batch", locationValidateVO.getBatch());

5
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/rule/RuleServiceImpl.java

@ -538,8 +538,8 @@ public class RuleServiceImpl implements RuleService {
for (RuleDO ruleDO : ruleDOList) { for (RuleDO ruleDO : ruleDOList) {
String condition = ruleDO.getCondition(); String condition = ruleDO.getCondition();
if (condition == null || condition.isEmpty()) { if (condition == null || condition.isEmpty()) {
ruleRespVOList.add(RuleConvert.INSTANCE.convert(ruleDO)); continue;
} else { }
JSONArray conditionArray = JSONUtil.parseArray(condition); JSONArray conditionArray = JSONUtil.parseArray(condition);
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
if (itemCode != null && !itemCode.isEmpty()) { if (itemCode != null && !itemCode.isEmpty()) {
@ -552,7 +552,6 @@ public class RuleServiceImpl implements RuleService {
ruleRespVOList.add(RuleConvert.INSTANCE.convert(ruleDO)); ruleRespVOList.add(RuleConvert.INSTANCE.convert(ruleDO));
} }
} }
}
return ruleRespVOList; return ruleRespVOList;
} }

Loading…
Cancel
Save