Commit 71c161c9 authored by wdy's avatar wdy

Merge branch 'wangdingyi' into 'dev'

返回文件名称

See merge request !157
parents 6cc9875b 68ced363
...@@ -87,8 +87,8 @@ public class ReviewDetailsResult implements Serializable { ...@@ -87,8 +87,8 @@ public class ReviewDetailsResult implements Serializable {
private Long reviewEnterpriseArchiveId; private Long reviewEnterpriseArchiveId;
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("企业名称") @ApiModelProperty("文件名称")
private String enterpriseName; private String fileName;
} }
...@@ -89,16 +89,6 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init ...@@ -89,16 +89,6 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
// 任务样品关系 // 任务样品关系
List<TaskSampleRelation> relations = taskSampleRelationMapper.selectByTaskId(taskMapper.findByCarReviewTaskId(carReviewTask.getId()),TaskSampleRelation.COMPLETE_VEHICLE_SAMPLE); List<TaskSampleRelation> relations = taskSampleRelationMapper.selectByTaskId(taskMapper.findByCarReviewTaskId(carReviewTask.getId()),TaskSampleRelation.COMPLETE_VEHICLE_SAMPLE);
if (results.size() != 0 && results != null) {
for (ReviewDetailsResult reviewDetailsResult : results) {
if (reviewDetailsResult != null && reviewDetailsResult.getReviewEnterpriseArchiveId() == null && relations.size() != 0 && relations != null) {
TaskSampleRelation taskSampleRelation = relations.get(0);
Sample sample = sampleManagementMapper.selectSampleManagementById(taskSampleRelation.getSampleId());
reviewDetailsResult.setEnterpriseName(sample.getManufacturingEnterprise());
}
}
}
// 绑定问卷与答案 // 绑定问卷与答案
setDetailsResult(standardTree, results,carReviewTask); setDetailsResult(standardTree, results,carReviewTask);
...@@ -186,7 +176,7 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init ...@@ -186,7 +176,7 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
} }
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.setEnterpriseName(reviewEnterpriseArchive.getEnterpriseName()); reviewDetailsResult.setFileName(reviewEnterpriseArchive.getFileName());
} }
details.setResult(reviewDetailsResult); details.setResult(reviewDetailsResult);
} }
......
...@@ -132,16 +132,6 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask ...@@ -132,16 +132,6 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
// 任务样品关系 // 任务样品关系
List<TaskSampleRelation> relations = taskSampleRelationMapper.selectByTaskId(taskMapper.findBySystemReviewTaskId(systemReviewTask.getId()),TaskSampleRelation.COMPLETE_VEHICLE_SAMPLE); List<TaskSampleRelation> relations = taskSampleRelationMapper.selectByTaskId(taskMapper.findBySystemReviewTaskId(systemReviewTask.getId()),TaskSampleRelation.COMPLETE_VEHICLE_SAMPLE);
if (results.size() != 0 && results != null) {
for (ReviewDetailsResult reviewDetailsResult : results) {
if (reviewDetailsResult != null && reviewDetailsResult.getReviewEnterpriseArchiveId() == null && relations.size() != 0 && relations != null) {
TaskSampleRelation taskSampleRelation = relations.get(0);
Sample sample = sampleManagementMapper.selectSampleManagementById(taskSampleRelation.getSampleId());
reviewDetailsResult.setEnterpriseName(sample.getManufacturingEnterprise());
}
}
}
// 绑定问卷与答案 // 绑定问卷与答案
setDetailsResult(standardTree, results, systemReviewTask); setDetailsResult(standardTree, results, systemReviewTask);
...@@ -185,7 +175,7 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask ...@@ -185,7 +175,7 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
} }
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.setEnterpriseName(reviewEnterpriseArchive.getEnterpriseName()); reviewDetailsResult.setFileName(reviewEnterpriseArchive.getFileName());
} }
details.setResult(reviewDetailsResult); details.setResult(reviewDetailsResult);
} }
......
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