|
@@ -29,6 +29,10 @@
|
29
|
29
|
<result property="projectCp" column="project_cp" />
|
30
|
30
|
<result property="kmlLng" column="kml_lng" />
|
31
|
31
|
<result property="kmlLat" column="kml_lat" />
|
|
32
|
+ <result property="cars" column="cars" />
|
|
33
|
+ <result property="drivers" column="drivers" />
|
|
34
|
+ <result property="devices" column="devices" />
|
|
35
|
+ <result property="participates" column="participates" />
|
32
|
36
|
<association property="projectLeaderUser" javaType="SysUser" resultMap="ProjectLeaderResult" />
|
33
|
37
|
<association property="projectRegistrantUser" javaType="SysUser" resultMap="ProjectRegistrantResult" />
|
34
|
38
|
<association property="technicalDirectorUser" javaType="SysUser" resultMap="TechnicalDirectorResult" />
|
|
@@ -59,7 +63,7 @@
|
59
|
63
|
select p.project_id, p.project_number, p.project_name, p.project_leader, u.nick_name as leader_nick_name, p.is_finished, p.project_source, p.party_a, p.contact_person, p.telephone,
|
60
|
64
|
p.project_type, p.project_level, p.project_registrant, u1.nick_name as registrant_nick_name, p.undertaking_dept, p.project_planner, p.site_leader, p.register_time, p.plan_time,
|
61
|
65
|
p.entry_time, p.exit_time, p.remark, c.technical_director, u2.nick_name as director_nick_name, c.quality_inspector, u3.nick_name as inspector_nick_name, u3.user_id as inspector_user_id,
|
62
|
|
- p.project_kml, p.project_cp, p.kml_lng, p.kml_lat from cmc_project as p
|
|
66
|
+ p.project_kml, p.project_cp, p.kml_lng, p.kml_lat, p.cars, p.drivers, p.devices, p.participates from cmc_project as p
|
63
|
67
|
left join sys_user as u on u.user_id = p.project_leader
|
64
|
68
|
left join sys_user as u1 on u1.user_id = p.project_registrant
|
65
|
69
|
left join cmc_technical as c on c.project_id = p.project_id
|
|
@@ -127,6 +131,10 @@
|
127
|
131
|
<if test="projectCp != null">project_cp,</if>
|
128
|
132
|
<if test="kmlLng != null">kml_lng,</if>
|
129
|
133
|
<if test="kmlLat != null">kml_lat,</if>
|
|
134
|
+ <if test="cars != null">cars,</if>
|
|
135
|
+ <if test="drivers != null">drivers,</if>
|
|
136
|
+ <if test="devices != null">devices,</if>
|
|
137
|
+ <if test="participates != null">participates,</if>
|
130
|
138
|
</trim>
|
131
|
139
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
132
|
140
|
<if test="projectId != null">#{projectId},</if>
|
|
@@ -153,6 +161,10 @@
|
153
|
161
|
<if test="projectCp != null">#{projectCp},</if>
|
154
|
162
|
<if test="kmlLng != null">#{kmlLng},</if>
|
155
|
163
|
<if test="kmlLat != null">#{kmlLat},</if>
|
|
164
|
+ <if test="cars != null">#{cars},</if>
|
|
165
|
+ <if test="drivers != null">#{drivers},</if>
|
|
166
|
+ <if test="devices != null">#{devices},</if>
|
|
167
|
+ <if test="participates != null">#{participates},</if>
|
156
|
168
|
</trim>
|
157
|
169
|
</insert>
|
158
|
170
|
|
|
@@ -182,6 +194,10 @@
|
182
|
194
|
<if test="projectCp != null">project_cp = #{projectCp},</if>
|
183
|
195
|
<if test="kmlLng != null">kml_lng = #{kmlLng},</if>
|
184
|
196
|
<if test="kmlLat != null">kml_lat = #{kmlLat},</if>
|
|
197
|
+ <if test="cars != null">cars = #{cars},</if>
|
|
198
|
+ <if test="drivers != null">drivers = #{drivers},</if>
|
|
199
|
+ <if test="devices != null">devices = #{devices},</if>
|
|
200
|
+ <if test="participates != null">participates = #{participates},</if>
|
185
|
201
|
</trim>
|
186
|
202
|
where project_id = #{projectId}
|
187
|
203
|
</update>
|