Selaa lähdekoodia

员工信息-01

hanqingsong 1 vuosi sitten
vanhempi
commit
a8e5fd5679

+ 4 - 0
pom.xml

@@ -169,6 +169,10 @@
169 169
 			<groupId>org.springframework.cloud</groupId>
170 170
 			<artifactId>spring-cloud-starter-openfeign</artifactId>
171 171
 		</dependency>
172
+		<dependency>
173
+			<groupId>org.projectlombok</groupId>
174
+			<artifactId>lombok</artifactId>
175
+		</dependency>
172 176
 	</dependencies>
173 177
 
174 178
 	<dependencyManagement>

+ 43 - 0
src/main/java/com/chinaitop/depot/basic/controller/DRyxxsjyController.java

@@ -0,0 +1,43 @@
1
+package com.chinaitop.depot.basic.controller;
2
+
3
+import com.chinaitop.depot.basic.model.DRyxxsjyVO;
4
+import com.chinaitop.depot.basic.param.DRyxxsjyPageParam;
5
+import com.chinaitop.depot.basic.service.DRyxxsjyService;
6
+import com.github.pagehelper.PageHelper;
7
+import com.github.pagehelper.PageInfo;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import org.springframework.web.bind.annotation.GetMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+
15
+import javax.annotation.Resource;
16
+import javax.validation.Valid;
17
+
18
+/**
19
+ * @author qingsong.han
20
+ * @description: 查询员工信息-市平台
21
+ * @create 2024-11-21 17:44
22
+ */
23
+@RestController
24
+@RequestMapping(value = "/DRyxxsjyController")
25
+@Api(value= "DRyxxsjyController", description = "员工信息管理")
26
+public class DRyxxsjyController {
27
+    @Resource
28
+    private DRyxxsjyService dRyxxsjyService;
29
+
30
+    @GetMapping("/getPageList")
31
+    @ApiOperation(value="查询员工信息列表", notes = "支持分页")
32
+    public PageInfo<DRyxxsjyVO> getPageList(@Valid DRyxxsjyPageParam pageParam) {
33
+        PageHelper.startPage(pageParam.getPageNum(), pageParam.getPageSize());
34
+        return new PageInfo<>(dRyxxsjyService.getPageList(pageParam));
35
+    }
36
+
37
+    @GetMapping("/getById/{rybh}")
38
+    @ApiOperation(value="查询员工信息详情", notes = "rybh")
39
+    public DRyxxsjyVO getById(@PathVariable("rybh") String rybh) {
40
+        return dRyxxsjyService.getById(rybh);
41
+    }
42
+
43
+}

+ 34 - 0
src/main/java/com/chinaitop/depot/basic/mapper/DRyxxsjyMapper.java

@@ -0,0 +1,34 @@
1
+package com.chinaitop.depot.basic.mapper;
2
+
3
+import com.chinaitop.depot.basic.model.DRyxxsjyVO;
4
+import com.chinaitop.depot.basic.model.vo.*;
5
+import com.chinaitop.depot.basic.param.DRyxxsjyPageParam;
6
+import org.springframework.stereotype.Repository;
7
+
8
+import java.util.List;
9
+
10
+/**
11
+ * @author qingsong.han
12
+ * @description:
13
+ * @create 2024-11-21 20:06
14
+ */
15
+@Repository
16
+public interface DRyxxsjyMapper {
17
+    List<DRyxxsjyVO> getPageList(DRyxxsjyPageParam pageParam);
18
+
19
+    DRyxxsjyVO getById(String rybh);
20
+
21
+    List<EducationVO> getQuanById(String rybh);
22
+
23
+    List<FeiEducationVO> getFeiById(String rybh);
24
+
25
+    List<RotaterotateVO> getRotaterotateById(String rybh);
26
+
27
+    List<SkillVO> getSkillListById(String rybh);
28
+
29
+    List<ReportVO> getReportListById(String rybh);
30
+
31
+    List<CertificatesVO> getCertificatesListById(String rybh);
32
+
33
+    List<ZwlxbgjlVO> getZwlxbgjlListById(String sfzh);
34
+}

+ 138 - 0
src/main/java/com/chinaitop/depot/basic/mapper/DRyxxsjyMapper.xml

