|
|
@@ -93,7 +93,6 @@
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">and xx.dept_name like concat('%', #{deptName}, '%')</if>
|
|
|
<if test="userId != null ">and xx.user_id = #{userId}</if>
|
|
|
- <if test="routeNum != null ">AND xx.route_num = #{routeNum}</if>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
</where>
|
|
|
@@ -310,4 +309,21 @@
|
|
|
from lab_sensor
|
|
|
where subject_id = #{id}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectDataCount" parameterType="com.zd.laboratory.domain.LabSensor" resultType="java.lang.Integer">
|
|
|
+ select count(*)
|
|
|
+ from lab_sensor
|
|
|
+ <where>
|
|
|
+ <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
|
|
+ <if test="type != null ">and type = #{type}</if>
|
|
|
+ <if test="gatewayId != null and gatewayId!='' ">and gateway_id = #{gatewayId}</if>
|
|
|
+ <if test="senseState != null ">and sense_state = #{senseState}</if>
|
|
|
+ <if test="senseData != null ">and sense_data = #{senseData}</if>
|
|
|
+ <if test="dataUpper != null ">and data_upper = #{dataUpper}</if>
|
|
|
+ <if test="dataLower != null ">and data_lower = #{dataLower}</if>
|
|
|
+ <if test="macAdd != null and macAdd != ''">and mac_add = #{macAdd}</if>
|
|
|
+ <if test="subjectId != null ">and subject_id = #{subjectId}</if>
|
|
|
+ <if test="routeNum != null ">AND route_num = #{routeNum}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|