fanxw 2 周之前
父节点
当前提交
986bc899bc

+ 21 - 5
src/main/java/com/chinaitop/depot/basic/mapper/BasicKeeperEducationMapper.xml

@@ -21,6 +21,7 @@
21 21
     <result column="org_id" property="orgId" jdbcType="INTEGER"  />
22 22
     <result column="fzywlx" jdbcType="VARCHAR" property="fzywlx" />
23 23
     <result column="fzywsj" jdbcType="TIMESTAMP" property="fzywsj" />
24
+    <result column="file_path" property="filePath" jdbcType="VARCHAR" />
24 25
   </resultMap>
25 26
   <sql id="Example_Where_Clause">
26 27
     <where>
@@ -82,7 +83,7 @@
82 83
   </sql>
83 84
   <sql id="Base_Column_List">
84 85
     id, keeper_id, datatype, type, occupation, college, department, education, degree, 
85
-    degree_detailed, rank, issue_facility, issue_time, sfwslzy, zsbh, rych, org_id, fzywlx, fzywsj
86
+    degree_detailed, rank, issue_facility, issue_time, sfwslzy, zsbh, rych, org_id, fzywlx, fzywsj, file_path
86 87
   </sql>
87 88
   <select id="selectByExample" parameterType="com.chinaitop.depot.basic.model.BasicKeeperEducationExample" resultMap="BaseResultMap">
88 89
     select
@@ -123,13 +124,14 @@
123 124
       department, education, degree, 
124 125
       degree_detailed, rank, issue_facility, 
125 126
       issue_time, sfwslzy, 
126
-      zsbh, rych, org_id, fzywlx, fzywsj)
127
+      zsbh, rych, org_id, fzywlx, fzywsj, file_path)
127 128
     values (#{id,jdbcType=INTEGER}, #{keeperId,jdbcType=INTEGER}, #{datatype,jdbcType=INTEGER}, 
128 129
       #{type,jdbcType=INTEGER}, #{occupation,jdbcType=INTEGER}, #{college,jdbcType=VARCHAR}, 
129 130
       #{department,jdbcType=VARCHAR}, #{education,jdbcType=INTEGER}, #{degree,jdbcType=INTEGER}, 
130 131
       #{degreeDetailed,jdbcType=INTEGER}, #{rank,jdbcType=VARCHAR}, #{issueFacility,jdbcType=VARCHAR}, 
131 132
       #{issueTime,jdbcType=TIMESTAMP}, #{sfwslzy,jdbcType=VARCHAR}, 
132
-      #{zsbh,jdbcType=VARCHAR}, #{rych,jdbcType=VARCHAR}, #{org_id,jdbcType=INTEGER}, #{fzywlx,jdbcType=VARCHAR}, #{fzywsj,jdbcType=TIMESTAMP})
133
+      #{zsbh,jdbcType=VARCHAR}, #{rych,jdbcType=VARCHAR}, #{org_id,jdbcType=INTEGER}, #{fzywlx,jdbcType=VARCHAR}, 
134
+      #{fzywsj,jdbcType=TIMESTAMP}, #{filePath,jdbcType=VARCHAR})
133 135
   </insert>
134 136
   <insert id="insertSelective" parameterType="com.chinaitop.depot.basic.model.BasicKeeperEducation">
135 137
     <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Integer">
@@ -194,6 +196,9 @@
194 196
       <if test="fzywsj != null">
195 197
         fzywsj,
196 198
       </if>
199
+      <if test="filePath != null">
200
+        file_path,
201
+      </if>
197 202
     </trim>
198 203
     <trim prefix="values (" suffix=")" suffixOverrides=",">
199 204
       <if test="id != null">
@@ -253,6 +258,9 @@
253 258
       <if test="fzywsj != null">
254 259
         #{fzywsj,jdbcType=TIMESTAMP},
255 260
       </if>
261
+      <if test="filePath != null">
262
+        #{filePath,jdbcType=VARCHAR},
263
+      </if>
256 264
     </trim>
257 265
   </insert>
258 266
   <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicKeeperEducationExample" resultType="java.lang.Integer">
@@ -321,6 +329,9 @@
321 329
       <if test="record.fzywsj != null">
322 330
         fzywsj = #{record.fzywsj,jdbcType=TIMESTAMP},
323 331
       </if>
332
+      <if test="record.filePath != null">
333
+        file_path = #{record.filePath,jdbcType=VARCHAR},
334
+      </if>
324 335
     </set>
325 336
     <if test="_parameter != null">
326 337
       <include refid="Update_By_Example_Where_Clause" />
@@ -346,7 +357,8 @@
346 357
       rych = #{record.rych,jdbcType=VARCHAR},
347 358
       org_id = #{record.orgId,jdbcType=INTEGER},
348 359
       fzywlx = #{record.fzywlx,jdbcType=VARCHAR},
349
-      fzywsj = #{record.fzywsj,jdbcType=TIMESTAMP}
360
+      fzywsj = #{record.fzywsj,jdbcType=TIMESTAMP},
361
+      file_path = #{record.filePath,jdbcType=VARCHAR}
350 362
     <if test="_parameter != null">
351 363
       <include refid="Update_By_Example_Where_Clause" />
352 364
     </if>
@@ -408,6 +420,9 @@
408 420
       <if test="fzywsj != null">
409 421
         fzywsj = #{fzywsj,jdbcType=TIMESTAMP},
410 422
       </if>
423
+      <if test="filePath != null">
424
+        file_path = #{filePath,jdbcType=VARCHAR},
425
+      </if>
411 426
     </set>
412 427
     where id = #{id,jdbcType=INTEGER}
413 428
   </update>
@@ -430,7 +445,8 @@
430 445
       rych = #{rych,jdbcType=VARCHAR},
431 446
       org_id = #{orgId,jdbcType=INTEGER},
432 447
       fzywlx = #{fzywlx,jdbcType=VARCHAR},
433
-      fzywsj = #{fzywsj,jdbcType=TIMESTAMP}
448
+      fzywsj = #{fzywsj,jdbcType=TIMESTAMP},
449
+      file_path = #{filePath,jdbcType=VARCHAR}
434 450
     where id = #{id,jdbcType=INTEGER}
435 451
   </update>
436 452
 </mapper>

+ 20 - 5
src/main/java/com/chinaitop/depot/basic/mapper/BasicKeeperMapper.xml

@@ -41,6 +41,7 @@
41 41
     <result column="zgzt" jdbcType="VARCHAR" property="zgzt" />
42 42
     <result column="cyfzr" property="cyfzr" jdbcType="VARCHAR" />
43 43
     <result column="gwxz" property="gwxz" jdbcType="VARCHAR" />
44
+    <result column="gwlb" property="gwlb" jdbcType="VARCHAR" />
44 45
   </resultMap>
45 46
   <sql id="Example_Where_Clause">
46 47
     <where>
@@ -105,7 +106,7 @@
105 106
     email, work_Year, entry_time, employee_nature, handover_Date, input_Person_Id, input_Date, 
106 107
     edit_Person_Id, edit_Date, house_id, province_Id, city_Id, grain_Id, depot_name, 
107 108
     avator_Url, nation, isdepartment_time, political, sync_flag, del_flag, sfsjjllg, cjslqygzsj,
108
-    cjgzsj, zw, mz, zgzt, gwxz, cyfzr
109
+    cjgzsj, zw, mz, zgzt, gwxz, cyfzr, gwlb
109 110
   </sql>
110 111
   <select id="selectByExample" parameterType="com.chinaitop.depot.basic.model.BasicKeeperExample" resultMap="BaseResultMap">
111 112
     select
@@ -151,7 +152,7 @@
151 152
       province_Id, city_Id, grain_Id, 
152 153
       depot_name, avator_Url, nation, 
153 154
       isdepartment_time, political, sync_flag, 
154
-      del_flag, sfsjjllg, cjslqygzsj, cjgzsj, zw, mz, zgzt, gwxz, cyfzr)
155
+      del_flag, sfsjjllg, cjslqygzsj, cjgzsj, zw, mz, zgzt, gwxz, cyfzr, gwlb)
155 156
     values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{postType,jdbcType=INTEGER}, 
156 157
       #{name,jdbcType=VARCHAR}, #{userAlias,jdbcType=VARCHAR}, #{deptId,jdbcType=INTEGER}, 
157 158
       #{orgId,jdbcType=INTEGER}, #{sex,jdbcType=INTEGER}, #{idCard,jdbcType=VARCHAR}, 
@@ -164,7 +165,7 @@
164 165
       #{isdepartmentTime,jdbcType=TIMESTAMP}, #{political,jdbcType=INTEGER}, #{syncFlag,jdbcType=VARCHAR}, 
165 166
       #{delFlag,jdbcType=INTEGER}, #{sfsjjllg,jdbcType=VARCHAR}, #{cjslqygzsj,jdbcType=TIMESTAMP},
166 167
       #{cjgzsj,jdbcType=TIMESTAMP}, #{zw,jdbcType=VARCHAR}, #{mz,jdbcType=INTEGER}, #{zgzt,jdbcType=VARCHAR},
167
-      #{gwxz,jdbcType=VARCHAR}, #{cyfzr,jdbcType=VARCHAR})
168
+      #{gwxz,jdbcType=VARCHAR}, #{cyfzr,jdbcType=VARCHAR}, #{gwlb,jdbcType=VARCHAR})
168 169
   </insert>
169 170
   <insert id="insertSelective" keyProperty="id" useGeneratedKeys="true" parameterType="com.chinaitop.depot.basic.model.BasicKeeper">
170 171
     <selectKey keyProperty="id" resultType="java.lang.Integer" order="BEFORE">
@@ -289,6 +290,9 @@
289 290
       <if test="cyfzr != null">
290 291
         cyfzr,
291 292
       </if>
293
+      <if test="gwlb != null">
294
+        gwlb,
295
+      </if>
292 296
     </trim>
293 297
     <trim prefix="values (" suffix=")" suffixOverrides=",">
294 298
       <if test="id != null">
