Browse Source

好多更新

fanxw 1 year ago
parent
commit
8f288af927

+ 4 - 0
pom.xml

@@ -44,6 +44,10 @@
44 44
 			<groupId>org.springframework.cloud</groupId>
45 45
 			<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
46 46
 		</dependency>
47
+		<dependency>  
48
+		    <groupId>org.springframework.boot</groupId>  
49
+		    <artifactId>spring-boot-starter-security</artifactId>  
50
+		</dependency>
47 51
 		<!-- 引入spring boot自带的pagehelper插件 -->
48 52
 		<dependency>
49 53
 			<groupId>com.github.pagehelper</groupId>

+ 37 - 0
src/main/java/com/chinaitop/WebSecurityConfig.java

@@ -0,0 +1,37 @@
1
+package com.chinaitop;
2
+
3
+import org.springframework.context.annotation.Configuration;
4
+import org.springframework.security.config.annotation.web.builders.HttpSecurity;
5
+import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
6
+import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
7
+
8
+@Configuration
9
+@EnableWebSecurity
10
+public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
11
+
12
+	@Override
13
+    protected void configure(HttpSecurity http) throws Exception {
14
+		String[] urls = {
15
+                "*",
16
+                "/*",
17
+                "/*/*",
18
+                "/*/*/*",
19
+                "/*/*/*/*",
20
+                "/*/*/*/*/*/*",
21
+                "/login"
22
+        };
23
+
24
+		http.authorizeRequests().anyRequest().permitAll() //允许所有用户访问所有资源
25
+        .and()
26
+        .csrf().disable(); // 禁用CSRF(防止伪造的跨域攻击)
27
+
28
+//        super.configure(http);
29
+//        
30
+//        http.authorizeRequests() // 对请求执行认证与授权
31
+//                .antMatchers(urls) // 匹配某些请求路径
32
+//                .permitAll() // (对此前匹配的请求路径)不需要通过认证即允许访问
33
+//                .anyRequest() // 除以上配置过的请求路径以外的所有请求路径
34
+//                .authenticated(); // 要求是已经通过认证的
35
+//        super.configure(http);
36
+    }
37
+}

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

@@ -18,6 +18,9 @@
18 18
     <result column="sfwslzy" jdbcType="VARCHAR" property="sfwslzy" />
19 19
     <result column="zsbh" jdbcType="VARCHAR" property="zsbh" />
20 20
     <result column="rych" jdbcType="VARCHAR" property="rych" />
21
+    <result column="org_id" property="orgId" jdbcType="INTEGER"  />
22
+    <result column="fzywlx" jdbcType="VARCHAR" property="fzywlx" />
23
+    <result column="fzywsj" jdbcType="TIMESTAMP" property="fzywsj" />
21 24
   </resultMap>
22 25
   <sql id="Example_Where_Clause">
23 26
     <where>
@@ -79,7 +82,7 @@
79 82
   </sql>
80 83
   <sql id="Base_Column_List">
81 84
     id, keeper_id, datatype, type, occupation, college, department, education, degree, 
82
-    degree_detailed, rank, issue_facility, issue_time, sfwslzy, zsbh, rych
85
+    degree_detailed, rank, issue_facility, issue_time, sfwslzy, zsbh, rych, org_id, fzywlx, fzywsj
83 86
   </sql>
84 87
   <select id="selectByExample" parameterType="com.chinaitop.depot.basic.model.BasicKeeperEducationExample" resultMap="BaseResultMap">
85 88
     select
@@ -120,13 +123,13 @@
120 123
       department, education, degree, 
121 124
       degree_detailed, rank, issue_facility, 
122 125
       issue_time, sfwslzy, 
