diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index eb49595..ea88ff2 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,5 +1,5 @@ spring: profiles: - active: dev + active: prod server: port: 8118 \ No newline at end of file diff --git a/src/main/resources/mapper/FxfxdxMapper.xml b/src/main/resources/mapper/FxfxdxMapper.xml index 353382e..3604f2b 100644 --- a/src/main/resources/mapper/FxfxdxMapper.xml +++ b/src/main/resources/mapper/FxfxdxMapper.xml @@ -545,6 +545,13 @@ -- 左连接账户表,关联创建人 LEFT JOIN PF_ACCOUNT k ON a.CREATOR = k.ID + outer apply ( + -- 对每个c.ID,只取e表中匹配的第一条记录(可按实际需求调整排序) + select top 1 * + from ISM_RISKEVENT e + where e.RISKUNITID = c.ID + order by e.id -- 按id排序,取第一条;可改为e.create_time等 + ) e /*WHERE a.ISDELETE = 'N' AND e.ISDELETE = 'N' @@ -553,7 +560,7 @@ order by chuangjianshijian desc*/ WHERE - a.ORGANID = '309_ORG' + --a.ORGANID = '309_ORG' and a.ISDELETE = 'N' and a.fstate = '9' and len(b.code)= 12