@@ -0,0 +1,138 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.chinaitop.depot.basic.mapper.DRyxxsjyMapper">
4
+    <select id="getPageList" parameterType="com.chinaitop.depot.basic.param.DRyxxsjyPageParam" resultType="com.chinaitop.depot.basic.model.DRyxxsjyVO">
5
+        select
6
+            ry.rybh,
7
+            ry.ryxm,
8
+            ry.xb,
9
+            ry.lxdh,
10
+            zwlx.zwlx,
11
+            ry.qymc
12
+        from
13
+          base:d_ryxxsjy ry
14
+        left join base:d_ryzwlxb zwlx on zwlx.rysfzh = ry.sfzh and zwlx.qymc = ry.qymc
15
+        left join base:d_kdxxsjy kd on ry.kddm = kd.kddm
16
+        inner join org_info oi on kd.kqdm = oi.kqbm
17
+        <where>
18
+            oi.org_id = #{orgId}
19
+            and ry.status = 1
20
+            and ry.newly = 1
21
+            <if test="ryxm != null and ryxm != ''">
22
+                ry.ryxm like '%'||#{ryxm}||'%'
23
+            </if>
24
+        </where>
25
+        order by
26
+            ry.RYBH desc
27
+    </select>
28
+    <select id="getById" parameterType="string" resultType="com.chinaitop.depot.basic.model.DRyxxsjyVO">
29
+        select
30
+           ry.sfzh,
31
+           ry.ryxm,
32
+           zwlx.zwlx,
33
+           ry.xb,
34
+           ry.mz,
35
+           ry.zzmm,
36
+           ry.lxdh,
37
+           ry.bmmc,
38
+           ry.zwmc,
39
+           zwlx.zgzt,
40
+           ry.rylb,
41
+           ry.gwxz,
42
+           ry.gwdm,
43
+           ry.rzrq,
44
+           ry.cjslqygzsj,
45
+           ry.cjgzsj,
46
+           ry.zgzc,
47
+           ry.zgzctqsj,
48
+           ry.rotaterotate_type rotaterotateType,
49
+           ry.head
50
+        from
51
+            base:d_ryxxsjy ry
52
+        left join base:d_ryzwlxb zwlx on zwlx.rysfzh = ry.sfzh and zwlx.qymc = ry.qymc
53
+        where ry.rybh = #{rybh}
54
+    </select>
55
+    <select id="getQuanById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.EducationVO">
56
+        select
57
+            quan_highest_education quanHighestEducation,
58
+            quan_institutions quanInstitutions,
59
+            quan_speciality quanSpeciality,
60
+            quan_foodstuff quanFoodstuff
61
+        from
62
+            base:d_education
63
+        where rybh = #{rybh}
64
+    </select>
65
+    <select id="getFeiById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.FeiEducationVO">
66
+        select
67
+            fei_highest_education feiHighestEducation,
68
+            fei_institutions feiInstitutions,
69
+            fei_speciality feiSpeciality,
70
+            fei_foodstuff feiFoodstuff
71
+        from
72
+            base:d_feieducation
73
+        where
74
+            rybh = #{rybh}
75
+    </select>
76
+    <select id="getRotaterotateById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.RotaterotateVO">
77
+        select
78
+            business_type businessType,
79
+            business_time businessTime,
80
+            serial_number serialNumber
81
+        from
82
+            base:d_rotaterotate
83
+        where
84
+            rybh = #{rybh}
85
+    </select>
86
+    <select id="getSkillListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.SkillVO">
87
+        select
88
+            skill_level skillLevel,
89
+            skill_name skillName,
90
+            skill_date skillDate
91
+        from
92
+            base:d_skill
93
+        where
94
+            rybh = #{rybh}
95
+    </select>
96
+    <select id="getReportListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.ReportVO">
97
+        select
98
+            honorary_name honoraryName,
99
+            title,
100
+            report_number reportNumber,
101
+            authoritys,
102
+            release_time releaseTime,
103
+            honorary_title honoraryTitle,
104
+            report_name reportName,
105
+            occupation,
106
+            fjid
107
+        from
108
+            base:d_report
109
+        where
110
+            rybh = #{rybh}
111
+    </select>
112
+    <select id="getCertificatesListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.CertificatesVO">
113
+        select
114
+            speciality,
115
+            issuefacility,
116
+            acquisition_time acquisitionTime,
117
+            fjid
118
+        from
119
+            base:d_certificates
120
+        where
121
+            rybh = #{rybh}
122
+    </select>
123
+    <select id="getZwlxbgjlListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.ZwlxbgjlVO">
124
+        select
125
+            zw.bgqzzdwmc,
126
+            zwlx.zwlx zwlxQ,
127
+            zw.bghzzdwmc,
128
+            zwlx1.zwlx zwlxH,
129
+            zw.bgr,
130
+            zw.bgfsrq
131
+        from
132
+            base:d_zwlxbgjl zw
133
+            left join base:d_ryzwlxb zwlx on zwlx.rysfzh = zw.bgqzzdwtyshxydm and zwlx.tyshxydm = zw.bgqzzdwtyshxydm
134
+            left join base:d_ryzwlxb zwlx1 on zwlx1.rysfzh = zw.bgqzzdwtyshxydm and zwlx1.tyshxydm = zw.bgqzzdwtyshxydm
135
+        where
136
+            zw.rysfzh = #{sfzh}
137
+    </select>
138
+</mapper>

+ 338 - 0
src/main/java/com/chinaitop/depot/basic/model/DRyxxsjyVO.java

