|
|
|
@ -2030,15 +2030,18 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询是否必须回复
|
|
|
|
|
AftersalesProcessorEntity one = aftersalesProcessorService.getOne(Wrappers.<AftersalesProcessorEntity>query().lambda(). |
|
|
|
|
List<AftersalesProcessorEntity> processorEntityList = aftersalesProcessorService.list(Wrappers.<AftersalesProcessorEntity>query().lambda(). |
|
|
|
|
eq(AftersalesProcessorEntity::getWorkOrderId, aftersalesWorkOrderDTO.getId()) |
|
|
|
|
.eq(AftersalesProcessorEntity::getTypesOf, ProcessorTypesOfStatusConstant.chulifang.getValue()) |
|
|
|
|
); |
|
|
|
|
List<AftersalesProcessorVO> list1 = new ArrayList<>(); |
|
|
|
|
if (ObjectUtils.isNotNull(one)) { |
|
|
|
|
if (ObjectUtils.isNotNull(processorEntityList)) { |
|
|
|
|
AftersalesProcessorVO processorVO = new AftersalesProcessorVO(); |
|
|
|
|
BeanUtil.copyProperties(one, processorVO); |
|
|
|
|
list1.add(processorVO); |
|
|
|
|
processorEntityList.forEach(f->{ |
|
|
|
|
BeanUtil.copyProperties(f, processorVO); |
|
|
|
|
list1.add(processorVO); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
aftersalesWorkOrderVO.setProcessorVOList(list1); |
|
|
|
|
break; |
|
|
|
|