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
d88ae6e7
Commit
d88ae6e7
authored
Apr 03, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务概览、部门管理查看详情
parent
81652c50
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+8
-0
DataStatisticsResponse.java
...n/java/com/ruoyi/web/response/DataStatisticsResponse.java
+9
-0
SysDeptMapper.xml
...system/src/main/resources/mapper/system/SysDeptMapper.xml
+1
-1
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
d88ae6e7
...
...
@@ -636,6 +636,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
if
(
task
.
getSystemReviewTaskId
()
!=
null
)
{
response
.
setSystemExist
(
true
);
systemReviewTaskService
.
view
(
task
.
getSystemReviewTaskId
());
SystemReviewTask
systemReviewTask
=
systemReviewTaskMapper
.
selectById
(
task
.
getSystemReviewTaskId
());
...
...
@@ -648,10 +650,14 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
// 体系审查
setSystemDataStatistics
(
standardTree
,
results
,
response
,
systemReviewTask
);
}
else
{
response
.
setSystemExist
(
false
);
}
if
(
task
.
getCarReviewTaskId
()
!=
null
)
{
response
.
setCarExist
(
true
);
carReviewTaskService
.
viewReviewTask
(
task
.
getCarReviewTaskId
());
CarReviewTask
carReviewTask
=
carReviewTaskMapper
.
selectById
(
task
.
getCarReviewTaskId
());
...
...
@@ -665,6 +671,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
// 车型审查
setCarDataStatistics
(
carStandardTree
,
carResults
,
response
,
carReviewTask
);
}
else
{
response
.
setCarExist
(
false
);
}
return
response
;
...
...
quality-review/src/main/java/com/ruoyi/web/response/DataStatisticsResponse.java
View file @
d88ae6e7
...
...
@@ -8,6 +8,9 @@ import lombok.Data;
@Data
public
class
DataStatisticsResponse
{
@ApiModelProperty
(
"是否存在体系审查"
)
private
Boolean
systemExist
;
@ApiModelProperty
(
"体系用例审查通过率"
)
private
Double
systemDetailsPass
;
...
...
@@ -38,6 +41,9 @@ public class DataStatisticsResponse {
@ApiModelProperty
(
"体系标准审查中"
)
private
Integer
systemStandardsUnderNum
;
@ApiModelProperty
(
"是否存在车型审查"
)
private
Boolean
carExist
;
@ApiModelProperty
(
" 车型审查用例审查通过率"
)
private
Double
carDetailsPass
;
...
...
@@ -68,6 +74,9 @@ public class DataStatisticsResponse {
@ApiModelProperty
(
" 车型审查标准审查中"
)
private
Integer
carStandardsUnderNum
;
@ApiModelProperty
(
"是否存在车型试验"
)
private
Boolean
testExist
;
@ApiModelProperty
(
" 车型试验用例审查通过率"
)
private
Double
testDetailsPass
;
...
...
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
View file @
d88ae6e7
...
...
@@ -62,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectDeptById"
parameterType=
"Long"
resultMap=
"SysDeptResult"
>
select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status,
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
, d.address, d.postcode
from sys_dept d
where d.dept_id = #{deptId}
</select>
...
...
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