Commit 4077aff2 authored by wdy's avatar wdy

Merge branch 'wangdingyi' into 'dev'

数据统计

See merge request !152
parents db18e1a2 dcc9db2f
...@@ -62,8 +62,8 @@ public class DataStatisticsUtils { ...@@ -62,8 +62,8 @@ public class DataStatisticsUtils {
isPass = false; isPass = false;
} }
if(passed == ReviewStandard.PASSED) { if(passed == ReviewStandard.NO_PASSED) {
isPass = false; isPass = true;
} }
......
...@@ -582,13 +582,11 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas ...@@ -582,13 +582,11 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
public DataStatisticsResponse dataStatistics(TaskGetInfoRequest request) { public DataStatisticsResponse dataStatistics(TaskGetInfoRequest request) {
Task task = taskMapper.selectById(request.getId()); Task task = taskMapper.selectById(request.getId());
SystemReviewTask systemReviewTask = systemReviewTaskMapper.selectById(task.getSystemReviewTaskId());
CarReviewTask carReviewTask = carReviewTaskMapper.selectById(task.getCarReviewTaskId());
DataStatisticsResponse response = new DataStatisticsResponse(); DataStatisticsResponse response = new DataStatisticsResponse();
if (task.getSystemReviewTaskId() != null) {
SystemReviewTask systemReviewTask = systemReviewTaskMapper.selectById(task.getSystemReviewTaskId());
// 获取最新问卷 // 获取最新问卷
List<ReviewStandard> standardTree = reviewStandardService.findTree(systemReviewTask.getStandardId(), ReviewStandard.TYPE_SYSTEM); List<ReviewStandard> standardTree = reviewStandardService.findTree(systemReviewTask.getStandardId(), ReviewStandard.TYPE_SYSTEM);
...@@ -598,6 +596,13 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas ...@@ -598,6 +596,13 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
// 体系审查 // 体系审查
setSystemDataStatistics(standardTree,results,response); setSystemDataStatistics(standardTree,results,response);
return response;
}
if (task.getCarReviewTaskId() != null) {
CarReviewTask carReviewTask = carReviewTaskMapper.selectById(task.getCarReviewTaskId());
// 获取最新问卷 // 获取最新问卷
List<ReviewStandard> carStandardTree = reviewStandardService.findTree(carReviewTask.getStandardId(), ReviewStandard.TYPE_CAR); List<ReviewStandard> carStandardTree = reviewStandardService.findTree(carReviewTask.getStandardId(), ReviewStandard.TYPE_CAR);
...@@ -608,6 +613,11 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas ...@@ -608,6 +613,11 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
setCarDataStatistics(carStandardTree,carResults,response); setCarDataStatistics(carStandardTree,carResults,response);
return response; return response;
}
return null;
} }
......
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