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
0a58b3b7
Commit
0a58b3b7
authored
Mar 11, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
自动带入企业名称 See merge request
!155
parents
5a0af64e
579025ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
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
+6
-0
StrategySystemReviewTaskPending.java
...m/ruoyi/service/impl/StrategySystemReviewTaskPending.java
+7
-0
No files found.
quality-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
View file @
0a58b3b7
...
@@ -171,4 +171,8 @@ public class CarReviewTask implements Serializable {
...
@@ -171,4 +171,8 @@ public class CarReviewTask implements Serializable {
@ApiModelProperty
(
"参与审查人数(人)"
)
@ApiModelProperty
(
"参与审查人数(人)"
)
private
Integer
person
;
private
Integer
person
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"企业名称"
)
private
String
enterpriseName
;
}
}
quality-review/src/main/java/com/ruoyi/domain/SystemReviewTask.java
View file @
0a58b3b7
...
@@ -175,4 +175,8 @@ public class SystemReviewTask {
...
@@ -175,4 +175,8 @@ public class SystemReviewTask {
@ApiModelProperty
(
"参与审查人数(人)"
)
@ApiModelProperty
(
"参与审查人数(人)"
)
private
Integer
person
;
private
Integer
person
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"企业名称"
)
private
String
enterpriseName
;
}
}
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
View file @
0a58b3b7
...
@@ -108,6 +108,12 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
...
@@ -108,6 +108,12 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
// 查询场景变更任务便于提醒用户场景变动
// 查询场景变更任务便于提醒用户场景变动
List
<
ReviewSceneChangeTask
>
lastChanges
=
reviewSceneChangeTaskService
.
findLastChangeByTaskId
(
carReviewTask
.
getId
());
List
<
ReviewSceneChangeTask
>
lastChanges
=
reviewSceneChangeTaskService
.
findLastChangeByTaskId
(
carReviewTask
.
getId
());
List
<
TaskSampleRelation
>
sampleRelations
=
taskSampleRelationMapper
.
selectByTaskId
(
taskMapper
.
findByCarReviewTaskId
(
carReviewTask
.
getId
()),
TaskSampleRelation
.
COMPLETE_VEHICLE_SAMPLE
);
TaskSampleRelation
taskSampleRelation
=
sampleRelations
.
get
(
0
);
Sample
sample
=
sampleManagementMapper
.
selectSampleManagementById
(
taskSampleRelation
.
getSampleId
());
carReviewTask
.
setEnterpriseName
(
sample
.
getManufacturingEnterprise
());
// 构建返回结果
// 构建返回结果
CarReviewTaskViewResponse
response
=
new
CarReviewTaskViewResponse
();
CarReviewTaskViewResponse
response
=
new
CarReviewTaskViewResponse
();
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskPending.java
View file @
0a58b3b7
...
@@ -151,6 +151,13 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
...
@@ -151,6 +151,13 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
// 查询场景变更任务便于提醒用户场景变动
// 查询场景变更任务便于提醒用户场景变动
List
<
ReviewSceneChangeTask
>
lastChanges
=
reviewSceneChangeTaskService
.
findLastChangeByTaskId
(
systemReviewTask
.
getId
());
List
<
ReviewSceneChangeTask
>
lastChanges
=
reviewSceneChangeTaskService
.
findLastChangeByTaskId
(
systemReviewTask
.
getId
());
List
<
TaskSampleRelation
>
sampleRelations
=
taskSampleRelationMapper
.
selectByTaskId
(
taskMapper
.
findBySystemReviewTaskId
(
systemReviewTask
.
getId
()),
TaskSampleRelation
.
COMPLETE_VEHICLE_SAMPLE
);
TaskSampleRelation
taskSampleRelation
=
sampleRelations
.
get
(
0
);
Sample
sample
=
sampleManagementMapper
.
selectSampleManagementById
(
taskSampleRelation
.
getSampleId
());
systemReviewTask
.
setEnterpriseName
(
sample
.
getManufacturingEnterprise
());
// 构建返回结果
// 构建返回结果
SystemReviewTaskViewResponse
response
=
new
SystemReviewTaskViewResponse
();
SystemReviewTaskViewResponse
response
=
new
SystemReviewTaskViewResponse
();
systemReviewTask
.
setImagesUrl
(
"/vehicle-quality-review-oss/2024/03/04/qianzi1_20240304104011A001.jpg,/vehicle-quality-review-oss/2024/03/04/qianzi2_20240304104121A002.jpg"
);
systemReviewTask
.
setImagesUrl
(
"/vehicle-quality-review-oss/2024/03/04/qianzi1_20240304104011A001.jpg,/vehicle-quality-review-oss/2024/03/04/qianzi2_20240304104121A002.jpg"
);
...
...
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