|
@@ -3,17 +3,17 @@
|
|
|
<mapper namespace="com.hdkj.lt.bf.mapper.FhzgGridOperationAbnormalityMapper">
|
|
<mapper namespace="com.hdkj.lt.bf.mapper.FhzgGridOperationAbnormalityMapper">
|
|
|
|
|
|
|
|
<select id="getOperationAbnormalityList" resultType="com.hdkj.lt.bf.entity.vo.FhzgGridOperationAbnormalityVO">
|
|
<select id="getOperationAbnormalityList" resultType="com.hdkj.lt.bf.entity.vo.FhzgGridOperationAbnormalityVO">
|
|
|
- select t1.*, t3.ORGAN_ALIAS countyName, t4.id schemeId, t4.file_id schemeFileId
|
|
|
|
|
|
|
+ select t1.*, t3.short_name countyName, t4.id schemeId, t4.file_id schemeFileId
|
|
|
from fhzg_grid_operation_abnormality t1
|
|
from fhzg_grid_operation_abnormality 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
|
|
|
left join fhzg_operation_abnormality_transfer_scheme t4 on t1.id =t4.oa_id
|
|
left join fhzg_operation_abnormality_transfer_scheme t4 on t1.id =t4.oa_id
|
|
|
<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>
|