|
|
|
|
|
|
|
|
<select id="getCurrentDayRecord" resultType="com.ruoyi.zhushi.entity.DkCheckInRecord"> |
|
|
<select id="getCurrentDayRecord" resultType="com.ruoyi.zhushi.entity.DkCheckInRecord"> |
|
|
select * from dk_check_in_record |
|
|
select * from dk_check_in_record |
|
|
<where> |
|
|
<where> |
|
|
check_in_time >= CURDATE() AND check_in_time < CURDATE() + INTERVAL 1 DAY |
|
|
|
|
|
|
|
|
create_time >= CURDATE() AND create_time < CURDATE() + INTERVAL 1 DAY |
|
|
<if test="userId != null and userId != ''"> |
|
|
<if test="userId != null and userId != ''"> |
|
|
AND sys_user_id = #{userId} |
|
|
AND sys_user_id = #{userId} |
|
|
</if> |
|
|
</if> |