From 03a952b4698735626aec7557afea4f5e7080dcc2 Mon Sep 17 00:00:00 2001
From: yinzuomei <576302893@qq.com>
Date: Fri, 29 Jul 2022 14:24:23 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=94=9F=E4=BA=A7=E9=9A=90?=
=?UTF-8?q?=E6=82=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../epmet/dataaggre/service/impl/CoverageServiceImpl.java | 2 +-
.../mapper/govorg/IcEnterprisePatrolRecordDao.xml | 8 ++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/impl/CoverageServiceImpl.java b/epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/impl/CoverageServiceImpl.java
index 1720dffbfc..282b336398 100644
--- a/epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/impl/CoverageServiceImpl.java
+++ b/epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/impl/CoverageServiceImpl.java
@@ -1211,7 +1211,7 @@ public class CoverageServiceImpl implements CoverageService {
}else{
gridId=orgRes.getOrgId();
GridInfoCache gridInfoCache=CustomerOrgRedis.getGridInfo(orgRes.getOrgId());
- orgIdPath=gridInfoCache.getPids().concat(":").concat(gridId);
+ orgIdPath=gridInfoCache.getPids();
}
int count = doDataListCount(formDTO.getCustomerId(), agencyId, orgIdPath, formDTO.getPlaceType(), formDTO.getCategoryKey(), null, gridId);
orgRes.setTotal(count);
diff --git a/epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/govorg/IcEnterprisePatrolRecordDao.xml b/epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/govorg/IcEnterprisePatrolRecordDao.xml
index 523d80abb3..1c7d0dd16e 100644
--- a/epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/govorg/IcEnterprisePatrolRecordDao.xml
+++ b/epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/govorg/IcEnterprisePatrolRecordDao.xml
@@ -8,8 +8,12 @@
select count(1)
from ic_enterprise e
where e.CUSTOMER_ID = #{customerId}
- and e.PLACE_ORG_NAME like CONCAT('%',#{search},'%')
- and (e.AGENCY_ID = #{agencyId} or e.AGENCY_PIDS like CONCAT(#{staffOrgIds}, '%'))
+
+ and e.PLACE_ORG_NAME like CONCAT('%',#{search},'%')
+
+
+ and (e.AGENCY_ID = #{agencyId} or e.AGENCY_PIDS like CONCAT(#{staffOrgIds}, '%'))
+
and e.PLACE_TYPE = #{categoryKey}