|
@@ -49,16 +49,16 @@
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="getVolPowerCutList"
|
|
<select id="getVolPowerCutList"
|
|
|
resultType="com.hdkj.lt.core.bizms.modle.po.voltageLimitViolation.FhzgVoltageLimitViolationPowerCut">
|
|
resultType="com.hdkj.lt.core.bizms.modle.po.voltageLimitViolation.FhzgVoltageLimitViolationPowerCut">
|
|
|
- select t1.*, t3.ORGAN_ALIAS countyName
|
|
|
|
|
|
|
+ select t1.*, t3.short_name countyName
|
|
|
from fhzg_voltage_limit_violation_power_cut t1
|
|
from fhzg_voltage_limit_violation_power_cut t1
|
|
|
left join dwd_shb_ds_feeder_base t2 on t1.line_id = t2.psr_id
|
|
left join dwd_shb_ds_feeder_base t2 on t1.line_id = t2.psr_id
|
|
|
- left join SYS_STRU t3 on t3.ISC_ORG_ID = t2.maint_org
|
|
|
|
|
|
|
+ left join sys_dept t3 on t3.isc_org_id = t2.maint_org
|
|
|
<where>
|
|
<where>
|
|
|
<if test="queryDTO.countyCode != null and queryDTO.countyCode != ''">
|
|
<if test="queryDTO.countyCode != null and queryDTO.countyCode != ''">
|
|
|
- and t3.stru_id = #{queryDTO.countyCode}
|
|
|
|
|
|
|
+ and t3.dept_id = #{queryDTO.countyCode}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="queryDTO.countyCodeList != null and queryDTO.countyCodeList.size > 0">
|
|
<if test="queryDTO.countyCodeList != null and queryDTO.countyCodeList.size > 0">
|
|
|
- AND t3.stru_id IN
|
|
|
|
|
|
|
+ AND t3.dept_id IN
|
|
|
<foreach collection="queryDTO.countyCodeList" open="(" item="item" separator="," close=")">
|
|
<foreach collection="queryDTO.countyCodeList" open="(" item="item" separator="," close=")">
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|