Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
vehicle-quality-review
Commits
914ae58d
Commit
914ae58d
authored
Jan 25, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码完善
parent
69ed36a3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
CarReviewTask.java
...-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
+4
-0
SystemReviewTask.java
...view/src/main/java/com/ruoyi/domain/SystemReviewTask.java
+4
-0
StrategyCarReviewTaskPending.java
.../com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
+3
-3
StrategySystemReviewTaskPending.java
...m/ruoyi/service/impl/StrategySystemReviewTaskPending.java
+3
-5
No files found.
quality-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
View file @
914ae58d
...
...
@@ -31,6 +31,10 @@ public class CarReviewTask implements Serializable {
public
static
final
String
TASK_STATUS_FINISH
=
"FINISH"
;
@TableField
(
exist
=
false
)
public
static
final
String
TYPE
=
"car"
;
@TableField
(
exist
=
false
)
public
static
final
String
REVIEW_STATUS_NONE
=
"NONE"
;
...
...
quality-review/src/main/java/com/ruoyi/domain/SystemReviewTask.java
View file @
914ae58d
...
...
@@ -36,6 +36,10 @@ public class SystemReviewTask {
public
static
final
String
STATUS_CLOSE
=
"CLOSE"
;
@TableField
(
exist
=
false
)
public
static
final
String
TYPE
=
"system"
;
/**
* 主键
*/
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
View file @
914ae58d
...
...
@@ -90,11 +90,11 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
@Override
public
void
doConfirmReview
(
CarReviewTask
carReviewTask
)
{
List
<
ReviewDetails
>
detailsList
=
reviewDetailsMapper
.
findNoResult
(
carReviewTask
.
getId
(),
"car"
);
List
<
ReviewDetails
>
detailsList
=
reviewDetailsMapper
.
findNoResult
(
carReviewTask
.
getId
(),
CarReviewTask
.
TYPE
);
List
<
ReviewTaskInbox
>
inboxList
=
reviewTaskInboxMapper
.
findConfirmListByTaskId
(
carReviewTask
.
getId
());
if
(
detailsList
.
size
()
!=
0
)
{
if
(
detailsList
.
size
()
!=
0
&&
detailsList
!=
null
)
{
throw
new
ServiceException
(
"存在未填写的问卷,请填写完整"
,
HttpStatus
.
ERROR
,
detailsList
);
}
else
if
(
inboxList
.
size
()
!=
0
)
{
}
else
if
(
inboxList
.
size
()
!=
0
&&
inboxList
!=
null
)
{
throw
new
ServiceException
(
"存在未确认的场景变更信息,请确认"
,
HttpStatus
.
ERROR
);
}
else
{
// 1. 获取最新问卷
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskPending.java
View file @
914ae58d
...
...
@@ -72,13 +72,11 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
@Override
public
void
doConfirm
(
SystemReviewTask
systemReviewTask
)
{
// TODO
List
<
ReviewDetails
>
detailsList
=
reviewDetailsMapper
.
findNoResult
(
systemReviewTask
.
getId
(),
"system"
);
System
.
out
.
println
(
"detailsList = "
+
detailsList
);
List
<
ReviewDetails
>
detailsList
=
reviewDetailsMapper
.
findNoResult
(
systemReviewTask
.
getId
(),
SystemReviewTask
.
TYPE
);
List
<
ReviewTaskInbox
>
inboxList
=
reviewTaskInboxMapper
.
findConfirmListByTaskId
(
systemReviewTask
.
getId
());
if
(
detailsList
.
size
()
!=
0
)
{
if
(
detailsList
.
size
()
!=
0
&&
detailsList
!=
null
)
{
throw
new
ServiceException
(
"存在未填写的问卷,请填写完整"
,
HttpStatus
.
ERROR
,
detailsList
);
}
else
if
(
inboxList
.
size
()
!=
0
){
}
else
if
(
inboxList
.
size
()
!=
0
&&
inboxList
!=
null
){
throw
new
ServiceException
(
"存在未确认的场景变更信息,请确认"
,
HttpStatus
.
ERROR
);
}
else
{
// 1. 获取最新问卷
...
...
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