重构
This commit is contained in:
@ -175,6 +175,7 @@
|
||||
from ems_devices_setting t
|
||||
where t.site_id = #{siteId}
|
||||
and t.parent_id = #{parentId}
|
||||
order by t.device_id
|
||||
</select>
|
||||
|
||||
<select id="getAllBatteryDeviceBySiteId" parameterType="String" resultType="com.xzzn.ems.domain.EmsDevicesSetting">
|
||||
@ -206,9 +207,10 @@
|
||||
|
||||
<select id="getDeviceBySiteAndDeviceId" parameterType="String" resultMap="EmsDevicesSettingResult">
|
||||
<include refid="selectEmsDevicesSettingVo"/>
|
||||
where device_id = #{deviceId}
|
||||
AND site_id = #{siteId}
|
||||
limit 1
|
||||
where site_id = #{siteId}
|
||||
<if test="deviceId != null and deviceId != ''">
|
||||
AND device_id = #{deviceId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getAmmeterNameList" parameterType="String" resultType="java.util.Map">
|
||||
@ -235,4 +237,4 @@
|
||||
and site_id = #{siteId}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user