修改工程数据

This commit is contained in:
haozq 2025-09-25 09:59:51 +08:00
parent 9087e2d287
commit 0fcbdcffe0
2 changed files with 18 additions and 18 deletions

View File

@ -413,43 +413,43 @@
select concat(IFNULL(COUNT(jcm.id),0),"/",IFNULL(SUM(current_constr_headcount),0)) select concat(IFNULL(COUNT(jcm.id),0),"/",IFNULL(SUM(current_constr_headcount),0))
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0 WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.bidding_section_code=#{bidCode} and jcm.single_project_code=#{bidCode}
UNION ALL UNION ALL
select concat(IFNULL(COUNT(jcm.id),0),"/",IFNULL(SUM(current_constr_headcount),0)) select concat(IFNULL(COUNT(jcm.id),0),"/",IFNULL(SUM(current_constr_headcount),0))
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date= DATE_FORMAT(curdate() - INTERVAL 1 DAY, '%Y-%m-%d') WHERE jcm.current_constr_date= DATE_FORMAT(curdate() - INTERVAL 1 DAY, '%Y-%m-%d')
and jcm.delete_flag=0 and jcm.bidding_section_code=#{bidCode} and jcm.delete_flag=0 and jcm.single_project_code=#{bidCode}
UNION ALL UNION ALL
select IFNULL(COUNT(jcm.id),0) select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0 WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.re_assessment_risk_level='2' and jcm.bidding_section_code=#{bidCode} and jcm.re_assessment_risk_level='2' and jcm.single_project_code=#{bidCode}
UNION ALL UNION ALL
select IFNULL(COUNT(jcm.id),0) select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0 WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.re_assessment_risk_level='3' and jcm.bidding_section_code=#{bidCode} and jcm.re_assessment_risk_level='3' and jcm.single_project_code=#{bidCode}
UNION ALL UNION ALL
select IFNULL(COUNT(jcm.id),0) select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0 WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.re_assessment_risk_level='4' and jcm.bidding_section_code=#{bidCode} and jcm.re_assessment_risk_level='4' and jcm.single_project_code=#{bidCode}
UNION ALL UNION ALL
select IFNULL(COUNT(jcm.id),0) select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0 WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.re_assessment_risk_level='5' and jcm.bidding_section_code=#{bidCode} and jcm.re_assessment_risk_level='5' and jcm.single_project_code=#{bidCode}
union ALL union ALL
select IFNULL(COUNT(jtt.id),0) select IFNULL(COUNT(jtt.id),0)
from jj_team jtt from jj_team jtt
where jtt.delete_flag=0 and jtt.team_status='01' where jtt.delete_flag=0 and jtt.team_status='01'
and jtt.bidding_section_code=#{bidCode} and jtt.single_project_code=#{bidCode}
union ALL union ALL
select IFNULL(COUNT(tnv.id),0) select IFNULL(COUNT(tnv.id),0)
from t_notice_voi tnv from t_notice_voi tnv
WHERE tnv.`status` IN ('1','2','3','4','5') AND (tnv.sup_type IS NULL OR tnv.sup_type = '1') WHERE tnv.`status` IN ('1','2','3','4','5') AND (tnv.sup_type IS NULL OR tnv.sup_type = '1')
AND tnv.bid_code=#{bidCode} AND tnv.sign_code=#{bidCode}
</select> </select>
<select id="getUserList" resultType="com.sercurityControl.proteam.domain.JjUser"> <select id="getUserList" resultType="com.sercurityControl.proteam.domain.JjUser">
select jdp.bidding_section_code bidCode ,jdp.department_type type , select jdp.bidding_section_code bidCode ,jdp.department_type type ,
@ -459,7 +459,7 @@
left join jj_user ju on ju.id=jpe.personnel_id and ju.delete_flag=0 left join jj_user ju on ju.id=jpe.personnel_id and ju.delete_flag=0
where jdp.d_delete_flag=0 where jdp.d_delete_flag=0
AND job_code in('0400101','0600103','0700101') -- 业主项目经理 、项目安全总监、'施工项目经理' AND job_code in('0400101','0600103','0700101') -- 业主项目经理 、项目安全总监、'施工项目经理'
and jdp.bidding_section_code=#{bidCode} and jdp.single_project_code=#{bidCode}
</select> </select>

