Commit 2ae6f18d by zhouhaibao

refactor(excel): 重构Excel数据传输对象和监听器

- 将BatchStoreCombinedExcelDTO中的fCompany字段重命名为serviceProvider2f
- 移除BatchStoreProductExcelDTO中渗透率、转化率和产品成本字段的转换器配置
- 更新CreateBusinessApproveExcelListener中对fCompany字段的引用以使用新字段名
- 添加产品成本字段到批量存储产品Excel监听器的数据映射逻辑
1 parent d4b23ee2
......@@ -24,7 +24,7 @@ public class BatchStoreCombinedExcelDTO {
private String opMode;
@ExcelProperty(value = "服务商2/F公司", index = 5)
private String fCompany;
private String serviceProvider2f;
@ExcelProperty(value = "*服务商", index = 6)
private String serviceProvider;
......
......@@ -17,17 +17,17 @@ public class BatchStoreProductExcelDTO {
@ExcelProperty(value = "*流量结算模式", index = 11)
private String feeSettlementMode;
@ExcelProperty(value = "*渗透率", index = 12, converter = PercentStringConverter.class)
@ExcelProperty(value = "*渗透率", index = 12)
private BigDecimal penetrationRate;
@ExcelProperty(value = "*转化率", index = 13, converter = PercentStringConverter.class)
@ExcelProperty(value = "*转化率", index = 13)
private BigDecimal conversionRate;
@ExcelProperty(value = "*单车采购产值", index = 14)
private BigDecimal revenuePerCar;
@ExcelProperty(value = "*转化率", index = 18, converter = PercentStringConverter.class)
@ExcelProperty(value = "*转化率", index = 18)
private BigDecimal conversionRate2;
@ExcelProperty(value = "*升级客单价", index = 19)
......@@ -54,7 +54,7 @@ public class BatchStoreProductExcelDTO {
@ExcelProperty(value = "*资源费", index = 26)
private BigDecimal resourceFee;
@ExcelProperty(value = "*产品成本", index = 27, converter = NumberStringConverter.class)
@ExcelProperty(value = "*产品成本", index = 27)
private BigDecimal productCost;
@ExcelProperty(value = "*原厂膜回收", index = 32)
......
......@@ -249,7 +249,7 @@ public class CreateBusinessApproveExcelListener extends AnalysisEventListener<Ob
storeDTO.setBizMode(combinedDTO.getBizMode());
storeDTO.setSigningEntity(combinedDTO.getSigningEntity());
storeDTO.setOpMode(combinedDTO.getOpMode());
storeDTO.setFCompany(combinedDTO.getFCompany());
storeDTO.setFCompany(combinedDTO.getServiceProvider2f());
storeDTO.setServiceProvider(combinedDTO.getServiceProvider());
storeDTO.setSuperiorProvider(combinedDTO.getSuperiorProvider());
storeDTO.setParkingStore(combinedDTO.getParkingStore());
......@@ -286,6 +286,7 @@ public class CreateBusinessApproveExcelListener extends AnalysisEventListener<Ob
productDTO.setIncentive2(combinedDTO.getIncentive2());
productDTO.setResourceFee(combinedDTO.getResourceFee());
productDTO.setRecyclingFilm(combinedDTO.getRecyclingFilm());
productDTO.setProductCost(combinedDTO.getProductCost());
return productDTO;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!