签到bug修复
This commit is contained in:
@@ -79,6 +79,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
|
||||
<update id="updateDelAttendance" parameterType="com.ruoyi.oa.domain.SysOaAttendance">
|
||||
update fad_oa.sys_oa_attendance
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="projectId != null and projectId!=''">project_id=#{projectId},</if>
|
||||
<if test="userId != null and userId!=''">user_id = #{userId},</if>
|
||||
<if test="attendanceDay != null and attendanceDay!=''">attendance_day = #{attendanceDay},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="dayLength != null and dayLength!=''">day_length = #{dayLength},</if>
|
||||
<if test="hour != null and hour!=''">hour = #{hour},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="selectVoListAndTime" resultType="com.ruoyi.oa.domain.vo.SysOaAttendanceVo">
|
||||
select ANY_VALUE(id),
|
||||
@@ -126,6 +141,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and su.del_flag = '0'
|
||||
</select>
|
||||
|
||||
|
||||
<select id="queryListByTime" resultMap="SysOaAttendanceResult">
|
||||
SELECT id, user_id, attendance_day, project_id, day_length, hour, create_time, create_by, update_time, update_by, remark, del_flag
|
||||
FROM sys_oa_attendance
|
||||
WHERE create_time BETWEEN #{startTime} AND #{endTime}
|
||||
AND user_id = #{userId}
|
||||
AND attendance_day = #{attendanceDay}
|
||||
</select>
|
||||
|
||||
<delete id="delOaAttendanceAll">
|
||||
delete from sys_oa_attendance where
|
||||
attendance_day = #{day}
|
||||
|
||||
Reference in New Issue
Block a user