|
|
|
@ -994,8 +994,6 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
//查询调查数据
|
|
|
|
|
List<AftersaleSurveyRecordEntity> list = aftersaleSurveyRecordService.list(Wrappers.<AftersaleSurveyRecordEntity>query().lambda() |
|
|
|
|
.eq(AftersaleSurveyRecordEntity::getWorkOrderId, aftersalesWorkOrderDTO.getId()) |
|
|
|
|
.eq(AftersaleSurveyRecordEntity::getFollowWarehouseId, myCurrentWarehouse.getId()) |
|
|
|
|
.eq(AftersaleSurveyRecordEntity::getFollowWarehouseName, myCurrentWarehouse.getName()) |
|
|
|
|
.eq(AftersaleSurveyRecordEntity::getDifference, "1") |
|
|
|
|
); |
|
|
|
|
AftersalesWorkOrderVO aftersalesWorkOrderVO = new AftersalesWorkOrderVO(); |
|
|
|
@ -1010,6 +1008,21 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
return aftersalesWorkOrderVO; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 查询全部跟踪记录 |
|
|
|
|
* @param aftersalesWorkOrderDTO |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public AftersalesWorkOrderVO getTrackRecord(AftersalesWorkOrderDTO aftersalesWorkOrderDTO) { |
|
|
|
|
List<AftersaleSurveyRecordEntity> list = aftersaleSurveyRecordService.list(Wrappers.<AftersaleSurveyRecordEntity>query().lambda() |
|
|
|
|
.eq(AftersaleSurveyRecordEntity::getWorkOrderId, aftersalesWorkOrderDTO.getId()) |
|
|
|
|
); |
|
|
|
|
AftersalesWorkOrderVO workOrderVO = new AftersalesWorkOrderVO(); |
|
|
|
|
workOrderVO.setSurveyRecordEntities(list); |
|
|
|
|
return workOrderVO; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 添加处理处理方信息 |
|
|
|
|
* @param aftersalesWorkOrderDTO |
|
|
|
@ -1039,6 +1052,11 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
surveyRecordDTO.setContent(aftersalesWorkOrderDTO.getSurveyRecordDTO().getContent());//内容
|
|
|
|
|
surveyRecordDTO.setTypesOf("1"); |
|
|
|
|
surveyRecordDTO.setDifference("2"); |
|
|
|
|
surveyRecordDTO.setCreateUser(user.getUserId()); |
|
|
|
|
surveyRecordDTO.setCreateDept(Long.valueOf(user.getDeptId())); |
|
|
|
|
surveyRecordDTO.setCreateTime(new Date()); |
|
|
|
|
surveyRecordDTO.setStatus(1); |
|
|
|
|
surveyRecordDTO.setIsDeleted(0); |
|
|
|
|
if(ObjectUtil.isNotNull(i)){ |
|
|
|
|
surveyRecordDTO.setFollowWarehouseName(i.getBusinessName()); |
|
|
|
|
surveyRecordDTO.setFollowWarehouseId(i.getBusinessId()); |
|
|
|
|