@@ -0,0 +1,338 @@
1
+package com.chinaitop.depot.basic.model;
2
+
3
+import java.util.Date;
4
+import java.util.List;
5
+
6
+import com.chinaitop.depot.basic.model.vo.*;
7
+import com.fasterxml.jackson.annotation.JsonFormat;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Getter;
11
+import lombok.Setter;
12
+import org.springframework.format.annotation.DateTimeFormat;
13
+
14
+
15
+/**
16
+ * @author qingsong.han
17
+ * @description: 查询员工信息-市平台
18
+ * @create 2024-11-21 17:44
19
+ */
20
+
21
+@SuppressWarnings("serial")
22
+@Getter
23
+@Setter
24
+@ApiModel("人员信息实体类")
25
+public class DRyxxsjyVO {
26
+
27
+	/**
28
+	 * 人员编号(库点编码+001 三位序号)
29
+	 */
30
+	@ApiModelProperty(value = "人员编号",example = "eg:911202236794497949086020  长度30")
31
+	private String rybh;
32
+
33
+	/**
34
+	 * 人员姓名
35
+	 */
36
+	@ApiModelProperty(value = "人员姓名",example = "eg:罗济亚  长度20")
37
+	private String ryxm;
38
+	/**
39
+	 * 所属库点编号
40
+	 */
41
+	@ApiModelProperty(value = "库点编号",example = "eg:911202236794497949086  长度30")
42
+	private String kddm;
43
+
44
+	/**
45
+	 * 所属库点名称
46
+	 */
47
+	@ApiModelProperty(value = "库点名称")
48
+	private String kdmc;
49
+
50
+	/**
51
+	 *身份证号
52
+	 */
53
+	@ApiModelProperty(value = "身份证号",example = "eg:911202236794497949086  长度18")
54
+	private String sfzh;
55
+
56
+	/**
57
+	 *  性别
58
+	 */
59
+	@ApiModelProperty(value = "性别",example = "eg:男  长度6")
60
+	private String xb;
61
+
62
+	/**
63
+	 * 籍贯
64
+	 */
65
+	@ApiModelProperty(value = "籍贯",example = "eg:籍贯  长度64")
66
+	private String jg;
67
+
68
+	/**
69
+	 * 民族
70
+	 */
71
+	@ApiModelProperty(value = "民族",example = "eg:汉  长度30")
72
+	private String mz;
73
+
74
+	/**
75
+	 * 出生时间
76
+	 */
77
+	@ApiModelProperty(value = "出生时间",example = "eg:911202236794497949086  长度30")
78
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
79
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
80
+	private Date cssj;
81
+
82
+	/**
83
+	 * 参加工作时间
84
+	 */
85
+	@ApiModelProperty(value = "参加工作时间",example = "eg:911202236794497949086  长度30")
86
+	@DateTimeFormat(pattern = "yyyy-MM-dd")
87
+	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
88
+	private Date cjgzsj;
89
+
90
+	/**
91
+	 * 文化程度,40:高中,41:中专,42:大专,43:本科,44:研究生,45:博士,46:博士后
92
+	 */
93
+	@ApiModelProperty(value = "文化程度,40:高中,41:中专,42:大专,43:本科,44:研究生,45:博士,46:博士后",example = "eg:本科  长度20")
94
+	private Integer whcd;
95
+
96
+	/**
97
+	 * 学习专业
98
+	 */
99
+	@ApiModelProperty(value = "学习专业",example = "eg:管理专业  长度20")
100
+	private String xxzy;
101
+
102
+	/**
103
+	 * 政治面貌,111:共产党员,112:共青团员,113:民主党派,114:群众
104
+	 */
105
+	@ApiModelProperty(value = " 政治面貌,111:共产党员,112:共青团员,113:民主党派,114:群众",example = "eg:党员  长度20")
106
+	private String zzmm;
107
+
108
+	/**
109
+	 * 职务代码
110
+	 */
111
+	@ApiModelProperty(value = "职务代码",example = "eg:911202236  长度18")
112
+	private String zwdm;
113
+
114
+	/**
115
+	 * 职务名称
116
+	 */
117
+	@ApiModelProperty(value = " 职务名称",example = "eg:管理岗位  长度64")
118
+	private String zwmc;
119
+
120
+	/**
121
+	 * 部门编码
122
+	 */
123
+	@ApiModelProperty(value = "部门编码",example = "eg:911202236794497949086  长度30")
124
+	private String bmdm;
125
+
126
+	/**
127
+	 * 部门班代码
128
+	 */
129
+	@ApiModelProperty(value = "部门班代码",example = "eg:adasd  长度6")
130
+	private String bmbdm;
131
+
132
+	/**
133
+	 * 部门组代码
134
+	 */
135
+	@ApiModelProperty(value = "部门组代码",example = "eg:asdasd  长度6")
136
+	private String bmzdm;
137
+
138
+	/**
139
+	 * 在岗情况代码
140
+	 */
141
+	@ApiModelProperty(value = "在岗情况代码",example = "eg:9112022367  长度18")
142
+	private String zgqkdm;
143
+
144
+	/**
145
+	 * 岗位代码,11:后勤,12:业务,13:财务,14:统计,15:仓储,16:化验,17:管理,18:防治,19:保安,20:其他
146
+	 */
147
+	@ApiModelProperty("岗位代码,11:后勤,12:业务,13:财务,14:统计,15:仓储,16:化验,17:管理,18:防治,19:保安,20:其他")
148
+	private Integer gwdm;
149
+
150
+	/**
151
+	 * 技术职称代码,401:仓储管理员,402:农产品检验员,403:其他
152
+	 */
153
+	@ApiModelProperty(value = "技术职称代码,401:仓储管理员,402:农产品检验员,403:其他",example = "eg:7949086  长度18")
154
+	private String jszcdm;
155
+
156
+	/**
157
+	 * 技术职称
158
+	 */
159
+	@ApiModelProperty(value = "技术职称",example = "eg:string  长度30")
160
+	private String jszcmc;
161
+
162
+	/**
163
+	 *联系电话
164
+	 */
165
+	@ApiModelProperty(value = "联系电话",example = "eg:911202236794  长度30")
166
+	private String lxdh;
167
+
168
+	/**
169
+	 * 具备证书
170
+	 */
171
+	@ApiModelProperty(value = "具备证书",example = "eg:911202236794497949086  长度200")
172
+	private String jbzs;
173
+
174
+	/**
175
+	 * 发证单位
176
+	 */
177
+	@ApiModelProperty(value = "发证单位",example = "eg:911202236794497949086  长度120")
178
+	private String fzdw;
179
+
180
+	@ApiModelProperty(value = "是否备案,0,未备案,1,待提交,2待审核,3已驳回,4,已备案", notes ="是否备案,0,未备案,1,待提交,2待审核,3已驳回,4,已备案", required = false)
181
+	private Integer sfba;
182
+
183
+	@ApiModelProperty(value = "固定电话", notes ="固定电话", required = false,example = "123342  30")
184
+	private String gddh;
185
+
186
+	@ApiModelProperty(value = "电子邮箱", notes ="电子邮箱", required = false,example = "123342@qq.com  30")
187
+	private String dzyx;
188
+
189
+	@ApiModelProperty(value = "教育形式,1:全日制,2:非全日制,3:函授", notes ="教育形式,1:全日制,2:非全日制,3:函授", required = false)
190
+	private Integer jyxs;
191
+
192
+	@ApiModelProperty(value = "毕业院校", notes ="毕业院校", required = false,example = "毕业院校  60")
193
+	private String byyx;
194
+
195
+	@ApiModelProperty(value = "学位", notes ="学位", required = false,example = "学位  18")
196
+	private String xw;
197
+
198
+	@ApiModelProperty(value = "职称(等级),1:初级,2:中级,3:高级", notes ="职称(等级),1:初级,2:中级,3:高级", required = false)
199
+	private Integer zcdj;
200
+
201
+	@ApiModelProperty(value = "颁证时间", notes ="颁证时间", required = false,example = "2019-09-30 00:00:00  Date_time")
202
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
203
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
204
+	private Date bzsj;
205
+
206
+	@ApiModelProperty(value = "其他专业", notes ="其他专业", required = false,example = "其他专业  20")
207
+	private String qtzy;
208
+
209
+	@ApiModelProperty(value = "其他颁证机构", notes ="其他颁证机构", required = false,example = "其他颁证机构  30")
210
+	private String qtbzjg;
211
+
212
+	@ApiModelProperty(value = "其他颁证时间", notes ="其他颁证时间", required = false,example = "2019-09-30 00:00:00  Date_time")
213
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
214
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
215
+	private Date qtbzsj;
216
+
217
+	@ApiModelProperty(value = "所属企业代码(统一社会信用代码)", notes ="所属企业代码(统一社会信用代码)", required = false)
218
+	private String tyshxydm;
219
+
220
+	@ApiModelProperty(value = "所属企业名称", notes ="所属企业名称", required = false,example = "所属企业名称  100")
221
+	private String qymc;
222
+
223
+	@ApiModelProperty(value = "启用状态,1:启用,0:禁用", notes ="启用状态,1:启用,0:禁用", required = false)
224
+	private Integer qyzt;
225
+
226
+    @ApiModelProperty(value = "个人简介", notes ="个人简介", required = false)
227
+    private String grjj ;
228
+
229
+    @ApiModelProperty(value = "附件", notes ="附件", required = false)
230
+    private String clfj ;
231
+
232
+    @ApiModelProperty(value = "行政区划代码", notes ="引用GB/T 2260-2007年区划代码,由6位阿拉伯数字组成", required = false)
233
+    private String xzqhdm;
234
+
235
+    @ApiModelProperty(value = "人员类别", notes ="1100:公务员 1200:事业单位管理人员 1300:企业经营管理人员 1400:专业技术人员1410:高级职称1411:正高级职称 1420:中级职称 1430:初级及以下职称 1431主要专职保管人员  1432 主要专职检化验人员 1500:工人 1510:技术工人 1511:高级技师 1512:技师 1513:高级工 1514:中级工 1515:初级工", required = false)
236
+    private String rylb;
237
+
238
+    @ApiModelProperty(value = "操作标志", notes ="i:新增数据(默认)u:更新数据 d:删除数据", required = false)
239
+    private String czbz;
240
+
241
+    @ApiModelProperty(value = "部门名称", notes ="", required = false)
242
+    private String bmmc;
243
+
244
+    @ApiModelProperty(value = "入职日期", notes ="", required = false)
245
+    private String rzrq;
246
+
247
+    @ApiModelProperty(value = "岗位性质", notes ="岗位性质", required = false)
248
+    private String gwxz;
249
+
250
+    @ApiModelProperty(value = "荣誉称号", notes = "荣誉称号", required = false)
251
+    private String rych;
252
+
253
+    @ApiModelProperty(value = "授予单位层级  1:国家级 2:省市级 3:区级 4:其他", notes = " 1:国家级 2:省市级 3:区级 4:其他", required = false)
254
+    private String rysydwcj;
255
+
256
+    @ApiModelProperty(value = "授予单位名称", notes = "授予单位名称", required = false)
257
+    private String rysydwmc;
258
+
259
+    @ApiModelProperty(value = "是否为粮食领域", notes = "是否为粮食领域", required = false)
260
+    private String lsly;
261
+
262
+    @ApiModelProperty(value = "获得奖项时间", notes = "获得奖项时间", required = false, example = "yyyy-MM-dd")
263
+    @DateTimeFormat(pattern="yyyy-MM-dd")
264
+    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
265
+    private Date ryhqsj;
266
+
267
+    @ApiModelProperty(value = "荣誉证书附件", notes = "荣誉证书附件", required = false)
268
+    private String ryfj;
269
+
270
+	@ApiModelProperty("明细ID")
271
+	private String mxId;
272
+
273
+	// 是否新增 newly
274
+	@ApiModelProperty(value = "是否新增", notes = "是否新增", required = false)
275
+	private String newly;
276
+
277
+	// postType
278
+	@ApiModelProperty(value = "岗位角色", notes = "岗位角色", required = false)
279
+	private String postType;
280
+
281
+	// avatorUrl,职工头像
282
+	@ApiModelProperty(value = "职工头像", notes = "职工头像", required = false)
283
+	private String avatorUrl;
284
+
285
+	// 参加涉粮企业工作时间,cjslqygzsj
286
+	@ApiModelProperty(value = "参加涉粮企业工作时间", notes = "参加涉粮企业工作时间", required = false)
287
+	@DateTimeFormat(pattern = "yyyy-MM-dd")
288
+	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
289
+	private Date cjslqygzsj;
290
+
291
+	// 人员性质,ryxz
292
+	@ApiModelProperty(value = "人员性质,1,库级人员;2,购销公司新增;3,外部单位人员",
293
+			notes = "人员性质,1,库级人员;2,购销公司新增;3,外部单位人员", required = false)
294
+	private String ryxz;
295
+
296
+	@ApiModelProperty(value = "是否涉及交流轮岗", notes = "是否涉及交流轮岗", required = false)
297
+	private String rotaterotateType;
298
+
299
+	// 领导板子成员/关键部门负责人,head
300
+	@ApiModelProperty(value = "领导板子成员/关键部门负责人", notes = "领导板子成员/关键部门负责人", required = false)
301
+	private String head;
302
+
303
+	@ApiModelProperty(value = "是否外部单位")
304
+	private String unittype;
305
+
306
+	@ApiModelProperty(value = "最高职称", notes = "最高职称", required = false)
307
+	private String zgzc;
308
+
309
+	@ApiModelProperty(value = "取得最高职称或职业资格时间", notes = "取得最高职称或职业资格时间", required = false)
310
+	@DateTimeFormat(pattern = "yyyy-MM-dd")
311
+	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
312
+	private Date zgzctqsj;
313
+
314
+	// 职务类型,0:主职,1:副职
315
+	private String zwlx;
316
+
317
+	// orgCode
318
+	@ApiModelProperty(value = "组织机构代码", notes = "组织机构代码", required = false)
319
+	private String orgCode;
320
+
321
+	// 子表
322
+	@ApiModelProperty(value = "学历学位情况/全日制")
323
+	private List<EducationVO> educationVOList;
324
+	@ApiModelProperty(value = "学历学位情况/非全日制")
325
+	private List<FeiEducationVO> feiEducationVOList;
326
+	@ApiModelProperty(value = "是否涉及交流轮岗")
327
+	private List<RotaterotateVO> rotaterotateVOList;
328
+	@ApiModelProperty(value = "技能等级")
329
+	private List<SkillVO> skillVOList;
330
+	@ApiModelProperty(value = "职称和荣誉称号")
331
+	private List<ReportVO> reportVOList;
332
+	@ApiModelProperty(value = "上岗其它证书")
333
+	private List<CertificatesVO> certificatesVOList;
334
+	@ApiModelProperty(value = "其它附件")
335
+	private List<Object> otherVoList;
336
+	@ApiModelProperty(value = "职务类型变更记录")
337
+	private List<ZwlxbgjlVO> ZwlxbgjlVOVOList;
338
+}

