|
|
@@ -12,6 +12,7 @@ import com.github.pagehelper.PageInfo;
|
|
|
import com.sckw.contract.api.RemoteContractService;
|
|
|
import com.sckw.contract.api.model.dto.res.ContractCommonInfoResDto;
|
|
|
import com.sckw.core.common.enums.StringConstant;
|
|
|
+import com.sckw.core.common.enums.enums.DictEnum;
|
|
|
import com.sckw.core.common.enums.enums.DictTypeEnum;
|
|
|
import com.sckw.core.exception.BusinessException;
|
|
|
import com.sckw.core.model.constant.Global;
|
|
|
@@ -171,6 +172,9 @@ public class KwtAcceptCarriageOrderService {
|
|
|
|
|
|
private final RedisLockUtil redisLockUtil;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ public KwtLogisticsOrderLineFreightRateMapper lineFreightRateMapper;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 承运订单-分包托运
|
|
|
@@ -2540,7 +2544,23 @@ public class KwtAcceptCarriageOrderService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ List<AcceptCarriageOrderVO> collect = list.stream().filter(item -> item.getBillingMode().equals(DictEnum.CHARGING_TYPE_4.getValue())).collect(Collectors.toList());
|
|
|
+ Map<Long, List<KwtLogisticsOrderLineFreightRate>> collect1 = new HashMap<>();
|
|
|
+ if (CollectionUtils.isNotEmpty(collect)) {
|
|
|
+ List<KwtLogisticsOrderLineFreightRate> kwtLogisticsOrderLineFreightRates = lineFreightRateMapper.selectListByOrderIdList(collect.stream().map(AcceptCarriageOrderVO::getLOrderId).map(Long::parseLong).toList());
|
|
|
+ if (CollectionUtils.isNotEmpty(kwtLogisticsOrderLineFreightRates)) {
|
|
|
+ collect1 = kwtLogisticsOrderLineFreightRates.stream().collect(Collectors.groupingBy(KwtLogisticsOrderLineFreightRate::getLOrderId));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
for (AcceptCarriageOrderVO vo : list) {
|
|
|
+
|
|
|
+ List<KwtLogisticsOrderLineFreightRate> kwtLogisticsOrderLineFreightRates = collect1.get(Long.parseLong(vo.getLOrderId()));
|
|
|
+ if (CollectionUtils.isNotEmpty(kwtLogisticsOrderLineFreightRates)) {
|
|
|
+ vo.setPrices(kwtLogisticsOrderLineFreightRates.stream().map(item -> item.getName() + " " + item.getTransportPrice()).toList());
|
|
|
+ }
|
|
|
+
|
|
|
vo.setAccountsCycleLabel(settlementDictData.get(vo.getAccountsCycle()));
|
|
|
vo.setAppointor(longUserMap.get(vo.getCreateBy()) == null ? null : longUserMap.get(vo.getCreateBy()).getName());
|
|
|
vo.setBillingModeLabel(chargingDictData.get(vo.getBillingMode()));
|