## 初始化考核数据调整;

This commit is contained in:
cabbage 2025-07-31 18:46:43 +08:00
parent 488dd63c61
commit 0606078565
1 changed files with 7 additions and 5 deletions

View File

@ -517,11 +517,13 @@
where cma.assess_type = 5
and cma.is_examine = 1
and cma.del_flag = 0) tmp
left join ${accessTableName} cma
on cma.pk_member = tmp.pk_member
and cma.assess_type = 5
and cma.is_examine = 1
and cma.del_flag = 0) tmp
where tmp.pk_member not in
(select t.pk_member
from ${accessTableName} t
where t.del_flag = 0
and t.assess_type = 5
and t.is_examine = 0)
) tmp
on (cma.pk_member = tmp.pk_member and assess_type = 5 and cma.is_examine = 1 and cma.del_flag = 0)
when matched then
update set cma.assess_status = tmp.assess_status,