xml修改
This commit is contained in:
+3
-3
@@ -19,7 +19,7 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="dateStr != null">
|
<if test="dateStr != null">
|
||||||
AND DATE(create_time) = #{dateStr}
|
AND TRUNC(create_time) = #{dateStr}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
GROUP BY user_id )
|
GROUP BY user_id )
|
||||||
@@ -50,10 +50,10 @@
|
|||||||
<select id="getUserBwhMin" resultType="org.jeecg.bean.entity.UserDataRecordBWH">
|
<select id="getUserBwhMin" resultType="org.jeecg.bean.entity.UserDataRecordBWH">
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM user_data_record_bwh
|
FROM user_data_record_bwh
|
||||||
WHERE DATE(create_time) = (SELECT MAX(DATE(create_time)) FROM user_data_record_bwh where user_id = #{userId})
|
WHERE TRUNC(create_time) = (SELECT MAX(TRUNC(create_time)) FROM user_data_record_bwh where user_id = #{userId})
|
||||||
and user_id = #{userId}
|
and user_id = #{userId}
|
||||||
ORDER BY waist ASC
|
ORDER BY waist ASC
|
||||||
LIMIT 1
|
FETCH FIRST 1 ROWS ONLY
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user