123
-      zsbh, rych)
126
+      zsbh, rych, org_id, fzywlx, fzywsj)
124 127
     values (#{id,jdbcType=INTEGER}, #{keeperId,jdbcType=INTEGER}, #{datatype,jdbcType=INTEGER}, 
125 128
       #{type,jdbcType=INTEGER}, #{occupation,jdbcType=INTEGER}, #{college,jdbcType=VARCHAR}, 
126 129
       #{department,jdbcType=VARCHAR}, #{education,jdbcType=INTEGER}, #{degree,jdbcType=INTEGER}, 
127 130
       #{degreeDetailed,jdbcType=INTEGER}, #{rank,jdbcType=INTEGER}, #{issueFacility,jdbcType=VARCHAR}, 
128 131
       #{issueTime,jdbcType=TIMESTAMP}, #{sfwslzy,jdbcType=VARCHAR}, 
129
-      #{zsbh,jdbcType=VARCHAR}, #{rych,jdbcType=VARCHAR})
132
+      #{zsbh,jdbcType=VARCHAR}, #{rych,jdbcType=VARCHAR}, #{org_id,jdbcType=INTEGER}, #{fzywlx,jdbcType=VARCHAR}, #{fzywsj,jdbcType=TIMESTAMP})
130 133
   </insert>
131 134
   <insert id="insertSelective" parameterType="com.chinaitop.depot.basic.model.BasicKeeperEducation">
132 135
     <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Integer">
@@ -182,6 +185,15 @@
182 185
       <if test="rych != null">
183 186
         rych,
184 187
       </if>
188
+      <if test="orgId != null">
189
+        org_id,
190
+      </if>
191
+      <if test="fzywlx != null">
192
+        fzywlx,
193
+      </if>
194
+      <if test="fzywsj != null">
195
+        fzywsj,
196
+      </if>
185 197
     </trim>
186 198
     <trim prefix="values (" suffix=")" suffixOverrides=",">
187 199
       <if test="id != null">
@@ -232,6 +244,15 @@
232 244
       <if test="rych != null">
233 245
         #{rych,jdbcType=VARCHAR},
234 246
       </if>
247
+      <if test="orgId != null">
248
+        #{orgId,jdbcType=INTEGER},
249
+      </if>
250
+      <if test="fzywlx != null">
251
+        #{fzywlx,jdbcType=VARCHAR},
252
+      </if>
253
+      <if test="fzywsj != null">
254
+        #{fzywsj,jdbcType=TIMESTAMP},
255
+      </if>
235 256
     </trim>
236 257
   </insert>
237 258
   <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicKeeperEducationExample" resultType="java.lang.Integer">
@@ -291,6 +312,15 @@
291 312
       <if test="record.rych != null">
292 313
         rych = #{record.rych,jdbcType=VARCHAR},
293 314
       </if>
315
+      <if test="record.orgId != null">
316
+        org_id = #{record.orgId,jdbcType=INTEGER},
317
+      </if>
318
+      <if test="record.fzywlx != null">
319
+        fzywlx = #{record.fzywlx,jdbcType=VARCHAR},
320
+      </if>
321
+      <if test="record.fzywsj != null">
322
+        fzywsj = #{record.fzywsj,jdbcType=TIMESTAMP},
323
+      </if>
294 324
     </set>
295 325
     <if test="_parameter != null">
296 326
       <include refid="Update_By_Example_Where_Clause" />
@@ -313,7 +343,10 @@
313 343
       issue_time = #{record.issueTime,jdbcType=TIMESTAMP},
314 344
       sfwslzy = #{record.sfwslzy,jdbcType=VARCHAR},
315 345
       zsbh = #{record.zsbh,jdbcType=VARCHAR},
316
-      rych = #{record.rych,jdbcType=VARCHAR}
346
+      rych = #{record.rych,jdbcType=VARCHAR},
347
+      org_id = #{record.orgId,jdbcType=INTEGER},
348
+      fzywlx = #{record.fzywlx,jdbcType=VARCHAR},
349
+      fzywsj = #{record.fzywsj,jdbcType=TIMESTAMP}
317 350
     <if test="_parameter != null">
318 351
       <include refid="Update_By_Example_Where_Clause" />
319 352
     </if>
@@ -366,6 +399,15 @@
366 399
       <if test="rych != null">
367 400
         rych = #{rych,jdbcType=VARCHAR},
368 401
       </if>
402
+      <if test="orgId != null">
403
+        org_id = #{orgId,jdbcType=INTEGER},
404
+      </if>
405
+      <if test="fzywlx != null">
406
+        fzywlx = #{fzywlx,jdbcType=VARCHAR},
407
+      </if>
408
+      <if test="fzywsj != null">
409
+        fzywsj = #{fzywsj,jdbcType=TIMESTAMP},
410
+      </if>
369 411
     </set>
370 412
     where id = #{id,jdbcType=INTEGER}
371 413
   </update>
@@ -385,7 +427,10 @@
385 427
       issue_time = #{issueTime,jdbcType=TIMESTAMP},
386 428
       sfwslzy = #{sfwslzy,jdbcType=VARCHAR},
387 429
       zsbh = #{zsbh,jdbcType=VARCHAR},
388
-      rych = #{rych,jdbcType=VARCHAR}
430
+      rych = #{rych,jdbcType=VARCHAR},
431
+      org_id = #{orgId,jdbcType=INTEGER},
432
+      fzywlx = #{fzywlx,jdbcType=VARCHAR},
433
+      fzywsj = #{fzywsj,jdbcType=TIMESTAMP}
389 434
     where id = #{id,jdbcType=INTEGER}
390 435
   </update>
391 436
 </mapper>

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

@@ -34,6 +34,13 @@
34 34
     <result column="sync_flag" jdbcType="VARCHAR" property="syncFlag" />
35 35
     <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
36 36
     <result column="sfsjjllg" jdbcType="VARCHAR" property="sfsjjllg" />
37
+    <result column="cjslqygzsj" jdbcType="TIMESTAMP" property="cjslqygzsj" />
38
+    <result column="cjgzsj" jdbcType="TIMESTAMP" property="cjgzsj" />
39
+    <result column="mz" jdbcType="INTEGER" property="mz" />
40
+    <result column="zw" jdbcType="VARCHAR" property="zw" />
41
+    <result column="zgzt" jdbcType="INTEGER" property="zgzt" />
42
+    <result column="cyfzr" property="cyfzr" jdbcType="VARCHAR" />
43
+    <result column="gwxz" property="gwxz" jdbcType="VARCHAR" />
37 44
   </resultMap>
38 45
   <sql id="Example_Where_Clause">
39 46
     <where>
@@ -97,7 +104,8 @@
97 104
     id, user_Id, post_type, name, user_alias, dept_id, org_id, sex, id_card, phone, birthday, 
98 105
     email, work_Year, entry_time, employee_nature, handover_Date, input_Person_Id, input_Date, 
99 106
     edit_Person_Id, edit_Date, house_id, province_Id, city_Id, grain_Id, depot_name, 
100
-    avator_Url, nation, isdepartment_time, political, sync_flag, del_flag, sfsjjllg
107
+    avator_Url, nation, isdepartment_time, political, sync_flag, del_flag, sfsjjllg, cjslqygzsj,
108
+    cjgzsj, zw, mz, zgzt, gwxz, cyfzr
101 109
   </sql>
102 110
   <select id="selectByExample" parameterType="com.chinaitop.depot.basic.model.BasicKeeperExample" resultMap="BaseResultMap">
103 111
     select
@@ -143,7 +151,7 @@
143 151
       province_Id, city_Id, grain_Id, 
144 152
       depot_name, avator_Url, nation, 
145 153
       isdepartment_time, political, sync_flag, 
146
-      del_flag, sfsjjllg)
154
+      del_flag, sfsjjllg, cjslqygzsj, cjgzsj, zw, mz, zgzt, gwxz, cyfzr)
147 155
     values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{postType,jdbcType=INTEGER}, 
