后台管理添加体温上报
This commit is contained in:
@@ -18,4 +18,33 @@
|
||||
order by time desc
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getReportList" resultType="com.cxyxiaomo.epp.common.pojo.Report">
|
||||
select *
|
||||
from report
|
||||
where 1 = 1
|
||||
<if test="id != null">
|
||||
AND id = #{id}
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
AND user_id = #{userId}
|
||||
</if>
|
||||
<if test="name != null && name != ''">
|
||||
AND name LIKE concat('%',#{name,jdbcType=VARCHAR},'%')
|
||||
</if>
|
||||
<!--<if test="timestamp != null">-->
|
||||
<!-- AND DATE_FORMAT(time, '%Y-%m-%d %H:%i:%s') = #{time, jdbcType=TIMESTAMP}-->
|
||||
<!--</if>-->
|
||||
<if test="startTime != null && endTime != null">
|
||||
AND time BETWEEN from_unixtime(#{startTime}/1000) AND from_unixtime(#{endTime}/1000)
|
||||
</if>
|
||||
<if test="temperature != null">
|
||||
AND temperature = #{temperature}
|
||||
</if>
|
||||
<if test="address != null && address != ''">
|
||||
AND address LIKE concat('%',#{address,jdbcType=VARCHAR},'%')
|
||||
</if>
|
||||
ORDER BY time desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user