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
41c23a7c
Commit
41c23a7c
authored
Jan 15, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
体系审查问卷提交保存图片地址
parent
15f976fc
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
7 deletions
+10
-7
StrategySystemReviewTask.java
...main/java/com/ruoyi/service/StrategySystemReviewTask.java
+1
-1
StrategySystemReviewTaskClose.java
...com/ruoyi/service/impl/StrategySystemReviewTaskClose.java
+1
-1
StrategySystemReviewTaskFinish.java
...om/ruoyi/service/impl/StrategySystemReviewTaskFinish.java
+1
-1
StrategySystemReviewTaskNew.java
...a/com/ruoyi/service/impl/StrategySystemReviewTaskNew.java
+1
-1
StrategySystemReviewTaskPending.java
...m/ruoyi/service/impl/StrategySystemReviewTaskPending.java
+1
-1
StrategySystemReviewTaskSigned.java
...om/ruoyi/service/impl/StrategySystemReviewTaskSigned.java
+4
-1
SystemReviewTaskServiceImpl.java
...a/com/ruoyi/service/impl/SystemReviewTaskServiceImpl.java
+1
-1
No files found.
quality-review/src/main/java/com/ruoyi/service/StrategySystemReviewTask.java
View file @
41c23a7c
...
...
@@ -9,7 +9,7 @@ public interface StrategySystemReviewTask {
void
doConfirm
(
SystemReviewTask
systemReviewTask
);
void
doSubmit
(
SystemReviewTask
systemReviewTask
);
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
);
void
doClose
(
SystemReviewTask
systemReviewTask
);
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskClose.java
View file @
41c23a7c
...
...
@@ -26,7 +26,7 @@ public class StrategySystemReviewTaskClose implements StrategySystemReviewTask,
}
@Override
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
)
{
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个已关闭的任务"
,
HttpStatus
.
ERROR
);
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskFinish.java
View file @
41c23a7c
...
...
@@ -26,7 +26,7 @@ public class StrategySystemReviewTaskFinish implements StrategySystemReviewTask,
}
@Override
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
)
{
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个已完成的任务"
,
HttpStatus
.
ERROR
);
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskNew.java
View file @
41c23a7c
...
...
@@ -40,7 +40,7 @@ public class StrategySystemReviewTaskNew implements StrategySystemReviewTask, In
}
@Override
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
)
{
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个尚未开始的任务"
,
HttpStatus
.
ERROR
);
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskPending.java
View file @
41c23a7c
...
...
@@ -55,7 +55,7 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
}
@Override
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
)
{
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个未确认的任务"
,
HttpStatus
.
ERROR
);
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskSigned.java
View file @
41c23a7c
...
...
@@ -50,7 +50,7 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
}
@Override
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
)
{
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
)
{
// 1. 填充task_end_time
systemReviewTask
.
setTaskEndTime
(
new
Date
());
...
...
@@ -64,6 +64,9 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
systemReviewTask
.
setSubmitById
(
loginUser
.
getUserId
());
systemReviewTask
.
setSubmitByName
(
loginUser
.
getNickName
());
// 4.保存签名图片地址
systemReviewTask
.
setImagesUrl
(
imagesUrl
);
systemReviewTaskMapper
.
updateById
(
systemReviewTask
);
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/SystemReviewTaskServiceImpl.java
View file @
41c23a7c
...
...
@@ -125,7 +125,7 @@ public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMap
@Override
public
void
submit
(
SystemReviewTaskSubmitRequest
request
)
{
SystemReviewTask
systemReviewTask
=
systemReviewTaskService
.
getById
(
request
.
getTaskId
());
strategySystemReviewTaskContext
.
getResource
(
systemReviewTask
.
getTaskStatus
()).
doSubmit
(
systemReviewTask
);
strategySystemReviewTaskContext
.
getResource
(
systemReviewTask
.
getTaskStatus
()).
doSubmit
(
systemReviewTask
,
request
.
getImagesUrl
()
);
}
}
...
...
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