|
@@ -39,9 +39,15 @@
|
|
|
<association property="inspectTypeName" column="INSPECT_TYPE_ID"
|
|
|
select="com.tofly.gpsboot.mapper.plan.InspecttypeMapper.getInspectTypeName"/>
|
|
|
<association property="device" column="DEVICE_Id" select="getDeviceInfo"/>
|
|
|
+ <association property="deviceName" column="DEVICE_Id" select="getDeviceName"/>
|
|
|
<association property="stationSiteInfo" column="FACTORY_ID" select="getStationSiteInfo"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+ <select id="getDeviceName" resultType="string">
|
|
|
+ select name
|
|
|
+ from tf_ywpn_monitor_device_w
|
|
|
+ where id = #{deviceId}
|
|
|
+ </select>
|
|
|
<select id="getBelongPumpName" resultType="string">
|
|
|
select name
|
|
|
from tf_monitor_pump_station_w
|
|
@@ -109,6 +115,9 @@
|
|
|
<if test="dto.category != null ">
|
|
|
and t1.category =#{dto.category}
|
|
|
</if>
|
|
|
+ <if test="dto.deviceName != null ">
|
|
|
+ and t1.name like CONCAT ('%',#{dto.deviceName,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
<if test="dto.belongStationId != null ">
|
|
|
and t1.belong_station_id =#{dto.belongStationId}
|
|
|
</if>
|
|
@@ -152,6 +161,9 @@
|
|
|
<if test="dto.category != null ">
|
|
|
and t1.category =#{dto.category}
|
|
|
</if>
|
|
|
+ <if test="dto.deviceName != null ">
|
|
|
+ and t1.name like CONCAT ('%',#{dto.deviceName,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
<if test="dto.belongStationId != null ">
|
|
|
and t1.belong_station_id =#{dto.belongStationId}
|
|
|
</if>
|