Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
c6d84ee89c
|
@ -124,6 +124,22 @@ public class SaDeliverUnhandledController extends BaseController {
|
||||||
for (DeliverUnhandledVO deliverUnhandled : resultList) {
|
for (DeliverUnhandledVO deliverUnhandled : resultList) {
|
||||||
// 省市区处理
|
// 省市区处理
|
||||||
OrderUtil.handleOrderAddress(areaMap, deliverUnhandled);
|
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);
|
return getDataTable(resultList);
|
||||||
|
@ -174,14 +190,22 @@ public class SaDeliverUnhandledController extends BaseController {
|
||||||
// 省市区处理
|
// 省市区处理
|
||||||
OrderUtil.handleOrderAddress(areaMap, deliverUnhandled);
|
OrderUtil.handleOrderAddress(areaMap, deliverUnhandled);
|
||||||
|
|
||||||
deliverUnhandled.setIsGiftVal(transactionMap.get(EnumsPrefixConstants.E_SALE_TYPE + deliverUnhandled.getIsGift()));
|
// 订单类型枚举转换
|
||||||
deliverUnhandled.setDeliveryWayVal(transactionMap.get(EnumsPrefixConstants.DELIVERY + deliverUnhandled.getDeliveryWay()));
|
deliverUnhandled.setOrderTypeVal(EOrderType.getLabelByValue(deliverUnhandled.getOrderType()));
|
||||||
deliverUnhandled.setOperateScopeVal(transactionMap.get(EnumsPrefixConstants.SUPPLY_WAY + deliverUnhandled.getOperateScope()));
|
// 销售类型
|
||||||
deliverUnhandled.setShippingChannelVal(transactionMap.get(EnumsPrefixConstants.E_SHIPPING_CHANNEL + deliverUnhandled.getShippingChannel()));
|
deliverUnhandled.setIsGiftVal(ESaleType.getLabelByValue(deliverUnhandled.getIsGift()));
|
||||||
deliverUnhandled.setTranTypeVal(transactionMap.get(EnumsPrefixConstants.ENU_TRA + deliverUnhandled.getTranType()));
|
// 发货类型
|
||||||
deliverUnhandled.setPreSaleStatusVal(transactionMap.get(EnumsPrefixConstants.PRESALE_STATUS + deliverUnhandled.getPreSaleStatus()));
|
deliverUnhandled.setShippingChannelVal(EShippingChannel.getLabelByValue(deliverUnhandled.getShippingChannel()));
|
||||||
deliverUnhandled.setOrderTypeVal(transactionMap.get(EnumsPrefixConstants.ORDER_TYPE + deliverUnhandled.getOrderType()));
|
// 订单状态
|
||||||
deliverUnhandled.setOrderStatusVal(transactionMap.get(EnumsPrefixConstants.ORDER_STATUS + deliverUnhandled.getOrderStatus()));
|
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);
|
ExcelUtil<DeliverUnhandledVO> util = new ExcelUtil<>(DeliverUnhandledVO.class);
|
||||||
|
|
|
@ -6,6 +6,7 @@ import com.hzs.common.core.annotation.Excel;
|
||||||
import com.hzs.common.core.annotation.Transaction;
|
import com.hzs.common.core.annotation.Transaction;
|
||||||
import com.hzs.common.core.constant.EnumsPrefixConstants;
|
import com.hzs.common.core.constant.EnumsPrefixConstants;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
@ -36,8 +37,6 @@ public class DeliverUnhandledVO {
|
||||||
/**
|
/**
|
||||||
* 订单类型(EOrderType)
|
* 订单类型(EOrderType)
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.ORDER_TYPE)
|
|
||||||
private Integer orderType;
|
private Integer orderType;
|
||||||
/**
|
/**
|
||||||
* 订单类型显示
|
* 订单类型显示
|
||||||
|
@ -91,7 +90,6 @@ public class DeliverUnhandledVO {
|
||||||
/**
|
/**
|
||||||
* 销售类型
|
* 销售类型
|
||||||
*/
|
*/
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.E_SALE_TYPE)
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
private Integer isGift;
|
private Integer isGift;
|
||||||
/**
|
/**
|
||||||
|
@ -155,7 +153,6 @@ public class DeliverUnhandledVO {
|
||||||
/**
|
/**
|
||||||
* 发货类型
|
* 发货类型
|
||||||
*/
|
*/
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.E_SHIPPING_CHANNEL)
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
private Integer shippingChannel;
|
private Integer shippingChannel;
|
||||||
/**
|
/**
|
||||||
|
@ -180,7 +177,6 @@ public class DeliverUnhandledVO {
|
||||||
/**
|
/**
|
||||||
* 订单状态(EOrderStatus)
|
* 订单状态(EOrderStatus)
|
||||||
*/
|
*/
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.ORDER_STATUS)
|
|
||||||
private Integer orderStatus;
|
private Integer orderStatus;
|
||||||
/**
|
/**
|
||||||
* 订单状态显示
|
* 订单状态显示
|
||||||
|
@ -192,7 +188,6 @@ public class DeliverUnhandledVO {
|
||||||
* 发货方式(EDelivery)
|
* 发货方式(EDelivery)
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.DELIVERY)
|
|
||||||
private Integer deliveryWay;
|
private Integer deliveryWay;
|
||||||
/**
|
/**
|
||||||
* 发货方式显示
|
* 发货方式显示
|
||||||
|
@ -204,7 +199,6 @@ public class DeliverUnhandledVO {
|
||||||
* 供应方式(ESupplyWay)
|
* 供应方式(ESupplyWay)
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.SUPPLY_WAY)
|
|
||||||
private Integer operateScope;
|
private Integer operateScope;
|
||||||
/**
|
/**
|
||||||
* 供应方式显示
|
* 供应方式显示
|
||||||
|
@ -216,7 +210,6 @@ public class DeliverUnhandledVO {
|
||||||
* 运输方式(ETransportType)
|
* 运输方式(ETransportType)
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.ENU_TRA)
|
|
||||||
private Integer tranType;
|
private Integer tranType;
|
||||||
/**
|
/**
|
||||||
* 运输方式显示
|
* 运输方式显示
|
||||||
|
@ -228,7 +221,6 @@ public class DeliverUnhandledVO {
|
||||||
* 预售状态(EPresaleStatus)
|
* 预售状态(EPresaleStatus)
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.PRESALE_STATUS)
|
|
||||||
private Integer preSaleStatus;
|
private Integer preSaleStatus;
|
||||||
/**
|
/**
|
||||||
* 预售状态显示
|
* 预售状态显示
|
||||||
|
|
|
@ -622,6 +622,12 @@ public class SaOrderController extends ParentOrderController {
|
||||||
if (vo.getRecCounty() != null) {
|
if (vo.getRecCounty() != null) {
|
||||||
vo.setRecCountyName(areaMap.get(vo.getRecCounty()));
|
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);
|
return getDataTable(resultList);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,6 @@ public class OrderInvoicingVO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 订单类型
|
* 订单类型
|
||||||
*/
|
*/
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.ORDER_TYPE)
|
|
||||||
private Integer orderType;
|
private Integer orderType;
|
||||||
/**
|
/**
|
||||||
* 订单类型显示
|
* 订单类型显示
|
||||||
|
@ -122,7 +121,6 @@ public class OrderInvoicingVO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 发货方式
|
* 发货方式
|
||||||
*/
|
*/
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.DELIVERY)
|
|
||||||
private Integer deliveryWay;
|
private Integer deliveryWay;
|
||||||
/**
|
/**
|
||||||
* 发货方式显示
|
* 发货方式显示
|
||||||
|
@ -132,7 +130,6 @@ public class OrderInvoicingVO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 支付方式
|
* 支付方式
|
||||||
*/
|
*/
|
||||||
@Transaction(transactionKey = EnumsPrefixConstants.ORDER_PAY_TYPE)
|
|
||||||
private Integer payType;
|
private Integer payType;
|
||||||
/**
|
/**
|
||||||
* 支付方式显示
|
* 支付方式显示
|
||||||
|
|
|
@ -34,4 +34,16 @@ public enum ESaleType {
|
||||||
*/
|
*/
|
||||||
private final String key;
|
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 "";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue