CORPINFO_ID查询条件

追加
pull/14/head
liulixin 2024-01-15 17:44:16 +08:00
parent a512986859
commit 57bd46e784
2 changed files with 5 additions and 0 deletions

View File

@ -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<String,Object> map = new HashMap<String,Object>();
String errInfo = "success";
//获取风险单元数、辨识部位数和风险因素数
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
List<PageData> riskUnit = riskunitMapper.listAll(pd);
List<PageData> identificationParts = identificationPartsMapper.listAll(pd);
List<PageData> riskPoint = riskPointMapper.listAll(pd);

View File

@ -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'
<if test="CORPINFO_ID != null and CORPINFO_ID != ''">
and f.CORPINFO_ID = #{CORPINFO_ID}
</if>
<if test="CHECK_IDENTIFICATION_ID != null and CHECK_IDENTIFICATION_ID != ''">
and f.IDENTIFICATION_ID=#{CHECK_IDENTIFICATION_ID}
</if>