Commit e72cd765 by 庞善天

权益订单导出增加订单类型

1 parent e10b3585
......@@ -301,6 +301,7 @@ public class ServicePackageController {
list.forEach(vo -> {
ServicePackageOrderListExcelResponse response = ServicePackageOrderListExcelResponseConvert.INSTANCE.convert(vo);
response.setAuditStatusDesc(convertAuditStatusDesc(vo));
response.setOrderType(convertOrderTypeDesc(vo));
response.setErpErrorMsg(vo.getErpErrorMsg());
excelResponses.add(response);
});
......@@ -326,6 +327,17 @@ public class ServicePackageController {
return RopResponse.error(rpcResponse.getMessage());
}
private String convertOrderTypeDesc(QueryServicePackageOrderResponseDTO vo) {
// 处理订单类型
String orderTypeDesc = DjOrderTypeEnum.NORMAL.getMsg();
Integer djOrderType = vo.getOrderType() == null ? DjOrderTypeEnum.NORMAL.getCode() : vo.getOrderType();
DjOrderTypeEnum orderTypeEnum = DjOrderTypeEnum.getByValue(djOrderType);
if (orderTypeEnum!=null){
orderTypeDesc = orderTypeEnum.getMsg();
}
return orderTypeDesc;
}
@ServiceMethod(method = "scrm.api.equity.service.package.dj.order.export.get", needInSession = NeedInSessionType.YES)
@ApiOperation("导出")
public RopResponse<String> exportDjOrder(GetServicePackageOrderListRequest request) throws Exception{
......@@ -384,6 +396,8 @@ public class ServicePackageController {
// 销售模式封装
response.setSaleMode(MerchantSaleModeEnum.getMsg(vo.getSaleMode()));
response.setPrintBusiness(PackageSceneEnum.getEquityName(vo.getPrintType()));
// 处理订单类型
response.setOrderType(convertOrderTypeDesc(vo));
excelResponses.add(response);
}
// 动态字段:根据配置决定是否展示产品成本价
......
package cn.com.glsx.scrm.equity.response.service;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.oreframework.commons.office.easyexcel.annotation.ExcelValueReplace;
import org.oreframework.commons.office.easyexcel.converter.ReplaceIntegerToStringConvert;
......@@ -51,6 +52,12 @@ public class DJServicePackageOrderListExcelResponse implements Serializable {
*/
@ExcelProperty(value = "车品牌")
private String vehicleBrandName;
/**
* 订单类型
*/
@ExcelProperty(value = "订单类型")
private String orderType;
/**
* 车系名称
......
......@@ -58,6 +58,12 @@ public class ServicePackageOrderListExcelResponse implements Serializable {
private String vehicleBrandName;
/**
* 订单类型
*/
@ExcelProperty(value = "订单类型")
private String orderType;
/**
* 车系名称
*/
@ExcelProperty(value = "车系")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!