|
@@ -1572,15 +1572,13 @@ public class KwoTradeOrderService {
|
|
|
Map<Long, ContractCommonInfoResDto> contractMap = remoteContractService.queryContractBaseInfo(contracIdList);
|
|
Map<Long, ContractCommonInfoResDto> contractMap = remoteContractService.queryContractBaseInfo(contracIdList);
|
|
|
Map<String, Map<String, String>> dict = remoteSystemService.queryDictByType(List.of(DictTypeEnum.TORDER_STATUS.getType(), DictTypeEnum.TRADE_TYPE.getType(), DictTypeEnum.DELIVERY_TYPE.getType(), DictTypeEnum.PICKUP_TYPE.getType(), DictTypeEnum.TORDER_SOURCE.getType()));
|
|
Map<String, Map<String, String>> dict = remoteSystemService.queryDictByType(List.of(DictTypeEnum.TORDER_STATUS.getType(), DictTypeEnum.TRADE_TYPE.getType(), DictTypeEnum.DELIVERY_TYPE.getType(), DictTypeEnum.PICKUP_TYPE.getType(), DictTypeEnum.TORDER_SOURCE.getType()));
|
|
|
Map<String, SysDictResDto> unitType = remoteSystemService.queryDictMapByType(DictTypeEnum.UNIT_TYPE.getType());
|
|
Map<String, SysDictResDto> unitType = remoteSystemService.queryDictMapByType(DictTypeEnum.UNIT_TYPE.getType());
|
|
|
- Map<String, String> statusMap, tradeMap, deliveryMap, pickupMap, sourceMap;
|
|
|
|
|
|
|
+ Map<String, String> tradeMap, deliveryMap, pickupMap, sourceMap;
|
|
|
if (CollUtil.isNotEmpty(dict)) {
|
|
if (CollUtil.isNotEmpty(dict)) {
|
|
|
- statusMap = CollUtil.isNotEmpty(dict.get(DictTypeEnum.TORDER_STATUS.getType())) ? dict.get(DictTypeEnum.TORDER_STATUS.getType()) : new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
|
|
tradeMap = CollUtil.isNotEmpty(dict.get(DictTypeEnum.TRADE_TYPE.getType())) ? dict.get(DictTypeEnum.TRADE_TYPE.getType()) : new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
tradeMap = CollUtil.isNotEmpty(dict.get(DictTypeEnum.TRADE_TYPE.getType())) ? dict.get(DictTypeEnum.TRADE_TYPE.getType()) : new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
deliveryMap = CollUtil.isNotEmpty(dict.get(DictTypeEnum.DELIVERY_TYPE.getType())) ? dict.get(DictTypeEnum.DELIVERY_TYPE.getType()) : new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
deliveryMap = CollUtil.isNotEmpty(dict.get(DictTypeEnum.DELIVERY_TYPE.getType())) ? dict.get(DictTypeEnum.DELIVERY_TYPE.getType()) : new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
pickupMap = CollUtil.isNotEmpty(dict.get(DictTypeEnum.PICKUP_TYPE.getType())) ? dict.get(DictTypeEnum.PICKUP_TYPE.getType()) : new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
pickupMap = CollUtil.isNotEmpty(dict.get(DictTypeEnum.PICKUP_TYPE.getType())) ? dict.get(DictTypeEnum.PICKUP_TYPE.getType()) : new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
sourceMap = CollUtil.isNotEmpty(dict.get(DictTypeEnum.TORDER_SOURCE.getType())) ? dict.get(DictTypeEnum.TORDER_SOURCE.getType()) : new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
sourceMap = CollUtil.isNotEmpty(dict.get(DictTypeEnum.TORDER_SOURCE.getType())) ? dict.get(DictTypeEnum.TORDER_SOURCE.getType()) : new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
} else {
|
|
} else {
|
|
|
- statusMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
|
|
tradeMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
tradeMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
deliveryMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
deliveryMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
pickupMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
pickupMap = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
@@ -1608,7 +1606,7 @@ public class KwoTradeOrderService {
|
|
|
UserCacheResDto userCache = userMap.get(e.getCreateBy());
|
|
UserCacheResDto userCache = userMap.get(e.getCreateBy());
|
|
|
|
|
|
|
|
OrderListResVO vo = BeanUtil.copyProperties(e, OrderListResVO.class);
|
|
OrderListResVO vo = BeanUtil.copyProperties(e, OrderListResVO.class);
|
|
|
- vo.setStatusLabel(statusMap.get(String.valueOf(e.getStatus())))
|
|
|
|
|
|
|
+ vo.setStatusLabel(TradeOrderStatusEnum.getMsg(e.getStatus()))
|
|
|
.setTradingLabel(tradeMap.get(e.getTrading()))
|
|
.setTradingLabel(tradeMap.get(e.getTrading()))
|
|
|
.setTrading(tradeMap.get(e.getTrading()))
|
|
.setTrading(tradeMap.get(e.getTrading()))
|
|
|
.setDeliveryTypeLabel(deliveryMap.get(e.getDeliveryType()))
|
|
.setDeliveryTypeLabel(deliveryMap.get(e.getDeliveryType()))
|
|
@@ -1717,7 +1715,7 @@ public class KwoTradeOrderService {
|
|
|
* @author yzc
|
|
* @author yzc
|
|
|
* @date 2024/3/15 8:52
|
|
* @date 2024/3/15 8:52
|
|
|
*/
|
|
*/
|
|
|
- public TableStatisticRes tradeOrderStatistic(TradeOrderListStatisticParam params) {
|
|
|
|
|
|
|
+ public TableStatisticRes tradeOrderStatistic(TradeOrderListSelectParam params) {
|
|
|
TableStatisticRes res = new TableStatisticRes();
|
|
TableStatisticRes res = new TableStatisticRes();
|
|
|
TradeOrderListSelectDTO dto = buildSelectParam(params);
|
|
TradeOrderListSelectDTO dto = buildSelectParam(params);
|
|
|
dto.setStatus(null);
|
|
dto.setStatus(null);
|
|
@@ -1728,7 +1726,7 @@ public class KwoTradeOrderService {
|
|
|
}
|
|
}
|
|
|
List<TableTop> list = new ArrayList<>();
|
|
List<TableTop> list = new ArrayList<>();
|
|
|
int count = 0;
|
|
int count = 0;
|
|
|
- for (OrderStatusEnum e : OrderStatusEnum.getSortList()) {
|
|
|
|
|
|
|
+ for (TradeOrderStatusEnum e : TradeOrderStatusEnum.getSortList()) {
|
|
|
Integer value = e.getCode();
|
|
Integer value = e.getCode();
|
|
|
int total = Objects.isNull(map.get(value)) ? 0 : map.get(value);
|
|
int total = Objects.isNull(map.get(value)) ? 0 : map.get(value);
|
|
|
TableTop tableTop = new TableTop();
|
|
TableTop tableTop = new TableTop();
|