View File

@ -413,43 +413,43 @@
select concat(IFNULL(COUNT(jcm.id),0),"/",IFNULL(SUM(current_constr_headcount),0)) select concat(IFNULL(COUNT(jcm.id),0),"/",IFNULL(SUM(current_constr_headcount),0))
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0 WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.bidding_section_code=#{bidCode} and jcm.single_project_code=#{bidCode}
UNION ALL UNION ALL
select concat(IFNULL(COUNT(jcm.id),0),"/",IFNULL(SUM(current_constr_headcount),0)) select concat(IFNULL(COUNT(jcm.id),0),"/",IFNULL(SUM(current_constr_headcount),0))
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date= DATE_FORMAT(curdate() - INTERVAL 1 DAY, '%Y-%m-%d') WHERE jcm.current_constr_date= DATE_FORMAT(curdate() - INTERVAL 1 DAY, '%Y-%m-%d')
and jcm.delete_flag=0 and jcm.bidding_section_code=#{bidCode} and jcm.delete_flag=0 and jcm.single_project_code=#{bidCode}
UNION ALL UNION ALL
select IFNULL(COUNT(jcm.id),0) select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0 WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.re_assessment_risk_level='2' and jcm.bidding_section_code=#{bidCode} and jcm.re_assessment_risk_level='2' and jcm.single_project_code=#{bidCode}
UNION ALL UNION ALL
select IFNULL(COUNT(jcm.id),0) select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0 WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.re_assessment_risk_level='3' and jcm.bidding_section_code=#{bidCode} and jcm.re_assessment_risk_level='3' and jcm.single_project_code=#{bidCode}
UNION ALL UNION ALL
select IFNULL(COUNT(jcm.id),0) select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0 WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.re_assessment_risk_level='4' and jcm.bidding_section_code=#{bidCode} and jcm.re_assessment_risk_level='4' and jcm.single_project_code=#{bidCode}
UNION ALL UNION ALL
select IFNULL(COUNT(jcm.id),0) select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0 WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.re_assessment_risk_level='5' and jcm.bidding_section_code=#{bidCode} and jcm.re_assessment_risk_level='5' and jcm.single_project_code=#{bidCode}
union ALL union ALL
select IFNULL(COUNT(jtt.id),0) select IFNULL(COUNT(jtt.id),0)
from jj_team jtt from jj_team jtt
where jtt.delete_flag=0 and jtt.team_status='01' where jtt.delete_flag=0 and jtt.team_status='01'
and jtt.bidding_section_code=#{bidCode} and jtt.single_project_code=#{bidCode}
union ALL union ALL
select IFNULL(COUNT(tnv.id),0) select IFNULL(COUNT(tnv.id),0)
from t_notice_voi tnv from t_notice_voi tnv
WHERE tnv.`status` IN ('1','2','3','4','5') AND (tnv.sup_type IS NULL OR tnv.sup_type = '1') WHERE tnv.`status` IN ('1','2','3','4','5') AND (tnv.sup_type IS NULL OR tnv.sup_type = '1')
AND tnv.bid_code=#{bidCode} AND tnv.sign_code=#{bidCode}
</select> </select>
<select id="getUserList" resultType="com.sercurityControl.proteam.domain.JjUser"> <select id="getUserList" resultType="com.sercurityControl.proteam.domain.JjUser">
select jdp.bidding_section_code bidCode ,jdp.department_type type , select jdp.bidding_section_code bidCode ,jdp.department_type type ,
@ -459,7 +459,7 @@
left join jj_user ju on ju.id=jpe.personnel_id and ju.delete_flag=0 left join jj_user ju on ju.id=jpe.personnel_id and ju.delete_flag=0
where jdp.d_delete_flag=0 where jdp.d_delete_flag=0
AND job_code in('0400101','0600103','0700101') -- 业主项目经理 、项目安全总监、'施工项目经理' AND job_code in('0400101','0600103','0700101') -- 业主项目经理 、项目安全总监、'施工项目经理'
and jdp.bidding_section_code=#{bidCode} and jdp.single_project_code=#{bidCode}
</select> </select>