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
726c119c
Commit
726c119c
authored
Jun 17, 2020
by
dengshichuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tzq' into 'develop'
Tzq See merge request 8timerv2/8timerapiv200!211
parents
81a94c68
7403f169
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
13 deletions
+42
-13
src/main/java/cn/timer/api/Application.java
+1
-1
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
+3
-0
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+1
-1
src/main/java/cn/timer/api/controller/yggl/service/YgglServiceImpl.java
+1
-1
src/main/java/cn/timer/api/utils/router/RouterUtils.java
+11
-6
src/main/java/cn/timer/api/utils/router/business/RegularizationBusiness.java
+11
-2
src/main/java/cn/timer/api/utils/router/business/SpmkAssoBusinessFactory.java
+9
-1
src/main/resources/mapping/yggl/YgglMainEmpMapper.xml
+5
-1
No files found.
src/main/java/cn/timer/api/Application.java
View file @
726c119c
...
@@ -18,7 +18,7 @@ import org.springframework.web.filter.CorsFilter;
...
@@ -18,7 +18,7 @@ import org.springframework.web.filter.CorsFilter;
import
cn.hutool.core.net.NetUtil
;
import
cn.hutool.core.net.NetUtil
;
@MapperScan
(
"cn.timer.api.dao"
)
// 扫描的mapper
@MapperScan
(
{
"cn.timer.api.dao"
}
)
// 扫描的mapper
@ComponentScan
(
basePackages
=
{
"cn.timer.api"
})
@ComponentScan
(
basePackages
=
{
"cn.timer.api"
})
@SpringBootApplication
@SpringBootApplication
@EnableScheduling
@EnableScheduling
...
...
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
View file @
726c119c
...
@@ -726,6 +726,8 @@ public class JxglController {
...
@@ -726,6 +726,8 @@ public class JxglController {
@PutMapping
(
value
=
"/termination_performance_appraisal"
)
@PutMapping
(
value
=
"/termination_performance_appraisal"
)
@ApiOperation
(
value
=
"8.终止-绩效考核"
,
httpMethod
=
"PUT"
,
notes
=
"终止-绩效考核"
)
@ApiOperation
(
value
=
"8.终止-绩效考核"
,
httpMethod
=
"PUT"
,
notes
=
"终止-绩效考核"
)
@ApiOperationSupport
(
order
=
8
)
@ApiOperationSupport
(
order
=
8
)
@Role
@Log
(
title
=
"终止-绩效考核"
)
public
Result
<
Object
>
terminationPA
(
@CurrentUser
UserBean
userBean
,
@NotNull
@RequestParam
Integer
id
)
{
public
Result
<
Object
>
terminationPA
(
@CurrentUser
UserBean
userBean
,
@NotNull
@RequestParam
Integer
id
)
{
JxglPerformanceAppraisal
performanceAppraisal
=
jxglPerformanceAppraisalMapper
JxglPerformanceAppraisal
performanceAppraisal
=
jxglPerformanceAppraisalMapper
...
@@ -955,6 +957,7 @@ public class JxglController {
...
@@ -955,6 +957,7 @@ public class JxglController {
@ApiOperation
(
value
=
"13.终止-考核"
,
httpMethod
=
"PUT"
,
notes
=
"终止-考核"
)
@ApiOperation
(
value
=
"13.终止-考核"
,
httpMethod
=
"PUT"
,
notes
=
"终止-考核"
)
@ApiOperationSupport
(
order
=
13
)
@ApiOperationSupport
(
order
=
13
)
@Role
@Role
@Log
(
title
=
"终止-考核"
)
public
Result
<
Object
>
terminationAssessment
(
@CurrentUser
UserBean
userBean
,
@NotNull
@RequestParam
Integer
id
)
{
public
Result
<
Object
>
terminationAssessment
(
@CurrentUser
UserBean
userBean
,
@NotNull
@RequestParam
Integer
id
)
{
JxglAppraisal
appraisal
=
jxglAppraisalMapper
.
selectById
(
id
);
JxglAppraisal
appraisal
=
jxglAppraisalMapper
.
selectById
(
id
);
...
...
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
726c119c
...
@@ -671,7 +671,7 @@ public class SpmkController {
...
@@ -671,7 +671,7 @@ public class SpmkController {
jSONObject
.
set
(
"approveId"
,
FromData
.
builder
().
value
(
String
.
valueOf
(
asId
)));
jSONObject
.
set
(
"approveId"
,
FromData
.
builder
().
value
(
String
.
valueOf
(
asId
)));
//审批完成后 业务
//审批完成后 业务
SpmkAssoBusiness
sab
=
SpmkAssoBusinessFactory
.
createSpmkAssoType
(
ApproveEnum
.
getEnums
(
aSummary
.
getAssoType
()));
SpmkAssoBusiness
sab
=
SpmkAssoBusinessFactory
.
getFactory
().
createSpmkAssoType
(
ApproveEnum
.
getEnums
(
aSummary
.
getAssoType
()));
if
(
sab
!=
null
)
if
(
sab
!=
null
)
sab
.
handleApprove
(
jSONObject
);
sab
.
handleApprove
(
jSONObject
);
}
}
...
...
src/main/java/cn/timer/api/controller/yggl/service/YgglServiceImpl.java
View file @
726c119c
...
@@ -98,7 +98,7 @@ public class YgglServiceImpl implements YgglService {
...
@@ -98,7 +98,7 @@ public class YgglServiceImpl implements YgglService {
return
leaderId
;
return
leaderId
;
}
}
p
rivate
ZzglBmgwM
getLeaderEmp
(
List
<
ZzglBmgwM
>
listBM
,
Integer
baseBmgwId
)
{
p
ublic
ZzglBmgwM
getLeaderEmp
(
List
<
ZzglBmgwM
>
listBM
,
Integer
baseBmgwId
)
{
ZzglBmgwM
zzglBmgwM
=
baseBmgwId
!=
null
?
ZzglBmgwM
zzglBmgwM
=
baseBmgwId
!=
null
?
CollUtil
.
getFirst
(
listBM
.
stream
()
CollUtil
.
getFirst
(
listBM
.
stream
()
.
filter
(
bM
->
bM
.
getId
().
equals
(
baseBmgwId
)).
collect
(
Collectors
.
toList
()))
.
filter
(
bM
->
bM
.
getId
().
equals
(
baseBmgwId
)).
collect
(
Collectors
.
toList
()))
...
...
src/main/java/cn/timer/api/utils/router/RouterUtils.java
View file @
726c119c
...
@@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.convert.ConvertException
;
import
cn.hutool.core.convert.ConvertException
;
import
cn.hutool.core.lang.Console
;
import
cn.hutool.core.lang.Console
;
...
@@ -118,14 +119,14 @@ public class RouterUtils {
...
@@ -118,14 +119,14 @@ public class RouterUtils {
router
.
setFlow
(
true
);
router
.
setFlow
(
true
);
List
<
User
>
listUser
=
router
.
getRelation
().
get
(
0
).
getUsers
();
List
<
User
>
listUser
=
router
.
getRelation
().
get
(
0
).
getUsers
();
user:
user:
for
(
int
i
=
0
;
i
<
listUser
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
listUser
.
size
();
i
++)
{
String
execute
=
listUser
.
get
(
i
).
getExecute
();
String
execute
=
listUser
.
get
(
i
).
getExecute
();
switch
(
execute
)
{
switch
(
execute
)
{
case
UNEXECUTED:
case
UNEXECUTED:
listUser
.
get
(
i
).
setExecute
(
EXECUTING
);
listUser
.
get
(
i
).
setExecute
(
EXECUTING
);
// 首次发起申请时,写入 审批人名称 至 obj 中
// 首次发起申请时,写入 审批人名称 至 obj 中
if
(
isFirse
)
{
if
(
isFirse
&&
obj
.
getStr
(
"current_approver"
)
!=
null
)
{
obj
.
set
(
"current_approver"
,
listUser
.
get
(
i
).
getName
());
obj
.
set
(
"current_approver"
,
listUser
.
get
(
i
).
getName
());
}
}
...
@@ -420,10 +421,14 @@ public class RouterUtils {
...
@@ -420,10 +421,14 @@ public class RouterUtils {
for
(
int
i
=
0
,
n
=
listFlowChildren
.
size
();
i
<
n
;
i
++)
{
for
(
int
i
=
0
,
n
=
listFlowChildren
.
size
();
i
<
n
;
i
++)
{
// 新增 执行人
// 新增 执行人
List
<
User
>
listUser
=
listFlowChildren
.
get
(
i
).
getRelation
().
get
(
0
).
getUsers
();
List
<
User
>
listUser
=
CollUtil
.
toList
();
if
(
EXECUTED
.
equals
(
listFlowChildren
.
get
(
i
).
getExecute
()))
{
List
<
Relation
>
listR
=
listFlowChildren
.
get
(
i
).
getRelation
();
}
else
if
(
EXECUTING
.
equals
(
listFlowChildren
.
get
(
i
).
getExecute
()))
{
if
(
CollectionUtil
.
isNotEmpty
(
listR
))
{
listUser
=
listR
.
get
(
0
).
getUsers
();
}
if
(
EXECUTING
.
equals
(
listFlowChildren
.
get
(
i
).
getExecute
()))
{
for
(
int
i_user
=
0
,
n_user
=
listUser
.
size
();
i_user
<
n_user
;
i_user
++)
{
for
(
int
i_user
=
0
,
n_user
=
listUser
.
size
();
i_user
<
n_user
;
i_user
++)
{
if
(
EXECUTED
.
equals
(
listUser
.
get
(
i_user
).
getExecute
()))
{
if
(
EXECUTED
.
equals
(
listUser
.
get
(
i_user
).
getExecute
()))
{
...
...
src/main/java/cn/timer/api/utils/router/business/RegularizationBusiness.java
View file @
726c119c
package
cn
.
timer
.
api
.
utils
.
router
.
business
;
package
cn
.
timer
.
api
.
utils
.
router
.
business
;
import
java.
text.ParseException
;
import
java.
util.Date
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONObject
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.controller.yggl.service.YgglService
;
import
cn.timer.api.controller.yggl.service.YgglService
;
import
cn.timer.api.dto.spmk.FromData
;
import
cn.timer.api.dto.spmk.FromData
;
import
cn.timer.api.dto.yggl.YgzzDto
;
import
cn.timer.api.dto.yggl.YgzzDto
;
...
@@ -60,7 +63,13 @@ public class RegularizationBusiness extends SpmkAssoBusiness {
...
@@ -60,7 +63,13 @@ public class RegularizationBusiness extends SpmkAssoBusiness {
.
build
();
.
build
();
// 调 员工管理 业务
// 调 员工管理 业务
ygglService
.
applicationRegularization
(
ygzzDto
);
YgglMainEmp
.
builder
()
.
jobStatus
(
2
)
.
zzTime
(
ygzzDto
.
getZzTime
())
.
sjzzTime
(
new
Date
())
.
zzRemark
(
ygzzDto
.
getZzRemark
())
.
build
().
update
(
new
UpdateWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
ygzzDto
.
getEmpNum
()));
// ygglService.applicationRegularization(ygzzDto);
}
}
}
}
src/main/java/cn/timer/api/utils/router/business/SpmkAssoBusinessFactory.java
View file @
726c119c
...
@@ -8,8 +8,16 @@ import cn.timer.api.utils.router.enums.ApproveEnum;
...
@@ -8,8 +8,16 @@ import cn.timer.api.utils.router.enums.ApproveEnum;
*
*
*/
*/
public
class
SpmkAssoBusinessFactory
{
public
class
SpmkAssoBusinessFactory
{
static
SpmkAssoBusinessFactory
factory
;
public
static
SpmkAssoBusinessFactory
getFactory
()
{
return
factory
==
null
?
new
SpmkAssoBusinessFactory
()
:
factory
;
}
public
static
SpmkAssoBusiness
createSpmkAssoType
(
ApproveEnum
assotype
)
{
public
SpmkAssoBusiness
createSpmkAssoType
(
ApproveEnum
assotype
)
{
SpmkAssoBusiness
sat
=
null
;
SpmkAssoBusiness
sat
=
null
;
switch
(
assotype
)
{
switch
(
assotype
)
{
case
DEFAULT:
case
DEFAULT:
...
...
src/main/resources/mapping/yggl/YgglMainEmpMapper.xml
View file @
726c119c
...
@@ -133,7 +133,11 @@
...
@@ -133,7 +133,11 @@
a.job_status,
a.job_status,
a.rz_time,
a.rz_time,
a.bmgw_id,
a.bmgw_id,
a.org_code
a.org_code,
a.zj_type,
a.zj_num,
a.syq
</sql>
</sql>
<sql
id=
"Base_Column_List_Alias"
>
<sql
id=
"Base_Column_List_Alias"
>
...
...
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