|
@@ -215,7 +215,6 @@ public class EnergyPlatformServiceImpl implements EnergyPlatformService {
|
|
|
// 获取所有盒子id
|
|
|
List<String> boxIds = EnergyUtils.boxIds;
|
|
|
// 封装本月用电构成
|
|
|
-
|
|
|
boxIds.forEach(boxId -> {
|
|
|
Map thisBoxDmonMap = mongoTemplate.findById(boxId + "_" + year + "_" + month, Map.class, "boxDmonLists");
|
|
|
Map thisBoxDmonMapL = mongoTemplate.findById(boxId + "_" + ((month) == 1 ? lastYear : year) + "_" + ((month == 1) ? 12 : month - 1), Map.class, "boxDmonLists");
|