src/main/java/org/springblade/modules/yw/mapper/RiskSourceMapper.xml
@@ -17,8 +17,17 @@ </resultMap> <!--自定义分页查询--> <select id="selectRiskSourcePage" resultMap="riskSourceResultMap"> select * from yw_risk_source where is_deleted = 0 <select id="selectRiskSourcePage" resultType="org.springblade.modules.yw.vo.RiskSourceVO"> select yrs.*, yfi.name as firmName from yw_risk_source yrs left join yw_firm_info yfi on yfi.id = yrs.firm_id and yfi.is_deleted = 0 where yrs.is_deleted = 0 <if test="riskSource.firmId!=null"> and yrs.firm_id = #{riskSource.firmId} </if> </select> <!--风险源统计查询-->