Commit 695350c4 by 王祖波

周报月报修改

parent eb70c748
......@@ -152,17 +152,16 @@ public class WeekMonthReportBuilder {
boolean isWeek = MaterialReportType.WEEK.getCode().equals(context.getReportType());
boolean hasMainStore = StringUtils.isNotBlank(context.getMainStoreId());
List<String> rightMenuCodeList = context.getRightMenuCodeList();
String key = (hasMainStore ? "CLERK" : "AREA") + (isWeek ? "_WEEK" : "_MONTH");
if (rightMenuCodeList.size() > 1) {
String key = (hasMainStore ? "CLERK" : "AREA") + (isWeek ? "_WEEK" : "_MONTH");
return DrawImageUtils.templateMap.get(key);
}
else if (rightMenuCodeList.contains(EnterpriseServiceEnum.APPOINTMENT.getRightMenuCode())) {
String key = "POTENTIAL_" + (hasMainStore ? "CLERK" : "AREA") + (isWeek ? "_WEEK" : "_MONTH");
key = "POTENTIAL_" + key;
return DrawImageUtils.templateMap.get(key);
}
else if (rightMenuCodeList.contains(EnterpriseServiceEnum.CONTENT.getRightMenuCode())) {
String key = "CONTENT_" + (hasMainStore ? "CLERK" : "AREA") + (isWeek ? "_WEEK" : "_MONTH");
key = "CONTENT_" + key;
return DrawImageUtils.templateMap.get(key);
}
return null;
......
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