## 见点考核初始化数据类型调整;

This commit is contained in:
cabbage 2025-07-24 15:47:05 +08:00
parent a99830aff8
commit 7e86b9226f
1 changed files with 2 additions and 2 deletions

View File

@ -472,7 +472,7 @@
and cm.pay_time >= #{monthStartDate}
and #{endDate} >= cm.pay_time
) tmp
on (cma.pk_member = tmp.pk_id and assess_type = 0 and cma.del_flag = 0)
on (cma.pk_member = tmp.pk_id and assess_type = 5 and cma.del_flag = 0)
when not matched then
insert
(pk_member,
@ -510,7 +510,7 @@
and cma.del_flag = 0
where cma.start_date is null
or tmp.pay_time > cma.start_date) tmp
on (cma.pk_member = tmp.pk_member and assess_type = 0 and cma.del_flag = 0 and cma.is_examine = 1)
on (cma.pk_member = tmp.pk_member and assess_type = 5 and cma.del_flag = 0 and cma.is_examine = 1)
when matched then
update set cma.start_date = tmp.pay_time
when not matched then