|
|
@@ -215,9 +215,11 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
StringBuilder boxTypeNumber = new StringBuilder();
|
|
|
List<String> boxType = tradingBoxItemList.stream().map(TradingBoxItem::getBoxType).distinct().collect(Collectors.toList());
|
|
|
for (String boxType_ : boxType) {
|
|
|
- List<TradingBoxItem> boxTypeSize = tradingBoxItemList.stream().filter(e -> e.getBoxType().equals(boxType_)).collect(Collectors.toList());
|
|
|
- if (ObjectUtils.isNotNull(boxTypeSize) && boxTypeSize.size() > 0) {
|
|
|
- boxTypeNumber.append(boxType_).append("✖").append(boxTypeSize.size()).append(",");
|
|
|
+ if (ObjectUtils.isNotNull(boxType) && boxType.size() > 0) {
|
|
|
+ List<TradingBoxItem> boxTypeSize = tradingBoxItemList.stream().filter(e -> e.getBoxType().equals(boxType_)).collect(Collectors.toList());
|
|
|
+ if (ObjectUtils.isNotNull(boxTypeSize) && boxTypeSize.size() > 0) {
|
|
|
+ boxTypeNumber.append(boxType_).append("✖").append(boxTypeSize.size()).append(",");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
tradingBox.setBoxTypeNumber(boxTypeNumber.toString());
|
|
|
@@ -451,9 +453,11 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
StringBuilder boxTypeNumber = new StringBuilder();
|
|
|
List<String> boxType = tradingBoxItemList.stream().map(TradingBoxItem::getBoxType).distinct().collect(Collectors.toList());
|
|
|
for (String boxType_ : boxType) {
|
|
|
- List<TradingBoxItem> boxTypeSize = tradingBoxItemList.stream().filter(e -> e.getBoxType().equals(boxType_)).collect(Collectors.toList());
|
|
|
- if (ObjectUtils.isNotNull(boxTypeSize) && boxTypeSize.size() > 0) {
|
|
|
- boxTypeNumber.append(boxType_).append("✖").append(boxTypeSize.size()).append(",");
|
|
|
+ if (ObjectUtils.isNotNull(boxType) && boxType.size() > 0) {
|
|
|
+ List<TradingBoxItem> boxTypeSize = tradingBoxItemList.stream().filter(e -> e.getBoxType().equals(boxType_)).collect(Collectors.toList());
|
|
|
+ if (ObjectUtils.isNotNull(boxTypeSize) && boxTypeSize.size() > 0) {
|
|
|
+ boxTypeNumber.append(boxType_).append("✖").append(boxTypeSize.size()).append(",");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
tradingBox.setBoxTypeNumber(boxTypeNumber.toString());
|