From 6648d840736728981f443526d3eaa06ca5b63f7a Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Wed, 20 Jul 2022 15:58:41 +0800 Subject: [PATCH] detail --- .../epmet/service/impl/IcPolicyServiceImpl.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcPolicyServiceImpl.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcPolicyServiceImpl.java index b4e99c7588..c8f3edeae9 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcPolicyServiceImpl.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcPolicyServiceImpl.java @@ -3,7 +3,6 @@ package com.epmet.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; import com.epmet.commons.tools.constant.Constant; -import com.epmet.commons.tools.constant.ServiceConstant; import com.epmet.commons.tools.constant.StrConstant; import com.epmet.commons.tools.dto.form.FileCommonDTO; import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; @@ -281,6 +280,7 @@ public class IcPolicyServiceImpl extends BaseServiceImpl ruleDetailWrapper = new LambdaQueryWrapper<>(); ruleDetailWrapper.eq(IcPolicyRuleDetailEntity::getRuleId, rule.getId()) .eq(IcPolicyRuleDetailEntity::getGroupType, "resi") @@ -289,19 +289,22 @@ public class IcPolicyServiceImpl extends BaseServiceImpl resiRuleList = CollectionUtils.isNotEmpty(resiList) ? ConvertUtils.sourceToTarget(resiList, IcPolicyRuleDetailDTO.class) : new ArrayList<>(); rule.setResiRuleList(resiRuleList); - ruleDetailWrapper.eq(IcPolicyRuleDetailEntity::getRuleId, rule.getId()) + //房屋信息 + LambdaQueryWrapper houseDetailWrapper = new LambdaQueryWrapper<>(); + houseDetailWrapper.eq(IcPolicyRuleDetailEntity::getRuleId, rule.getId()) .eq(IcPolicyRuleDetailEntity::getGroupType, "house") .orderByAsc(IcPolicyRuleDetailEntity::getSort); - List houseList = icPolicyRuleDetailDao.selectList(ruleDetailWrapper); + List houseList = icPolicyRuleDetailDao.selectList(houseDetailWrapper); List houseRuleList = CollectionUtils.isNotEmpty(houseList) ? ConvertUtils.sourceToTarget(houseList, IcPolicyRuleDetailDTO.class) : new ArrayList<>(); rule.setHouseRuleList(houseRuleList); - ruleDetailWrapper.eq(IcPolicyRuleDetailEntity::getRuleId, rule.getId()) + //统计信息 + LambdaQueryWrapper statDetailWrapper = new LambdaQueryWrapper<>(); + statDetailWrapper.eq(IcPolicyRuleDetailEntity::getRuleId, rule.getId()) .eq(IcPolicyRuleDetailEntity::getGroupType, "stat") .orderByAsc(IcPolicyRuleDetailEntity::getSort); - List statList = icPolicyRuleDetailDao.selectList(ruleDetailWrapper); + List statList = icPolicyRuleDetailDao.selectList(statDetailWrapper); List statRuleList = CollectionUtils.isNotEmpty(statList) ? ConvertUtils.sourceToTarget(statList, IcPolicyRuleDetailDTO.class) : new ArrayList<>(); - ; rule.setStatRuleList(statRuleList); } }