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
a9e7ec19
Commit
a9e7ec19
authored
Jan 08, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查看车辆审查任务
parent
fd217a6c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
2 deletions
+31
-2
CarReviewTask.java
...-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
+2
-0
CarReviewTaskServiceImpl.java
...java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
+1
-1
StrategySystemReviewTaskPending.java
...m/ruoyi/service/impl/StrategySystemReviewTaskPending.java
+1
-1
CarReviewTaskController.java
.../src/main/java/com/ruoyi/web/CarReviewTaskController.java
+13
-0
CarReviewTaskViewRequest.java
.../java/com/ruoyi/web/request/CarReviewTaskViewRequest.java
+14
-0
No files found.
quality-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
View file @
a9e7ec19
...
@@ -25,6 +25,8 @@ public class CarReviewTask implements Serializable {
...
@@ -25,6 +25,8 @@ public class CarReviewTask implements Serializable {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
public
static
final
String
TASK_STATUS_FINISH
=
"FINISH"
;
public
static
final
String
TASK_STATUS_FINISH
=
"FINISH"
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
public
static
final
String
REVIEW_STATUS_NONE
=
"NONE"
;
public
static
final
String
REVIEW_STATUS_NONE
=
"NONE"
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
...
...
quality-review/src/main/java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
View file @
a9e7ec19
...
@@ -117,7 +117,7 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
...
@@ -117,7 +117,7 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
@Override
@Override
public
CarReviewTaskViewResponse
viewReviewTask
(
Long
taskId
)
{
public
CarReviewTaskViewResponse
viewReviewTask
(
Long
taskId
)
{
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
taskId
);
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
taskId
);
return
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
getTaskStatus
()).
doView
(
carReviewTask
);
return
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
getTaskStatus
()
+
"SystemReviewTask"
).
doView
(
carReviewTask
);
}
}
@Override
@Override
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskPending.java
View file @
a9e7ec19
...
@@ -20,7 +20,7 @@ import java.util.function.Function;
...
@@ -20,7 +20,7 @@ import java.util.function.Function;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Transactional
@Transactional
@Service
(
SystemReviewTask
.
STATUS_PENDING
)
@Service
(
SystemReviewTask
.
STATUS_PENDING
+
"SystemReviewTask"
)
public
class
StrategySystemReviewTaskPending
implements
StrategySystemReviewTask
{
public
class
StrategySystemReviewTaskPending
implements
StrategySystemReviewTask
{
@Autowired
@Autowired
...
...
quality-review/src/main/java/com/ruoyi/web/CarReviewTaskController.java
View file @
a9e7ec19
...
@@ -6,6 +6,10 @@ import com.ruoyi.common.core.domain.R;
...
@@ -6,6 +6,10 @@ import com.ruoyi.common.core.domain.R;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.service.CarReviewTaskService
;
import
com.ruoyi.service.CarReviewTaskService
;
import
com.ruoyi.web.request.CarReviewTaskCreateRequest
;
import
com.ruoyi.web.request.CarReviewTaskCreateRequest
;
import
com.ruoyi.web.request.CarReviewTaskViewRequest
;
import
com.ruoyi.web.request.SystemReviewTaskViewRequest
;
import
com.ruoyi.web.response.CarReviewTaskViewResponse
;
import
com.ruoyi.web.response.SystemReviewTaskViewResponse
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.skywalking.apm.toolkit.trace.Tag
;
import
org.apache.skywalking.apm.toolkit.trace.Tag
;
...
@@ -36,5 +40,14 @@ public class CarReviewTaskController extends BaseController {
...
@@ -36,5 +40,14 @@ public class CarReviewTaskController extends BaseController {
return
R
.
ok
();
return
R
.
ok
();
}
}
@ApiOperation
(
"查看车辆审查任务详情"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/view"
)
public
R
<
CarReviewTaskViewResponse
>
view
(
@Validated
@RequestBody
CarReviewTaskViewRequest
request
)
{
CarReviewTaskViewResponse
carReviewTaskViewResponse
=
carReviewTaskService
.
viewReviewTask
(
request
.
getTaskId
());
return
R
.
ok
(
carReviewTaskViewResponse
);
}
}
}
quality-review/src/main/java/com/ruoyi/web/request/CarReviewTaskViewRequest.java
0 → 100644
View file @
a9e7ec19
package
com
.
ruoyi
.
web
.
request
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
value
=
"CarReviewTaskViewRequest"
,
description
=
"查兰车辆审查任务"
)
@Data
public
class
CarReviewTaskViewRequest
{
@ApiModelProperty
(
"任务id"
)
private
Long
taskId
;
}
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