RuleAttendanceMainMapper.xml
3.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.mapper.RuleAttendanceMainMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.domain.RuleAttendanceMain">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="jobCode" column="job_code" jdbcType="VARCHAR"/>
<result property="workingHourPlan" column="working_hour_plan" jdbcType="INTEGER"/>
<result property="workingHourType" column="working_hour_type" jdbcType="TINYINT"/>
<result property="firstWorkSignInTime" column="first_work_sign_in_time" jdbcType="TIMESTAMP"/>
<result property="firstSignInWorkingRange" column="first_sign_in_working_range" jdbcType="INTEGER"/>
<result property="firstQuittingSignInTime" column="first_quitting_sign_in_time" jdbcType="TIMESTAMP"/>
<result property="firstSignInQuittingRange" column="first_sign_in_quitting_range" jdbcType="INTEGER"/>
<result property="signInTimeOutRange" column="sign_in_time_out_range" jdbcType="INTEGER"/>
<result property="secondWorkSignInTime" column="second_work_sign_in_time" jdbcType="TIMESTAMP"/>
<result property="secondSignInWorkingRange" column="second_sign_in_working_range" jdbcType="INTEGER"/>
<result property="secondQuittingSignInTime" column="second_quitting_sign_in_time" jdbcType="TIMESTAMP"/>
<result property="secondSignInQuittingRange" column="second_sign_in_quitting_range" jdbcType="INTEGER"/>
<result property="schedulingDate" column="scheduling_date" jdbcType="DATE"/>
<result property="posts" column="posts" jdbcType="VARCHAR"/>
<result property="ruleDictName" column="rule_dict_name" jdbcType="VARCHAR"/>
<result property="workFlag" column="work_flag" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
id,name,job_code,
working_hour_plan,working_hour_type,first_work_sign_in_time,
first_sign_in_working_range,first_quitting_sign_in_time,first_sign_in_quitting_range,
sign_in_time_out_range,second_work_sign_in_time,second_sign_in_working_range,
second_quitting_sign_in_time,second_sign_in_quitting_range,scheduling_date,work_flag
</sql>
<update id="updateByIdTotalQuantity">
update rule_attendance_main set
working_hour_plan = #{workingHourPlan},
working_hour_type = #{workingHourType},
first_work_sign_in_time = #{firstWorkSignInTime},
first_sign_in_working_range = #{firstSignInWorkingRange},
first_quitting_sign_in_time = #{firstQuittingSignInTime},
first_sign_in_quitting_range = #{firstSignInQuittingRange},
sign_in_time_out_range = #{signInTimeOutRange},
second_work_sign_in_time = #{secondWorkSignInTime},
second_sign_in_working_range = #{secondSignInWorkingRange},
second_quitting_sign_in_time = #{secondQuittingSignInTime},
second_sign_in_quitting_range = #{secondSignInQuittingRange},
work_flag = #{workFlag}
where id = #{id}
</update>
</mapper>