外包商评价状态和汇总审批同步

This commit is contained in:
liang.chao 2025-05-06 14:08:58 +08:00
parent 791f71f3b9
commit 44c267efd6
1 changed files with 6 additions and 1 deletions

View File

@ -59,7 +59,11 @@
per.create_time as createTime,
r.proNum as proNum,
r.subNum as subNum,
if(per.task_status = 0, '未评价', if(per.task_status = 1 , '评价中','已评价')) as status
CASE
WHEN ped.check_one IS NULL OR ped.check_one = 0 THEN '待评价'
WHEN ped.check_one = 1 THEN '已评价'
ELSE '评价驳回'
END AS status
from pj_evaluate_record per
left join (
select
@ -70,6 +74,7 @@
from pj_evaluate_sub pes where pes.is_active = 1
group by evaluate_id
)r on per.evaluate_id = r.evaluate_id
left join pj_evaluate_details ped on ped.evaluate_id = per.evaluate_id
left join pj_template_config pt on pt.config_id = per.template_id and pt.is_active = 1
left join pm_org_info poi on per.dept_id = poi.id and poi.status = 1
# left join pm_org_info poi1 on poi1.id = r.pro_id