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
15f976fc
Commit
15f976fc
authored
Jan 15, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车型问卷提交
parent
9389bbe8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
7 deletions
+10
-7
StrategyCarReviewTask.java
...rc/main/java/com/ruoyi/service/StrategyCarReviewTask.java
+1
-1
CarReviewTaskServiceImpl.java
...java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
+1
-1
StrategyCarReviewTaskFinish.java
...a/com/ruoyi/service/impl/StrategyCarReviewTaskFinish.java
+1
-1
StrategyCarReviewTaskNew.java
...java/com/ruoyi/service/impl/StrategyCarReviewTaskNew.java
+1
-1
StrategyCarReviewTaskNone.java
...ava/com/ruoyi/service/impl/StrategyCarReviewTaskNone.java
+1
-1
StrategyCarReviewTaskPending.java
.../com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
+1
-1
StrategyCarReviewTaskSigned.java
...a/com/ruoyi/service/impl/StrategyCarReviewTaskSigned.java
+4
-1
No files found.
quality-review/src/main/java/com/ruoyi/service/StrategyCarReviewTask.java
View file @
15f976fc
...
@@ -11,5 +11,5 @@ public interface StrategyCarReviewTask {
...
@@ -11,5 +11,5 @@ public interface StrategyCarReviewTask {
void
doConfirmReview
(
CarReviewTask
carReviewTask
);
void
doConfirmReview
(
CarReviewTask
carReviewTask
);
void
doSubmitReview
(
CarReviewTask
carReviewTask
);
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
View file @
15f976fc
...
@@ -137,7 +137,7 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
...
@@ -137,7 +137,7 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
public
void
submitReviewTask
(
CarReviewTaskSubmitRequest
request
)
{
public
void
submitReviewTask
(
CarReviewTaskSubmitRequest
request
)
{
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
request
.
getTaskId
());
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
request
.
getTaskId
());
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
getReviewStatus
()).
doSubmitReview
(
carReviewTask
);
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
getReviewStatus
()).
doSubmitReview
(
carReviewTask
,
request
.
getImagesUrl
()
);
}
}
@Override
@Override
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskFinish.java
View file @
15f976fc
...
@@ -44,7 +44,7 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi
...
@@ -44,7 +44,7 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi
}
}
@Override
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
)
{
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个结束的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个结束的任务"
,
HttpStatus
.
ERROR
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskNew.java
View file @
15f976fc
...
@@ -67,7 +67,7 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
...
@@ -67,7 +67,7 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
}
}
@Override
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
)
{
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个未开始的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个未开始的任务"
,
HttpStatus
.
ERROR
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskNone.java
View file @
15f976fc
...
@@ -39,7 +39,7 @@ public class StrategyCarReviewTaskNone implements StrategyCarReviewTask, Initial
...
@@ -39,7 +39,7 @@ public class StrategyCarReviewTaskNone implements StrategyCarReviewTask, Initial
}
}
@Override
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
)
{
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个不存在的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个不存在的任务"
,
HttpStatus
.
ERROR
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
View file @
15f976fc
...
@@ -119,7 +119,7 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
...
@@ -119,7 +119,7 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
}
}
@Override
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
)
{
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个未确认的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个未确认的任务"
,
HttpStatus
.
ERROR
);
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskSigned.java
View file @
15f976fc
...
@@ -60,7 +60,7 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
...
@@ -60,7 +60,7 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
}
}
@Override
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
)
{
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
// 1. 填充review_submit_time
// 1. 填充review_submit_time
carReviewTask
.
setReviewSubmitTime
(
new
Date
());
carReviewTask
.
setReviewSubmitTime
(
new
Date
());
...
@@ -74,6 +74,9 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
...
@@ -74,6 +74,9 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
carReviewTask
.
setReviewSubmitId
(
loginUser
.
getUserId
());
carReviewTask
.
setReviewSubmitId
(
loginUser
.
getUserId
());
carReviewTask
.
setReviewSubmitName
(
loginUser
.
getNickName
());
carReviewTask
.
setReviewSubmitName
(
loginUser
.
getNickName
());
// 4. 保存签名图片地址
carReviewTask
.
setReviewImagesUrl
(
imagesUrl
);
carReviewTaskMapper
.
updateById
(
carReviewTask
);
carReviewTaskMapper
.
updateById
(
carReviewTask
);
}
}
...
...
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