Commit 244a0f10 by 张富康

Merge branch 'v5.7.4' into 紧急需求_采购订单额大于等于5万触发经理审核

# Conflicts:
#	pom.xml
2 parents 90875371 e54d9b8b
Showing 18 changed files with 112 additions and 20 deletions
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<shopmall.api.version>5.6.4-SNAPSHOT</shopmall.api.version> <shopmall.api.version>5.6.4-SNAPSHOT</shopmall.api.version>
<stoassistant.api.version>5.6.4-SNAPSHOT</stoassistant.api.version> <stoassistant.api.version>5.6.4-SNAPSHOT</stoassistant.api.version>
<smartcarlife.api.version>5.8.0.1-SNAPSHOT</smartcarlife.api.version> <smartcarlife.api.version>5.8.0.1-SNAPSHOT</smartcarlife.api.version>
<mindworkplate.api.version>5.7.4-SNAPSHOT</mindworkplate.api.version>
</properties> </properties>
<dependencies> <dependencies>
<!-- RAR解压依赖 --> <!-- RAR解压依赖 -->
...@@ -82,7 +83,7 @@ ...@@ -82,7 +83,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx</groupId> <groupId>cn.com.glsx</groupId>
<artifactId>rpc-dj-mindworkplate-api</artifactId> <artifactId>rpc-dj-mindworkplate-api</artifactId>
<version>5.6.1-SNAPSHOT</version> <version>${mindworkplate.api.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.oreframework.common</groupId> <groupId>org.oreframework.common</groupId>
......
...@@ -6,10 +6,12 @@ import cn.com.glsx.dj.mindworkplate.remote.ReceptionCustomerRemote; ...@@ -6,10 +6,12 @@ import cn.com.glsx.dj.mindworkplate.remote.ReceptionCustomerRemote;
import cn.com.glsx.dj.smartcarlife.request.script.ReceptionViolationDetailRequest; import cn.com.glsx.dj.smartcarlife.request.script.ReceptionViolationDetailRequest;
import cn.com.glsx.dj.smartcarlife.request.script.ReceptionViolationExportRequest; import cn.com.glsx.dj.smartcarlife.request.script.ReceptionViolationExportRequest;
import cn.com.glsx.dj.smartcarlife.request.script.ReceptionViolationRequest; import cn.com.glsx.dj.smartcarlife.request.script.ReceptionViolationRequest;
import cn.com.glsx.dj.smartcarlife.response.common.CarBrandResponse;
import cn.com.glsx.dj.smartcarlife.util.CommonUtil; import cn.com.glsx.dj.smartcarlife.util.CommonUtil;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination; import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.rop.response.RopResponse; import cn.com.glsx.framework.rop.response.RopResponse;
import com.alibaba.fastjson.JSON;
import com.rop.AbstractRopRequest; import com.rop.AbstractRopRequest;
import com.rop.annotation.NeedInSessionType; import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod; import com.rop.annotation.ServiceMethod;
...@@ -17,7 +19,12 @@ import com.rop.annotation.ServiceMethodBean; ...@@ -17,7 +19,12 @@ import com.rop.annotation.ServiceMethodBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import java.util.Collections;
import java.util.List;
@Slf4j @Slf4j
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.YES) @ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.YES)
...@@ -28,6 +35,9 @@ public class EmployeeViolationController extends AbstractRopRequest { ...@@ -28,6 +35,9 @@ public class EmployeeViolationController extends AbstractRopRequest {
@Autowired @Autowired
private ReceptionCustomerRemote receptionCustomerRemote; private ReceptionCustomerRemote receptionCustomerRemote;
@Autowired
private Environment environment;
@ApiOperation("违规录音列表") @ApiOperation("违规录音列表")
@ServiceMethod(method = "dj.api.mindworkplate.violation.findViolationReceptionByConditionPage", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.api.mindworkplate.violation.findViolationReceptionByConditionPage", needInSession = NeedInSessionType.YES)
public RopResponse<RpcPagination<ReceptionViolationInfoDTO>> findViolationReceptionByConditionPage( public RopResponse<RpcPagination<ReceptionViolationInfoDTO>> findViolationReceptionByConditionPage(
...@@ -67,4 +77,22 @@ public class EmployeeViolationController extends AbstractRopRequest { ...@@ -67,4 +77,22 @@ public class EmployeeViolationController extends AbstractRopRequest {
} }
return CommonUtil.convertRopResponse(violationByBatchId); return CommonUtil.convertRopResponse(violationByBatchId);
} }
@ApiOperation("查询违规录音相关品牌列表")
@ServiceMethod(method = "dj.api.mindworkplate.violation.carbrands", needInSession = NeedInSessionType.NO)
public RopResponse<List<CarBrandResponse>> findViolationCarBrands(AbstractRopRequest request) {
try {
/* {"id": 2695, "label": "AITO 问界"} */
String carBrandsStr = environment.getProperty("dj.api.mindworkplate.violation.carbrands");
log.debug("查询违规录音相关品牌列表:{}",carBrandsStr);
if (StringUtils.isBlank(carBrandsStr)) {
return RopResponse.success(Collections.emptyList());
}
List<CarBrandResponse> res = JSON.parseArray(carBrandsStr, CarBrandResponse.class);
return RopResponse.success(res);
}catch (Exception e){
log.error("查询违规录音相关品牌列表异常",e);
return RopResponse.error("查询违规录音相关品牌列表异常");
}
}
} }
...@@ -192,6 +192,13 @@ public class PurchaseOrderDeliveryController { ...@@ -192,6 +192,13 @@ public class PurchaseOrderDeliveryController {
for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size(); i++) {
PurchaseOrderDeliveryExportVO purchaseOrderDeliveryExportVO = list.get(i); PurchaseOrderDeliveryExportVO purchaseOrderDeliveryExportVO = list.get(i);
purchaseOrderDeliveryExportVO.setIndex(i + 1); purchaseOrderDeliveryExportVO.setIndex(i + 1);
//处理文件上传 进行换行
if (purchaseOrderDeliveryExportVO.getUploadFileUrl() != null
&& purchaseOrderDeliveryExportVO.getUploadFileUrl().contains(",")) {
purchaseOrderDeliveryExportVO.setUploadFileUrl(
purchaseOrderDeliveryExportVO.getUploadFileUrl().replace(",", "\n")
);
}
} }
return EasyExcelUtil.exportExcel(list, "发货单", "yyyyMMddHHmmss", return EasyExcelUtil.exportExcel(list, "发货单", "yyyyMMddHHmmss",
Thread.currentThread().getContextClassLoader().getResourceAsStream("templates/excel/export/发货单.xlsx"), 1); Thread.currentThread().getContextClassLoader().getResourceAsStream("templates/excel/export/发货单.xlsx"), 1);
...@@ -293,7 +300,10 @@ public class PurchaseOrderDeliveryController { ...@@ -293,7 +300,10 @@ public class PurchaseOrderDeliveryController {
purchaseOrderShipmentGoodsExportVO.setContactName(purchaseOrder.getContactName()); purchaseOrderShipmentGoodsExportVO.setContactName(purchaseOrder.getContactName());
purchaseOrderShipmentGoodsExportVO.setContactPhone(purchaseOrder.getContactPhone()); purchaseOrderShipmentGoodsExportVO.setContactPhone(purchaseOrder.getContactPhone());
purchaseOrderShipmentGoodsExportVO.setContactAddress(purchaseOrder.getContactAddress()); purchaseOrderShipmentGoodsExportVO.setContactAddress(purchaseOrder.getContactAddress());
purchaseOrderShipmentGoodsExportVO.setSignStatus(data.getSignStatus());
if (data.getUploadFileUrls() != null && data.getUploadFileUrls().contains(",")) {
purchaseOrderShipmentGoodsExportVO.setUploadFileUrls(data.getUploadFileUrls().replace(",", "\n"));
}
//处理订单发货信息 //处理订单发货信息
if(CollectionUtils.isNotEmpty(purchaseOrderDeliveryDetailList)){ if(CollectionUtils.isNotEmpty(purchaseOrderDeliveryDetailList)){
List<PuchaseOrderDeliveryExportVO> deliveryList = purchaseOrderDeliveryDetailList.stream().map(deliveryDetail -> { List<PuchaseOrderDeliveryExportVO> deliveryList = purchaseOrderDeliveryDetailList.stream().map(deliveryDetail -> {
......
...@@ -80,7 +80,12 @@ public class StockAllocateController { ...@@ -80,7 +80,12 @@ public class StockAllocateController {
@ApiOperation("分页查询调拨单列表") @ApiOperation("分页查询调拨单列表")
public RopResponse<RpcPagination<StockAllocatePageResponse>> stockAllocatePage(StockAllocatePageRequest request){ public RopResponse<RpcPagination<StockAllocatePageResponse>> stockAllocatePage(StockAllocatePageRequest request){
RpcPagination<StockAllocateRecordDTO> pagination = CommonUtil.getRpcPagination(StockAllocateRecordDTO.class); RpcPagination<StockAllocateRecordDTO> pagination = CommonUtil.getRpcPagination(StockAllocateRecordDTO.class);
if (Objects.nonNull(request.getQueryCallInMerchant()) && request.getQueryCallInMerchant()) {
pagination.getCondition().setCallInYqMerchantIdList(CommonUtil.getMerchantIdsConsiderMainPartner());
} else {
pagination.getCondition().setYqMerchantIds(CommonUtil.getMerchantIdsConsiderMainPartner()); pagination.getCondition().setYqMerchantIds(CommonUtil.getMerchantIdsConsiderMainPartner());
}
RpcResponse<RpcPagination<StockAllocateRecordDTO>> res = stockAllocateRemote.listStockAllocateRecordPage(pagination); RpcResponse<RpcPagination<StockAllocateRecordDTO>> res = stockAllocateRemote.listStockAllocateRecordPage(pagination);
if (!res.hasResult()) { if (!res.hasResult()) {
return RopResponse.error(res); return RopResponse.error(res);
...@@ -346,6 +351,9 @@ public class StockAllocateController { ...@@ -346,6 +351,9 @@ public class StockAllocateController {
@ApiOperation("调拨发货分页查询") @ApiOperation("调拨发货分页查询")
public RopResponse<RpcPagination<StockAllocateDeliveryListDTO>> allocateDeliveryPage(StockAllocateDeliveryPageRequest request) { public RopResponse<RpcPagination<StockAllocateDeliveryListDTO>> allocateDeliveryPage(StockAllocateDeliveryPageRequest request) {
StockAllocateDeliveryPageDTO dto = CommonUtil.convertRequest(StockAllocateDeliveryPageDTO.class, request); StockAllocateDeliveryPageDTO dto = CommonUtil.convertRequest(StockAllocateDeliveryPageDTO.class, request);
if (Objects.nonNull(request.getQueryCallOutMerchant()) && request.getQueryCallOutMerchant()) {
dto.setCallOutYqMerchantIdList(CommonUtil.getMerchantIdsConsiderMainPartner());
}
RpcResponse<RpcPagination<StockAllocateDeliveryListDTO>> res = stockAllocateRemote.allocateDeliveryPage(dto); RpcResponse<RpcPagination<StockAllocateDeliveryListDTO>> res = stockAllocateRemote.allocateDeliveryPage(dto);
return CommonUtil.convertRopResponse(res); return CommonUtil.convertRopResponse(res);
} }
......
...@@ -42,4 +42,7 @@ public class ReceptionViolationRequest extends AbstractRopRequest implements Ser ...@@ -42,4 +42,7 @@ public class ReceptionViolationRequest extends AbstractRopRequest implements Ser
@ApiModelProperty(notes = "1.延保 2.轻改") @ApiModelProperty(notes = "1.延保 2.轻改")
private Integer bussinessType; private Integer bussinessType;
@ApiModelProperty(notes = "二级品牌ID")
private Integer carBrandId;
} }
\ No newline at end of file \ No newline at end of file
...@@ -4,6 +4,8 @@ import com.rop.AbstractRopRequest; ...@@ -4,6 +4,8 @@ import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.Date;
@Data @Data
public class MerchantGoodsStockMonthReportSearchRequest extends AbstractRopRequest { public class MerchantGoodsStockMonthReportSearchRequest extends AbstractRopRequest {
...@@ -30,4 +32,7 @@ public class MerchantGoodsStockMonthReportSearchRequest extends AbstractRopReque ...@@ -30,4 +32,7 @@ public class MerchantGoodsStockMonthReportSearchRequest extends AbstractRopReque
@ApiModelProperty(notes="所属商户(主服务商)商户名称") @ApiModelProperty(notes="所属商户(主服务商)商户名称")
private String partnerMerchantName; private String partnerMerchantName;
@ApiModelProperty(notes="查询时间")
private Date queryDate;
} }
...@@ -5,6 +5,8 @@ import com.rop.AbstractRopRequest; ...@@ -5,6 +5,8 @@ import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.List;
@Data @Data
public class PurchaseOrderDeliveryPageRequest extends AbstractRopRequest{ public class PurchaseOrderDeliveryPageRequest extends AbstractRopRequest{
...@@ -54,4 +56,6 @@ public class PurchaseOrderDeliveryPageRequest extends AbstractRopRequest{ ...@@ -54,4 +56,6 @@ public class PurchaseOrderDeliveryPageRequest extends AbstractRopRequest{
@ApiModelProperty(name = "shippingWarehouseName", notes = "发货仓库", required = false, example = "观澜仓库") @ApiModelProperty(name = "shippingWarehouseName", notes = "发货仓库", required = false, example = "观澜仓库")
private String shippingWarehouseName; private String shippingWarehouseName;
@ApiModelProperty(notes="入库状态")
private List<Integer> putStatusList;
} }
...@@ -4,6 +4,8 @@ import com.rop.AbstractRopRequest; ...@@ -4,6 +4,8 @@ import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.List;
@Data @Data
public class PurchaseOrderShippingListRequest extends AbstractRopRequest { public class PurchaseOrderShippingListRequest extends AbstractRopRequest {
...@@ -70,4 +72,7 @@ public class PurchaseOrderShippingListRequest extends AbstractRopRequest { ...@@ -70,4 +72,7 @@ public class PurchaseOrderShippingListRequest extends AbstractRopRequest {
@ApiModelProperty(notes="发货方") @ApiModelProperty(notes="发货方")
private String shipper; private String shipper;
@ApiModelProperty(notes="签收状态")
private List<Integer> signStatusList;
} }
...@@ -6,6 +6,7 @@ import lombok.Data; ...@@ -6,6 +6,7 @@ import lombok.Data;
import javax.validation.constraints.Min; import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import java.util.Date;
@Data @Data
public class MerchantShopGoodsStockPageRequest extends AbstractRopRequest { public class MerchantShopGoodsStockPageRequest extends AbstractRopRequest {
...@@ -35,4 +36,7 @@ public class MerchantShopGoodsStockPageRequest extends AbstractRopRequest { ...@@ -35,4 +36,7 @@ public class MerchantShopGoodsStockPageRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "是否过滤库存小于等于0的商品,默认为空或者false") @ApiModelProperty(notes = "是否过滤库存小于等于0的商品,默认为空或者false")
private Boolean stockFlag; private Boolean stockFlag;
@ApiModelProperty(notes="查询时间")
private Date queryDate;
} }
...@@ -62,4 +62,6 @@ public class StockAllocateDeliveryPageRequest extends AbstractRopRequest { ...@@ -62,4 +62,6 @@ public class StockAllocateDeliveryPageRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "商品编号") @ApiModelProperty(notes = "商品编号")
private String productCode; private String productCode;
@ApiModelProperty(notes = "是否查看我收到的调拨 true / false 服务商saas传true")
private Boolean queryCallOutMerchant;
} }
...@@ -48,4 +48,7 @@ public class StockAllocatePageRequest extends AbstractRopRequest { ...@@ -48,4 +48,7 @@ public class StockAllocatePageRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "发货状态") @ApiModelProperty(notes = "发货状态")
private Byte deliveryStatus; private Byte deliveryStatus;
@ApiModelProperty(notes = "是否查看我发起的 true / false 服务商saas传true")
private Boolean queryCallInMerchant;
} }
...@@ -133,4 +133,10 @@ public class PurchaseOrderShippingPageResponse implements Serializable { ...@@ -133,4 +133,10 @@ public class PurchaseOrderShippingPageResponse implements Serializable {
@ApiModelProperty(notes = "发货时间") @ApiModelProperty(notes = "发货时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date deliveryDate; private Date deliveryDate;
@ApiModelProperty(notes = "签收状态")
private Integer signStatus;
@ApiModelProperty(notes = "发货单凭证")
private String uploadFileUrls;
} }
package cn.com.glsx.dj.smartcarlife.util.excel; package cn.com.glsx.dj.smartcarlife.util.excel;
import cn.com.glsx.dj.smartcarlife.convert.CustomCellWriteHandler;
import cn.com.glsx.dj.smartcarlife.dto.createBusiness.OADJOnShelvesDTO; import cn.com.glsx.dj.smartcarlife.dto.createBusiness.OADJOnShelvesDTO;
import cn.com.glsx.dj.smartcarlife.dto.createBusiness.OADJOnShelvesGoodsDTO; import cn.com.glsx.dj.smartcarlife.dto.createBusiness.OADJOnShelvesGoodsDTO;
import cn.com.glsx.dj.smartcarlife.dto.createBusiness.OADJOnShelvesProductDTO; import cn.com.glsx.dj.smartcarlife.dto.createBusiness.OADJOnShelvesProductDTO;
...@@ -346,7 +347,7 @@ public class EasyExcelUtil { ...@@ -346,7 +347,7 @@ public class EasyExcelUtil {
File file = new File(savePath, name); File file = new File(savePath, name);
List<LinkedHashMap<String, ExcelMergeEntity>> list = new ArrayList(); List<LinkedHashMap<String, ExcelMergeEntity>> list = new ArrayList();
convertMergeData(dataList, list, (String)null, -1); convertMergeData(dataList, list, (String)null, -1);
ExcelWriter excelWriter = ((ExcelWriterBuilder)((ExcelWriterBuilder) EasyExcel.write(file).registerWriteHandler(new MergeRowStrategy(list, startRow))).registerConverter(new ExcelMergeEntityToStringConvert())).withTemplate(template).build(); ExcelWriter excelWriter = ((ExcelWriterBuilder)((ExcelWriterBuilder) EasyExcel.write(file).registerWriteHandler(new MergeRowStrategy(list, startRow)).registerWriteHandler(new CustomCellWriteHandler())).registerConverter(new ExcelMergeEntityToStringConvert())).withTemplate(template).build();
WriteSheet writeSheet = EasyExcel.writerSheet().build(); WriteSheet writeSheet = EasyExcel.writerSheet().build();
FillConfig fillConfig = FillConfig.builder().forceNewRow(Boolean.FALSE).build(); FillConfig fillConfig = FillConfig.builder().forceNewRow(Boolean.FALSE).build();
excelWriter.fill(list, fillConfig, writeSheet); excelWriter.fill(list, fillConfig, writeSheet);
...@@ -374,7 +375,7 @@ public class EasyExcelUtil { ...@@ -374,7 +375,7 @@ public class EasyExcelUtil {
List<LinkedHashMap<String, ExcelMergeEntity>> list = new ArrayList(); List<LinkedHashMap<String, ExcelMergeEntity>> list = new ArrayList();
convertMergeData(dataList, list, (String)null, -1); convertMergeData(dataList, list, (String)null, -1);
ExcelWriter excelWriter = ((ExcelWriterBuilder)((ExcelWriterBuilder) EasyExcel.write(file).registerWriteHandler(new MergeRowStrategy(list, startRow))).registerConverter(new ExcelMergeEntityToStringConvert())).registerWriteHandler(new NumberCellTypeWriteHandler(dataList)).withTemplate(template).build(); ExcelWriter excelWriter = ((ExcelWriterBuilder)((ExcelWriterBuilder) EasyExcel.write(file).registerWriteHandler(new MergeRowStrategy(list, startRow))).registerWriteHandler(new CustomCellWriteHandler()).registerConverter(new ExcelMergeEntityToStringConvert())).registerWriteHandler(new NumberCellTypeWriteHandler(dataList)).withTemplate(template).build();
WriteSheet writeSheet = EasyExcel.writerSheet().build(); WriteSheet writeSheet = EasyExcel.writerSheet().build();
FillConfig fillConfig = FillConfig.builder().forceNewRow(Boolean.FALSE).build(); FillConfig fillConfig = FillConfig.builder().forceNewRow(Boolean.FALSE).build();
excelWriter.fill(list, fillConfig, writeSheet); excelWriter.fill(list, fillConfig, writeSheet);
......
...@@ -46,7 +46,7 @@ public class PurchaseOrderDeliveryExportVO implements Serializable { ...@@ -46,7 +46,7 @@ public class PurchaseOrderDeliveryExportVO implements Serializable {
@ExcelMergeRow(columIndex = 8) @ExcelMergeRow(columIndex = 8)
private String contactAddress; private String contactAddress;
@ExcelValueReplace(replace={"待签收_0","未入库_1","已入库_2","部分入库_3"}) @ExcelValueReplace(replace={"待签收_0","已签收(未入库)_1","已入库_2","部分入库_3"})
@ExcelProperty(converter = ReplaceByteToStringConvert.class) @ExcelProperty(converter = ReplaceByteToStringConvert.class)
@ExcelMergeRow(columIndex = 9) @ExcelMergeRow(columIndex = 9)
private Byte putStatus; private Byte putStatus;
...@@ -56,6 +56,8 @@ public class PurchaseOrderDeliveryExportVO implements Serializable { ...@@ -56,6 +56,8 @@ public class PurchaseOrderDeliveryExportVO implements Serializable {
@ExcelMergeRow(columIndex = 10) @ExcelMergeRow(columIndex = 10)
private Integer orderType; private Integer orderType;
@ExcelMergeRow(columIndex = 11)
private String uploadFileUrl;
List<PurchaseOrderDeliveryDetailExportVO> deliveryDetailList; List<PurchaseOrderDeliveryDetailExportVO> deliveryDetailList;
} }
...@@ -99,66 +99,76 @@ public class PurchaseOrderShipmentGoodsExportVO implements Serializable { ...@@ -99,66 +99,76 @@ public class PurchaseOrderShipmentGoodsExportVO implements Serializable {
private Date orderTime; private Date orderTime;
@ExcelMergeRow(columIndex = 15) @ExcelMergeRow(columIndex = 15)
@ExcelValueReplace(replace={"待签收_0","部分签收_1","全部签收_2"})
@ExcelProperty(value = "签收状态",converter= ReplaceByteToStringConvert.class)
private Integer signStatus;
@ExcelMergeRow(columIndex = 16)
@ExcelValueReplace(replace={"未发货_1","全部发货_2","部分发货_3","结束发货_4"}) @ExcelValueReplace(replace={"未发货_1","全部发货_2","部分发货_3","结束发货_4"})
@ExcelProperty(value = "发货状态",converter= ReplaceByteToStringConvert.class) @ExcelProperty(value = "发货状态",converter= ReplaceByteToStringConvert.class)
private Byte deliveryStatus; private Byte deliveryStatus;
@ExcelMergeRow(columIndex = 16) @ExcelMergeRow(columIndex = 17)
@ExcelValueReplace(replace={"已审核_5"}) @ExcelValueReplace(replace={"已审核_5"})
@ExcelProperty(value = "订单状态",converter= ReplaceByteToStringConvert.class) @ExcelProperty(value = "订单状态",converter= ReplaceByteToStringConvert.class)
private Byte purchaseOrderStatus = 5; private Byte purchaseOrderStatus = 5;
@ExcelMergeRow(columIndex = 17) @ExcelMergeRow(columIndex = 18)
@ExcelProperty(value = "备注") @ExcelProperty(value = "备注")
private String purchaseOrderRemark; private String purchaseOrderRemark;
@ExcelMergeRow(columIndex = 18) @ExcelMergeRow(columIndex = 19)
@ExcelProperty(value = "运营审核人") @ExcelProperty(value = "运营审核人")
private String operatorReviewedBy; private String operatorReviewedBy;
@ExcelMergeRow(columIndex = 19) @ExcelMergeRow(columIndex = 20)
@ExcelProperty(value = "运营审核时间") @ExcelProperty(value = "运营审核时间")
@DateTimeFormat(value="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(value="yyyy-MM-dd HH:mm:ss")
private Date operatorReviewedDate; private Date operatorReviewedDate;
@ExcelMergeRow(columIndex = 20) @ExcelMergeRow(columIndex = 21)
@ExcelProperty(value = "运营审核备注") @ExcelProperty(value = "运营审核备注")
private String operatorReviewRemark; private String operatorReviewRemark;
@ExcelMergeRow(columIndex = 21) @ExcelMergeRow(columIndex = 22)
@ExcelProperty(value = "商务审核人") @ExcelProperty(value = "商务审核人")
private String businessReviewedBy; private String businessReviewedBy;
@ExcelMergeRow(columIndex = 22) @ExcelMergeRow(columIndex = 23)
@ExcelProperty(value = "商务审核时间") @ExcelProperty(value = "商务审核时间")
@DateTimeFormat(value="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(value="yyyy-MM-dd HH:mm:ss")
private Date businessReviewedDate; private Date businessReviewedDate;
@ExcelMergeRow(columIndex = 23) @ExcelMergeRow(columIndex = 24)
@ExcelProperty(value = "商务审核备注") @ExcelProperty(value = "商务审核备注")
private String businessReviewRemark; private String businessReviewRemark;
@ExcelMergeRow(columIndex = 24) @ExcelMergeRow(columIndex = 25)
@ExcelProperty(value = "收货人") @ExcelProperty(value = "收货人")
private String contactName; private String contactName;
@ExcelMergeRow(columIndex = 25) @ExcelMergeRow(columIndex = 26)
@ExcelProperty(value = "收货人电话") @ExcelProperty(value = "收货人电话")
private String contactPhone; private String contactPhone;
@ExcelMergeRow(columIndex = 26) @ExcelMergeRow(columIndex = 27)
@ExcelProperty(value = "收货人地址") @ExcelProperty(value = "收货人地址")
private String contactAddress; private String contactAddress;
@ExcelMergeRow(columIndex = 32) @ExcelMergeRow(columIndex = 28)
@ExcelProperty(value = "凭证")
private String uploadFileUrls;
@ExcelMergeRow(columIndex = 34)
@ExcelProperty(value = "采购总价") @ExcelProperty(value = "采购总价")
private BigDecimal goodsTotalPrice; private BigDecimal goodsTotalPrice;
@ExcelMergeRow(columIndex = 33) @ExcelMergeRow(columIndex = 35)
@ExcelProperty(value = "备注") @ExcelProperty(value = "备注")
private String remark; private String remark;
@ExcelMergeRow(columIndex = 34) @ExcelMergeRow(columIndex = 36)
@ExcelProperty(value = "订单总价") @ExcelProperty(value = "订单总价")
private BigDecimal totalPrice; private BigDecimal totalPrice;
......
...@@ -84,7 +84,7 @@ public class PurchaseOrderDeliveryDetailPageExportVO implements Serializable { ...@@ -84,7 +84,7 @@ public class PurchaseOrderDeliveryDetailPageExportVO implements Serializable {
@ExcelProperty(value="所属商户") @ExcelProperty(value="所属商户")
private String merchantName; private String merchantName;
@ExcelValueReplace(replace={"待签收_0","未入库_1","已入库_2"},repeatValue=true) @ExcelValueReplace(replace={"待签收_0","已签收(未入库)_1","已入库_2"},repeatValue=true)
@ExcelProperty(value="状态", converter= ReplaceByteToStringConvert.class) @ExcelProperty(value="状态", converter= ReplaceByteToStringConvert.class)
private Byte putStatus; private Byte putStatus;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!