Commit a4f730f7 by zhouhaibao

test(service): 更新测试数据并修改文件上传命名规则

- 更改测试类中的sessionId值以确保测试环境独立性
- 修改上传文件名生成逻辑,在原文件名后添加时间戳
- 避免多线程环境下文件名冲突问题
1 parent 46dacf79
......@@ -115,7 +115,7 @@ public class StoreApproveService {
storeApproveDTO.setStoreWithProductsDTOS(storeWithProductsList);
storeApproveDTO.setErrorMessages(globalContext.getErrorMessages());
String excelUrl = uploadExcel(file, "产品上架表");
String excelUrl = uploadExcel(file, "门店上架表"+System.currentTimeMillis());
if (StringUtils.isBlank(excelUrl)) {
throw new RpcServiceException("EXCEL_UPLOAD_FILE_FAIL");
}
......
......@@ -69,7 +69,7 @@ public class CreateBussinessApproveControllerTest extends BaseControllerTest {
params.add("merchantName", "打嗝");
params.add("approveType", "1");
params.add("baseSceneCode", "110101");
params.add("sessionId", "7149728b-71da-446e-9a89-b9cc50b05a15");
params.add("sessionId", "fd81e86a-d47b-49b8-8f4b-5c0a971d6a27");
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!