|
@@ -1182,10 +1182,12 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="findByFileNo" resultType="com.bz.smart_city.entity.Device">
|
|
|
- select b.water_meter_file_no ,b.water_meter_no,b.id ,b.customer_id from sc_customer a left join sc_device b on a.id=b.customer_id
|
|
|
+ select b.water_meter_file_no ,b.water_meter_no,b.id ,b.customer_id ,sil.metercode from
|
|
|
+ sc_customer a left join sc_device b on a.id=b.customer_id
|
|
|
+ left join sc_install_list sil on(sil.device_id = b.id)
|
|
|
where
|
|
|
a.customer_no=#{customerNo}
|
|
|
- and b.water_meter_file_no in
|
|
|
+ and sil.metercode in
|
|
|
<foreach collection="fileNos" item="item" separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|