Commit d88ae6e7 authored by wdy's avatar wdy

任务概览、部门管理查看详情

parent 81652c50
......@@ -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;
......
......@@ -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;
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment