|
|
@ -2752,18 +2752,6 @@ public class PageController { |
|
|
// 获取当前key值存储在redis中的值
|
|
|
// 获取当前key值存储在redis中的值
|
|
|
List<String> range = redisTemplateForHash.opsForList().range("WMS_temporaryValue_In" + userByPort.getNumber(), 0, -1); |
|
|
List<String> range = redisTemplateForHash.opsForList().range("WMS_temporaryValue_In" + userByPort.getNumber(), 0, -1); |
|
|
if( range != null && range.size() > 0){ |
|
|
if( range != null && range.size() > 0){ |
|
|
List<Inventory> result = new ArrayList<>(); |
|
|
|
|
|
for (String value: |
|
|
|
|
|
range ) { |
|
|
|
|
|
if("".equals(value)){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
Inventory inventoryById = materialService.findInventoryById(ObjectFormatUtil.toInteger(value)); |
|
|
|
|
|
List<SplitInfo> splitInfoByMid = splitUnitService.findSplitInfoByMid(inventoryById.getMid()); |
|
|
|
|
|
inventoryById.setSplitInfoList(splitInfoByMid); |
|
|
|
|
|
result.add(inventoryById); |
|
|
|
|
|
} |
|
|
|
|
|
mv.addObject("inventoryList", JSONObject.toJSONString(result)); |
|
|
|
|
|
mv.setViewName("pages/application/application-in_temporaryValue"); |
|
|
mv.setViewName("pages/application/application-in_temporaryValue"); |
|
|
}else{ |
|
|
}else{ |
|
|
mv.setViewName("pages/application/application-in"); |
|
|
mv.setViewName("pages/application/application-in"); |
|
|
@ -2819,19 +2807,6 @@ public class PageController { |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
List<String> range = redisTemplateForHash.boundListOps("WMS_temporaryValue_Out" + userToken.getNumber()).range(0, -1); |
|
|
List<String> range = redisTemplateForHash.boundListOps("WMS_temporaryValue_Out" + userToken.getNumber()).range(0, -1); |
|
|
if (range != null && range.size() > 0) { |
|
|
if (range != null && range.size() > 0) { |
|
|
List<Inventory> result = new ArrayList<>(); |
|
|
|
|
|
for (String value : range |
|
|
|
|
|
) { |
|
|
|
|
|
if ("".equals(value)) { |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
Inventory inventoryById = materialService.findInventoryById(ObjectFormatUtil.toInteger(value)); |
|
|
|
|
|
List<SplitInfo> splitInfoByMid = splitUnitService.findSplitInfoByMid(inventoryById.getMid()); |
|
|
|
|
|
inventoryById.setSplitInfoList(splitInfoByMid); |
|
|
|
|
|
result.add(inventoryById); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
mv.addObject("inventoryList", JSONObject.toJSONString(result)); |
|
|
|
|
|
mv.setViewName("pages/application/application-out_temporaryValue"); |
|
|
mv.setViewName("pages/application/application-out_temporaryValue"); |
|
|
Integer role = userToken.getIsadmin(); |
|
|
Integer role = userToken.getIsadmin(); |
|
|
if (role == null) { |
|
|
if (role == null) { |
|
|
|