148 156
       #{name,jdbcType=VARCHAR}, #{userAlias,jdbcType=VARCHAR}, #{deptId,jdbcType=INTEGER}, 
149 157
       #{orgId,jdbcType=INTEGER}, #{sex,jdbcType=INTEGER}, #{idCard,jdbcType=VARCHAR}, 
@@ -154,7 +162,9 @@
154 162
       #{provinceId,jdbcType=INTEGER}, #{cityId,jdbcType=INTEGER}, #{grainId,jdbcType=INTEGER}, 
155 163
       #{depotName,jdbcType=VARCHAR}, #{avatorUrl,jdbcType=VARCHAR}, #{nation,jdbcType=INTEGER}, 
156 164
       #{isdepartmentTime,jdbcType=TIMESTAMP}, #{political,jdbcType=INTEGER}, #{syncFlag,jdbcType=VARCHAR}, 
157
-      #{delFlag,jdbcType=INTEGER}, #{sfsjjllg,jdbcType=VARCHAR})
165
+      #{delFlag,jdbcType=INTEGER}, #{sfsjjllg,jdbcType=VARCHAR}, #{cjslqygzsj,jdbcType=TIMESTAMP},
166
+      #{cjgzsj,jdbcType=TIMESTAMP}, #{zw,jdbcType=VARCHAR}, #{mz,jdbcType=INTEGER}, #{zgzt,jdbcType=INTEGER},
167
+      #{gwxz,jdbcType=VARCHAR}, #{cyfzr,jdbcType=VARCHAR})
158 168
   </insert>
