1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

后台管理添加体温上报

This commit is contained in:
2023-04-14 00:53:02 +08:00
parent bad6ecb111
commit fb10c7e666
22 changed files with 472 additions and 58 deletions

View File

@@ -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 &amp;&amp; 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 &amp;&amp; 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 &amp;&amp; address != ''">
AND address LIKE concat('%',#{address,jdbcType=VARCHAR},'%')
</if>
ORDER BY time desc
</select>
</mapper>