|
@@ -216,7 +216,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
List<String> boxType = tradingBoxItemList.stream().map(TradingBoxItem::getBoxType).distinct().collect(Collectors.toList());
|
|
List<String> boxType = tradingBoxItemList.stream().map(TradingBoxItem::getBoxType).distinct().collect(Collectors.toList());
|
|
|
for (String boxType_ : boxType) {
|
|
for (String boxType_ : boxType) {
|
|
|
if (ObjectUtils.isNotNull(boxType) && boxType.size() > 0) {
|
|
if (ObjectUtils.isNotNull(boxType) && boxType.size() > 0) {
|
|
|
- List<TradingBoxItem> boxTypeSize = tradingBoxItemList.stream().filter(e -> e.getBoxType().equals(boxType_)).collect(Collectors.toList());
|
|
|
|
|
|
|
+ List<TradingBoxItem> boxTypeSize = tradingBoxItemList.stream().filter(e -> ObjectUtils.isNotNull(e.getBoxType()) && e.getBoxType().equals(boxType_)).collect(Collectors.toList());
|
|
|
if (ObjectUtils.isNotNull(boxTypeSize) && boxTypeSize.size() > 0) {
|
|
if (ObjectUtils.isNotNull(boxTypeSize) && boxTypeSize.size() > 0) {
|
|
|
boxTypeNumber.append(boxType_).append("✖").append(boxTypeSize.size()).append(",");
|
|
boxTypeNumber.append(boxType_).append("✖").append(boxTypeSize.size()).append(",");
|
|
|
}
|
|
}
|
|
@@ -454,7 +454,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
List<String> boxType = tradingBoxItemList.stream().map(TradingBoxItem::getBoxType).distinct().collect(Collectors.toList());
|
|
List<String> boxType = tradingBoxItemList.stream().map(TradingBoxItem::getBoxType).distinct().collect(Collectors.toList());
|
|
|
for (String boxType_ : boxType) {
|
|
for (String boxType_ : boxType) {
|
|
|
if (ObjectUtils.isNotNull(boxType) && boxType.size() > 0) {
|
|
if (ObjectUtils.isNotNull(boxType) && boxType.size() > 0) {
|
|
|
- List<TradingBoxItem> boxTypeSize = tradingBoxItemList.stream().filter(e -> e.getBoxType().equals(boxType_)).collect(Collectors.toList());
|
|
|
|
|
|
|
+ List<TradingBoxItem> boxTypeSize = tradingBoxItemList.stream().filter(e -> ObjectUtils.isNotNull(e.getBoxType()) && e.getBoxType().equals(boxType_)).collect(Collectors.toList());
|
|
|
if (ObjectUtils.isNotNull(boxTypeSize) && boxTypeSize.size() > 0) {
|
|
if (ObjectUtils.isNotNull(boxTypeSize) && boxTypeSize.size() > 0) {
|
|
|
boxTypeNumber.append(boxType_).append("✖").append(boxTypeSize.size()).append(",");
|
|
boxTypeNumber.append(boxType_).append("✖").append(boxTypeSize.size()).append(",");
|
|
|
}
|
|
}
|
|
@@ -994,6 +994,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
}
|
|
}
|
|
|
archivesTrajectory.setStatus("租入");
|
|
archivesTrajectory.setStatus("租入");
|
|
|
tradingBoxItem.setStatus("待使用");
|
|
tradingBoxItem.setStatus("待使用");
|
|
|
|
|
+ tradingBoxItem.setRentEndDate(tradingBoxItem.getLeaseCommencementDate());
|
|
|
} else {
|
|
} else {
|
|
|
archives.setBoxAccessStatus("空箱离场");
|
|
archives.setBoxAccessStatus("空箱离场");
|
|
|
archives.setStatus("使用");
|
|
archives.setStatus("使用");
|