Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
cabbage 2025-09-30 11:15:38 +08:00
commit c6d84ee89c
5 changed files with 52 additions and 21 deletions

View File

@ -124,6 +124,22 @@ public class SaDeliverUnhandledController extends BaseController {
for (DeliverUnhandledVO deliverUnhandled : resultList) {
// 省市区处理
OrderUtil.handleOrderAddress(areaMap, deliverUnhandled);
// 订单类型枚举转换
deliverUnhandled.setOrderTypeVal(EOrderType.getLabelByValue(deliverUnhandled.getOrderType()));
// 销售类型
deliverUnhandled.setIsGiftVal(ESaleType.getLabelByValue(deliverUnhandled.getIsGift()));
// 发货类型
deliverUnhandled.setShippingChannelVal(EShippingChannel.getLabelByValue(deliverUnhandled.getShippingChannel()));
// 订单状态
deliverUnhandled.setOrderStatusVal(EOrderStatus.getLabelByValue(deliverUnhandled.getOrderStatus()));
// 发货方式
deliverUnhandled.setDeliveryWayVal(EDelivery.getLabelByValue(deliverUnhandled.getDeliveryWay()));
// 供应方式
deliverUnhandled.setOperateScopeVal(ESupplyWay.getLabelByVal(deliverUnhandled.getOperateScope()));
// 运输方式
deliverUnhandled.setTranTypeVal(ETransportType.getLabelByValue(deliverUnhandled.getTranType()));
// 预售状态
deliverUnhandled.setPreSaleStatusVal(EPresaleStatus.getLabelByValue(deliverUnhandled.getPreSaleStatus()));
}
}
return getDataTable(resultList);
@ -174,14 +190,22 @@ public class SaDeliverUnhandledController extends BaseController {
// 省市区处理
OrderUtil.handleOrderAddress(areaMap, deliverUnhandled);
deliverUnhandled.setIsGiftVal(transactionMap.get(EnumsPrefixConstants.E_SALE_TYPE + deliverUnhandled.getIsGift()));
deliverUnhandled.setDeliveryWayVal(transactionMap.get(EnumsPrefixConstants.DELIVERY + deliverUnhandled.getDeliveryWay()));
deliverUnhandled.setOperateScopeVal(transactionMap.get(EnumsPrefixConstants.SUPPLY_WAY + deliverUnhandled.getOperateScope()));
deliverUnhandled.setShippingChannelVal(transactionMap.get(EnumsPrefixConstants.E_SHIPPING_CHANNEL + deliverUnhandled.getShippingChannel()));
deliverUnhandled.setTranTypeVal(transactionMap.get(EnumsPrefixConstants.ENU_TRA + deliverUnhandled.getTranType()));
deliverUnhandled.setPreSaleStatusVal(transactionMap.get(EnumsPrefixConstants.PRESALE_STATUS + deliverUnhandled.getPreSaleStatus()));
deliverUnhandled.setOrderTypeVal(transactionMap.get(EnumsPrefixConstants.ORDER_TYPE + deliverUnhandled.getOrderType()));
deliverUnhandled.setOrderStatusVal(transactionMap.get(EnumsPrefixConstants.ORDER_STATUS + deliverUnhandled.getOrderStatus()));
// 订单类型枚举转换
deliverUnhandled.setOrderTypeVal(EOrderType.getLabelByValue(deliverUnhandled.getOrderType()));
// 销售类型
deliverUnhandled.setIsGiftVal(ESaleType.getLabelByValue(deliverUnhandled.getIsGift()));
// 发货类型
deliverUnhandled.setShippingChannelVal(EShippingChannel.getLabelByValue(deliverUnhandled.getShippingChannel()));
// 订单状态
deliverUnhandled.setOrderStatusVal(EOrderStatus.getLabelByValue(deliverUnhandled.getOrderStatus()));
// 发货方式
deliverUnhandled.setDeliveryWayVal(EDelivery.getLabelByValue(deliverUnhandled.getDeliveryWay()));
// 供应方式
deliverUnhandled.setOperateScopeVal(ESupplyWay.getLabelByVal(deliverUnhandled.getOperateScope()));
// 运输方式
deliverUnhandled.setTranTypeVal(ETransportType.getLabelByValue(deliverUnhandled.getTranType()));
// 预售状态
deliverUnhandled.setPreSaleStatusVal(EPresaleStatus.getLabelByValue(deliverUnhandled.getPreSaleStatus()));
}
}
ExcelUtil<DeliverUnhandledVO> util = new ExcelUtil<>(DeliverUnhandledVO.class);

View File

