Commit 77be90f7 by zhouhaibao

feat(excel): 添加表格数据填充功能

- 在BatchStoreCombinedExcelDTO中为otherFeeSettlementTarget字段添加@FillFromPreviousRow注解
- 在SingleStoreExcelDTO中为otherFeeSettlementTarget字段添加@FillFromPreviousRow注解
- 更新测试文件路径配置
- 修改测试用例中的sessionId值
1 parent e1113b91
......@@ -111,6 +111,7 @@ public class BatchStoreCombinedExcelDTO {
private BigDecimal otherFeeRatio;
@ExcelProperty(value = "*线上分账对象", index = 32)
@FillFromPreviousRow
private String otherFeeSettlementTarget;
@ExcelProperty(value = "*管理层市场费是否前置", index = 33)
......
......@@ -137,6 +137,7 @@ public class SingleStoreExcelDTO {
@ExcelMergeRow(columIndex = 30)
@ExcelProperty(value = "*线上分账对象", index = 30)
@FillFromPreviousRow
private String otherFeeSettlementTarget;
@ExcelMergeRow(columIndex = 31)
......
......@@ -54,7 +54,7 @@ public class CreateBussinessApproveControllerTest extends BaseControllerTest {
@Test
public void testCreateDraft() throws Exception {
UploadFile uploadFile = new UploadFile(new File("F:\\360MoveData\\Users\\11\\Desktop\\模版\\0721\\门店上架模版-项目制批量上架(完美的导入少了很多).xlsx"));
UploadFile uploadFile = new UploadFile(new File("F:\\360MoveData\\Users\\11\\Desktop\\模版\\0721\\门店上架模版-项目制批量上架(各种错误的汇总2222).xlsx"));
String file = "xlsx@" + Base64.encodeBase64String(uploadFile.getContent());
MultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>(10);
params.add("v", "1.0.0");
......@@ -68,7 +68,7 @@ public class CreateBussinessApproveControllerTest extends BaseControllerTest {
params.add("sceneFiles[0].baseSceneCode", "110101");
params.add("sceneFiles[0].file", file);
params.add("baseSceneCodes", "110101");
params.add("sessionId", "cc87d1ae-1298-46b3-9b1d-b034aee3c418");
params.add("sessionId", "778872e0-18cb-4109-aece-acee805449ac");
params.add("submitFlag", "0");
System.out.println(post(params));
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!