|
@@ -50,6 +50,7 @@
|
|
<result property="unitName" column="unit_name"/>
|
|
<result property="unitName" column="unit_name"/>
|
|
<result property="stage" column="stage"/>
|
|
<result property="stage" column="stage"/>
|
|
<result property="registeCode" column="registe_code"/>
|
|
<result property="registeCode" column="registe_code"/>
|
|
|
|
+ <result property="orgName" column="org_name"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
@@ -61,6 +62,8 @@
|
|
|
|
|
|
ed1.env_temp ,ed1.rssi ,co.pen_name ,co.unit_name ,co.stage ,co.registe_code
|
|
ed1.env_temp ,ed1.rssi ,co.pen_name ,co.unit_name ,co.stage ,co.registe_code
|
|
|
|
|
|
|
|
+ ,co.org_name
|
|
|
|
+
|
|
FROM eartag_data ed1 JOIN (
|
|
FROM eartag_data ed1 JOIN (
|
|
|
|
|
|
SELECT MAX(id) id FROM eartag_data ed2
|
|
SELECT MAX(id) id FROM eartag_data ed2
|
|
@@ -75,7 +78,6 @@
|
|
AND ed2.eartag_no = #{eartagParamVo.eartagNo}
|
|
AND ed2.eartag_no = #{eartagParamVo.eartagNo}
|
|
</if>
|
|
</if>
|
|
|
|
|
|
-
|
|
|
|
/*电量进行判断*/
|
|
/*电量进行判断*/
|
|
<if test="eartagParamVo.bat != null">
|
|
<if test="eartagParamVo.bat != null">
|
|
AND ed2.bat <![CDATA[ <= ]]> #{eartagParamVo.bat}
|
|
AND ed2.bat <![CDATA[ <= ]]> #{eartagParamVo.bat}
|
|
@@ -95,7 +97,7 @@
|
|
|
|
|
|
/* 下面的参数只能传或者不传 不存在传空 穿空会有问题*/
|
|
/* 下面的参数只能传或者不传 不存在传空 穿空会有问题*/
|
|
|
|
|
|
- /* 时间范围进行判断--其实时间是必传字段的 stage OK 了-*/
|
|
|
|
|
|
+ /* 阶段进行判断--其实时间是必传字段的 stage OK 了-*/
|
|
<if test="eartagParamVo.stage != null">
|
|
<if test="eartagParamVo.stage != null">
|
|
AND co.stage = #{eartagParamVo.stage}
|
|
AND co.stage = #{eartagParamVo.stage}
|
|
</if>
|
|
</if>
|