@ -6,6 +6,7 @@ import com.hzs.common.core.annotation.Excel;
import com.hzs.common.core.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal;
import java.util.Date;
@ -36,8 +37,6 @@ public class DeliverUnhandledVO {
/**
* 订单类型EOrderType
*/
@JsonIgnore
@Transaction(transactionKey = EnumsPrefixConstants.ORDER_TYPE)
private Integer orderType;
/**
* 订单类型显示
@ -91,7 +90,6 @@ public class DeliverUnhandledVO {
/**
* 销售类型
*/
@Transaction(transactionKey = EnumsPrefixConstants.E_SALE_TYPE)
@JsonIgnore
private Integer isGift;
/**
@ -155,7 +153,6 @@ public class DeliverUnhandledVO {
/**
* 发货类型
*/
@Transaction(transactionKey = EnumsPrefixConstants.E_SHIPPING_CHANNEL)
@JsonIgnore
private Integer shippingChannel;
/**
@ -180,7 +177,6 @@ public class DeliverUnhandledVO {
/**
* 订单状态EOrderStatus
*/
@Transaction(transactionKey = EnumsPrefixConstants.ORDER_STATUS)
private Integer orderStatus;
/**
* 订单状态显示
@ -192,7 +188,6 @@ public class DeliverUnhandledVO {
* 发货方式EDelivery
*/
@JsonIgnore
@Transaction(transactionKey = EnumsPrefixConstants.DELIVERY)
private Integer deliveryWay;
/**
* 发货方式显示
@ -204,7 +199,6 @@ public class DeliverUnhandledVO {
* 供应方式ESupplyWay
*/
@JsonIgnore
@Transaction(transactionKey = EnumsPrefixConstants.SUPPLY_WAY)
private Integer operateScope;
/**
* 供应方式显示
@ -216,7 +210,6 @@ public class DeliverUnhandledVO {
* 运输方式ETransportType
*/
@JsonIgnore
@Transaction(transactionKey = EnumsPrefixConstants.ENU_TRA)
private Integer tranType;
/**
* 运输方式显示
@ -228,7 +221,6 @@ public class DeliverUnhandledVO {
* 预售状态EPresaleStatus
*/
@JsonIgnore
@Transaction(transactionKey = EnumsPrefixConstants.PRESALE_STATUS)
private Integer preSaleStatus;
/**
* 预售状态显示

View File

@ -603,7 +603,7 @@ public class SaOrderController extends ParentOrderController {
// 获取管理员权限角色地区范围体系列表团队列表
UserAuthorityDTO userAuthorityDTO = iUserServiceApi.getUserAuthority(SecurityUtils.getUserId()).getData();
param.setAreaScopeList(userAuthorityDTO.getRoleAreaScopeList());
param.setAreaScopeList(userAuthorityDTO.getRoleAreaScopeList());
param.setVertexIdList(userAuthorityDTO.getVertexIdList());
param.setTeamList(userAuthorityDTO.getUserTeamList());
@ -622,6 +622,12 @@ public class SaOrderController extends ParentOrderController {
if (vo.getRecCounty() != null) {
vo.setRecCountyName(areaMap.get(vo.getRecCounty()));
}
// 订单类型枚举转换
vo.setOrderTypeVal(EOrderType.getLabelByValue(vo.getOrderType()));
// 发货方式
vo.setDeliveryWayVal(EDelivery.getLabelByValue(vo.getDeliveryWay()));
// 支付方式
vo.setPayTypeVal(EOrderPayType.getLabelByValue(vo.getPayType()));
}
return getDataTable(resultList);
}

View File

@ -33,7 +33,6 @@ public class OrderInvoicingVO implements Serializable {
/**
* 订单类型
*/
@Transaction(transactionKey = EnumsPrefixConstants.ORDER_TYPE)
private Integer orderType;
/**
* 订单类型显示
@ -122,7 +121,6 @@ public class OrderInvoicingVO implements Serializable {
/**
* 发货方式
*/
@Transaction(transactionKey = EnumsPrefixConstants.DELIVERY)
private Integer deliveryWay;
/**
* 发货方式显示
@ -132,7 +130,6 @@ public class OrderInvoicingVO implements Serializable {
/**
* 支付方式
*/
@Transaction(transactionKey = EnumsPrefixConstants.ORDER_PAY_TYPE)
private Integer payType;
/**
* 支付方式显示

View File

@ -34,4 +34,16 @@ public enum ESaleType {
*/
private final String key;
public static String getLabelByValue(Integer value) {
if (null == value) {
return "";
}
for (ESaleType enums : ESaleType.values()) {
if (enums.getValue() == value) {
return enums.getLabel();
}
}
return "";
}
}