|
@@ -76,18 +76,10 @@
|
|
|
|
|
|
<select id="DeviceList" resultType="com.bizmatics.model.DeviceList">
|
|
|
SELECT
|
|
|
- a.*, b.device_status,
|
|
|
- c.loop_meter_address,
|
|
|
- c.rated_voltage,
|
|
|
- c.rated_current,
|
|
|
- c.current_load_rate,
|
|
|
- c.monitoring_equipment_no,
|
|
|
- c.variable_list_id,
|
|
|
- c.quality_analysis
|
|
|
+ a.*, b.device_status
|
|
|
FROM
|
|
|
device AS a
|
|
|
JOIN device_status AS b ON a.device_code = b.device_code
|
|
|
- LEFT JOIN device_attribute AS c ON a.id = c.device_id
|
|
|
<where>
|
|
|
a.enable =1
|
|
|
<if test="siteId != null and siteId != 0">
|