NewDriverMapper.xml
13.2 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<?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.driver.NewDriverMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.domain.driver.NewDriver">
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="job_code" jdbcType="VARCHAR" property="jobCode"/>
<result column="company_code" jdbcType="VARCHAR" property="companyCode"/>
<result column="branche_company_code" jdbcType="VARCHAR" property="brancheCompanyCode"/>
<result column="personnel_name" jdbcType="VARCHAR" property="personnelName"/>
<result column="papers_code" jdbcType="VARCHAR" property="papersCode"/>
<result column="ic_card_code" jdbcType="VARCHAR" property="icCardCode"/>
<result column="personnel_type" jdbcType="VARCHAR" property="personnelType"/>
<result column="posts" jdbcType="VARCHAR" property="posts"/>
<result column="card" jdbcType="VARCHAR" property="card"/>
<result column="telphone" jdbcType="VARCHAR" property="telphone"/>
<result column="ic_rfid" jdbcType="VARCHAR" property="icRfid"/>
<result column="id_rfid" jdbcType="VARCHAR" property="idRfid"/>
<result column="tag_rfid" jdbcType="VARCHAR" property="tagRfid"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="line_name" jdbcType="VARCHAR" property="lineName"/>
<result column="line_code" jdbcType="VARCHAR" property="lineCode"/>
<result column="face_sign_in" jdbcType="TINYINT" property="faceSignIn"/>
<result column="image" jdbcType="VARCHAR" property="image"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="sign_in_equipment" jdbcType="VARCHAR" property="signInEquipment"/>
<result column="fleet_name" jdbcType="VARCHAR" property="fleetName"/>
<result column="face_Feature" jdbcType="VARCHAR" property="faceFeature"/>
<result column="blue_Tooth" jdbcType="VARCHAR" property="blueTooth"/>
<result column="driver_integer" jdbcType="INTEGER" property="integer"/>
<result column="synContent" jdbcType="VARCHAR" property="syncontent"/>
<result column="csn" jdbcType="VARCHAR" property="csn"/>
<result column="image_version" jdbcType="VARCHAR" property="imageVersion"/>
</resultMap>
<insert id="insertSelective" keyColumn="id" keyProperty="id" useGeneratedKeys="true"
parameterType="com.ruoyi.domain.driver.NewDriver">
INSERT INTO driver
<include refid="insertSelectiveColumn"></include>
<include refid="insertSelectiveValue"></include>
</insert>
<update id="updateSelective" parameterType="com.ruoyi.domain.driver.NewDriver">
update driver set <include refid="updateByPrimaryKeySelectiveSql"></include>
where id=#{id}
</update>
<sql id="columns">
id
, job_code , company_code , branche_company_code , personnel_name , papers_code , ic_card_code , personnel_type , posts , card , telphone , ic_rfid , id_rfid , tag_rfid , remark , line_name , line_code , face_sign_in , image , update_time , sign_in_equipment , fleet_name , face_Feature , blue_Tooth , driver_integer , synContent , csn , image_version
</sql>
<sql id="insert_columns">
id
, job_code , company_code , branche_company_code , personnel_name , papers_code , ic_card_code , personnel_type , posts , card , telphone , ic_rfid , id_rfid , tag_rfid , remark , line_name , line_code , face_sign_in , image , update_time , sign_in_equipment , fleet_name , face_Feature , blue_Tooth , driver_integer , synContent , csn , image_version
</sql>
<sql id="insert_values">
#{id}
,
#{jobCode},
#{companyCode},
#{brancheCompanyCode},
#{personnelName},
#{papersCode},
#{icCardCode},
#{personnelType},
#{posts},
#{card},
#{telphone},
#{icRfid},
#{idRfid},
#{tagRfid},
#{remark},
#{lineName},
#{lineCode},
#{faceSignIn},
#{image},
#{updateTime},
#{signInEquipment},
#{fleetName},
#{faceFeature},
#{blueTooth},
#{integer},
#{syncontent},
#{csn},
#{imageVersion}
</sql>
<sql id="insertSelectiveColumn">
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="null!=id">id,</if>
<if test="null!=jobCode">job_code,</if>
<if test="null!=companyCode">company_code,</if>
<if test="null!=brancheCompanyCode">branche_company_code,</if>
<if test="null!=personnelName">personnel_name,</if>
<if test="null!=papersCode">papers_code,</if>
<if test="null!=icCardCode">ic_card_code,</if>
<if test="null!=personnelType">personnel_type,</if>
<if test="null!=posts">posts,</if>
<if test="null!=card">card,</if>
<if test="null!=telphone">telphone,</if>
<if test="null!=icRfid">ic_rfid,</if>
<if test="null!=idRfid">id_rfid,</if>
<if test="null!=tagRfid">tag_rfid,</if>
<if test="null!=remark">remark,</if>
<if test="null!=lineName">line_name,</if>
<if test="null!=lineCode">line_code,</if>
<if test="null!=faceSignIn">face_sign_in,</if>
<if test="null!=image">image,</if>
<if test="null!=updateTime">update_time,</if>
<if test="null!=signInEquipment">sign_in_equipment,</if>
<if test="null!=fleetName">fleet_name,</if>
<if test="null!=faceFeature">face_Feature,</if>
<if test="null!=blueTooth">blue_Tooth,</if>
<if test="null!=integer">driver_integer,</if>
<if test="null!=syncontent">synContent,</if>
<if test="null!=csn">csn,</if>
<if test="null!=imageVersion">image_version,</if>
</trim>
</sql>
<sql id="insertSelectiveValue">
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="null!=id">#{id,jdbcType=INTEGER},</if>
<if test="null!=jobCode">#{jobCode,jdbcType=VARCHAR},</if>
<if test="null!=companyCode">#{companyCode,jdbcType=VARCHAR},</if>
<if test="null!=brancheCompanyCode">#{brancheCompanyCode,jdbcType=VARCHAR},</if>
<if test="null!=personnelName">#{personnelName,jdbcType=VARCHAR},</if>
<if test="null!=papersCode">#{papersCode,jdbcType=VARCHAR},</if>
<if test="null!=icCardCode">#{icCardCode,jdbcType=VARCHAR},</if>
<if test="null!=personnelType">#{personnelType,jdbcType=VARCHAR},</if>
<if test="null!=posts">#{posts,jdbcType=VARCHAR},</if>
<if test="null!=card">#{card,jdbcType=VARCHAR},</if>
<if test="null!=telphone">#{telphone,jdbcType=VARCHAR},</if>
<if test="null!=icRfid">#{icRfid,jdbcType=VARCHAR},</if>
<if test="null!=idRfid">#{idRfid,jdbcType=VARCHAR},</if>
<if test="null!=tagRfid">#{tagRfid,jdbcType=VARCHAR},</if>
<if test="null!=remark">#{remark,jdbcType=VARCHAR},</if>
<if test="null!=lineName">#{lineName,jdbcType=VARCHAR},</if>
<if test="null!=lineCode">#{lineCode,jdbcType=VARCHAR},</if>
<if test="null!=faceSignIn">#{faceSignIn,jdbcType=TINYINT},</if>
<if test="null!=image">#{image,jdbcType=VARCHAR},</if>
<if test="null!=updateTime">#{updateTime,jdbcType=TIMESTAMP},</if>
<if test="null!=signInEquipment">#{signInEquipment,jdbcType=VARCHAR},</if>
<if test="null!=fleetName">#{fleetName,jdbcType=VARCHAR},</if>
<if test="null!=faceFeature">#{faceFeature,jdbcType=VARCHAR},</if>
<if test="null!=blueTooth">#{blueTooth,jdbcType=VARCHAR},</if>
<if test="null!=integer">#{integer,jdbcType=INTEGER},</if>
<if test="null!=syncontent">#{syncontent,jdbcType=VARCHAR},</if>
<if test="null!=csn">#{csn,jdbcType=VARCHAR},</if>
<if test="null!=imageVersion">#{imageVersion,jdbcType=INTEGER},</if>
</trim>
</sql>
<sql id="updateByPrimaryKeySelectiveSql">
<set>
<if test="null!=id">id = #{id,jdbcType=INTEGER},</if>
<if test="null!=jobCode">job_code = #{jobCode,jdbcType=VARCHAR},</if>
<if test="null!=companyCode">company_code = #{companyCode,jdbcType=VARCHAR},</if>
<if test="null!=brancheCompanyCode">branche_company_code = #{brancheCompanyCode,jdbcType=VARCHAR},</if>
<if test="null!=personnelName">personnel_name = #{personnelName,jdbcType=VARCHAR},</if>
<if test="null!=papersCode">papers_code = #{papersCode,jdbcType=VARCHAR},</if>
<if test="null!=icCardCode">ic_card_code = #{icCardCode,jdbcType=VARCHAR},</if>
<if test="null!=personnelType">personnel_type = #{personnelType,jdbcType=VARCHAR},</if>
<if test="null!=posts">posts = #{posts,jdbcType=VARCHAR},</if>
<if test="null!=card">card = #{card,jdbcType=VARCHAR},</if>
<if test="null!=telphone">telphone = #{telphone,jdbcType=VARCHAR},</if>
<if test="null!=icRfid">ic_rfid = #{icRfid,jdbcType=VARCHAR},</if>
<if test="null!=idRfid">id_rfid = #{idRfid,jdbcType=VARCHAR},</if>
<if test="null!=tagRfid">tag_rfid = #{tagRfid,jdbcType=VARCHAR},</if>
<if test="null!=remark">remark = #{remark,jdbcType=VARCHAR},</if>
<if test="null!=lineName">line_name = #{lineName,jdbcType=VARCHAR},</if>
<if test="null!=lineCode">line_code = #{lineCode,jdbcType=VARCHAR},</if>
<if test="null!=faceSignIn">face_sign_in = #{faceSignIn,jdbcType=TINYINT},</if>
<if test="null!=image">image = #{image,jdbcType=VARCHAR},</if>
<if test="null!=updateTime">update_time = #{updateTime,jdbcType=TIMESTAMP},</if>
<if test="null!=signInEquipment">sign_in_equipment = #{signInEquipment,jdbcType=VARCHAR},</if>
<if test="null!=fleetName">fleet_name = #{fleetName,jdbcType=VARCHAR},</if>
<if test="null!=faceFeature">face_Feature = #{faceFeature,jdbcType=VARCHAR},</if>
<if test="null!=blueTooth">blue_Tooth = #{blueTooth,jdbcType=VARCHAR},</if>
<if test="null!=integer">driver_integer = #{integer,jdbcType=INTEGER},</if>
<if test="null!=syncontent">synContent = #{syncontent,jdbcType=VARCHAR},</if>
<if test="null!=csn">csn = #{csn,jdbcType=VARCHAR},</if>
<if test="null!=imageVersion">image_version = #{imageVersion,jdbcType=VARCHAR},</if>
</set>
</sql>
<sql id="where">
<if test="null!=id">AND id = #{id,jdbcType=INTEGER},</if>
<if test="null!=jobCode">AND job_code = #{jobCode,jdbcType=VARCHAR},</if>
<if test="null!=companyCode">AND company_code = #{companyCode,jdbcType=VARCHAR},</if>
<if test="null!=brancheCompanyCode">AND branche_company_code = #{brancheCompanyCode,jdbcType=VARCHAR},</if>
<if test="null!=personnelName">AND personnel_name = #{personnelName,jdbcType=VARCHAR},</if>
<if test="null!=papersCode">AND papers_code = #{papersCode,jdbcType=VARCHAR},</if>
<if test="null!=icCardCode">AND ic_card_code = #{icCardCode,jdbcType=VARCHAR},</if>
<if test="null!=personnelType">AND personnel_type = #{personnelType,jdbcType=VARCHAR},</if>
<if test="null!=posts">AND posts = #{posts,jdbcType=VARCHAR},</if>
<if test="null!=card">AND card = #{card,jdbcType=VARCHAR},</if>
<if test="null!=telphone">AND telphone = #{telphone,jdbcType=VARCHAR},</if>
<if test="null!=icRfid">AND ic_rfid = #{icRfid,jdbcType=VARCHAR},</if>
<if test="null!=idRfid">AND id_rfid = #{idRfid,jdbcType=VARCHAR},</if>
<if test="null!=tagRfid">AND tag_rfid = #{tagRfid,jdbcType=VARCHAR},</if>
<if test="null!=remark">AND remark = #{remark,jdbcType=VARCHAR},</if>
<if test="null!=lineName">AND line_name = #{lineName,jdbcType=VARCHAR},</if>
<if test="null!=lineCode">AND line_code = #{lineCode,jdbcType=VARCHAR},</if>
<if test="null!=faceSignIn">AND face_sign_in = #{faceSignIn,jdbcType=TINYINT},</if>
<if test="null!=image">AND image = #{image,jdbcType=VARCHAR},</if>
<if test="null!=updateTime">AND update_time = #{updateTime,jdbcType=TIMESTAMP},</if>
<if test="null!=signInEquipment">AND sign_in_equipment = #{signInEquipment,jdbcType=VARCHAR},</if>
<if test="null!=fleetName">AND fleet_name = #{fleetName,jdbcType=VARCHAR},</if>
<if test="null!=faceFeature">AND face_Feature = #{faceFeature,jdbcType=VARCHAR},</if>
<if test="null!=blueTooth">AND blue_Tooth = #{blueTooth,jdbcType=VARCHAR},</if>
<if test="null!=integer">AND driver_integer = #{integer,jdbcType=INTEGER},</if>
<if test="null!=syncontent">AND synContent = #{syncontent,jdbcType=VARCHAR},</if>
<if test="null!=csn">AND csn = #{csn,jdbcType=VARCHAR},</if>
<if test="null!=imageVersion">AND image_version = #{imageVersion,jdbcType=VARCHAR},</if>
</sql>
</mapper>