159 169
   <insert id="insertSelective" keyProperty="id" useGeneratedKeys="true" parameterType="com.chinaitop.depot.basic.model.BasicKeeper">
160 170
     <selectKey keyProperty="id" resultType="java.lang.Integer" order="BEFORE">
@@ -258,6 +268,27 @@
258 268
       <if test="sfsjjllg != null">
259 269
         sfsjjllg,
260 270
       </if>
271
+      <if test="cjslqygzsj != null">
272
+        cjslqygzsj,
273
+      </if>
274
+      <if test="cjgzsj != null">
275
+        cjgzsj,
276
+      </if>
277
+      <if test="zw != null">
278
+        zw,
279
+      </if>
280
+      <if test="mz != null">
281
+        mz,
282
+      </if>
283
+      <if test="zgzt != null">
284
+        zgzt,
285
+      </if>
286
+      <if test="gwxz != null">
287
+        gwxz,
288
+      </if>
289
+      <if test="cyfzr != null">
290
+        cyfzr,
291
+      </if>
261 292
     </trim>
262 293
     <trim prefix="values (" suffix=")" suffixOverrides=",">
263 294
       <if test="id != null">
@@ -356,6 +387,27 @@
356 387
       <if test="sfsjjllg != null">
357 388
         #{sfsjjllg,jdbcType=VARCHAR},
358 389
       </if>
390
+      <if test="cjslqygzsj != null">
391
+        #{cjslqygzsj,jdbcType=TIMESTAMP},
392
+      </if>
393
+      <if test="cjgzsj != null">
394
+        #{cjgzsj,jdbcType=TIMESTAMP},
395
+      </if>
396
+      <if test="zw != null">
397
+        #{zw,jdbcType=VARCHAR},
398
+      </if>
399
+      <if test="mz != null">
400
+        #{mz,jdbcType=INTEGER},
401
+      </if>
402
+      <if test="zgzt != null">
403
+        #{zgzt,jdbcType=INTEGER},
404
+      </if>
405
+      <if test="gwxz != null">
406
+        #{gwxz,jdbcType=VARCHAR},
407
+      </if>
408
+      <if test="cyfzr != null">
409
+        #{cyfzr,jdbcType=VARCHAR},
410
+      </if>
359 411
     </trim>
360 412
   </insert>
361 413
   <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicKeeperExample" resultType="java.lang.Integer">
@@ -463,6 +515,27 @@
463 515
       <if test="record.sfsjjllg != null">
464 516
         sfsjjllg = #{record.sfsjjllg,jdbcType=VARCHAR},
465 517
       </if>