@@ -408,6 +412,9 @@
408 412
       <if test="cyfzr != null">
409 413
         #{cyfzr,jdbcType=VARCHAR},
410 414
       </if>
415
+      <if test="gwlb != null">
416
+        #{gwlb,jdbcType=VARCHAR},
417
+      </if>
411 418
     </trim>
412 419
   </insert>
413 420
   <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicKeeperExample" resultType="java.lang.Integer">
@@ -536,6 +543,9 @@
536 543
       <if test="record.cyfzr != null">
537 544
         cyfzr = #{record.cyfzr,jdbcType=VARCHAR},
538 545
       </if>
546
+      <if test="record.gwlb != null">
547
+        gwlb = #{record.gwlb,jdbcType=VARCHAR},
548
+      </if>
539 549
     </set>
540 550
     <if test="_parameter != null">
541 551
       <include refid="Update_By_Example_Where_Clause" />
@@ -581,7 +591,8 @@
581 591
       mz = #{record.mz,jdbcType=INTEGER},
582 592
       zgzt = #{record.zgzt,jdbcType=VARCHAR},
583 593
       gwxz = #{record.gwxz,jdbcType=VARCHAR},
584
-      cyfzr = #{record.cyfzr,jdbcType=VARCHAR}
594
+      cyfzr = #{record.cyfzr,jdbcType=VARCHAR},
595
+      gwlb = #{record.gwlb,jdbcType=VARCHAR}
585 596
     <if test="_parameter != null">
586 597
       <include refid="Update_By_Example_Where_Clause" />
587 598
     </if>
@@ -703,6 +714,9 @@
703 714
       <if test="cyfzr != null">
704 715
         cyfzr = #{cyfzr,jdbcType=VARCHAR},
705 716
       </if>
717
+      <if test="gwlb != null">
718
+        gwlb = #{gwlb,jdbcType=VARCHAR},
719
+      </if>
706 720
     </set>
707 721
     where id = #{id,jdbcType=INTEGER}
708 722
   </update>
@@ -745,7 +759,8 @@
745 759
       mz = #{mz,jdbcType=INTEGER},
746 760
       zgzt = #{zgzt,jdbcType=VARCHAR},
747 761
       gwxz = #{gwxz,jdbcType=VARCHAR},
748
-      cyfzr = #{cyfzr,jdbcType=VARCHAR}
762
+      cyfzr = #{cyfzr,jdbcType=VARCHAR},
763
+      gwlb = #{gwlb,jdbcType=VARCHAR}
749 764
     where id = #{id,jdbcType=INTEGER}
750 765
   </update>
751 766
 

+ 18 - 0
src/main/java/com/chinaitop/depot/basic/model/BasicKeeper.java

@@ -84,6 +84,8 @@ public class BasicKeeper {
84 84
     private Date cjgzsj;
85 85
     //关键部门负责人
86 86
     private String cyfzr;
87
+    //岗位类型
88
+    private String gwlb;
87 89
 
88 90
     //业务字段
89 91
     private String keeperNames;
@@ -720,4 +722,20 @@ public class BasicKeeper {
720 722
 		this.cyfzr = cyfzr;
721 723
 	}
722 724
 
725
+	/**
726
+	 * 岗位类型
727
+	 * @return
728
+	 */
729
+	public String getGwlb() {
730
+		return gwlb;
731
+	}
732
+
733
+	/**
734
+	 * 岗位类型
735
+	 * @param gwlb
736
+	 */
737
+	public void setGwlb(String gwlb) {
738
+		this.gwlb = gwlb;
739
+	}
740
+
723 741
 }

+ 18 - 0
src/main/java/com/chinaitop/depot/basic/model/BasicKeeperEducation.java

@@ -41,6 +41,8 @@ public class BasicKeeperEducation {
41 41
 
42 42
     private String fzywlx;
43 43
 
44
+    private String filePath;
45
+
44 46
     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
45 47
     private Date fzywsj;
46 48
 
@@ -339,4 +341,20 @@ public class BasicKeeperEducation {
339 341
 	public void setFzywsj(Date fzywsj) {
340 342
 		this.fzywsj = fzywsj;
341 343
 	}
344
+
345
+	/**
346
+	 * 附件路径
347
+	 * @return
348
+	 */
349
+	public String getFilePath() {
350
+		return filePath;
351
+	}
352
+
353
+	/**
354
+	 * 附件路径
355
+	 * @param filePath
356
+	 */
357
+	public void setFilePath(String filePath) {
358
+		this.filePath = filePath;
359
+	}
342 360
 }

+ 1 - 1
src/main/java/com/chinaitop/depot/basic/service/impl/BasicKeeperServiceImpl.java

@@ -371,7 +371,7 @@ public class BasicKeeperServiceImpl implements BasicKeeperService {
371 371
 				bke.setOrgId(orgId);
372 372
 				eduMapper.insertSelective(bke);
373 373
 			} else {
374
-				eduMapper.updateByPrimaryKeySelective(bke);
374
+				eduMapper.updateByPrimaryKey(bke);
375 375
 			}
376 376
 		}
377 377
 	}