liwenxuan 4 months ago
parent
commit
55e8e82d2b
  1. 2
      src/main/resources/application.yml
  2. 9
      src/main/resources/mapper/FxfxdxMapper.xml

2
src/main/resources/application.yml

@ -1,5 +1,5 @@
spring:
profiles:
active: dev
active: prod
server:
port: 8118

9
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

Loading…
Cancel
Save