518
+      <if test="record.cjslqygzsj != null">
519
+        cjslqygzsj = #{record.cjslqygzsj,jdbcType=TIMESTAMP},
520
+      </if>
521
+      <if test="record.cjgzsj != null">
522
+        cjgzsj = #{record.cjgzsj,jdbcType=TIMESTAMP},
523
+      </if>
524
+      <if test="record.zw != null">
525
+        zw = #{record.zw,jdbcType=VARCHAR},
526
+      </if>
527
+      <if test="record.mz != null">
528
+        mz = #{record.mz,jdbcType=INTEGER},
529
+      </if>
530
+      <if test="record.zgzt != null">
531
+        zgzt = #{record.zgzt,jdbcType=INTEGER},
532
+      </if>
533
+      <if test="record.gwxz != null">
534
+        gwxz = #{record.gwxz,jdbcType=VARCHAR},
535
+      </if>
536
+      <if test="record.cyfzr != null">
537
+        cyfzr = #{record.cyfzr,jdbcType=VARCHAR},
538
+      </if>
466 539
     </set>
467 540
     <if test="_parameter != null">
468 541
       <include refid="Update_By_Example_Where_Clause" />
@@ -501,7 +574,14 @@
501 574
       political = #{record.political,jdbcType=INTEGER},
502 575
       sync_flag = #{record.syncFlag,jdbcType=VARCHAR},
503 576
       del_flag = #{record.delFlag,jdbcType=INTEGER},
504
-      sfsjjllg = #{record.sfsjjllg,jdbcType=VARCHAR}
577
+      sfsjjllg = #{record.sfsjjllg,jdbcType=VARCHAR},
578
+      cjslqygzsj = #{record.cjslqygzsj,jdbcType=TIMESTAMP},
579
+      cjgzsj = #{record.cjgzsj,jdbcType=TIMESTAMP},
580
+      zw = #{record.zw,jdbcType=VARCHAR},
581
+      mz = #{record.mz,jdbcType=INTEGER},
582
+      zgzt = #{record.zgzt,jdbcType=INTEGER},
583
+      gwxz = #{record.gwxz,jdbcType=VARCHAR},
584
+      cyfzr = #{record.cyfzr,jdbcType=VARCHAR}
505 585
     <if test="_parameter != null">
506 586
       <include refid="Update_By_Example_Where_Clause" />
507 587
     </if>
@@ -602,6 +682,27 @@
602 682
       <if test="sfsjjllg != null">
603 683
         sfsjjllg = #{sfsjjllg,jdbcType=VARCHAR},
604 684
       </if>
685
+      <if test="cjslqygzsj != null">
686
+        cjslqygzsj = #{cjslqygzsj,jdbcType=TIMESTAMP},
687
+      </if>
688
+      <if test="cjgzsj != null">
689
+        cjgzsj = #{cjgzsj,jdbcType=TIMESTAMP},
690
+      </if>
691
+      <if test="zw != null">
692
+        zw = #{zw,jdbcType=VARCHAR},
693
+      </if>
694
+      <if test="mz != null">
695
+        mz = #{mz,jdbcType=INTEGER},
696
+      </if>
697
+      <if test="zgzt != null">
698
+        zgzt = #{zgzt,jdbcType=INTEGER},
699
+      </if>
700
+      <if test="gwxz != null">
701
+        gwxz = #{gwxz,jdbcType=VARCHAR},
702
+      </if>
703
+      <if test="cyfzr != null">
704
+        cyfzr = #{cyfzr,jdbcType=VARCHAR},
705
+      </if>
605 706
     </set>
606 707
     where id = #{id,jdbcType=INTEGER}
607 708
   </update>
@@ -637,7 +738,14 @@
637 738
       political = #{political,jdbcType=INTEGER},
638 739
       sync_flag = #{syncFlag,jdbcType=VARCHAR},
639 740
       del_flag = #{delFlag,jdbcType=INTEGER},