+ 57 - 0
src/main/java/com/chinaitop/depot/basic/model/DryzwlxbVO.java

@@ -0,0 +1,57 @@
1
+package com.chinaitop.depot.basic.model;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import lombok.Data;
6
+import org.springframework.format.annotation.DateTimeFormat;
7
+import java.util.Date;
8
+
9
+/**
10
+ * @author qingsong.han
11
+ * @description: 查询员工信息-市平台
12
+ * @create 2024-11-21 17:44
13
+ */
14
+@Data
15
+public class DryzwlxbVO {
16
+
17
+    // id
18
+    private String id;
19
+
20
+    // 人员身份证号
21
+    private String rysfzh;
22
+
23
+    // 职务类型,0:主职,1:副职
24
+    private String zwlx;
25
+
26
+    // 所属企业名称
27
+    private String qymc;
28
+
29
+    // 企业统一社会信用代码
30
+    private String tyshxydm;
31
+
32
+    // 创建时间
33
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
34
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
35
+    private Date createTime;
36
+
37
+      // 启用状态,0:禁用,1:启用
38
+    @ApiModelProperty(value = "启用状态,0:禁用,1:启用")
39
+    private Integer qyzt;
40
+
41
+    // 入职日期
42
+    @ApiModelProperty(value = "入职日期")
43
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
44
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
45
+    private Date rzrq;
46
+
47
+    // 在岗状态:在职,已离职
48
+    private String zgzt;
49
+
50
+    // 排除企业名称(在管理端查询在其他单位任职的时候使用)
51
+    @ApiModelProperty(value = "排除企业名称")
52
+    private String excludeQymc;
53
+
54
+     // 人员组ID
55
+    @ApiModelProperty(value = "人员组ID")
56
+    private String groupId;
57
+}

+ 24 - 0
src/main/java/com/chinaitop/depot/basic/model/vo/CertificatesVO.java

@@ -0,0 +1,24 @@
1
+package com.chinaitop.depot.basic.model.vo;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import lombok.Data;
5
+
6
+import java.util.Date;
7
+
8
+/**
9
+ * @author qingsong.han
10
+ * @description:
11
+ * @create 2024-11-22 16:47
12
+ */
13
+@Data
14
+public class CertificatesVO {
15
+    // 专业
16
+    private String speciality;
17
+    // 颁证机构
18
+    private String issueFacility;
19
+    // 颁证年月
20
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
21
+    private Date acquisitionTime;
22
+    // 证书附件
23
+    private String fjid;
24
+}

+ 25 - 0
src/main/java/com/chinaitop/depot/basic/model/vo/EducationVO.java

@@ -0,0 +1,25 @@
1
+package com.chinaitop.depot.basic.model.vo;
2
+
3
+import lombok.Data;
4
+
5
+/**
6
+ * @author qingsong.han
7
+ * @description:
8
+ * @create 2024-11-22 16:46
9
+ */
10
+@Data
11
+public class EducationVO {
12
+
13
+    // 全日制最高学历
14
+    private String quanHighestEducation;
15
+
16
+    // 毕业院校
17
+    private String quanInstitutions;
18
+
19
+    // 专业
20
+    private String quanSpeciality;
21
+
22
+    // 是否为涉粮专业
23
+    private String quanFoodstuff;
24
+
25
+}

