update HrmSalarypaydetail set status = 0
where payid in (select id from HrmSalaryPay where paydate = ‘2018-12’) – 这里填写要打开的月份 and departmentid in (select id from Hrmdepartment where subcompanyid1 in(分部的ID))
update HrmSalarypaydetail set status = 0
where payid in (select id from HrmSalaryPay where paydate = ‘2018-12’) – 这里填写要打开的月份 and departmentid in (select id from Hrmdepartment where subcompanyid1 in(分部的ID))