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
06e00b6e
Commit
06e00b6e
authored
Mar 27, 2020
by
东州 翁
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新籍贯城市的显示方式,补上两个社保公积金的删除,修改接口
parent
f0dd2dd3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
23 deletions
+59
-23
src/main/java/cn/timer/api/bean/yggl/YgglAttaSbgjj.java
+3
-1
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
+5
-1
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+44
-20
src/main/java/cn/timer/api/dto/yggl/YgQueryDto.java
+3
-1
src/main/java/cn/timer/api/dto/yggl/YgjgDto.java
+4
-0
No files found.
src/main/java/cn/timer/api/bean/yggl/YgglAttaSbgjj.java
View file @
06e00b6e
...
@@ -51,5 +51,6 @@ public class YgglAttaSbgjj extends Model<YgglAttaSbgjj> {
...
@@ -51,5 +51,6 @@ public class YgglAttaSbgjj extends Model<YgglAttaSbgjj> {
@ApiModelProperty
(
value
=
"个人公积金帐号 "
,
example
=
"OH81889257"
)
@ApiModelProperty
(
value
=
"个人公积金帐号 "
,
example
=
"OH81889257"
)
private
String
grgjjzh
;
private
String
grgjjzh
;
@ApiModelProperty
(
value
=
"组织机构代码 "
,
example
=
"117"
)
private
Integer
orgCode
;
}
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
View file @
06e00b6e
...
@@ -8,10 +8,14 @@ import javax.persistence.Id;
...
@@ -8,10 +8,14 @@ import javax.persistence.Id;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
javax.persistence.Transient
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -130,7 +134,7 @@ public class YgglMainEmp extends Model<YgglMainEmp> {
...
@@ -130,7 +134,7 @@ public class YgglMainEmp extends Model<YgglMainEmp> {
@ApiModelProperty
(
value
=
"工作性质 1全职、2实习生、3兼职、4劳务派遣、5劳务、6派遣、7外包、8退休返聘"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"工作性质 1全职、2实习生、3兼职、4劳务派遣、5劳务、6派遣、7外包、8退休返聘"
,
example
=
"101"
)
private
Integer
jobType
;
private
Integer
jobType
;
@ApiModelProperty
(
value
=
"员工状态 1
试用、2正式
、3离职中、4已离职"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"员工状态 1
正式、2试用
、3离职中、4已离职"
,
example
=
"101"
)
private
Integer
jobStatus
;
private
Integer
jobStatus
;
@ApiModelProperty
(
value
=
"入职日期 "
,
example
=
"客户注册后的时间为入职时间"
)
@ApiModelProperty
(
value
=
"入职日期 "
,
example
=
"客户注册后的时间为入职时间"
)
...
...
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
06e00b6e
...
@@ -276,15 +276,12 @@ public class YgglController {
...
@@ -276,15 +276,12 @@ public class YgglController {
queryWrapper
.
queryWrapper
.
select
(
"name"
,
"emp_num"
,
"bmgw_id"
,
"rz_time"
,
"job_type"
,
"phone"
,
"job_status"
)
select
(
"name"
,
"emp_num"
,
"bmgw_id"
,
"rz_time"
,
"job_type"
,
"phone"
,
"job_status"
)
.
eq
(
"org_code"
,
orgCode
).
eq
(
t
!=
null
&&
t
>
-
1
,
"job_type"
,
t
)
.
eq
(
"org_code"
,
orgCode
).
eq
(
t
!=
null
&&
t
>
-
1
,
"job_type"
,
t
)
.
eq
(
j
!=
null
&&
j
>
-
1
,
"job_status"
,
j
).
in
(!
bList
.
isEmpty
(),
"id"
,
bList
)
.
eq
(
j
!=
null
&&
j
>
-
1
,
"job_status"
,
j
).
in
(!
bList
.
isEmpty
(),
"
bmgw_
id"
,
bList
)
.
and
(!
StrUtil
.
hasBlank
(
q
),
wq
->
wq
.
like
(
"name"
,
q
).
or
().
like
(
"phone"
,
q
));
.
and
(!
StrUtil
.
hasBlank
(
q
),
wq
->
wq
.
like
(
"name"
,
q
).
or
().
like
(
"phone"
,
q
));
// List<YgglMainEmp> lo = YgglMainEmp.builder().build().selectList(queryWrapper);
// List<YgglMainEmp> lo = YgglMainEmp.builder().build().selectList(queryWrapper);
IPage
<
YgglMainEmp
>
ygglMainEmpPage
=
YgglMainEmp
.
builder
().
build
().
selectPage
(
page
,
queryWrapper
);
IPage
<
YgglMainEmp
>
ygglMainEmpPage
=
YgglMainEmp
.
builder
().
build
().
selectPage
(
page
,
queryWrapper
);
// List<YgglMainEmp> ygglMainEmps = ygglMainEmpPage.getRecords();
// List<YgglMainEmp> ygglMainEmps = ygglMainEmpPage.getRecords();
ygglMainEmpPage
.
getCurrent
();
ygglMainEmpPage
.
getPages
();
ygglMainEmpPage
.
getTotal
();
ygglMainEmpPage
.
getSize
();
return
ResultUtil
.
data
(
ygglMainEmpPage
,
"员工搜索成功"
);
return
ResultUtil
.
data
(
ygglMainEmpPage
,
"员工搜索成功"
);
// return ResultUtil.data(ygglMainEmpPage, ygglMainEmps, "员工搜索成功");
// return ResultUtil.data(ygglMainEmpPage, ygglMainEmps, "员工搜索成功");
}
}
...
@@ -1285,6 +1282,7 @@ public class YgglController {
...
@@ -1285,6 +1282,7 @@ public class YgglController {
@ApiOperationSupport
(
order
=
57
)
@ApiOperationSupport
(
order
=
57
)
public
Result
<
Object
>
querylzyg
(
@CurrentUser
UserBean
userBean
,
@RequestBody
LzbQueryDto
lzygQueryDto
)
{
public
Result
<
Object
>
querylzyg
(
@CurrentUser
UserBean
userBean
,
@RequestBody
LzbQueryDto
lzygQueryDto
)
{
lzygQueryDto
.
setOrgCode
(
userBean
.
getOrgCode
());
lzygQueryDto
.
setOrgCode
(
userBean
.
getOrgCode
());
IPage
<
YgglMainLzb
>
page
=
new
Page
<
YgglMainLzb
>(
IPage
<
YgglMainLzb
>
page
=
new
Page
<
YgglMainLzb
>(
lzygQueryDto
.
getCurrentPage
()
==
null
?
1
:
lzygQueryDto
.
getCurrentPage
(),
lzygQueryDto
.
getCurrentPage
()
==
null
?
1
:
lzygQueryDto
.
getCurrentPage
(),
lzygQueryDto
.
getTotalPage
()
==
null
?
10
:
lzygQueryDto
.
getTotalPage
());
lzygQueryDto
.
getTotalPage
()
==
null
?
10
:
lzygQueryDto
.
getTotalPage
());
...
@@ -1324,17 +1322,17 @@ public class YgglController {
...
@@ -1324,17 +1322,17 @@ public class YgglController {
if
(
type
==
1
)
{
//省份
if
(
type
==
1
)
{
//省份
List
<
YgProDto
>
list
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getProvince
,
YgProDto:
:
getName
).
orderByAsc
(
YgProDto:
:
getProvince
).
list
();
List
<
YgProDto
>
list
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getProvince
,
YgProDto:
:
getName
).
orderByAsc
(
YgProDto:
:
getProvince
).
list
();
for
(
YgProDto
pro
:
list
)
{
for
(
YgProDto
pro
:
list
)
{
maps
.
add
(
new
YgjgDto
(
pro
.
getId
(),
pro
.
getProvince
(),
pro
.
getName
()));
maps
.
add
(
new
YgjgDto
(
pro
.
getId
(),
pro
.
getProvince
(),
pro
.
getName
()
,
null
));
}}
}}
if
(
type
==
2
)
{
//城市
if
(
type
==
2
)
{
//城市
List
<
YgCityDto
>
list
=
new
LambdaQueryChainWrapper
<
YgCityDto
>(
ygCityDtoMapper
).
select
(
YgCityDto:
:
getId
,
YgCityDto:
:
getCity
,
YgCityDto:
:
getName
).
eq
(
YgCityDto:
:
getProvince
,
upId
).
orderByAsc
(
YgCityDto:
:
getProvince
).
orderByAsc
(
YgCityDto:
:
getCity
).
list
();
List
<
YgCityDto
>
list
=
new
LambdaQueryChainWrapper
<
YgCityDto
>(
ygCityDtoMapper
).
select
(
YgCityDto:
:
getId
,
YgCityDto:
:
getCity
,
YgCityDto:
:
getName
).
eq
(
YgCityDto:
:
getProvince
,
upId
).
orderByAsc
(
YgCityDto:
:
getProvince
).
orderByAsc
(
YgCityDto:
:
getCity
).
list
();
for
(
YgCityDto
city
:
list
)
{
for
(
YgCityDto
city
:
list
)
{
maps
.
add
(
new
YgjgDto
(
city
.
getId
(),
city
.
getCity
(),
city
.
getName
()));
maps
.
add
(
new
YgjgDto
(
city
.
getId
(),
city
.
getCity
(),
city
.
getName
()
,
null
));
}}
}}
if
(
type
==
3
)
{
//地区
if
(
type
==
3
)
{
//地区
List
<
YgAreaDto
>
list
=
new
LambdaQueryChainWrapper
<
YgAreaDto
>(
ygAreaDtoMapper
).
select
(
YgAreaDto:
:
getId
,
YgAreaDto:
:
getName
).
eq
(
YgAreaDto:
:
getCity
,
upId
).
orderByAsc
(
YgAreaDto:
:
getProvince
).
orderByAsc
(
YgAreaDto:
:
getCity
).
list
();
List
<
YgAreaDto
>
list
=
new
LambdaQueryChainWrapper
<
YgAreaDto
>(
ygAreaDtoMapper
).
select
(
YgAreaDto:
:
getId
,
YgAreaDto:
:
getName
).
eq
(
YgAreaDto:
:
getCity
,
upId
).
orderByAsc
(
YgAreaDto:
:
getProvince
).
orderByAsc
(
YgAreaDto:
:
getCity
).
list
();
for
(
YgAreaDto
area
:
list
)
{
for
(
YgAreaDto
area
:
list
)
{
maps
.
add
(
new
YgjgDto
(
area
.
getId
(),
area
.
getId
(),
area
.
getName
()));
maps
.
add
(
new
YgjgDto
(
area
.
getId
(),
area
.
getId
(),
area
.
getName
()
,
null
));
}}
}}
//IYgjgDto iYgjgDto = PunishFactory.getPunish(type);
//IYgjgDto iYgjgDto = PunishFactory.getPunish(type);
//List<String> strings = iYgjgDto.exePunish();
//List<String> strings = iYgjgDto.exePunish();
...
@@ -1348,20 +1346,46 @@ public class YgglController {
...
@@ -1348,20 +1346,46 @@ public class YgglController {
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/jgp/{id}"
)
@PostMapping
(
value
=
"/jgp/{id}"
)
@ApiOperation
(
value
=
"根据籍贯id显示籍贯名"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"根据籍贯id显示籍贯
城市
名"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
61
)
@ApiOperationSupport
(
order
=
61
)
public
Result
<
String
>
selectjg
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
id
)
{
public
Result
<
YgjgDto
>
selectjg
(
@CurrentUser
UserBean
userBean
,
@RequestBody
YgjgDto
jgcity
)
{
String
isPro
=
id
.
toString
().
substring
(
2
,
4
);
Integer
jgid
=
jgcity
.
getJgid
();
String
isCity
=
id
.
toString
().
substring
(
4
,
6
);
Integer
cid
=
jgcity
.
getType
();
if
(
jgid
!=
null
)
{
String
top
=
jgid
.
toString
().
substring
(
0
,
2
);
String
isPro
=
jgid
.
toString
().
substring
(
2
,
4
);
String
isCity
=
jgid
.
toString
().
substring
(
4
,
6
);
if
(
"00"
.
equals
(
isPro
))
{
YgProDto
pro
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getName
).
eq
(
YgProDto:
:
getId
,
jgid
).
one
();
if
(
pro
!=
null
)
jgcity
.
setJgname
(
pro
.
getName
());
}
else
if
(
"00"
.
equals
(
isCity
))
{
YgProDto
pro
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getName
).
eq
(
YgProDto:
:
getProvince
,
top
).
one
();
YgCityDto
city
=
new
LambdaQueryChainWrapper
<
YgCityDto
>(
ygCityDtoMapper
).
select
(
YgCityDto:
:
getId
,
YgCityDto:
:
getName
).
eq
(
YgCityDto:
:
getId
,
jgid
).
one
();
if
(
city
!=
null
)
jgcity
.
setJgname
(
pro
.
getName
()+
city
.
getName
());
}
YgProDto
pro
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getName
).
eq
(
YgProDto:
:
getProvince
,
top
).
one
();
YgCityDto
city
=
new
LambdaQueryChainWrapper
<
YgCityDto
>(
ygCityDtoMapper
).
select
(
YgCityDto:
:
getId
,
YgCityDto:
:
getName
).
eq
(
YgCityDto:
:
getId
,
Integer
.
parseInt
(
top
+
isPro
)).
one
();
YgAreaDto
area
=
new
LambdaQueryChainWrapper
<
YgAreaDto
>(
ygAreaDtoMapper
).
select
(
YgAreaDto:
:
getId
,
YgAreaDto:
:
getName
).
eq
(
YgAreaDto:
:
getId
,
jgid
).
one
();
if
(
area
!=
null
)
jgcity
.
setJgname
(
pro
.
getName
()+
city
.
getName
()+
area
.
getName
());
}
if
(
cid
!=
null
)
{
String
top
=
cid
.
toString
().
substring
(
0
,
2
);
String
isPro
=
cid
.
toString
().
substring
(
2
,
4
);
String
isCity
=
cid
.
toString
().
substring
(
4
,
6
);
if
(
"00"
.
equals
(
isPro
))
{
if
(
"00"
.
equals
(
isPro
))
{
YgProDto
pro
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getName
).
eq
(
YgProDto:
:
getId
,
id
).
one
();
YgProDto
pro
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getName
).
eq
(
YgProDto:
:
getId
,
cid
).
one
();
if
(
pro
!=
null
)
{
return
ResultUtil
.
data
(
pro
.
getName
(),
"显示所在籍贯"
);
}}
if
(
pro
!=
null
)
jgcity
.
setCityname
(
pro
.
getName
());
if
(
"00"
.
equals
(
isCity
))
{
}
else
if
(
"00"
.
equals
(
isCity
))
{
YgCityDto
city
=
new
LambdaQueryChainWrapper
<
YgCityDto
>(
ygCityDtoMapper
).
select
(
YgCityDto:
:
getId
,
YgCityDto:
:
getName
).
eq
(
YgCityDto:
:
getId
,
id
).
one
();
YgProDto
pro
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getName
).
eq
(
YgProDto:
:
getProvince
,
top
).
one
();
if
(
city
!=
null
)
{
return
ResultUtil
.
data
(
city
.
getName
(),
"显示所在籍贯"
);
}}
YgCityDto
city
=
new
LambdaQueryChainWrapper
<
YgCityDto
>(
ygCityDtoMapper
).
select
(
YgCityDto:
:
getId
,
YgCityDto:
:
getName
).
eq
(
YgCityDto:
:
getId
,
cid
).
one
();
YgAreaDto
area
=
new
LambdaQueryChainWrapper
<
YgAreaDto
>(
ygAreaDtoMapper
).
select
(
YgAreaDto:
:
getId
,
YgAreaDto:
:
getName
).
eq
(
YgAreaDto:
:
getId
,
id
).
one
();
if
(
city
!=
null
)
jgcity
.
setCityname
(
pro
.
getName
()+
city
.
getName
());
if
(
area
!=
null
)
{
return
ResultUtil
.
data
(
area
.
getName
(),
"显示所在籍贯"
);}
}
return
ResultUtil
.
error
(
"编码有误,显示不到所在籍贯"
);
YgProDto
pro
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getName
).
eq
(
YgProDto:
:
getProvince
,
top
).
one
();
YgCityDto
city
=
new
LambdaQueryChainWrapper
<
YgCityDto
>(
ygCityDtoMapper
).
select
(
YgCityDto:
:
getId
,
YgCityDto:
:
getName
).
eq
(
YgCityDto:
:
getId
,
Integer
.
parseInt
(
top
+
isPro
)).
one
();
YgAreaDto
area
=
new
LambdaQueryChainWrapper
<
YgAreaDto
>(
ygAreaDtoMapper
).
select
(
YgAreaDto:
:
getId
,
YgAreaDto:
:
getName
).
eq
(
YgAreaDto:
:
getId
,
cid
).
one
();
if
(
area
!=
null
)
jgcity
.
setCityname
(
pro
.
getName
()+
city
.
getName
()+
area
.
getName
());
}
return
ResultUtil
.
data
(
jgcity
);
}
}
/**
/**
* 查询员工列表
* 查询员工列表
...
...
src/main/java/cn/timer/api/dto/yggl/YgQueryDto.java
View file @
06e00b6e
...
@@ -8,6 +8,8 @@ package cn.timer.api.dto.yggl;
...
@@ -8,6 +8,8 @@ package cn.timer.api.dto.yggl;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
cn.timer.api.utils.Page
;
import
cn.timer.api.utils.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
...
@@ -55,7 +57,7 @@ public class YgQueryDto extends Page implements Serializable{
...
@@ -55,7 +57,7 @@ public class YgQueryDto extends Page implements Serializable{
@ApiModelProperty
(
value
=
"部门id"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"部门id"
,
example
=
"101"
)
private
Integer
bmgwid
;
private
Integer
bmgwid
;
@ApiModelProperty
(
value
=
"员工状态1
试用、2正式、3离职中、4已离职"
,
example
=
"2"
)
@ApiModelProperty
(
value
=
"员工状态1
正式、2试用、3离职中、4已离职"
,
example
=
"2"
)
private
Integer
jobStatus
;
private
Integer
jobStatus
;
@ApiModelProperty
(
value
=
"手机号、姓名"
,
example
=
"1388888888 or 张三"
)
@ApiModelProperty
(
value
=
"手机号、姓名"
,
example
=
"1388888888 or 张三"
)
...
...
src/main/java/cn/timer/api/dto/yggl/YgjgDto.java
View file @
06e00b6e
...
@@ -38,6 +38,10 @@ public class YgjgDto implements Serializable {
...
@@ -38,6 +38,10 @@ public class YgjgDto implements Serializable {
@Transient
@Transient
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
cityname
;
@Transient
@TableField
(
exist
=
false
)
private
String
jgname
;
private
String
jgname
;
}
}
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