局长信箱-后台服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

4 lines
268 B

update mailbox.mail_mark mm set mm.three_dept_id = m.three_dept_id, mm.three_dept_name = m.three_dept_name
from mailbox.mail m where m.id = mm.mail_id and mm.three_dept_id is null;
update mailbox.mail_mark mm set mm.completion_time = null where mm.completed = 0;