作者 tangxvhui

sql 更新

@@ -335,7 +335,7 @@ func (d *StaffAssessDao) useTStaffAssess(companyId int, cycleId int, userId int, @@ -335,7 +335,7 @@ func (d *StaffAssessDao) useTStaffAssess(companyId int, cycleId int, userId int,
335 set time zone 'PRC'; 335 set time zone 'PRC';
336 336
337 with t_user_1 as ( 337 with t_user_1 as (
338 - select "user".id::text as user_id from "user" where "user".parent_id =%d 338 + select "user".id::text as user_id from "user" where "user".parent_id =%d and "user".deleted_at isnull
339 ), 339 ),
340 -- 如果是hrbp 340 -- 如果是hrbp
341 t_project_1 as( 341 t_project_1 as(