640
-      sfsjjllg = #{sfsjjllg,jdbcType=VARCHAR}
741
+      sfsjjllg = #{sfsjjllg,jdbcType=VARCHAR},
742
+      cjslqygzsj = #{cjslqygzsj,jdbcType=TIMESTAMP},
743
+      cjgzsj = #{cjgzsj,jdbcType=TIMESTAMP},
744
+      zw = #{zw,jdbcType=VARCHAR},
745
+      mz = #{mz,jdbcType=INTEGER},
746
+      zgzt = #{zgzt,jdbcType=INTEGER},
747
+      gwxz = #{gwxz,jdbcType=VARCHAR},
748
+      cyfzr = #{cyfzr,jdbcType=VARCHAR}
641 749
     where id = #{id,jdbcType=INTEGER}
642 750
   </update>
643 751
 

+ 119 - 5
src/main/java/com/chinaitop/depot/basic/model/BasicKeeper.java

@@ -2,6 +2,8 @@ package com.chinaitop.depot.basic.model;
2 2
 
3 3
 import java.util.Date;
4 4
 
5
+import com.fasterxml.jackson.annotation.JsonFormat;
6
+
5 7
 public class BasicKeeper {
6 8
     private Integer id;
7 9
 
@@ -29,8 +31,10 @@ public class BasicKeeper {
29 31
 
30 32
     private Integer workYear;
31 33
 
34
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
32 35
     private Date entryTime;
33 36
 
37
+    //人员类别
34 38
     private Integer employeeNature;
35 39
 
36 40
     private Date handoverDate;
@@ -64,8 +68,22 @@ public class BasicKeeper {
64 68
     private String syncFlag;
65 69
 
66 70
     private Integer delFlag;
67
-
71
+    //是否设计交流轮岗
68 72
     private String sfsjjllg;
73
+    //名族
74
+    private Integer mz;
75
+    //职务
76
+    private String zw;
77
+    //在岗状态
78
+    private String zgzt;
79
+    //岗位性质
80
+    private String gwxz;
81
+    //参加涉粮企业工作时间
82
+    private Date cjslqygzsj;
83
+    //参加工作时间
84
+    private Date cjgzsj;
85
+    //关键部门负责人
86
+    private String cyfzr;
69 87
 
70 88
     //业务字段
71 89
     private String keeperNames;
@@ -295,16 +313,16 @@ public class BasicKeeper {
295 313
     }
296 314
 
297 315
     /**
298
-     * 职员性质
299
-     * @return employee_nature 职员性质
316
+     * 人员类别
317
+     * @return employee_nature 人员类别
300 318
      */
301 319
     public Integer getEmployeeNature() {
302 320
         return employeeNature;
303 321
     }
304 322
 
305 323
     /**
306
-     * 职员性质
307
-     * @param employeeNature 职员性质
324
+     * 人员类别
325
+     * @param employeeNature 人员类别
308 326
      */
309 327
     public void setEmployeeNature(Integer employeeNature) {
310 328
         this.employeeNature = employeeNature;
@@ -590,4 +608,100 @@ public class BasicKeeper {
590 608
 		this.sfsjjllg = sfsjjllg;
591 609
 	}
592 610
 
611
+	/**
612
+	 * 名族
613
+	 * @return
614
+	 */
615
+	public Integer getMz() {
616
+		return mz;
617
+	}
618
+
619
+	/**
620
+	 * 名族
621
+	 * @param mz
622
+	 */
623
+	public void setMz(Integer mz) {
624
+		this.mz = mz;
625
+	}
626
+
627
+	/**
628
+	 * 职务
629
+	 * @return
630
+	 */
631
+	public String getZw() {
632
+		return zw;
633
+	}
634
+
635
+	/**
636
+	 * 职务
637
+	 * @param zw
638
+	 */
639
+	public void setZw(String zw) {
640
+		this.zw = zw;
641
+	}
642
+
643
+	/**
644
+	 * 在岗状态
645
+	 * @return
646
+	 */
647
+	public String getZgzt() {
648
+		return zgzt;
649
+	}
650
+
651
+	/**
652
+	 * 在岗状态
653
+	 * @param zgzt
654
+	 */
655
+	public void setZgzt(String zgzt) {
656
+		this.zgzt = zgzt;
657
+	}
658
+
659
+	/**
660
+	 * 岗位性质
661
+	 * @return
662
+	 */
663
+	public String getGwxz() {
664
+		return gwxz;
665
+	}
666
+
667
+	/**
668
+	 * 岗位性质
669
+	 * @param gwxz
670
+	 */
671
+	public void setGwxz(String gwxz) {
672
+		this.gwxz = gwxz;
673
+	}
674
+
675
+	/**
676
+	 * 参加涉粮企业工作时间
677
+	 * @return
678
+	 */
679
+	public Date getCjslqygzsj() {
680
+		return cjslqygzsj;
681
+	}
682
+
683
+	/**
684
+	 * 参加涉粮企业工作时间
685
+	 * @param cjslqygzsj
686
+	 */
687
+	public void setCjslqygzsj(Date cjslqygzsj) {
688
+		this.cjslqygzsj = cjslqygzsj;
689
+	}
690
+
691
+	/**
692
+	 * 参加工作时间
693
+	 * @return
694
+	 */
695
+	public Date getCjgzsj() {
696
+		return cjgzsj;
697
+	}
698
+
699
+	/**
700
+	 * 参加工作时间
701
+	 * @param cjgzsj
702
+	 */
703
+	public void setCjgzsj(Date cjgzsj) {
704
+		this.cjgzsj = cjgzsj;
705
+	}
706
+
593 707
 }

+ 53 - 4
src/main/java/com/chinaitop/depot/basic/model/BasicKeeperEducation.java

@@ -2,6 +2,8 @@ package com.chinaitop.depot.basic.model;
2 2
 
3 3
 import java.util.Date;
4 4
 
5
+import com.fasterxml.jackson.annotation.JsonFormat;
6
+
5 7
 public class BasicKeeperEducation {
6 8
     private Integer id;
7 9
 
@@ -34,6 +36,13 @@ public class BasicKeeperEducation {
34 36
     private String zsbh;
35 37
 
36 38
     private String rych;
39
+    
40
+    private Integer orgId;
41
+
42
+    private String fzywlx;
43
+
44
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
45
+    private Date fzywsj;
37 46
 
38 47
     /**
39 48
      * 
@@ -68,16 +77,16 @@ public class BasicKeeperEducation {
68 77
     }
69 78
 
70 79
     /**
71
-     * 数据类型(1.学历学位信息,2.专业技术职称,3.职业资格及等级,4.上岗证)
72
-     * @return dataType 数据类型(1.学历学位信息,2.专业技术职称,3.职业资格及等级,4.上岗证)
80
+     * 数据类型(1.学历学位信息,2.技能等级,3.职称和荣誉称号,4.上岗及其他证书,5.交流轮岗)
81
+     * @return dataType 数据类型(1.学历学位信息,2.技能等级,3.职称和荣誉称号,4.上岗及其他证书,5.交流轮岗)
73 82
      */
74 83
     public Integer getDatatype() {
75 84
         return datatype;
76 85
     }
77 86
 
78 87
     /**
79
-     * 数据类型(1.学历学位信息,2.专业技术职称,3.职业资格及等级,4.上岗证)
80
-     * @param datatype 数据类型(1.学历学位信息,2.专业技术职称,3.职业资格及等级,4.上岗证)
88
+     * 数据类型(1.学历学位信息,2.技能等级,3.职称和荣誉称号,4.上岗及其他证书,5.交流轮岗)
89
+     * @param datatype 数据类型(1.学历学位信息,2.技能等级,3.职称和荣誉称号,4.上岗及其他证书,5.交流轮岗)
81 90
      */
82 91
     public void setDatatype(Integer datatype) {
83 92
         this.datatype = datatype;
@@ -290,4 +299,44 @@ public class BasicKeeperEducation {
290 299
 	public void setRych(String rych) {
291 300
 		this.rych = rych;
292 301
 	}
302
+
303
+	public Integer getOrgId() {
304
+		return orgId;
305
+	}
306
+
307
+	public void setOrgId(Integer orgId) {
308
+		this.orgId = orgId;
309
+	}
310
+
311
+	/**
312
+	 * 负责(分管)业务类型
313
+	 * @return
314
+	 */
315
+	public String getFzywlx() {
316
+		return fzywlx;
317
+	}
318
+
319
+	/**
320
+	 * 负责(分管)业务类型
321
+	 * @param fzywlx
322
+	 */
323
+	public void setFzywlx(String fzywlx) {
324
+		this.fzywlx = fzywlx;
325
+	}
326
+
327
+	/**
328
+	 * 负责(分管)业务时间
329
+	 * @return
330
+	 */
331
+	public Date getFzywsj() {
332
+		return fzywsj;
333
+	}
334
+
335
+	/**
336
+	 * 负责(分管)业务时间
337
+	 * @param fzywsj
338
+	 */
339
+	public void setFzywsj(Date fzywsj) {
340
+		this.fzywsj = fzywsj;
341
+	}
293 342
 }

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

@@ -356,7 +356,7 @@ public class BasicWarehouseServiceImpl implements BasicWarehouseService {
356 356
 			criteria.andIdEqualTo(sptDataId);
357 357
 			BasicTank basicTank = bankMapper.selectByPrimaryKey(sptDataId);
358 358
 			if(null != basicTank){
359
-				houseId = Integer.parseInt(sptDataId);
359
+				houseId = Integer.parseInt(basicTank.getId());
360 360
 				wareHouseId = houseId;
361 361
 				orgId = basicTank.getOrgId();
362 362
 			}

+ 11 - 4
src/main/resources/bootstrap.yml

@@ -7,11 +7,12 @@ server:
7 7
 eureka:
8 8
   client:
9 9
     service-url:
10
-      defaultZone: http://localhost:9001/eureka/
10
+      defaultZone: http://tj_admin:Admin_1234@${eureka.instance.hostname}:9001/eureka/
11 11
     #register-with-eureka: false
12 12
     #fetchRegistry: false
13 13
   instance:
14 14
     hostname: 172.16.0.16
15
+    #hostname: localhost
15 16
     #prefer-ip-address: true
16 17
     # 每隔10s发送一次心跳(默认30s)
17 18
     lease-renewal-interval-in-seconds: 10
@@ -22,6 +23,12 @@ eureka:
22 23
 mybatis:
23 24
   config-location: classpath:mybatis/mybatis-config.xml
24 25
 
26
+management:
27
+  server:
28
+    port: -1
29
+  #endpoints:
30
+    #enabled-by-default: false
31
+
25 32
 spring:
26 33
   application:
27 34
     name: depot-basic
@@ -32,9 +39,9 @@ spring:
32 39
     url: jdbc:gbasedbt-sqli://101.36.160.140:19089/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GB18030,GB18030-2000,5488;DB_LOCALE=zh_cn.GB18030-2000;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
33 40
     username: gbasedbt
34 41
     password: cDbK2S0go8
35
-    #url: jdbc:gbasedbt-sqli://111.164.113.172:666/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GBK,8859-1,819;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
42
+    #url: jdbc:gbasedbt-sqli://10.223.3.63:9088/depot:GBASEDBTSERVER=gbaseserver2;DB_LOCALE=zh_CN.utf8;CLIENT_LOCALE=zh_CN.utf8;NEWCODESET=UTF8,utf8,57372;GL_USEGLU=1;
36 43
     #username: gbasedbt
37
-    #password: GBase123
44
+    #password: 4E7#8x8Yut
38 45
   # 缓存配置
39 46
   session:
40 47
     store-type: redis
@@ -77,7 +84,7 @@ cxf:
77 84
 
78 85
 web:
79 86
   #upload-path: D:/upload
80
-  upload-path: /home/depot/depot-web/apache-tomcat-8.0.53/webapps/ROOT/WEB-INF/classes/static
87
+  upload-path: /home/depot/depot-web/depot-file
81 88
 
82 89
 logging:
83 90
   level: