|
|
@ -179,13 +179,13 @@ |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="accessDevices" resultType="com.hnac.hzims.equipment.vo.AccessDeviceVO"> |
|
|
|
<select id="accessDevices" resultType="com.hnac.hzims.equipment.vo.AccessDeviceVO"> |
|
|
|
select info.number AS deviceCode,info.name AS deviceName,info.INS_LOCATION AS address |
|
|
|
select info.number AS deviceCode,CONCAT(info.number,"_",ore.`NAME`,"_",info.name) AS deviceName,info.INS_LOCATION AS address |
|
|
|
FROM HZIMS_EM_INFO info |
|
|
|
FROM HZIMS_EM_INFO info |
|
|
|
LEFT JOIN HZIMS_EM_OREANIZATION ore ON info.REF_OREANIZATION = ore.id |
|
|
|
LEFT JOIN HZIMS_EM_OREANIZATION ore ON info.REF_OREANIZATION = ore.id |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
info.IS_DELETED = 0 |
|
|
|
info.IS_DELETED = 0 |
|
|
|
<if test="alias != null and alias != '' "> |
|
|
|
<if test="alias != null and alias != '' "> |
|
|
|
AND (info.NAME LIKE CONCAT('%',#{alias},'%') or ore.NAME LIKE CONCAT('%',#{alias},'%') ) |
|
|
|
AND (info.NAME LIKE CONCAT('%',#{alias},'%') or info.NUMBER LIKE CONCAT('%',#{alias},'%') or ore.NAME LIKE CONCAT('%',#{alias},'%') ) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|