Commit 6f05bbfd by 王祖波

周月报文案修改

parent 64123a2d
...@@ -36,8 +36,8 @@ public class MaterialReportContext { ...@@ -36,8 +36,8 @@ public class MaterialReportContext {
private static final String week_title = "%s周报"; private static final String week_title = "%s周报";
private static final String month_title = "%s月报"; private static final String month_title = "%s月报";
private static final String week_desc = "%s~%s的素材使用周报已生成,请查收"; private static final String week_desc = "%s~%s的%s已生成,请查收";
private static final String month_desc = "%s~%s的素材使用月报已生成,请查收"; private static final String month_desc = "%s~%s的%s已生成,请查收";
private String enterpriseId; private String enterpriseId;
...@@ -143,7 +143,7 @@ public class MaterialReportContext { ...@@ -143,7 +143,7 @@ public class MaterialReportContext {
String title = "素材使用"; String title = "素材使用";
if (CollectionUtils.isNotEmpty(rightMenuCodeList)) { if (CollectionUtils.isNotEmpty(rightMenuCodeList)) {
if (rightMenuCodeList.size() > 1) { if (rightMenuCodeList.size() > 1) {
title = "门店"; title = "门店增长";
}else if (rightMenuCodeList.contains(EnterpriseServiceEnum.POTENTIAL.getRightMenuCode())){ }else if (rightMenuCodeList.contains(EnterpriseServiceEnum.POTENTIAL.getRightMenuCode())){
title = "潜客雷达"; title = "潜客雷达";
} }
...@@ -162,7 +162,7 @@ public class MaterialReportContext { ...@@ -162,7 +162,7 @@ public class MaterialReportContext {
.toString("MM月dd日"); .toString("MM月dd日");
String weekEndStr = DateUtil.endOfWeek(lastWeek) String weekEndStr = DateUtil.endOfWeek(lastWeek)
.toString("MM月dd日"); .toString("MM月dd日");
return String.format(week_desc, weekBeginStr, weekEndStr); return String.format(week_desc, weekBeginStr, weekEndStr, getMessageTitle());
} }
DateTime lastMonth = DateUtil.lastMonth(); DateTime lastMonth = DateUtil.lastMonth();
...@@ -170,7 +170,7 @@ public class MaterialReportContext { ...@@ -170,7 +170,7 @@ public class MaterialReportContext {
.toString("MM月dd日"); .toString("MM月dd日");
String monthEndStr = DateUtil.endOfMonth(lastMonth) String monthEndStr = DateUtil.endOfMonth(lastMonth)
.toString("MM月dd日"); .toString("MM月dd日");
return String.format(month_desc, monthBeginStr, monthEndStr); return String.format(month_desc, monthBeginStr, monthEndStr, getMessageTitle());
} }
public String extendParams(String storeId) { public String extendParams(String storeId) {
......
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