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
2c4abe03
Commit
2c4abe03
authored
Mar 01, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细则返回企业名称&任务详情返回选择的项目
parent
892b2fd8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
0 deletions
+28
-0
Task.java
quality-review/src/main/java/com/ruoyi/domain/Task.java
+3
-0
StrategyCarReviewTaskPending.java
.../com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
+8
-0
StrategySystemReviewTaskPending.java
...m/ruoyi/service/impl/StrategySystemReviewTaskPending.java
+8
-0
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+5
-0
TaskGetInfoResponse.java
...main/java/com/ruoyi/web/response/TaskGetInfoResponse.java
+3
-0
TaskMapper.xml
quality-review/src/main/resources/mapper/TaskMapper.xml
+1
-0
No files found.
quality-review/src/main/java/com/ruoyi/domain/Task.java
View file @
2c4abe03
...
...
@@ -152,4 +152,7 @@ public class Task {
@ApiModelProperty
(
"文件路径"
)
private
String
file
;
@ApiModelProperty
(
"选择的项目"
)
private
String
taskList
;
}
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
View file @
2c4abe03
...
...
@@ -62,6 +62,9 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
@Autowired
private
SampleManagementMapper
sampleManagementMapper
;
@Autowired
private
ReviewEnterpriseArchiveMapper
reviewEnterpriseArchiveMapper
;
// PENDING状态下
// 1.standard字段查询当前最新问卷
// 2.查询场景变更任务
...
...
@@ -165,6 +168,11 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
if
(
reviewDetailsResult
!=
null
&&
reviewDetailsResult
.
getPassed
()
!=
0
)
{
standard
.
setPassed
(
reviewDetailsResult
.
getPassed
());
}
if
(
reviewDetailsResult
!=
null
&&
reviewDetailsResult
.
getReviewEnterpriseArchiveId
()
!=
null
)
{
ReviewEnterpriseArchive
reviewEnterpriseArchive
=
reviewEnterpriseArchiveMapper
.
selectById
(
reviewDetailsResult
.
getReviewEnterpriseArchiveId
());
reviewDetailsResult
.
setEnterpriseName
(
reviewEnterpriseArchive
.
getEnterpriseName
());
reviewDetailsResultService
.
updateById
(
reviewDetailsResult
);
}
details
.
setResult
(
reviewDetailsResult
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskPending.java
View file @
2c4abe03
...
...
@@ -59,6 +59,9 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
@Autowired
private
SampleManagementMapper
sampleManagementMapper
;
@Autowired
private
ReviewEnterpriseArchiveMapper
reviewEnterpriseArchiveMapper
;
@Override
public
void
doStart
(
SystemReviewTask
systemReviewTask
)
{
throw
new
ServiceException
(
"不能开始一个已经开始的任务"
,
HttpStatus
.
ERROR
);
...
...
@@ -168,6 +171,11 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
if
(
reviewDetailsResult
!=
null
&&
reviewDetailsResult
.
getPassed
()
!=
0
)
{
standard
.
setPassed
(
reviewDetailsResult
.
getPassed
());
}
if
(
reviewDetailsResult
!=
null
&&
reviewDetailsResult
.
getReviewEnterpriseArchiveId
()
!=
null
)
{
ReviewEnterpriseArchive
reviewEnterpriseArchive
=
reviewEnterpriseArchiveMapper
.
selectById
(
reviewDetailsResult
.
getReviewEnterpriseArchiveId
());
reviewDetailsResult
.
setEnterpriseName
(
reviewEnterpriseArchive
.
getEnterpriseName
());
reviewDetailsResultService
.
updateById
(
reviewDetailsResult
);
}
details
.
setResult
(
reviewDetailsResult
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
2c4abe03
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.core.domain.model.LoginUser
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.bean.BeanUtils
;
import
com.ruoyi.domain.*
;
import
com.ruoyi.mapper.*
;
...
...
@@ -113,6 +114,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
task
.
setName
(
standard
.
getName
());
task
.
setStandardNo
(
standard
.
getStandardNo
());
task
.
setFile
(
standard
.
getFile
());
String
joinTaskList
=
StringUtils
.
join
(
request
.
getTaskList
(),
","
);
task
.
setTaskList
(
joinTaskList
);
BeanUtils
.
copyBeanProp
(
task
,
request
);
if
(
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_GRFIS
))
{
...
...
@@ -194,6 +197,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
Task
task
=
new
Task
();
task
.
setLeaderId
(
leader
.
getUserId
());
task
.
setLeader
(
leader
.
getName
());
String
joinTaskList
=
StringUtils
.
join
(
request
.
getTaskList
(),
","
);
task
.
setTaskList
(
joinTaskList
);
BeanUtils
.
copyBeanProp
(
task
,
request
);
taskService
.
updateById
(
task
);
...
...
quality-review/src/main/java/com/ruoyi/web/response/TaskGetInfoResponse.java
View file @
2c4abe03
...
...
@@ -116,6 +116,9 @@ public class TaskGetInfoResponse {
@ApiModelProperty
(
"文件路径"
)
private
String
file
;
@ApiModelProperty
(
"选择的项目"
)
private
String
taskList
;
@ApiModelProperty
(
"小组成员"
)
private
List
<
TaskUserRelation
>
auditors
;
...
...
quality-review/src/main/resources/mapper/TaskMapper.xml
View file @
2c4abe03
...
...
@@ -34,6 +34,7 @@
<result
property=
"name"
column=
"name"
jdbcType=
"VARCHAR"
/>
<result
property=
"standardNo"
column=
"standard_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"file"
column=
"file"
jdbcType=
"VARCHAR"
/>
<result
property=
"taskList"
column=
"task_list"
jdbcType=
"VARCHAR"
/>
</resultMap>
<resultMap
id=
"ResponseMap"
type=
"com.ruoyi.web.response.TaskFindResponse"
>
...
...
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