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
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
531 additions
and
11 deletions
+531
-11
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
+9
-11
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
...
...
@@ -150,7 +150,7 @@ public class YgglMainEmp extends Model<YgglMainEmp> {
private
Integer
isJrkq
;
@ApiModelProperty
(
value
=
"公司内部工号 就是公司内部自己设置的工号"
,
example
=
"101"
)
private
Integer
jobNum
;
private
String
jobNum
;
@ApiModelProperty
(
value
=
"工作地点 "
,
example
=
"工作地点"
)
private
String
workAddress
;
...
...
@@ -167,17 +167,11 @@ public class YgglMainEmp extends Model<YgglMainEmp> {
@ApiModelProperty
(
value
=
"部门岗位id 部门岗位id"
,
example
=
"101"
)
private
Integer
bmgwId
;
@Transient
@TableField
(
exist
=
false
)
@IgnoreSwaggerParameter
@ApiModelProperty
(
value
=
"部门名称"
,
example
=
"部门"
)
private
String
bmName
;
@ApiModelProperty
(
value
=
"修改时间"
,
example
=
"修改时间"
)
private
Date
updateTime
;
@Transient
@TableField
(
exist
=
false
)
@IgnoreSwaggerParameter
@ApiModelProperty
(
value
=
"岗位名称"
,
example
=
"岗位"
)
private
String
gwName
;
@ApiModelProperty
(
value
=
"修改人"
,
example
=
"修改人"
)
private
Integer
updateMan
;
@ApiModelProperty
(
value
=
"组织机构代码 组织机构代码"
,
example
=
"101"
)
private
Integer
orgCode
;
...
...
@@ -194,4 +188,7 @@ public class YgglMainEmp extends Model<YgglMainEmp> {
@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 diff is collapsed.
Click to expand it.
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