## 初始化考核数据调整;
This commit is contained in:
parent
488dd63c61
commit
0606078565
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue