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

体温上报 历史上报信息

This commit is contained in:
2022-12-28 21:48:44 +08:00
parent 4594fe8e80
commit 494e578628
9 changed files with 341 additions and 57 deletions

View File

@@ -7,4 +7,15 @@
INSERT INTO report (`user_id`, `name`, `address`, `time`, `temperature`)
VALUES (#{userId}, #{name}, #{address}, #{time}, #{temperature})
</insert>
<select id="getReportListByUserId" parameterType="java.lang.Integer" resultType="com.cxyxiaomo.epp.common.pojo.Report">
SELECT * FROM report
WHERE `user_id` = #{userId}
order by time desc
</select>
<select id="getLatestReportByUserId" parameterType="java.lang.Integer" resultType="com.cxyxiaomo.epp.common.pojo.Report">
SELECT * FROM report
WHERE `user_id` = #{userId}
order by time desc
LIMIT 1
</select>
</mapper>