体温上报 历史上报信息
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user