|
|
@@ -991,7 +991,7 @@ public class AcceptCarriageOrderService {
|
|
|
Map<String, String> settlementDictData = getDictData(DictTypeEnum.SETTLEMENT_CYCLE.getType());
|
|
|
List<SubcontractConsignmentVO> allList = new ArrayList<>();
|
|
|
List<SubcontractConsignmentVO> voList = logisticsOrderMapper.getSubcontractConsignmentList(ids);
|
|
|
- if (CollectionUtils.isEmpty(voList)){
|
|
|
+ if (CollectionUtils.isEmpty(voList)) {
|
|
|
PageRes<SubcontractConsignmentVO> objectPageRes = new PageRes<>();
|
|
|
objectPageRes.setPage(page);
|
|
|
objectPageRes.setPageSize(pageSize);
|
|
|
@@ -1036,7 +1036,7 @@ public class AcceptCarriageOrderService {
|
|
|
}
|
|
|
allList.addAll(voList);
|
|
|
}
|
|
|
- return PageRes.build(pageInfo,allList);
|
|
|
+ return PageRes.build(pageInfo, allList);
|
|
|
// for (String lOrderId : stringList) {
|
|
|
// List<SubcontractConsignmentVO> list = logisticsOrderMapper.getSubcontractConsignmentNotPage(lOrderId);
|
|
|
// //联查数据
|
|
|
@@ -1545,7 +1545,7 @@ public class AcceptCarriageOrderService {
|
|
|
.in(KwtLogisticsOrder::getStatus, orderStatusList));
|
|
|
if (org.springframework.util.CollectionUtils.isEmpty(logisticsOrders)) {
|
|
|
tradeOrder.setIsAllComplete(true);
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
tradeOrder.setIsAllComplete(false);
|
|
|
}
|
|
|
tradeOrder.setTOrderId(logisticsOrder.getTOrderId());
|
|
|
@@ -2037,7 +2037,7 @@ public class AcceptCarriageOrderService {
|
|
|
, messageUrlConfig.getPc().getConsignLogisticsAddOrderUrl(), messageUrlConfig.getPc().getCarriageLogisticsAddOrderUrl()
|
|
|
, messageUrlConfig.getApp().getConsignLogisticsAddOrderUrl(), messageUrlConfig.getApp().getCarriageLogisticsAddOrderUrl()
|
|
|
, MessageEnum.NEW_LOGISTICS_ORDER, MessageEnum.NEW_CARRIAGE_ORDER
|
|
|
- ,"1"
|
|
|
+ , "1"
|
|
|
);
|
|
|
|
|
|
System.out.println("承运订单新建订单-消息列表推送 end ");
|
|
|
@@ -2462,6 +2462,8 @@ public class AcceptCarriageOrderService {
|
|
|
Map<String, String> signingWay = getDictData(DictTypeEnum.SIGNING_TYPE.getType());
|
|
|
/**合理损耗*/
|
|
|
// Map<String, String> taxRateTypeDictData = getDictData(DictTypeEnum.TAX_RATE_TYPE.getType());
|
|
|
+ /**订单来源*/
|
|
|
+ Map<String, String> orderSource = getDictData(DictTypeEnum.ORDER_SOURCE.getType());
|
|
|
Map<Long, UserCacheResDto> longUserMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
if (CollectionUtils.isNotEmpty(list)) {
|
|
|
List<Long> collect = list.stream().map(AcceptCarriageOrderVO::getCreateBy).collect(Collectors.toList());
|
|
|
@@ -2474,6 +2476,7 @@ public class AcceptCarriageOrderService {
|
|
|
vo.setAppointor(longUserMap.get(vo.getCreateBy()) == null ? null : longUserMap.get(vo.getCreateBy()).getName());
|
|
|
vo.setBillingModeLabel(chargingDictData.get(vo.getBillingMode()));
|
|
|
vo.setSigningLabel(signingWay.get(vo.getSigning()));
|
|
|
+ vo.setOrderSourceLabel(orderSource == null ? null : orderSource.get(vo.getOrderSource()));
|
|
|
vo.setStatusLabel(LogisticsOrderEnum.getName(vo.getStatus()));
|
|
|
vo.setLoadAddress(vo.getLoadCityName() + vo.getLoadAddress());
|
|
|
vo.setUnloadAddress(vo.getUnloadCityName() + vo.getUnloadAddress());
|
|
|
@@ -2698,6 +2701,8 @@ public class AcceptCarriageOrderService {
|
|
|
Map<String, String> taxRate = getDictData(DictTypeEnum.TAX_RATE_TYPE.getType());
|
|
|
/**运价方式*/
|
|
|
Map<String, String> priceType = getDictData(DictTypeEnum.PRICE_TYPE.getType());
|
|
|
+ /**订单来源*/
|
|
|
+ Map<String, String> orderSource = getDictData(DictTypeEnum.ORDER_SOURCE.getType());
|
|
|
Map<Long, UserCacheResDto> longUserMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
if (CollectionUtils.isNotEmpty(list)) {
|
|
|
List<Long> collect = list.stream().map(AcceptCarriageOrderVO::getCreateBy).collect(Collectors.toList());
|
|
|
@@ -2719,6 +2724,7 @@ public class AcceptCarriageOrderService {
|
|
|
carriageOrderExcelVo.setStatusLabel(LogisticsOrderEnum.getName(vo.getStatus()));
|
|
|
carriageOrderExcelVo.setLoadAddress(vo.getLoadCityName() + vo.getLoadAddress());
|
|
|
carriageOrderExcelVo.setUnloadAddress(vo.getUnloadCityName() + vo.getUnloadAddress());
|
|
|
+ carriageOrderExcelVo.setOrderSourceLabel(orderSource == null ? null : orderSource.get(vo.getOrderSource()));
|
|
|
// if (vo.getTOrderId() != null) {
|
|
|
// try {
|
|
|
// OrderDetailRes orderDetailRes = tradeOrderInfoService.getOrderDetailById(Long.valueOf(vo.getTOrderId()));
|
|
|
@@ -2907,7 +2913,8 @@ public class AcceptCarriageOrderService {
|
|
|
}
|
|
|
StatisticsTotalPriceVO priceVO = new StatisticsTotalPriceVO();
|
|
|
priceVO.setTotalPrice(currentWeek.getTotalPrice());
|
|
|
- priceVO.setChainRatio(chainRatio.abs() + "%");
|
|
|
+// priceVO.setChainRatio(chainRatio.abs() + "%");
|
|
|
+ priceVO.setChainRatio(chainRatio.abs().toString());
|
|
|
priceVO.setFlag(flag);
|
|
|
priceVO.setLastTotalPrice(lastWeek.getTotalPrice());
|
|
|
resultVO.setTotalPriceVO(priceVO);
|
|
|
@@ -2935,7 +2942,8 @@ public class AcceptCarriageOrderService {
|
|
|
/**承运量*/
|
|
|
StatisticsAmountVO amountVO = new StatisticsAmountVO();
|
|
|
amountVO.setAmount(currentWeek.getAmount());
|
|
|
- amountVO.setChainRatio(amountChainRatio.abs() + "%");
|
|
|
+// amountVO.setChainRatio(amountChainRatio.abs() + "%");
|
|
|
+ amountVO.setChainRatio(amountChainRatio.abs().toString());
|
|
|
amountVO.setFlag(amountFlag);
|
|
|
amountVO.setLastAmount(lastWeek.getAmount());
|
|
|
resultVO.setAmountVO(amountVO);
|
|
|
@@ -2962,7 +2970,8 @@ public class AcceptCarriageOrderService {
|
|
|
/**待分配量*/
|
|
|
StatisticsWaitingAmountVO waitingAmountVO = new StatisticsWaitingAmountVO();
|
|
|
waitingAmountVO.setWaitingAmount(currentWeek.getWaitingAmount());
|
|
|
- waitingAmountVO.setChainRatio(chainRatio.abs() + "%");
|
|
|
+// waitingAmountVO.setChainRatio(chainRatio.abs() + "%");
|
|
|
+ waitingAmountVO.setChainRatio(chainRatio.abs().toString());
|
|
|
waitingAmountVO.setFlag(flag);
|
|
|
waitingAmountVO.setLastWaitingAmount(lastWeek.getWaitingAmount());
|
|
|
resultVO.setWaitingAmountVO(waitingAmountVO);
|