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
6543fc46
Commit
6543fc46
authored
Mar 01, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
细则返回企业名称 See merge request
!110
parents
8856858f
378fdc3d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
3 deletions
+29
-3
Task.java
quality-review/src/main/java/com/ruoyi/domain/Task.java
+3
-0
StrategyCarReviewTaskPending.java
.../com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
+7
-0
StrategySystemReviewTaskPending.java
...m/ruoyi/service/impl/StrategySystemReviewTaskPending.java
+7
-0
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+5
-0
ReviewEnterpriseArchiveController.java
...java/com/ruoyi/web/ReviewEnterpriseArchiveController.java
+2
-2
TaskGetInfoResponse.java
...main/java/com/ruoyi/web/response/TaskGetInfoResponse.java
+3
-0
TaskMapper.xml
quality-review/src/main/resources/mapper/TaskMapper.xml
+2
-1
No files found.
quality-review/src/main/java/com/ruoyi/domain/Task.java
View file @
6543fc46
...
...
@@ -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 @
6543fc46
...
...
@@ -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,10 @@ 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
());
}
details
.
setResult
(
reviewDetailsResult
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskPending.java
View file @
6543fc46
...
...
@@ -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,10 @@ 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
());
}
details
.
setResult
(
reviewDetailsResult
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
6543fc46
...
...
@@ -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/ReviewEnterpriseArchiveController.java
View file @
6543fc46
...
...
@@ -62,9 +62,9 @@ public class ReviewEnterpriseArchiveController extends BaseController {
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Log
(
title
=
"车企文件"
,
businessType
=
BusinessType
.
INSERT
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/add"
)
public
R
<
Lo
ng
>
addEnterpriseArchive
(
@Validated
@RequestBody
ReviewEnterpriseArchive
reviewEnterpriseArchive
)
{
public
R
<
Stri
ng
>
addEnterpriseArchive
(
@Validated
@RequestBody
ReviewEnterpriseArchive
reviewEnterpriseArchive
)
{
reviewEnterpriseArchiveService
.
addEnterpriseArchive
(
reviewEnterpriseArchive
);
return
R
.
ok
(
reviewEnterpriseArchive
.
getId
());
return
R
.
ok
(
reviewEnterpriseArchive
.
getId
()
.
toString
()
);
}
@ApiOperation
(
"编辑车企文件"
)
...
...
quality-review/src/main/java/com/ruoyi/web/response/TaskGetInfoResponse.java
View file @
6543fc46
...
...
@@ -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 @
6543fc46
...
...
@@ -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"
>
...
...
@@ -162,7 +163,7 @@
</select>
<select
id=
"findByUserId"
resultMap=
"ResponseMap"
>
SELECT t.id, t.system_review_task_id, t.car_review_task_id,
t.task_no,t.task_name,t.task_status,t.name,
t.task_no,t.task_name,t.task_status,t.
run_status,t.
name,
t.product_model,
t.leader_id,t.leader,
t.task_begin_time,
...
...
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