From 57bd46e78484aed71b2e85d61ce0f5e2301e574d Mon Sep 17 00:00:00 2001 From: liulixin Date: Mon, 15 Jan 2024 17:44:16 +0800 Subject: [PATCH] =?UTF-8?q?CORPINFO=5FID=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=20=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zcloud/service/bus/impl/RiskUnitServiceImpl.java | 2 ++ src/main/resources/mybatis/datasource/bus/RiskPointMapper.xml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/main/java/com/zcloud/service/bus/impl/RiskUnitServiceImpl.java b/src/main/java/com/zcloud/service/bus/impl/RiskUnitServiceImpl.java index 4dbf8ae1..c2c14e9a 100644 --- a/src/main/java/com/zcloud/service/bus/impl/RiskUnitServiceImpl.java +++ b/src/main/java/com/zcloud/service/bus/impl/RiskUnitServiceImpl.java @@ -6,6 +6,7 @@ import java.util.Map; import com.zcloud.mapper.datasource.bus.IdentificationPartsMapper; import com.zcloud.mapper.datasource.bus.RiskPointMapper; +import com.zcloud.util.Jurisdiction; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -118,6 +119,7 @@ public class RiskUnitServiceImpl implements RiskUnitService{ Map map = new HashMap(); String errInfo = "success"; //获取风险单元数、辨识部位数和风险因素数 + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); List riskUnit = riskunitMapper.listAll(pd); List identificationParts = identificationPartsMapper.listAll(pd); List riskPoint = riskPointMapper.listAll(pd); diff --git a/src/main/resources/mybatis/datasource/bus/RiskPointMapper.xml b/src/main/resources/mybatis/datasource/bus/RiskPointMapper.xml index cfbd707a..ea3fb06e 100644 --- a/src/main/resources/mybatis/datasource/bus/RiskPointMapper.xml +++ b/src/main/resources/mybatis/datasource/bus/RiskPointMapper.xml @@ -297,6 +297,9 @@ left join bus_riskunit un on un.RISKUNIT_ID = f.RISK_UNIT_ID left join bus_identificationparts id on id.IDENTIFICATIONPARTS_ID = f.IDENTIFICATION_ID where f.ISDELETE = '0' + + and f.CORPINFO_ID = #{CORPINFO_ID} + and f.IDENTIFICATION_ID=#{CHECK_IDENTIFICATION_ID}