Commit 6791a9bc authored by 盖献康's avatar 盖献康

Merge branch 'dev' of...

Merge branch 'dev' of ssh://gitlab.91isoft.com:10022/wangfei/vehicle-quality-review into gaixiankang
parents 9b1ff9ea 90ea0cd9
...@@ -53,7 +53,7 @@ public class DataStatisticsUtils { ...@@ -53,7 +53,7 @@ public class DataStatisticsUtils {
for(ReviewStandard standard : standards) { for(ReviewStandard standard : standards) {
List<ReviewDetails> details = getDetailsByStandard(standard); List<ReviewDetails> details = getDetailsByStandard(standard);
boolean isPass = true; boolean isPass = false;
for(ReviewDetails reviewDetails : details) { for(ReviewDetails reviewDetails : details) {
......
...@@ -171,9 +171,12 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init ...@@ -171,9 +171,12 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
for(ReviewDetails details : reviewDetailsList) { for(ReviewDetails details : reviewDetailsList) {
ReviewDetailsResult reviewDetailsResult = resultMap.get(details.getId()); ReviewDetailsResult reviewDetailsResult = resultMap.get(details.getId());
if(reviewDetailsResult == null || Objects.equals(reviewDetailsResult.getPassed(), ReviewStandard.NO_PASSED)) { if(reviewDetailsResult != null && Objects.equals(reviewDetailsResult.getPassed(), ReviewStandard.NO_PASSED)) {
standard.setPassed(ReviewStandard.NO_PASSED); standard.setPassed(ReviewStandard.NO_PASSED);
} }
if(reviewDetailsResult == null) {
standard.setPassed(null);
}
if(reviewDetailsResult != null && reviewDetailsResult.getReviewEnterpriseArchiveId() != null) { if(reviewDetailsResult != null && reviewDetailsResult.getReviewEnterpriseArchiveId() != null) {
ReviewEnterpriseArchive reviewEnterpriseArchive = reviewEnterpriseArchiveMapper.selectById(reviewDetailsResult.getReviewEnterpriseArchiveId()); ReviewEnterpriseArchive reviewEnterpriseArchive = reviewEnterpriseArchiveMapper.selectById(reviewDetailsResult.getReviewEnterpriseArchiveId());
reviewDetailsResult.setFileName(reviewEnterpriseArchive.getFileName()); reviewDetailsResult.setFileName(reviewEnterpriseArchive.getFileName());
......
...@@ -170,9 +170,12 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask ...@@ -170,9 +170,12 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
for(ReviewDetails details : reviewDetailsList) { for(ReviewDetails details : reviewDetailsList) {
ReviewDetailsResult reviewDetailsResult = resultMap.get(details.getId()); ReviewDetailsResult reviewDetailsResult = resultMap.get(details.getId());
if(reviewDetailsResult == null || Objects.equals(reviewDetailsResult.getPassed(), ReviewStandard.NO_PASSED)) { if(reviewDetailsResult != null && Objects.equals(reviewDetailsResult.getPassed(), ReviewStandard.NO_PASSED)) {
standard.setPassed(ReviewStandard.NO_PASSED); standard.setPassed(ReviewStandard.NO_PASSED);
} }
if(reviewDetailsResult == null) {
standard.setPassed(null);
}
if(reviewDetailsResult != null && reviewDetailsResult.getReviewEnterpriseArchiveId() != null) { if(reviewDetailsResult != null && reviewDetailsResult.getReviewEnterpriseArchiveId() != null) {
ReviewEnterpriseArchive reviewEnterpriseArchive = reviewEnterpriseArchiveMapper.selectById(reviewDetailsResult.getReviewEnterpriseArchiveId()); ReviewEnterpriseArchive reviewEnterpriseArchive = reviewEnterpriseArchiveMapper.selectById(reviewDetailsResult.getReviewEnterpriseArchiveId());
reviewDetailsResult.setFileName(reviewEnterpriseArchive.getFileName()); reviewDetailsResult.setFileName(reviewEnterpriseArchive.getFileName());
......
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