修改工程数据

This commit is contained in:
haozq 2025-09-25 09:41:10 +08:00
parent 7fa0891df5
commit 9087e2d287
1 changed files with 7 additions and 7 deletions

View File

@ -468,13 +468,13 @@
from jj_dept_gc_project jdp
INNER JOIN jj_unit ju on ju.unit_code=jdp.affiliation_code and ju.delete_flag=0
where jdp.department_type='2' -- 监理单位
and jdp.bidding_section_code=#{bidCode}
and jdp.single_project_code=#{bidCode}
union ALL
select ju.unit_name,jdp.department_type
from jj_dept_gc_project jdp
INNER JOIN jj_unit ju on ju.unit_code=jdp.affiliation_code and ju.delete_flag=0
where jdp.department_type='0' -- 施工单位
and jdp.bidding_section_code=#{bidCode}
and jdp.single_project_code=#{bidCode}
</select>
<select id="getWeekList" resultType="java.lang.String">
select IFNULL(COUNT(jcm.id),0)
@ -483,7 +483,7 @@
and jcm.re_assessment_risk_level='2'
and jcm.current_constr_date between DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-1))
and DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-7))
and jcm.bidding_section_code=#{bidCode}
and jcm.single_project_code=#{bidCode}
UNION ALL
select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm
@ -491,7 +491,7 @@
and jcm.re_assessment_risk_level='3'
and jcm.current_constr_date between DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-1))
and DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-7))
and jcm.bidding_section_code=#{bidCode}
and jcm.single_project_code=#{bidCode}
UNION ALL
select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm
@ -499,7 +499,7 @@
and jcm.re_assessment_risk_level='4'
and jcm.current_constr_date between DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-1))
and DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-7))
and jcm.bidding_section_code=#{bidCode}
and jcm.single_project_code=#{bidCode}
UNION ALL
select IFNULL(COUNT(jcm.id),0)
from jj_class_meetting jcm
@ -507,12 +507,12 @@
and jcm.re_assessment_risk_level='5'
and jcm.current_constr_date between DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-1))
and DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-7))
and jcm.bidding_section_code=#{bidCode}
and jcm.single_project_code=#{bidCode}
UNION ALL
select IFNULL(SUM(current_constr_headcount),0)
from jj_class_meetting jcm
WHERE jcm.current_constr_date=CURRENT_DATE() and jcm.delete_flag=0
and jcm.bidding_section_code=#{bidCode}
and jcm.single_project_code=#{bidCode}
</select>
</mapper>