+ 24 - 0
src/main/java/com/chinaitop/depot/basic/model/vo/FeiEducationVO.java

@@ -0,0 +1,24 @@
1
+package com.chinaitop.depot.basic.model.vo;
2
+
3
+import lombok.Data;
4
+
5
+/**
6
+ * @author qingsong.han
7
+ * @description:
8
+ * @create 2024-11-22 16:46
9
+ */
10
+@Data
11
+public class FeiEducationVO {
12
+
13
+    // 非全日制最高学历
14
+    private String feiHighestEducation;
15
+
16
+    // 毕业院校
17
+    private String feiInstitutions;
18
+
19
+    // 专业
20
+    private String feiSpeciality;
21
+
22
+    // 是否为涉粮专业
23
+    private String feiFoodstuff;
24
+}

+ 35 - 0
src/main/java/com/chinaitop/depot/basic/model/vo/ReportVO.java

@@ -0,0 +1,35 @@
1
+package com.chinaitop.depot.basic.model.vo;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import lombok.Data;
5
+
6
+import java.util.Date;
7
+
8
+/**
9
+ * @author qingsong.han
10
+ * @description:
11
+ * @create 2024-11-22 16:47
12
+ */
13
+@Data
14
+public class ReportVO {
15
+
16
+    // 职业资格证书名称
17
+    private String honoraryName;
18
+    // 职称(等级)
19
+    private String title;
20
+    // 证书编号
21
+    private String reportNumber;
22
+    // 颁证机构
23
+    private String authoritys;
24
+    // 颁证年月
25
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
26
+    private Date releaseTime;
27
+    // 荣誉称号
28
+    private String honoraryTitle;
29
+    // 专业
30
+    private String reportName;
31
+    // 专业明细
32
+    private String occupation;
33
+    // 证书附件
34
+    private String fjid;
35
+}

+ 19 - 0
src/main/java/com/chinaitop/depot/basic/model/vo/RotaterotateVO.java

@@ -0,0 +1,19 @@
1
+package com.chinaitop.depot.basic.model.vo;
2
+
3
+import lombok.Data;
4
+
5
+/**
6
+ * @author qingsong.han
7
+ * @description:
8
+ * @create 2024-11-22 16:47
9
+ */
10
+@Data
11
+public class RotaterotateVO {
12
+
13
+    // 业务类型
14
+    private String businessType;
15
+    // 业务时间
16
+    private String businessTime;
17
+    // 文件编号
18
+    private String serialNumber;
19
+}

+ 22 - 0
src/main/java/com/chinaitop/depot/basic/model/vo/SkillVO.java

@@ -0,0 +1,22 @@
1
+package com.chinaitop.depot.basic.model.vo;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import lombok.Data;
5
+
6
+import java.util.Date;
7
+
8
+/**
9
+ * @author qingsong.han
10
+ * @description:
11
+ * @create 2024-11-22 16:47
12
+ */
13
+@Data
14
+public class SkillVO {
15
+    // 技能等级
16
+    private String skillLevel;
17
+    // 专业
18
+    private String skillName;
19
+    // 获取时间
20
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
21
+    private Date skillDate;
22
+}

+ 12 - 0
src/main/java/com/chinaitop/depot/basic/model/vo/ZwlxbgjlVO.java

@@ -0,0 +1,12 @@
1
+package com.chinaitop.depot.basic.model.vo;
2
+
3
+import lombok.Data;
4
+
5
+/**
6
+ * @author qingsong.han
7
+ * @description:
8
+ * @create 2024-11-22 16:48
9
+ */
10
+@Data
11
+public class ZwlxbgjlVO {
12
+}

+ 25 - 0
src/main/java/com/chinaitop/depot/basic/param/DRyxxsjyPageParam.java

@@ -0,0 +1,25 @@
1
+package com.chinaitop.depot.basic.param;
2
+
3
+import com.chinaitop.depot.common.util.PageParam;
4
+import lombok.Getter;
5
+import lombok.Setter;
6
+
7
+import javax.validation.constraints.NotNull;
8
+import java.io.Serializable;
9
+
10
+/**
11
+ * @author qingsong.han
12
+ * @description:
13
+ * @create 2024-11-21 17:58
14
+ */
15
+@Getter @Setter
16
+public class DRyxxsjyPageParam extends PageParam implements Serializable {
17
+    private static final long serialVersionUID = -7265063502324094512L;
18
+
19
+    // 机构编码
20
+    @NotNull(message = "orgId非空")
21
+    private Integer orgId;
22
+    // 员工名称
23
+    private String ryxm;
24
+
25
+}

+ 17 - 0
src/main/java/com/chinaitop/depot/basic/service/DRyxxsjyService.java

@@ -0,0 +1,17 @@
1
+package com.chinaitop.depot.basic.service;
2
+
3
+import com.chinaitop.depot.basic.model.DRyxxsjyVO;
4
+import com.chinaitop.depot.basic.param.DRyxxsjyPageParam;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * @author qingsong.han
10
+ * @description:
11
+ * @create 2024-11-21 20:05
12
+ */
13
+public interface DRyxxsjyService {
14
+    List<DRyxxsjyVO> getPageList(DRyxxsjyPageParam pageParam);
15
+
16
+    DRyxxsjyVO getById(String rybh);
17
+}

+ 75 - 0
src/main/java/com/chinaitop/depot/basic/service/impl/DRyxxsjyServiceImpl.java

@@ -0,0 +1,75 @@
1
+package com.chinaitop.depot.basic.service.impl;
2
+
3
+import com.chinaitop.depot.basic.mapper.DRyxxsjyMapper;
4
+import com.chinaitop.depot.basic.model.DRyxxsjyVO;
5
+import com.chinaitop.depot.basic.model.vo.*;
6
+import com.chinaitop.depot.basic.param.DRyxxsjyPageParam;
7
+import com.chinaitop.depot.basic.service.DRyxxsjyService;
8
+import org.springframework.stereotype.Service;
9
+import org.springframework.util.CollectionUtils;
10
+import org.springframework.util.ObjectUtils;
11
+
12
+import javax.annotation.Resource;
13
+import java.util.List;
14
+
15
+/**
16
+ * @author qingsong.han
17
+ * @description:
18
+ * @create 2024-11-21 20:05
19
+ */
20
+@Service
21
+public class DRyxxsjyServiceImpl implements DRyxxsjyService {
22
+    @Resource
23
+    private DRyxxsjyMapper dRyxxsjyMapper;
24
+
25
+    @Override
26
+    public List<DRyxxsjyVO> getPageList(DRyxxsjyPageParam pageParam) {
27
+        return dRyxxsjyMapper.getPageList(pageParam);
28
+    }
29
+
30
+    @Override
31
+    public DRyxxsjyVO getById(String rybh) {
32
+        DRyxxsjyVO dRyxxsjyVO = dRyxxsjyMapper.getById(rybh);
33
+        if (ObjectUtils.isEmpty(dRyxxsjyVO)) {
34
+            return dRyxxsjyVO;
35
+        }
36
+        // 学历学位情况
37
+        // 全日制
38
+        List<EducationVO> educationVOList = dRyxxsjyMapper.getQuanById(rybh);
39
+        if (!CollectionUtils.isEmpty(educationVOList)) {
40
+            dRyxxsjyVO.setEducationVOList(educationVOList);
41
+        }
42
+        // 非全日制
43
+        List<FeiEducationVO> feiEducationVOList = dRyxxsjyMapper.getFeiById(rybh);
44
+        if (!CollectionUtils.isEmpty(feiEducationVOList)) {
45
+            dRyxxsjyVO.setFeiEducationVOList(feiEducationVOList);
46
+        }
47
+        // 是否涉及交流轮岗
48
+        List<RotaterotateVO> rotaterotateVOList = dRyxxsjyMapper.getRotaterotateById(rybh);
49
+        if (!CollectionUtils.isEmpty(rotaterotateVOList)) {
50
+            dRyxxsjyVO.setRotaterotateVOList(rotaterotateVOList);
51
+        }
52
+        // 技能等级
53
+        List<SkillVO> skillVOList = dRyxxsjyMapper.getSkillListById(rybh);
54
+        if (!CollectionUtils.isEmpty(skillVOList)) {
55
+            dRyxxsjyVO.setSkillVOList(skillVOList);
56
+        }
57
+        // 职称和荣誉称号
58
+        List<ReportVO> reportVOList = dRyxxsjyMapper.getReportListById(rybh);
59
+        if (!CollectionUtils.isEmpty(reportVOList)) {
60
+            dRyxxsjyVO.setReportVOList(reportVOList);
61
+        }
62
+        // 上岗其它证书
63
+        List<CertificatesVO> certificatesVOList = dRyxxsjyMapper.getCertificatesListById(rybh);
64
+        if (!CollectionUtils.isEmpty(certificatesVOList)) {
65
+            dRyxxsjyVO.setCertificatesVOList(certificatesVOList);
66
+        }
67
+        // 其它附件-暂无
68
+        // 职务类型变更记录
69
+        List<ZwlxbgjlVO> zwlxbgjlVOList = dRyxxsjyMapper.getZwlxbgjlListById(dRyxxsjyVO.getSfzh());
70
+        if (!CollectionUtils.isEmpty(zwlxbgjlVOList)) {
71
+            dRyxxsjyVO.setZwlxbgjlVOVOList(zwlxbgjlVOList);
72
+        }
73
+        return dRyxxsjyVO;
74
+    }
75
+}

+ 23 - 0
src/main/java/com/chinaitop/depot/common/util/PageParam.java

@@ -0,0 +1,23 @@
1
+package com.chinaitop.depot.common.util;
2
+
3
+import lombok.Getter;
4
+import lombok.Setter;
5
+
6
+import javax.validation.constraints.Min;
7
+import java.io.Serializable;
8
+
9
+/**
10
+ * @author qingsong.han
11
+ * @description:
12
+ * @create 2024-11-01 10:46
13
+ */
14
+@Getter @Setter
15
+public class PageParam implements Serializable {
16
+    private static final long serialVersionUID = 7343245342308885003L;
17
+
18
+    @Min(message = "当前页必须>=1", value = 1)
19
+    private Integer pageNum;
20
+
21
+    @Min(message = "每页条数必须>=1", value = 1)
22
+    private Integer pageSize;
23
+}