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
f06da3e7
Commit
f06da3e7
authored
Jul 27, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
Lal See merge request 8timerv2/8timerapiv200!345
parents
6609adc0
0b9f1226
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
src/main/java/cn/timer/api/bean/spmk/SpmkApproveSummary.java
+1
-1
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+3
-1
src/main/java/cn/timer/api/utils/router/RouterUtils.java
+5
-0
No files found.
src/main/java/cn/timer/api/bean/spmk/SpmkApproveSummary.java
View file @
f06da3e7
...
@@ -65,7 +65,7 @@ public class SpmkApproveSummary extends Model<SpmkApproveSummary> {
...
@@ -65,7 +65,7 @@ public class SpmkApproveSummary extends Model<SpmkApproveSummary> {
private
String
approveName
;
private
String
approveName
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ApiModelProperty
(
value
=
"状态 0审批中 1审批撤销 2审批通过/审批完成 3审批拒绝"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"状态 0审批中 1审批撤销 2审批通过/审批完成 3审批拒绝
4:已审批 5:全部
"
,
example
=
"101"
)
private
Integer
sts
;
private
Integer
sts
;
@ApiModelProperty
(
value
=
"当前审批人 "
,
example
=
"当前审批人"
)
@ApiModelProperty
(
value
=
"当前审批人 "
,
example
=
"当前审批人"
)
...
...
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
f06da3e7
package
cn
.
timer
.
api
.
controller
.
spmk
;
package
cn
.
timer
.
api
.
controller
.
spmk
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -378,6 +379,7 @@ public class SpmkController {
...
@@ -378,6 +379,7 @@ public class SpmkController {
ca
.
setOrgCode
(
userBean
.
getOrgCode
());
ca
.
setOrgCode
(
userBean
.
getOrgCode
());
ca
.
setFroms
(
ObjectUtil
.
serialize
(
spmkCustomApprovalDto
.
getFroms
()));
ca
.
setFroms
(
ObjectUtil
.
serialize
(
spmkCustomApprovalDto
.
getFroms
()));
ca
.
setRouter
(
ObjectUtil
.
serialize
(
spmkCustomApprovalDto
.
getRouter
()));
ca
.
setRouter
(
ObjectUtil
.
serialize
(
spmkCustomApprovalDto
.
getRouter
()));
ca
.
setUpdateTime
(
new
Date
());
//1.新增 SpmkCustomApproval-自定义审批
//1.新增 SpmkCustomApproval-自定义审批
if
(!
ca
.
insertOrUpdate
())
if
(!
ca
.
insertOrUpdate
())
...
...
src/main/java/cn/timer/api/utils/router/RouterUtils.java
View file @
f06da3e7
...
@@ -159,6 +159,7 @@ public class RouterUtils {
...
@@ -159,6 +159,7 @@ public class RouterUtils {
if
(
router
.
getRelation
().
size
()
>
0
)
{
if
(
router
.
getRelation
().
size
()
>
0
)
{
// if (r != null && RELATION_TYPE_USERS.equals(r.getType())) {
// if (r != null && RELATION_TYPE_USERS.equals(r.getType())) {
List
<
User
>
listUser
=
router
.
getRelation
().
get
(
0
).
getUsers
();
List
<
User
>
listUser
=
router
.
getRelation
().
get
(
0
).
getUsers
();
if
(
listUser
!=
null
)
{
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
();
...
@@ -175,6 +176,10 @@ public class RouterUtils {
...
@@ -175,6 +176,10 @@ public class RouterUtils {
}
}
}
}
}
else
{
throw
new
Exception
(
"发起审批有误"
);
}
// }
// }
}
else
{
}
else
{
throw
new
Exception
(
"审批人为空"
);
throw
new
Exception
(
"审批人为空"
);
...
...
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