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