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
766cf7fb
Commit
766cf7fb
authored
Jan 06, 2022
by
龙于生
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改审批bug
parent
211fbfdc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
36 deletions
+36
-36
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+1
-4
src/main/java/cn/timer/api/dto/spmk/Relation.java
+1
-1
src/main/java/cn/timer/api/dto/spmk/User.java
+0
-2
src/main/java/cn/timer/api/utils/router/RouterUtils.java
+34
-29
No files found.
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
766cf7fb
...
@@ -777,10 +777,7 @@ public class SpmkController {
...
@@ -777,10 +777,7 @@ public class SpmkController {
redisUtil
.
set
(
asId
.
toString
(),
0
,
500
);
redisUtil
.
set
(
asId
.
toString
(),
0
,
500
);
return
ResultUtil
.
error
(
"您已审批过!"
);
return
ResultUtil
.
error
(
"您已审批过!"
);
}
}
Integer
integer
=
spmkExecutorMapper
.
selectCount
(
new
QueryWrapper
<
SpmkExecutor
>().
lambda
()
.
eq
(
SpmkExecutor:
:
getId
,
approvingDto
.
getExecutorId
())
.
eq
(
SpmkExecutor:
:
getEmpNum
,
userBean
.
getEmpNum
())
.
eq
(
SpmkExecutor:
:
getSts
,
ExecutorSts
.
IN_EXECUTION
.
ordinal
()));
if
(
spmkExecutorMapper
.
selectCount
(
new
QueryWrapper
<
SpmkExecutor
>().
lambda
()
if
(
spmkExecutorMapper
.
selectCount
(
new
QueryWrapper
<
SpmkExecutor
>().
lambda
()
.
eq
(
SpmkExecutor:
:
getId
,
approvingDto
.
getExecutorId
())
.
eq
(
SpmkExecutor:
:
getId
,
approvingDto
.
getExecutorId
())
.
eq
(
SpmkExecutor:
:
getEmpNum
,
userBean
.
getEmpNum
())
.
eq
(
SpmkExecutor:
:
getEmpNum
,
userBean
.
getEmpNum
())
...
...
src/main/java/cn/timer/api/dto/spmk/Relation.java
View file @
766cf7fb
...
@@ -49,7 +49,7 @@ public class Relation implements Serializable{
...
@@ -49,7 +49,7 @@ public class Relation implements Serializable{
private
List
<
User
>
users
;
private
List
<
User
>
users
;
/**
/**
*
主管
是否手签 1是 0否
* 是否手签 1是 0否
*/
*/
private
Integer
signature
;
private
Integer
signature
;
...
...
src/main/java/cn/timer/api/dto/spmk/User.java
View file @
766cf7fb
...
@@ -26,6 +26,4 @@ public class User implements Serializable{
...
@@ -26,6 +26,4 @@ public class User implements Serializable{
private
String
headUrl
;
private
String
headUrl
;
private
Integer
signature
;
}
}
src/main/java/cn/timer/api/utils/router/RouterUtils.java
View file @
766cf7fb
...
@@ -616,42 +616,47 @@ public class RouterUtils {
...
@@ -616,42 +616,47 @@ public class RouterUtils {
.
build
()
.
build
()
.
updateById
();
.
updateById
();
listUser
.
get
(
i_user
).
setExecute
(
EXECUTED
);
listUser
.
get
(
i_user
).
setExecute
(
EXECUTED
);
}
// 历史审批人
// 历史审批人
SpmkApproveSummary
.
builder
()
SpmkApproveSummary
.
builder
()
.
id
(
asId
)
.
id
(
asId
)
.
historyApprover
(
listUser
.
get
(
i_user
).
getName
())
.
historyApprover
(
listUser
.
get
(
i_user
).
getName
())
.
build
()
.
updateById
();
//拒绝处理
// 0未执行 1执行中 2同意 3拒绝 4 转派
if
(
sts
==
ExecutorSts
.
REFUSE
.
ordinal
())
{
// 更新 审批汇总 状态
SpmkApproveSummary
.
builder
().
id
(
asId
).
currentApprover
(
CommonEnum
.
NULL_STR
.
getDesc
()).
endTime
(
new
Date
()).
sts
(
sts
).
build
().
updateById
();
SpmkApproveExecuteRecord
.
builder
()
.
id
(
executeRecordId
)
.
sts
(
sts
)
.
build
()
.
build
()
// 更新 审批执行记录
.
updateById
();
.
updateById
();
listFlowChildren
.
get
(
i_user
).
setExecute
(
EXECUTED
);
return
;
//拒绝处理
//转派 处理
// 0未执行 1执行中 2同意 3拒绝 4 转派
//在 原审批人 列表中 插入 一个被转派人(审批人)
if
(
sts
==
ExecutorSts
.
REFUSE
.
ordinal
())
{
}
else
if
(
sts
==
ExecutorSts
.
REDEPLOY
.
ordinal
())
{
// 更新 审批汇总 状态
List
<
User
>
users1
=
CollectionUtil
.
sub
(
listUser
,
0
,
i_user
+
1
);
SpmkApproveSummary
.
builder
().
id
(
asId
).
currentApprover
(
CommonEnum
.
NULL_STR
.
getDesc
()).
endTime
(
new
Date
()).
sts
(
sts
).
build
().
updateById
();
redeployUser
.
setExecute
(
UNEXECUTED
);
SpmkApproveExecuteRecord
users1
.
add
(
redeployUser
);
.
builder
()
List
<
User
>
users2
=
CollectionUtil
.
sub
(
listUser
,
i_user
+
1
,
listUser
.
size
());
.
id
(
executeRecordId
)
.
sts
(
sts
)
.
build
()
// 更新 审批执行记录
.
updateById
();
listFlowChildren
.
get
(
i_user
).
setExecute
(
EXECUTED
);
return
;
//转派 处理
//在 原审批人 列表中 插入 一个被转派人(审批人)
}
else
if
(
sts
==
ExecutorSts
.
REDEPLOY
.
ordinal
())
{
List
<
User
>
users1
=
CollectionUtil
.
sub
(
listUser
,
0
,
i_user
+
1
);
redeployUser
.
setExecute
(
UNEXECUTED
);
users1
.
add
(
redeployUser
);
List
<
User
>
users2
=
CollectionUtil
.
sub
(
listUser
,
i_user
+
1
,
listUser
.
size
());
// System.out.println(users1);
// System.out.println(users1);
// System.out.println(users2);
// System.out.println(users2);
listUser
=
ListUtils
.
union
(
users1
,
users2
);
listUser
=
ListUtils
.
union
(
users1
,
users2
);
n_user
=
listUser
.
size
();
n_user
=
listUser
.
size
();
// System.out.println(listUser);
// System.out.println(listUser);
}
}
}
}
else
if
(
UNEXECUTED
.
equals
(
listUser
.
get
(
i_user
).
getExecute
()))
{
}
else
if
(
UNEXECUTED
.
equals
(
listUser
.
get
(
i_user
).
getExecute
()))
{
SpmkExecutor
.
builder
()
SpmkExecutor
.
builder
()
.
approveExecuteRecordId
(
executeRecordId
)
.
approveExecuteRecordId
(
executeRecordId
)
...
...
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