完成风险明细统一导出功能
This commit is contained in:
@@ -609,6 +609,25 @@
|
||||
order by neg.query_date desc, neg.person_id asc
|
||||
</select>
|
||||
|
||||
<select id="selectEmployeeCreditNegativeList"
|
||||
resultType="com.ruoyi.ccdi.project.domain.vo.CcdiProjectEmployeeCreditNegativeItemVO">
|
||||
select
|
||||
coalesce(neg.person_name, result.staff_name) as personName,
|
||||
neg.person_id as personId,
|
||||
date_format(neg.query_date, '%Y-%m-%d') as queryDate,
|
||||
ifnull(neg.civil_cnt, 0) as civilCnt,
|
||||
ifnull(neg.civil_lmt, 0) as civilLmt,
|
||||
ifnull(neg.enforce_cnt, 0) as enforceCnt,
|
||||
ifnull(neg.enforce_lmt, 0) as enforceLmt,
|
||||
ifnull(neg.adm_cnt, 0) as admCnt,
|
||||
ifnull(neg.adm_lmt, 0) as admLmt
|
||||
from ccdi_project_overview_employee_result result
|
||||
inner join ccdi_credit_negative_info neg
|
||||
on neg.person_id = result.staff_id_card
|
||||
where result.project_id = #{projectId}
|
||||
order by neg.query_date desc, neg.person_id asc
|
||||
</select>
|
||||
|
||||
<select id="selectRiskModelNamesByScope" resultType="java.lang.String">
|
||||
select
|
||||
json_unquote(json_extract(result.model_hit_summary_json, concat('$[', idx.idx, '].modelName'))) as model_name
|
||||
|
||||
Reference in New Issue
Block a user