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
62bdb65d
Commit
62bdb65d
authored
4 years ago
by
tangzhaoqian
Committed by
chenzg
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批 优化
parent
6eb836f8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
9 deletions
+13
-9
src/main/java/cn/timer/api/config/exception/Regular.java
+1
-1
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
+1
-1
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+1
-1
src/main/java/cn/timer/api/dto/jxgl/AppraisalUpdateSts.java
+1
-1
src/main/java/cn/timer/api/utils/router/RouterUtils.java
+9
-5
No files found.
src/main/java/cn/timer/api/config/exception/Regular.java
View file @
62bdb65d
...
...
@@ -14,7 +14,7 @@ public class Regular {
* 手机号码
*/
// public static final String PHONE = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[013678])|(18[0,5-9]))\\d{8}$";
public
static
final
String
PHONE
=
"^[1]{10}$"
;
public
static
final
String
PHONE
=
"^[1]
[0-9]
{10}$"
;
/**
* 账号是否合法
*/
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
View file @
62bdb65d
...
...
@@ -633,7 +633,7 @@ public class JxglController {
.
eq
(
JxglPerformanceAppraisal:
:
getId
,
appraisalUpdateSts
.
getId
())
.
eq
(
JxglPerformanceAppraisal:
:
getSts
,
appraisalUpdateSts
.
getSts
()));
if
(
performanceAppraisal
==
null
)
{
if
(
performanceAppraisal
==
null
&&
appraisalUpdateSts
.
getSts
()
!=
PerformanceAppraisalSts
.
PERFORMANCE_ARCHIVE
.
getType
()
)
{
return
ResultUtil
.
error
(
"绩效考核不存在"
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
62bdb65d
...
...
@@ -580,7 +580,7 @@ public class SpmkController {
throw
new
CustomException
(
"审批汇总-新增异常"
);
}
// 插入记录
// 插入记录
- 审批执行记录 - 执行人记录
RouterUtils
.
insertogExecuteRecord
(
listFlowChildren
,
as
.
getId
());
// 封装 审批详情
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dto/jxgl/AppraisalUpdateSts.java
View file @
62bdb65d
...
...
@@ -20,7 +20,7 @@ public class AppraisalUpdateSts {
private
Integer
id
;
@NotNull
(
message
=
ValidationMsg
.
NOTNULL
)
@ApiModelProperty
(
value
=
"状态
"
,
example
=
"
"
)
@ApiModelProperty
(
value
=
"状态
0目标制定 1绩效评分 2结果确认 3绩效归档 4终止考核"
,
example
=
"0
"
)
private
Integer
sts
;
}
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/router/RouterUtils.java
View file @
62bdb65d
...
...
@@ -363,11 +363,15 @@ public class RouterUtils {
Router
router
;
if
(
listRouter
!=
null
&&
listRouter
.
size
()
==
1
)
{
router
=
listRouter
.
get
(
0
);
if
(
router
.
getFlow
())
{
FlowChildren
fc
=
FlowChildren
.
builder
().
build
();
BeanUtil
.
copyProperties
(
router
,
fc
,
"condition"
,
"children"
);
listFlowChildren
.
add
(
fc
);
getIsFlowChildren
(
router
.
getChildren
(),
listFlowChildren
);
Relation
relation
=
CollectionUtil
.
getFirst
(
router
.
getRelation
());
if
(
relation
!=
null
&&
CollectionUtil
.
isNotEmpty
(
relation
.
getUsers
()))
{
if
(
router
.
getFlow
())
{
FlowChildren
fc
=
FlowChildren
.
builder
().
build
();
BeanUtil
.
copyProperties
(
router
,
fc
,
"condition"
,
"children"
);
listFlowChildren
.
add
(
fc
);
getIsFlowChildren
(
router
.
getChildren
(),
listFlowChildren
);
}
}
}
else
if
(
listRouter
!=
null
&&
listRouter
.
size
()
>
1
)
{
...
...
This diff is collapsed.
Click to expand it.
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