Procházet zdrojové kódy

设施维修-提交人,时间

hanqingsong před 1 rokem
rodič
revize
662cd72151

+ 35 - 5
src/main/java/com/chinaitop/depot/device/mapper/DFacilitiesRepairMapper.xml

@@ -13,6 +13,8 @@
13 13
     <result column="org_id" property="orgId" jdbcType="INTEGER" />
14 14
     <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
15 15
     <result column="basics_id" property="basicsId" jdbcType="INTEGER" />
16
+    <result column="commit_people" property="commitPeople" jdbcType="VARCHAR" />
17
+    <result column="commit_time" property="commitTime" jdbcType="TIMESTAMP" />
16 18
   </resultMap>
17 19
   <sql id="Example_Where_Clause" >
18 20
     <where >
@@ -73,7 +75,7 @@
73 75
     </where>
74 76
   </sql>
75 77
   <sql id="Base_Column_List" >
76
-    id, ssmc, ssfl, gzrq, wxksrq, wxjsrq, wxfzr, bz, org_id, create_time, basics_id
78
+    id, ssmc, ssfl, gzrq, wxksrq, wxjsrq, wxfzr, bz, org_id, create_time, basics_id, commit_people, commit_time
77 79
   </sql>
78 80
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.device.model.DFacilitiesRepairExample" >
79 81
     select
@@ -111,12 +113,12 @@
111 113
     </selectKey>
112 114
     insert into d_facilities_repair (id, ssmc, ssfl,
113 115
       gzrq, wxksrq, wxjsrq, 
114
-      wxfzr, bz, org_id, create_time, basics_id
116
+      wxfzr, bz, org_id, create_time, basics_id, commit_people, commit_time
115 117
       )
116 118
     values (#{id,jdbcType=INTEGER}, #{ssmc,jdbcType=VARCHAR}, #{ssfl,jdbcType=VARCHAR},
117 119
       #{gzrq,jdbcType=TIMESTAMP}, #{wxksrq,jdbcType=TIMESTAMP}, #{wxjsrq,jdbcType=TIMESTAMP}, 
118 120
       #{wxfzr,jdbcType=VARCHAR}, #{bz,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
119
-      #{basicsId,jdbcType=INTEGER}
121
+      #{basicsId,jdbcType=INTEGER}, #{commitPeople,jdbcType=VARCHAR}, #{commitTime,jdbcType=TIMESTAMP}
120 122
       )
121 123
   </insert>
122 124
   <insert id="insertSelective" parameterType="com.chinaitop.depot.device.model.DFacilitiesRepair" >
@@ -155,6 +157,12 @@
155 157
       <if test="basicsId != null" >
156 158
         basics_id,
157 159
       </if>
160
+      <if test="commitPeople != null">
161
+        commit_people,
162
+      </if>
163
+      <if test="commitTime != null">
164
+        commit_time,
165
+      </if>
158 166
     </trim>
159 167
     <trim prefix="values (" suffix=")" suffixOverrides="," >
160 168
       <if test="id != null" >
@@ -190,6 +198,12 @@
190 198
       <if test="basicsId != null" >
191 199
         #{basicsId,jdbcType=INTEGER},
192 200
       </if>
201
+      <if test="commitPeople != null">
202
+        #{commitPeople,jdbcType=VARCHAR},
203
+      </if>
204
+      <if test="commitTime != null">
205
+        #{commitTime,jdbcType=TIMESTAMP},
206
+      </if>
193 207
     </trim>
194 208
   </insert>
195 209
   <select id="countByExample" parameterType="com.chinaitop.depot.device.model.DFacilitiesRepairExample" resultType="java.lang.Integer" >
@@ -234,6 +248,12 @@
234 248
       <if test="record.basicsId != null" >
235 249
         basics_id = #{record.basicsId,jdbcType=INTEGER},
236 250
       </if>
251
+      <if test="record.commitPeople != null">
252
+        commit_people = #{record.commitPeople,jdbcType=VARCHAR},
253
+      </if>
254
+      <if test="record.commitTime != null">
255
+        commit_time = #{record.commitTime,jdbcType=TIMESTAMP},
256
+      </if>
237 257
     </set>
238 258
     <if test="_parameter != null" >
239 259
       <include refid="Update_By_Example_Where_Clause" />
@@ -251,7 +271,9 @@
251 271
       bz = #{record.bz,jdbcType=VARCHAR},
252 272
       org_id = #{record.orgId,jdbcType=INTEGER},
253 273
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
254
-      basics_id = #{record.basicsId,jdbcType=INTEGER}
274
+      basics_id = #{record.basicsId,jdbcType=INTEGER},
275
+      commit_people = #{commitPeople,jdbcType=VARCHAR},
276
+      commit_time = #{commitTime,jdbcType=TIMESTAMP}
255 277
     <if test="_parameter != null" >
256 278
       <include refid="Update_By_Example_Where_Clause" />
257 279
     </if>
@@ -289,6 +311,12 @@
289 311
       <if test="basicsId != null" >
290 312
         basics_id = #{basicsId,jdbcType=INTEGER},
291 313
       </if>
314
+      <if test="commitPeople != null">
315
+        commit_people = #{commitPeople,jdbcType=VARCHAR},
316
+      </if>
317
+      <if test="commitTime != null">
318
+        commit_time = #{commitTime,jdbcType=TIMESTAMP},
319
+      </if>
292 320
     </set>
293 321
     where id = #{id,jdbcType=INTEGER}
294 322
   </update>
@@ -303,7 +331,9 @@
303 331
       bz = #{bz,jdbcType=VARCHAR},
304 332
       org_id = #{orgId,jdbcType=INTEGER},
305 333
       create_time = #{createTime,jdbcType=TIMESTAMP},
306
-      basics_id = #{basicsId,jdbcType=INTEGER}
334
+      basics_id = #{basicsId,jdbcType=INTEGER},
335
+      commit_people = #{commitPeople,jdbcType=VARCHAR},
336
+      commit_time = #{commitTime,jdbcType=TIMESTAMP}
307 337
     where id = #{id,jdbcType=INTEGER}
308 338
   </update>
309 339
 </mapper>

+ 8 - 0
src/main/java/com/chinaitop/depot/device/model/DFacilitiesRepair.java

@@ -1,6 +1,8 @@
1 1
 package com.chinaitop.depot.device.model;
2 2
 
3 3
 import com.fasterxml.jackson.annotation.JsonFormat;
4
+import lombok.Getter;
5
+import lombok.Setter;
4 6
 
5 7
 import java.util.Date;
6 8
 
@@ -55,6 +57,12 @@ public class DFacilitiesRepair {
55 57
     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
56 58
     private Date createTime;
57 59
 
60
+    @Getter @Setter
61
+    private String commitPeople;// 提交人
62
+    @Getter @Setter
63
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
64
+    private Date commitTime;// 提交时间
65
+
58 66
     /**
59 67
      * null
60 68
      * @return id null