Commit cbd3eb56 authored by chenzhao's avatar chenzhao

对是否有附件进行判断

parent c426fa09
...@@ -187,7 +187,10 @@ public class FailureMaintainServiceImpl extends BaseService<FailureMaintainDto, ...@@ -187,7 +187,10 @@ public class FailureMaintainServiceImpl extends BaseService<FailureMaintainDto,
FailureMaintainDto failureMaintainDto = new FailureMaintainDto(); FailureMaintainDto failureMaintainDto = new FailureMaintainDto();
BeanUtils.copyProperties(failureMaintain,failureMaintainDto); BeanUtils.copyProperties(failureMaintain,failureMaintainDto);
List<SourceFile> attachment = sourceFileServiceImpl.findBySourceId(failureMaintain.getSequenceNbr()); List<SourceFile> attachment = sourceFileServiceImpl.findBySourceId(failureMaintain.getSequenceNbr());
failureMaintainDto.setAttachment(attachment); if (attachment .size()>0){
failureMaintainDto.setAttachment(attachment);
}
failureMaintainDtos.add(failureMaintainDto); failureMaintainDtos.add(failureMaintainDto);
} }
return failureMaintainDtos; return failureMaintainDtos;
......
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