update 加缓存

This commit is contained in:
2023-06-21 10:16:33 +08:00
parent a8260e5373
commit 2105e83522
2 changed files with 14 additions and 10 deletions

View File

@@ -89,19 +89,23 @@ public class BillingTemplateVO {
.toString();
}
public Map<Integer, List<String>> getTimeMap() {
Map<Integer, List<String>> resultMap = Maps.newHashMap();
public Map<String, List<String>> getTimeMap() {
Map<String, List<String>> resultMap = Maps.newHashMap();
if (StringUtils.isNotBlank(this.getSharpApplyDate())) {
resultMap.put(0x00, Lists.newArrayList(this.getSharpApplyDate().split(",")));
// resultMap.put(0x00, Lists.newArrayList(this.getSharpApplyDate().split(",")));
resultMap.put("00", Lists.newArrayList(this.getSharpApplyDate().split(",")));
}
if (StringUtils.isNotBlank(this.getPeakApplyDate())) {
resultMap.put(0x01, Lists.newArrayList(this.getPeakApplyDate().split(",")));
// resultMap.put(0x01, Lists.newArrayList(this.getPeakApplyDate().split(",")));
resultMap.put("01", Lists.newArrayList(this.getPeakApplyDate().split(",")));
}
if (StringUtils.isNotBlank(this.getFlatApplyDate())) {
resultMap.put(0x02, Lists.newArrayList(this.getFlatApplyDate().split(",")));
// resultMap.put(0x02, Lists.newArrayList(this.getFlatApplyDate().split(",")));
resultMap.put("02", Lists.newArrayList(this.getFlatApplyDate().split(",")));
}
if (StringUtils.isNotBlank(this.getValleyApplyDate())) {
resultMap.put(0x03, Lists.newArrayList(this.getValleyApplyDate().split(",")));
// resultMap.put(0x03, Lists.newArrayList(this.getValleyApplyDate().split(",")));
resultMap.put("03", Lists.newArrayList(this.getValleyApplyDate().split(",")));
}
return resultMap;
}