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
c7385cb0
Commit
c7385cb0
authored
Jun 17, 2020
by
dengshichuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tzq' into 'develop'
操作日志 See merge request 8timerv2/8timerapiv200!212
parents
726c119c
e9019091
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
11 deletions
+40
-11
src/main/java/cn/timer/api/aspect/lang/enums/BusinessType.java
+6
-1
src/main/java/cn/timer/api/controller/qyzx/QyzxAuthController.java
+5
-0
src/main/java/cn/timer/api/controller/qyzx/QyzxController.java
+4
-0
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+21
-7
src/main/java/cn/timer/api/controller/zzgl/ZzglController.java
+4
-3
No files found.
src/main/java/cn/timer/api/aspect/lang/enums/BusinessType.java
View file @
c7385cb0
...
...
@@ -21,7 +21,12 @@ public enum BusinessType
* 修改
*/
UPDATE
,
/**
* 新增/修改
*/
INSERT_UPDATE
,
/**
* 删除
*/
...
...
src/main/java/cn/timer/api/controller/qyzx/QyzxAuthController.java
View file @
c7385cb0
...
...
@@ -28,6 +28,8 @@ import org.springframework.web.bind.annotation.RestController;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.timer.api.aspect.lang.annotation.Log
;
import
cn.timer.api.aspect.lang.enums.BusinessType
;
import
cn.timer.api.bean.qyzx.auth.QyzxAuthAccount
;
import
cn.timer.api.bean.qyzx.auth.QyzxAuthChild
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
...
...
@@ -59,6 +61,7 @@ public class QyzxAuthController {
@Transactional
@PostMapping
(
value
=
"/addChildAccount"
)
@ApiOperation
(
value
=
"新增子账号"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@Log
(
title
=
"新增-子账号"
,
businessType
=
BusinessType
.
INSERT
)
public
Result
<
QyzxAuthChild
>
addChildAccount
(
@CurrentUser
UserBean
userBean
,
@RequestParam
Integer
childEmpNum
)
{
Integer
orgCode
=
userBean
.
getOrgCode
();
Integer
empNum
=
userBean
.
getEmpNum
();
...
...
@@ -115,6 +118,7 @@ public class QyzxAuthController {
@Transactional
@DeleteMapping
(
value
=
"/delChildAccount/{childEmpNum}"
)
@ApiOperation
(
value
=
"删除子账号"
,
httpMethod
=
"DELETE"
,
notes
=
"接口发布说明"
)
@Log
(
title
=
"删除-子账号"
,
businessType
=
BusinessType
.
DELETE
)
public
Result
<
String
>
delChildAccount
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
childEmpNum
)
{
Integer
empNum
=
userBean
.
getEmpNum
();
QyzxAuthAccount
qyzxAuthAccount
=
QyzxAuthAccount
.
builder
().
build
().
selectOne
(
...
...
@@ -136,6 +140,7 @@ public class QyzxAuthController {
@PostMapping
(
value
=
"/modifyMaxChild"
)
@ApiOperation
(
value
=
"修改子账号最大数量"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@Log
(
title
=
"修改-子账号最大数量"
,
businessType
=
BusinessType
.
UPDATE
)
public
Result
<
QyzxAuthChild
>
modifyMaxChild
(
@CurrentUser
UserBean
userBean
,
@RequestParam
Integer
maxNum
)
{
if
(
QyzxAuthAccount
.
builder
().
maxChildAccount
(
maxNum
).
build
().
update
(
new
QueryWrapper
<
QyzxAuthAccount
>().
lambda
().
eq
(
QyzxAuthAccount:
:
getOrgCode
,
userBean
.
getOrgCode
())))
...
...
src/main/java/cn/timer/api/controller/qyzx/QyzxController.java
View file @
c7385cb0
...
...
@@ -26,6 +26,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.NumberUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.timer.api.aspect.lang.annotation.Log
;
import
cn.timer.api.aspect.lang.enums.BusinessType
;
import
cn.timer.api.bean.qyzx.QyzxAttaFwjsb
;
import
cn.timer.api.bean.qyzx.QyzxEmpEntAsso
;
import
cn.timer.api.bean.qyzx.QyzxEmpLogin
;
...
...
@@ -113,6 +115,7 @@ public class QyzxController {
*/
@PostMapping
(
value
=
"/ent"
)
@ApiOperation
(
value
=
"添加/修改企业信息"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@Log
(
title
=
"修改-企业信息"
,
businessType
=
BusinessType
.
UPDATE
)
public
Result
<
QyzxEntInfoM
>
addent
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntInfoM
qyzxEntInfoM
)
{
qyzxEntInfoM
.
setId
(
userBean
.
getOrgCode
());
...
...
@@ -133,6 +136,7 @@ public class QyzxController {
*/
@PostMapping
(
value
=
"/entauth"
)
@ApiOperation
(
value
=
"企业认证"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@Log
(
title
=
"企业认证"
,
businessType
=
BusinessType
.
INSERT
)
public
Result
<
QyzxEntInfoM
>
entauth
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntInfoM
qyzxEntInfoM
)
{
// 设置审核状态
qyzxEntInfoM
.
setAttestStatus
(
CommonEnum
.
AUTH_TYPE_UNDEREVIEW
.
getType
());
...
...
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
c7385cb0
...
...
@@ -1254,7 +1254,8 @@ public class YgglController {
Integer
empNum
=
lzygQueryDto
.
getEmpNum
();
YgglMainEmp
ygglMainEmp
=
ygglMainEmpMapper
.
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
()
.
eq
(
YgglMainEmp:
:
getEmpNum
,
empNum
).
eq
(
YgglMainEmp:
:
getOrgCode
,
userBean
.
getOrgCode
()));
.
eq
(
YgglMainEmp:
:
getEmpNum
,
empNum
)
.
eq
(
YgglMainEmp:
:
getOrgCode
,
userBean
.
getOrgCode
()));
YgglMainLzb
ygglMainLzb
=
YgglMainLzb
.
builder
().
empNum
(
lzygQueryDto
.
getEmpNum
()).
build
();
// 移动员工表数据到离职表
BeanUtil
.
copyProperties
(
ygglMainEmp
,
ygglMainLzb
,
"before_leaving_sts"
);
...
...
@@ -1262,10 +1263,15 @@ public class YgglController {
YgglMainEmp
.
builder
().
empNum
(
lzygQueryDto
.
getEmpNum
()).
jobStatus
(
jobStatus
.
LIZHIZHONG
.
getType
())
.
beforeLeavingSts
(
ygglMainEmp
.
getJobStatus
()).
build
()
.
update
(
new
UpdateWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
empNum
));
.
update
(
new
UpdateWrapper
<
YgglMainEmp
>().
lambda
()
.
eq
(
YgglMainEmp:
:
getEmpNum
,
empNum
)
.
eq
(
YgglMainEmp:
:
getOrgCode
,
userBean
.
getOrgCode
()));
YgglMainLzb
.
builder
().
jobStatus
(
jobStatus
.
LIZHIZHONG
.
getType
()).
lzTime
(
lzygQueryDto
.
getLzTime
())
.
lzyy
(
lzygQueryDto
.
getLzyy
()).
lzbz
(
lzygQueryDto
.
getLzbz
()).
build
()
.
update
(
new
UpdateWrapper
<
YgglMainLzb
>().
lambda
().
eq
(
YgglMainLzb:
:
getEmpNum
,
empNum
));
.
update
(
new
UpdateWrapper
<
YgglMainLzb
>().
lambda
()
.
eq
(
YgglMainLzb:
:
getEmpNum
,
empNum
)
.
eq
(
YgglMainLzb:
:
getOrgCode
,
userBean
.
getOrgCode
()));
return
ResultUtil
.
data
(
ygglMainLzb
,
"添加待离职员工成功"
);
}
...
...
@@ -1282,20 +1288,28 @@ public class YgglController {
public
Result
<
Void
>
addlzb
(
@CurrentUser
UserBean
userBean
,
@RequestBody
LzygQueryDto
lzygQueryDto
)
{
Integer
empNum
=
lzygQueryDto
.
getEmpNum
();
// 删除员工档案表
ygglMainEmpMapper
.
delete
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
empNum
));
ygglMainEmpMapper
.
delete
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
()
.
eq
(
YgglMainEmp:
:
getEmpNum
,
empNum
)
.
eq
(
YgglMainEmp:
:
getOrgCode
,
userBean
.
getOrgCode
()));
YgglMainLzb
.
builder
().
empNum
(
empNum
).
jobStatus
(
YgEnumInterface
.
jobStatus
.
YILIZHI
.
getType
()).
sjlzTime
(
new
Date
())
.
build
().
update
(
new
UpdateWrapper
<
YgglMainLzb
>().
lambda
().
eq
(
YgglMainLzb:
:
getEmpNum
,
empNum
));
.
build
().
update
(
new
UpdateWrapper
<
YgglMainLzb
>().
lambda
()
.
eq
(
YgglMainLzb:
:
getEmpNum
,
empNum
)
.
eq
(
YgglMainLzb:
:
getOrgCode
,
userBean
.
getOrgCode
()));
LambdaQueryWrapper
<
QyzxEmpEntAsso
>
queryWrapper
=
new
QueryWrapper
<
QyzxEmpEntAsso
>().
lambda
()
.
eq
(
QyzxEmpEntAsso:
:
getEmpNum
,
empNum
);
.
eq
(
QyzxEmpEntAsso:
:
getEmpNum
,
empNum
)
.
eq
(
QyzxEmpEntAsso:
:
getOrgCode
,
userBean
.
getOrgCode
())
;
// 确认离职 删除员工关联表
qyzxEmpEntAssoMapper
.
delete
(
queryWrapper
);
// 初始化 部门主管
zzglBmgwMMapper
.
update
(
ZzglBmgwM
.
builder
().
leader
(
null
).
build
(),
new
UpdateWrapper
<
ZzglBmgwM
>().
lambda
().
eq
(
ZzglBmgwM:
:
getLeader
,
empNum
));
new
UpdateWrapper
<
ZzglBmgwM
>().
lambda
()
.
eq
(
ZzglBmgwM:
:
getOrgCode
,
userBean
.
getOrgCode
())
.
eq
(
ZzglBmgwM:
:
getLeader
,
empNum
));
// 更新当前企业
List
<
QyzxEmpEntAsso
>
listEEA
=
qyzxEmpEntAssoMapper
.
selectList
(
queryWrapper
);
...
...
src/main/java/cn/timer/api/controller/zzgl/ZzglController.java
View file @
c7385cb0
...
...
@@ -235,13 +235,14 @@ public class ZzglController {
}
/**
* 添加/修改部门
* 添加/修改部门
岗位
*
* @param
* @return
*/
@PostMapping
(
value
=
"/dept"
)
@ApiOperation
(
value
=
"添加/修改部门"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"添加/修改部门岗位"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@Log
(
title
=
"添加/修改-部门岗位"
,
businessType
=
BusinessType
.
INSERT_UPDATE
)
public
Result
<
ZzglBmgwM
>
adddept
(
@CurrentUser
UserBean
userBean
,
@RequestBody
ZzglBmgwM
zzglBmgwM
)
{
Integer
count
=
zzglBmgwMMapper
.
selectCount
(
new
QueryWrapper
<
ZzglBmgwM
>().
lambda
()
...
...
@@ -272,7 +273,7 @@ public class ZzglController {
*/
@DeleteMapping
(
value
=
"/dept"
)
@ApiOperation
(
value
=
"删除部门岗位"
,
httpMethod
=
"DELETE"
,
notes
=
"接口发布说明"
)
@Log
(
title
=
"删除岗位"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"删除
-部门
岗位"
,
businessType
=
BusinessType
.
DELETE
)
public
Result
<
Integer
>
deldepts
(
@CurrentUser
UserBean
userBean
,
@RequestBody
List
<
Integer
>
ids
)
{
YgglMainEmp
ygglMainEmp
=
YgglMainEmp
.
builder
().
build
();
...
...
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