Commit 61a50ef6 by songyinghui

feat: 月报参数

parent 85601bb1
......@@ -150,7 +150,7 @@ public class MaterialReportContext {
JSONObject params = new JSONObject();
// 此处页面链接 最长128个字节
// storeId_reportType_bizDate
String key = String.format("%s_%s_%s", storeId, this.reportType, this.bizDate);
String key = String.format("%s_%s_%s", StringUtils.isBlank(storeId) ? "" : storeId, this.reportType, this.bizDate);
params.put("k", key);
// params.put("t", this.reportType);
return params.toJSONString();
......
......@@ -53,16 +53,16 @@ public class MaterialReportServiceTest {
String eid = "ff8080815dacd3a2015dacd3ef5c0000";
String wxEid = "ca66a01b79474c40b3e7c7f93daf1a3b";
// String staffId = "e608b51b267e4943b87e222a343b4f25";
String staffId = "fb4096b75d524c5e943c036cb4079723";
String staffId = "e608b51b267e4943b87e222a343b4f25";
// String staffId = "fb4096b75d524c5e943c036cb4079723";
String storeId = "ff8080816e216c04016e34294282004a";
String clerkId = "300b60c7f8874ca2b9cc696ad6b6a480";
@Test
public void handlerMaterialWeekReportTest() {
System.setProperty("gic.module.name", "haoban-manage3-service");
materialReportService.handlerMaterialReport("8a809083802bbf5201804af08b0d0095", "7ef8811007ac45f7a49e299509c8859a", MaterialReportType.WEEK.getCode());
materialReportService.handlerMaterialReport("8a809083802bbf5201804af08b0d0095", "7ef8811007ac45f7a49e299509c8859a", MaterialReportType.MONTH.getCode());
materialReportService.handlerMaterialReport(eid, staffId, MaterialReportType.WEEK.getCode());
materialReportService.handlerMaterialReport(eid, staffId, MaterialReportType.MONTH.getCode());
}
@Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment