检修预警柱状图总公司接口修改
This commit is contained in:
parent
0aa12bd997
commit
cd8f82eb1b
|
|
@ -265,27 +265,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</select>
|
</select>
|
||||||
<select id="getCompletionNotRefunded" resultType="com.bonus.material.push.domain.MachineInfoBean">
|
<select id="getCompletionNotRefunded" resultType="com.bonus.material.push.domain.MachineInfoBean">
|
||||||
select
|
select
|
||||||
bp.pro_name as proName,
|
count(bp.pro_id) as num,
|
||||||
count(bp.pro_id) num,
|
|
||||||
mt2.type_id as typeId,
|
|
||||||
sd.dept_name as deptName,
|
sd.dept_name as deptName,
|
||||||
sd.dept_id as deptId
|
sd.dept_id as deptId
|
||||||
from slt_agreement_info sai
|
from bm_project bp
|
||||||
left join bm_agreement_info bai on sai.agreement_id = bai.agreement_id
|
|
||||||
left join bm_project bp on bai.project_id = bp.pro_id
|
|
||||||
left join sys_dept sd on bp.imp_unit = sd.dept_id
|
left join sys_dept sd on bp.imp_unit = sd.dept_id
|
||||||
left join ma_type mt on sai.type_id = mt.type_id
|
where bp.external_id is not null
|
||||||
left join ma_type mt2 on mt.parent_id = mt2.type_id
|
GROUP BY bp.imp_unit
|
||||||
where sai.is_slt = 0 and sai.end_time is null and bp.actual_end_date is not null AND sd.dept_name in
|
|
||||||
('送电一分公司','送电二分公司','检修试验分公司','建筑分公司(消防分公司)','安徽宏源电力建设有限公司','变电分公司')
|
|
||||||
<if test="proId != null">
|
|
||||||
AND bp.pro_id = #{proId}
|
|
||||||
</if>
|
|
||||||
GROUP BY
|
|
||||||
<if test="proId != null">
|
|
||||||
bp.pro_id,
|
|
||||||
</if>
|
|
||||||
bp.imp_unit
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getCompletionNotRefundedDetails" resultType="com.bonus.material.push.domain.MachineInfoBean">
|
<select id="getCompletionNotRefundedDetails" resultType="com.bonus.material.push.domain.MachineInfoBean">
|
||||||
select
|
select
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue