修改工程数据
This commit is contained in:
parent
7fa0891df5
commit
9087e2d287
|
|
@ -468,13 +468,13 @@
|
||||||
from jj_dept_gc_project jdp
|
from jj_dept_gc_project jdp
|
||||||
INNER JOIN jj_unit ju on ju.unit_code=jdp.affiliation_code and ju.delete_flag=0
|
INNER JOIN jj_unit ju on ju.unit_code=jdp.affiliation_code and ju.delete_flag=0
|
||||||
where jdp.department_type='2' -- 监理单位
|
where jdp.department_type='2' -- 监理单位
|
||||||
and jdp.bidding_section_code=#{bidCode}
|
and jdp.single_project_code=#{bidCode}
|
||||||
union ALL
|
union ALL
|
||||||
select ju.unit_name,jdp.department_type
|
select ju.unit_name,jdp.department_type
|
||||||
from jj_dept_gc_project jdp
|
from jj_dept_gc_project jdp
|
||||||
INNER JOIN jj_unit ju on ju.unit_code=jdp.affiliation_code and ju.delete_flag=0
|
INNER JOIN jj_unit ju on ju.unit_code=jdp.affiliation_code and ju.delete_flag=0
|
||||||
where jdp.department_type='0' -- 施工单位
|
where jdp.department_type='0' -- 施工单位
|
||||||
and jdp.bidding_section_code=#{bidCode}
|
and jdp.single_project_code=#{bidCode}
|
||||||
</select>
|
</select>
|
||||||
<select id="getWeekList" resultType="java.lang.String">
|
<select id="getWeekList" resultType="java.lang.String">
|
||||||
select IFNULL(COUNT(jcm.id),0)
|
select IFNULL(COUNT(jcm.id),0)
|
||||||
|
|
@ -483,7 +483,7 @@
|
||||||
and jcm.re_assessment_risk_level='2'
|
and jcm.re_assessment_risk_level='2'
|
||||||
and jcm.current_constr_date between DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-1))
|
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 DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-7))
|
||||||
and jcm.bidding_section_code=#{bidCode}
|
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
|
||||||
|
|
@ -491,7 +491,7 @@
|
||||||
and jcm.re_assessment_risk_level='3'
|
and jcm.re_assessment_risk_level='3'
|
||||||
and jcm.current_constr_date between DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-1))
|
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 DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-7))
|
||||||
and jcm.bidding_section_code=#{bidCode}
|
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
|
||||||
|
|
@ -499,7 +499,7 @@
|
||||||
and jcm.re_assessment_risk_level='4'
|
and jcm.re_assessment_risk_level='4'
|
||||||
and jcm.current_constr_date between DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-1))
|
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 DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-7))
|
||||||
and jcm.bidding_section_code=#{bidCode}
|
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
|
||||||
|
|
@ -507,12 +507,12 @@
|
||||||
and jcm.re_assessment_risk_level='5'
|
and jcm.re_assessment_risk_level='5'
|
||||||
and jcm.current_constr_date between DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-1))
|
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 DATE(subdate(curdate()-1,date_format(curdate()-1,'%w')-7))
|
||||||
and jcm.bidding_section_code=#{bidCode}
|
and jcm.single_project_code=#{bidCode}
|
||||||
UNION ALL
|
UNION ALL
|
||||||
select IFNULL(SUM(current_constr_headcount),0)
|
select 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}
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue