Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
80a33abc
Commit
80a33abc
authored
Mar 20, 2020
by
太阳与水
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新员工管理的导入,新增籍贯和城市接口,还有根据部门岗位id显示岗位名称
parent
c82414e3
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
716 additions
and
196 deletions
+716
-196
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
+194
-196
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+0
-0
src/main/java/cn/timer/api/dao/yggl/YgAreaDtoMapper.java
+17
-0
src/main/java/cn/timer/api/dao/yggl/YgCityDtoMapper.java
+18
-0
src/main/java/cn/timer/api/dao/yggl/YgMzDtoMapper.java
+17
-0
src/main/java/cn/timer/api/dao/yggl/YgProDtoMapper.java
+17
-0
src/main/java/cn/timer/api/dto/yggl/IYgjgDto.java
+17
-0
src/main/java/cn/timer/api/dto/yggl/PunishFactory.java
+32
-0
src/main/java/cn/timer/api/dto/yggl/YgAreaDto.java
+67
-0
src/main/java/cn/timer/api/dto/yggl/YgCityDto.java
+67
-0
src/main/java/cn/timer/api/dto/yggl/YgDrjqbDto.java
+87
-0
src/main/java/cn/timer/api/dto/yggl/YgDrsDto.java
+30
-0
src/main/java/cn/timer/api/dto/yggl/YgProDto.java
+66
-0
src/main/java/cn/timer/api/dto/yggl/YgjgDto.java
+37
-0
src/main/java/cn/timer/api/dto/yggl/YgmzDto.java
+50
-0
No files found.
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
View file @
80a33abc
package
cn
.
timer
.
api
.
bean
.
yggl
;
import
java.util.Date
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
cn.timer.api.config.swagger.IgnoreSwaggerParameter
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2019-11-15
*/
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table
(
name
=
"yggl_main_emp"
)
@ApiModel
(
"员工档案"
)
public
class
YgglMainEmp
extends
Model
<
YgglMainEmp
>
{
private
static
final
long
serialVersionUID
=
977019534920585689L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"员工编号 员工编号"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"员工工号 "
,
example
=
"员工工号"
)
private
Integer
empNum
;
@ApiModelProperty
(
value
=
"手机号码 手机号码"
,
example
=
"101"
)
private
String
phone
;
@ApiModelProperty
(
value
=
"密码 "
,
example
=
"密码"
)
private
String
password
;
@ApiModelProperty
(
value
=
"头像 "
,
example
=
"base64来处理头像"
)
private
String
headUrl
;
@ApiModelProperty
(
value
=
"名称 "
,
example
=
"名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"英文名称 "
,
example
=
"英文名称"
)
private
String
englishName
;
@ApiModelProperty
(
value
=
"性别 0:男;1:女"
,
example
=
"0"
)
private
Integer
sex
;
@ApiModelProperty
(
value
=
"证件类型 0:身份证;1:港澳居民来往内地通行证;2:台湾居民来往大陆通行证;3:外国护照;4:其他"
,
example
=
"101"
)
private
Integer
zjType
;
@ApiModelProperty
(
value
=
"证件号码 "
,
example
=
"证件号码"
)
private
String
zjNum
;
@ApiModelProperty
(
value
=
"身份证有效期 "
,
example
=
"身份证有效到期日"
)
private
Date
sfzyxTime
;
@ApiModelProperty
(
value
=
"出生日期 "
,
example
=
"出生日期"
)
private
Date
birthday
;
@ApiModelProperty
(
value
=
"年龄 年龄"
,
example
=
"101"
)
private
Integer
age
;
@ApiModelProperty
(
value
=
"是否已婚 0:否、1:是"
,
example
=
"101"
)
private
Integer
isMarried
;
@ApiModelProperty
(
value
=
"是否已育 0:否、1:是"
,
example
=
"101"
)
private
Integer
isPregnant
;
@ApiModelProperty
(
value
=
"国家地区 0:中国;1:中国香港;2:中国澳门;3:中国台湾"
,
example
=
"101"
)
private
Integer
area
;
@ApiModelProperty
(
value
=
"民族 56个名族"
,
example
=
"101"
)
private
Integer
mz
;
@ApiModelProperty
(
value
=
"政治面貌 1:中共党员;2:中共预备党员;3共青团员;4:民革党员;5:民盟盟员;6:民建会员;7:民进会员;8:农工党党员;9:致公党党员;10:九三学社社员;11:台盟盟员;12:无党派人士;13:群众"
,
example
=
"101"
)
private
Integer
zzmm
;
@ApiModelProperty
(
value
=
"籍贯 省/市/区 例:广东/广州/白云"
,
example
=
"101"
)
private
Integer
jg
;
@ApiModelProperty
(
value
=
"户籍城市 省/市/区 例:广东/广州/白云"
,
example
=
"101"
)
private
Integer
city
;
@ApiModelProperty
(
value
=
"户口性质 1:城镇户口;2:农村户口;3:居民户口"
,
example
=
"101"
)
private
Integer
hkType
;
@ApiModelProperty
(
value
=
"户籍地址 "
,
example
=
"详细地址"
)
private
String
hkAddress
;
@ApiModelProperty
(
value
=
"QQ QQ"
,
example
=
"101"
)
private
Integer
qq
;
@ApiModelProperty
(
value
=
"微信 "
,
example
=
"微信"
)
private
String
wechat
;
@ApiModelProperty
(
value
=
"个人邮箱 "
,
example
=
"个人邮箱"
)
private
String
email
;
@ApiModelProperty
(
value
=
"血型 "
,
example
=
"血型"
)
private
String
bloodType
;
@ApiModelProperty
(
value
=
"语言 "
,
example
=
"语言"
)
private
String
language
;
@ApiModelProperty
(
value
=
"最高学历 1:小学;2:初中;3:高中;4:中专;5:大专;6:本科;7:研究生;8:硕士;9:博士;"
,
example
=
"101"
)
private
Integer
edu
;
@ApiModelProperty
(
value
=
"专业 "
,
example
=
"专业"
)
private
String
zy
;
@ApiModelProperty
(
value
=
"转正备注 "
,
example
=
"转正备注"
)
private
String
zzRemark
;
@ApiModelProperty
(
value
=
"工作性质 1全职、2实习生、3兼职、4劳务派遣、5劳务、6派遣、7外包、8退休返聘"
,
example
=
"101"
)
private
Integer
jobType
;
@ApiModelProperty
(
value
=
"员工状态 1试用、2正式、3离职中、4已离职"
,
example
=
"101"
)
private
Integer
jobStatus
;
@ApiModelProperty
(
value
=
"入职日期 "
,
example
=
"客户注册后的时间为入职时间"
)
private
Date
rzTime
;
@ApiModelProperty
(
value
=
"试用期 0:无试用期;1:1个月;2:2个月;3:3个月;4:4个月;5:5个月;6:6个月(有试用期显示选项)"
,
example
=
"101"
)
private
Integer
syq
;
@ApiModelProperty
(
value
=
"应转正日期 "
,
example
=
"人事记录要自动转正的日期"
)
private
Date
zzTime
;
@ApiModelProperty
(
value
=
"实际转正日期 "
,
example
=
"人事手动记录要转正的日期"
)
private
Date
sjzzTime
;
@ApiModelProperty
(
value
=
"是否计入考勤 0:否;1:是"
,
example
=
"101"
)
private
Integer
isJrkq
;
@ApiModelProperty
(
value
=
"公司内部工号 就是公司内部自己设置的工号"
,
example
=
"101"
)
private
Integer
jobNum
;
@ApiModelProperty
(
value
=
"工作地点 "
,
example
=
"工作地点"
)
private
String
workAddress
;
@ApiModelProperty
(
value
=
"工作电话 工作电话"
,
example
=
"101"
)
private
Integer
workPhone
;
@ApiModelProperty
(
value
=
"工作邮箱 "
,
example
=
"工作邮箱"
)
private
String
workEmail
;
@ApiModelProperty
(
value
=
"招聘渠道 招聘渠道应该是活性的"
,
example
=
"101"
)
private
Integer
zpqd
;
@ApiModelProperty
(
value
=
"部门岗位id 部门岗位id"
,
example
=
"101"
)
private
Integer
bmgwId
;
@Transient
@TableField
(
exist
=
false
)
@IgnoreSwaggerParameter
@ApiModelProperty
(
value
=
"部门名称"
,
example
=
"部门"
)
private
String
bmName
;
@Transient
@TableField
(
exist
=
false
)
@IgnoreSwaggerParameter
@ApiModelProperty
(
value
=
"岗位名称"
,
example
=
"岗位"
)
private
String
gwName
;
@ApiModelProperty
(
value
=
"组织机构代码 组织机构代码"
,
example
=
"101"
)
private
Integer
orgCode
;
@ApiModelProperty
(
value
=
"微信id "
,
example
=
"UnionID微信系统唯一id"
)
private
String
unionid
;
@ApiModelProperty
(
value
=
"公众号id "
,
example
=
"openid公众号唯一id"
)
private
String
openid
;
@ApiModelProperty
(
value
=
"小程序id "
,
example
=
"mpopenid小程序"
)
private
String
mpopenid
;
@ApiModelProperty
(
value
=
"手机APPid "
,
example
=
"appopenid手机app"
)
private
String
appopenid
;
package
cn
.
timer
.
api
.
bean
.
yggl
;
import
java.util.Date
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
cn.timer.api.config.swagger.IgnoreSwaggerParameter
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2019-11-15
*/
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table
(
name
=
"yggl_main_emp"
)
@ApiModel
(
"员工档案"
)
public
class
YgglMainEmp
extends
Model
<
YgglMainEmp
>
{
private
static
final
long
serialVersionUID
=
977019534920585689L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"员工编号 员工编号"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"员工工号 "
,
example
=
"员工工号"
)
private
Integer
empNum
;
@ApiModelProperty
(
value
=
"手机号码 手机号码"
,
example
=
"101"
)
private
String
phone
;
@ApiModelProperty
(
value
=
"密码 "
,
example
=
"密码"
)
private
String
password
;
@ApiModelProperty
(
value
=
"头像 "
,
example
=
"base64来处理头像"
)
private
String
headUrl
;
@ApiModelProperty
(
value
=
"名称 "
,
example
=
"名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"英文名称 "
,
example
=
"英文名称"
)
private
String
englishName
;
@ApiModelProperty
(
value
=
"性别 0:男;1:女"
,
example
=
"0"
)
private
Integer
sex
;
@ApiModelProperty
(
value
=
"证件类型 0:身份证;1:港澳居民来往内地通行证;2:台湾居民来往大陆通行证;3:外国护照;4:其他"
,
example
=
"101"
)
private
Integer
zjType
;
@ApiModelProperty
(
value
=
"证件号码 "
,
example
=
"证件号码"
)
private
String
zjNum
;
@ApiModelProperty
(
value
=
"身份证有效期 "
,
example
=
"身份证有效到期日"
)
private
Date
sfzyxTime
;
@ApiModelProperty
(
value
=
"出生日期 "
,
example
=
"出生日期"
)
private
Date
birthday
;
@ApiModelProperty
(
value
=
"年龄 年龄"
,
example
=
"101"
)
private
Integer
age
;
@ApiModelProperty
(
value
=
"是否已婚 0:否、1:是"
,
example
=
"101"
)
private
Integer
isMarried
;
@ApiModelProperty
(
value
=
"是否已育 0:否、1:是"
,
example
=
"101"
)
private
Integer
isPregnant
;
@ApiModelProperty
(
value
=
"国家地区 0:中国;1:中国香港;2:中国澳门;3:中国台湾"
,
example
=
"101"
)
private
Integer
area
;
@ApiModelProperty
(
value
=
"民族 56个名族"
,
example
=
"101"
)
private
Integer
mz
;
@ApiModelProperty
(
value
=
"政治面貌 1:中共党员;2:中共预备党员;3共青团员;4:民革党员;5:民盟盟员;6:民建会员;7:民进会员;8:农工党党员;9:致公党党员;10:九三学社社员;11:台盟盟员;12:无党派人士;13:群众"
,
example
=
"101"
)
private
Integer
zzmm
;
@ApiModelProperty
(
value
=
"籍贯 省/市/区 例:广东/广州/白云"
,
example
=
"101"
)
private
Integer
jg
;
@ApiModelProperty
(
value
=
"户籍城市 省/市/区 例:广东/广州/白云"
,
example
=
"101"
)
private
Integer
city
;
@ApiModelProperty
(
value
=
"户口性质 1:城镇户口;2:农村户口;3:居民户口"
,
example
=
"101"
)
private
Integer
hkType
;
@ApiModelProperty
(
value
=
"户籍地址 "
,
example
=
"详细地址"
)
private
String
hkAddress
;
@ApiModelProperty
(
value
=
"QQ QQ"
,
example
=
"101"
)
private
Integer
qq
;
@ApiModelProperty
(
value
=
"微信 "
,
example
=
"微信"
)
private
String
wechat
;
@ApiModelProperty
(
value
=
"个人邮箱 "
,
example
=
"个人邮箱"
)
private
String
email
;
@ApiModelProperty
(
value
=
"血型 "
,
example
=
"血型"
)
private
String
bloodType
;
@ApiModelProperty
(
value
=
"语言 "
,
example
=
"语言"
)
private
String
language
;
@ApiModelProperty
(
value
=
"最高学历 1:小学;2:初中;3:高中;4:中专;5:大专;6:本科;7:研究生;8:硕士;9:博士;"
,
example
=
"101"
)
private
Integer
edu
;
@ApiModelProperty
(
value
=
"专业 "
,
example
=
"专业"
)
private
String
zy
;
@ApiModelProperty
(
value
=
"转正备注 "
,
example
=
"转正备注"
)
private
String
zzRemark
;
@ApiModelProperty
(
value
=
"工作性质 1全职、2实习生、3兼职、4劳务派遣、5劳务、6派遣、7外包、8退休返聘"
,
example
=
"101"
)
private
Integer
jobType
;
@ApiModelProperty
(
value
=
"员工状态 1试用、2正式、3离职中、4已离职"
,
example
=
"101"
)
private
Integer
jobStatus
;
@ApiModelProperty
(
value
=
"入职日期 "
,
example
=
"客户注册后的时间为入职时间"
)
private
Date
rzTime
;
@ApiModelProperty
(
value
=
"试用期 0:无试用期;1:1个月;2:2个月;3:3个月;4:4个月;5:5个月;6:6个月(有试用期显示选项)"
,
example
=
"101"
)
private
Integer
syq
;
@ApiModelProperty
(
value
=
"应转正日期 "
,
example
=
"人事记录要自动转正的日期"
)
private
Date
zzTime
;
@ApiModelProperty
(
value
=
"实际转正日期 "
,
example
=
"人事手动记录要转正的日期"
)
private
Date
sjzzTime
;
@ApiModelProperty
(
value
=
"是否计入考勤 0:否;1:是"
,
example
=
"101"
)
private
Integer
isJrkq
;
@ApiModelProperty
(
value
=
"公司内部工号 就是公司内部自己设置的工号"
,
example
=
"101"
)
private
String
jobNum
;
@ApiModelProperty
(
value
=
"工作地点 "
,
example
=
"工作地点"
)
private
String
workAddress
;
@ApiModelProperty
(
value
=
"工作电话 工作电话"
,
example
=
"101"
)
private
Integer
workPhone
;
@ApiModelProperty
(
value
=
"工作邮箱 "
,
example
=
"工作邮箱"
)
private
String
workEmail
;
@ApiModelProperty
(
value
=
"招聘渠道 招聘渠道应该是活性的"
,
example
=
"101"
)
private
Integer
zpqd
;
@ApiModelProperty
(
value
=
"部门岗位id 部门岗位id"
,
example
=
"101"
)
private
Integer
bmgwId
;
@ApiModelProperty
(
value
=
"修改时间"
,
example
=
"修改时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"修改人"
,
example
=
"修改人"
)
private
Integer
updateMan
;
@ApiModelProperty
(
value
=
"组织机构代码 组织机构代码"
,
example
=
"101"
)
private
Integer
orgCode
;
@ApiModelProperty
(
value
=
"微信id "
,
example
=
"UnionID微信系统唯一id"
)
private
String
unionid
;
@ApiModelProperty
(
value
=
"公众号id "
,
example
=
"openid公众号唯一id"
)
private
String
openid
;
@ApiModelProperty
(
value
=
"小程序id "
,
example
=
"mpopenid小程序"
)
private
String
mpopenid
;
@ApiModelProperty
(
value
=
"手机APPid "
,
example
=
"appopenid手机app"
)
private
String
appopenid
;
@Transient
@TableField
(
exist
=
false
)
private
String
error
;
//错误信息提示
}
\ No newline at end of file
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
80a33abc
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/java/cn/timer/api/dao/yggl/YgAreaDtoMapper.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dao
.
yggl
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.dto.yggl.YgAreaDto
;
/**
* 地区表
* @author Tang 2019-11-15
*/
@Repository
public
interface
YgAreaDtoMapper
extends
BaseMapper
<
YgAreaDto
>
{
}
src/main/java/cn/timer/api/dao/yggl/YgCityDtoMapper.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dao
.
yggl
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.dto.yggl.YgCityDto
;
import
cn.timer.api.dto.yggl.YgProDto
;
/**
* 城市表
* @author Tang 2019-11-15
*/
@Repository
public
interface
YgCityDtoMapper
extends
BaseMapper
<
YgCityDto
>
{
}
src/main/java/cn/timer/api/dao/yggl/YgMzDtoMapper.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dao
.
yggl
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.dto.yggl.YgmzDto
;
/**
* 民族表
* @author Tang 2019-11-15
*/
@Repository
public
interface
YgMzDtoMapper
extends
BaseMapper
<
YgmzDto
>
{
}
src/main/java/cn/timer/api/dao/yggl/YgProDtoMapper.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dao
.
yggl
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.dto.yggl.YgProDto
;
/**
* 省份表
* @author Tang 2019-11-15
*/
@Repository
public
interface
YgProDtoMapper
extends
BaseMapper
<
YgProDto
>
{
}
src/main/java/cn/timer/api/dto/yggl/IYgjgDto.java
0 → 100644
View file @
80a33abc
/**
* @date 2020年3月10日
* @author 翁东州
* @方法中文名称:
*/
package
cn
.
timer
.
api
.
dto
.
yggl
;
import
java.util.List
;
/**
* @date 2020年3月10日
* @author 翁东州
* @方法中文名称:
*/
public
interface
IYgjgDto
{
List
<
String
>
exePunish
();
}
src/main/java/cn/timer/api/dto/yggl/PunishFactory.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dto
.
yggl
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
public
class
PunishFactory
{
private
static
Map
<
String
,
IYgjgDto
>
punishMap
=
new
HashMap
<
String
,
IYgjgDto
>();
private
PunishFactory
()
{}
private
static
final
IYgjgDto
EMPTY
=
new
EmptyPunish
();
//获取
public
static
IYgjgDto
getPunish
(
String
state
)
{
IYgjgDto
result
=
punishMap
.
get
(
state
);
return
result
==
null
?
EMPTY
:
result
;
}
//将处罚对象注册到这里
public
static
void
registerPunish
(
String
state
,
IYgjgDto
o
){
punishMap
.
put
(
state
,
o
);
}
private
static
class
EmptyPunish
implements
IYgjgDto
{
public
List
<
String
>
exePunish
()
{
return
null
;
}
}
}
\ No newline at end of file
src/main/java/cn/timer/api/dto/yggl/YgAreaDto.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dto
.
yggl
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper
;
import
cn.timer.api.dao.yggl.YgAreaDtoMapper
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2019-11-15
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName
(
"pro_city_area_class"
)
@ApiModel
(
"籍贯:地区"
)
public
class
YgAreaDto
implements
IYgjgDto
,
InitializingBean
{
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
,
example
=
"1"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"省编码 "
,
example
=
"省编码"
)
private
Integer
province
;
@ApiModelProperty
(
value
=
"市编码"
,
example
=
"市编码"
)
private
Integer
city
;
@ApiModelProperty
(
value
=
"名字"
,
example
=
"名字"
)
private
String
name
;
@Autowired
private
YgAreaDtoMapper
ygAreaDtoMapper
;
public
List
<
String
>
exePunish
()
{
List
<
YgAreaDto
>
areaList
=
new
LambdaQueryChainWrapper
<
YgAreaDto
>(
ygAreaDtoMapper
).
orderByAsc
(
YgAreaDto:
:
getProvince
).
list
();
List
<
String
>
a
=
new
ArrayList
<
String
>();
for
(
YgAreaDto
area
:
areaList
)
{
a
.
add
(
area
.
getName
());
}
return
a
;
}
public
void
afterPropertiesSet
(){
PunishFactory
.
registerPunish
(
"area"
,
this
);
}
}
src/main/java/cn/timer/api/dto/yggl/YgCityDto.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dto
.
yggl
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper
;
import
cn.timer.api.dao.yggl.YgCityDtoMapper
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2019-11-15
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName
(
"pro_city_class"
)
@ApiModel
(
"籍贯:城市"
)
public
class
YgCityDto
implements
IYgjgDto
,
InitializingBean
{
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
,
example
=
"1"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"省编码 "
,
example
=
"省编码"
)
private
Integer
province
;
@ApiModelProperty
(
value
=
"市编码"
,
example
=
"市编码"
)
private
Integer
city
;
@ApiModelProperty
(
value
=
"名字"
,
example
=
"名字"
)
private
String
name
;
@Autowired
private
YgCityDtoMapper
ygCityDtoMapper
;
public
List
<
String
>
exePunish
()
{
List
<
YgCityDto
>
cityList
=
new
LambdaQueryChainWrapper
<
YgCityDto
>(
ygCityDtoMapper
).
orderByAsc
(
YgCityDto:
:
getProvince
).
list
();
List
<
String
>
c
=
new
ArrayList
<
String
>();
for
(
YgCityDto
city
:
cityList
)
{
c
.
add
(
city
.
getName
());
}
return
c
;
}
public
void
afterPropertiesSet
(){
PunishFactory
.
registerPunish
(
"city"
,
this
);
}
}
src/main/java/cn/timer/api/dto/yggl/YgDrjqbDto.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dto
.
yggl
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author weng 2020-3-13
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
YgDrjqbDto
{
@ApiModelProperty
(
value
=
"编号"
,
example
=
"1"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"公司内部工号 "
,
example
=
"公司内部工号"
)
private
String
ygnbgh
;
@ApiModelProperty
(
value
=
"姓名 "
,
example
=
"姓名"
)
private
String
name
;
@ApiModelProperty
(
value
=
"手机号码 "
,
example
=
"12345678901"
)
private
String
phone
;
@ApiModelProperty
(
value
=
"性别 "
,
example
=
"男"
)
private
String
sex
;
@ApiModelProperty
(
value
=
"证件号码 "
,
example
=
"123456789012345678"
)
private
String
zj
;
@ApiModelProperty
(
value
=
"一级部门 "
,
example
=
"一级部门"
)
private
String
oneb
;
@ApiModelProperty
(
value
=
"二级部门 "
,
example
=
"二级部门 "
)
private
String
twob
;
@ApiModelProperty
(
value
=
"三级部门 "
,
example
=
"三级部门 "
)
private
String
threeb
;
@ApiModelProperty
(
value
=
"四级部门 "
,
example
=
"四级部门 "
)
private
String
fourb
;
@ApiModelProperty
(
value
=
"岗位 "
,
example
=
"岗位"
)
private
String
gw
;
@ApiModelProperty
(
value
=
"工作性质 "
,
example
=
"1"
)
private
String
jobType
;
@ApiModelProperty
(
value
=
"员工状态 "
,
example
=
"1"
)
private
String
jobStatus
;
@ApiModelProperty
(
value
=
"入职日期 "
,
example
=
"2020-3-12"
)
private
String
rzTime
;
@ApiModelProperty
(
value
=
"试用期 "
,
example
=
"试用期"
)
private
String
syq
;
@ApiModelProperty
(
value
=
"专业 "
,
example
=
"专业"
)
private
String
zy
;
@ApiModelProperty
(
value
=
"工作地点 "
,
example
=
"工作地点"
)
private
String
address
;
@ApiModelProperty
(
value
=
"户籍地址 "
,
example
=
"户籍地址"
)
private
String
hkAddress
;
@ApiModelProperty
(
value
=
"QQ "
,
example
=
"123456789"
)
private
String
qq
;
@ApiModelProperty
(
value
=
"微信 "
,
example
=
"weixin123456789"
)
private
String
weixin
;
@ApiModelProperty
(
value
=
"个人邮箱 "
,
example
=
"个人邮箱"
)
private
String
email
;
@ApiModelProperty
(
value
=
"错误信息"
,
example
=
"错误信息"
)
private
String
error
;
@ApiModelProperty
(
value
=
"有部门id了!"
,
example
=
"0"
)
private
Integer
havebmid
;
}
src/main/java/cn/timer/api/dto/yggl/YgDrsDto.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dto
.
yggl
;
import
java.util.List
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author weng 2020-3-13
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
YgDrsDto
{
@ApiModelProperty
(
value
=
"导入列表"
)
List
<
YgDrjqbDto
>
drList
;
@ApiModelProperty
(
value
=
"错误列表"
)
List
<
YgDrjqbDto
>
errorList
;
@ApiModelProperty
(
value
=
"组织机构代码"
)
Integer
orgCode
;
}
src/main/java/cn/timer/api/dto/yggl/YgProDto.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dto
.
yggl
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper
;
import
cn.timer.api.dao.yggl.YgProDtoMapper
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2019-11-15
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName
(
"province_class"
)
@ApiModel
(
"籍贯:省份"
)
public
class
YgProDto
implements
IYgjgDto
,
InitializingBean
{
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
,
example
=
"1"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"省编码 "
,
example
=
"省编码"
)
private
Integer
province
;
@ApiModelProperty
(
value
=
"名字"
,
example
=
"名字"
)
private
String
name
;
@Autowired
private
YgProDtoMapper
ygProDtoMapper
;
public
List
<
String
>
exePunish
()
{
List
<
YgProDto
>
proList
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
orderByAsc
(
YgProDto:
:
getProvince
).
list
();
List
<
String
>
pList
=
new
ArrayList
<
String
>();
for
(
YgProDto
pro
:
proList
)
{
pList
.
add
(
pro
.
getName
());
}
return
pList
;
}
public
void
afterPropertiesSet
(){
System
.
out
.
println
(
"初始化注入成功!"
);
PunishFactory
.
registerPunish
(
"pro"
,
this
);
}
}
src/main/java/cn/timer/api/dto/yggl/YgjgDto.java
0 → 100644
View file @
80a33abc
/**
* @date 2020年3月10日
* @author 翁东州
* @方法中文名称:
*/
package
cn
.
timer
.
api
.
dto
.
yggl
;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @date 2020年3月10日
* @author 翁东州
* @方法中文名称:
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
YgjgDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"省市区分类id"
,
example
=
"省pro,市city,区area"
)
private
Integer
type
;
@ApiModelProperty
(
value
=
"省市区籍贯id"
,
example
=
"110000"
)
private
Integer
jgid
;
}
src/main/java/cn/timer/api/dto/yggl/YgmzDto.java
0 → 100644
View file @
80a33abc
package
cn
.
timer
.
api
.
dto
.
yggl
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2019-11-15
*/
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName
(
"nation_class"
)
@ApiModel
(
"民族"
)
public
class
YgmzDto
{
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
,
example
=
"1"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"民族名称 "
,
example
=
"民族名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"拼音"
,
example
=
"pinyin"
)
private
String
pinyin
;
@ApiModelProperty
(
value
=
"简写"
,
example
=
"PY"
)
private
String
letter
;
@ApiModelProperty
(
value
=
"这个才是排序"
,
example
=
"number"
)
private
Integer
number
;
@ApiModelProperty
(
value
=
"排序"
,
example
=
"排序"
)
private
String
sort
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment