From 4d6e1048c2e68778b5d6fdd743c733d4fddc17cf Mon Sep 17 00:00:00 2001
From: caoyizhong <1270296080@qq.com>
Date: Thu, 1 Feb 2024 11:17:58 +0800
Subject: [PATCH] =?UTF-8?q?1.=E5=B7=A5=E5=8D=95=E6=A8=A1=E7=B3=8A=E6=9F=A5?=
=?UTF-8?q?=E8=AF=A2=E4=BC=98=E5=8C=96=202.=E8=B6=85=E6=97=B6=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E5=AF=BC=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../AftersalesOvertimeFineController.java | 2 +-
.../AftersalesWorkOrderController.java | 2 +-
.../excel/AftersalesOvertimeFineExcel.java | 10 +-
.../excel/AftersalesWorkOrderExcel.java | 13 +-
.../mapper/AftersalesOvertimeFineMapper.xml | 3 +-
.../mapper/AftersalesWorkOrderMapper.xml | 15 +-
.../service/IAftersalesWorkOrderService.java | 2 +-
.../impl/AftersalesWorkOrderServiceImpl.java | 988 +++++++++---------
8 files changed, 545 insertions(+), 490 deletions(-)
diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesOvertimeFineController.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesOvertimeFineController.java
index c4844ee63..73b10cf87 100644
--- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesOvertimeFineController.java
+++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesOvertimeFineController.java
@@ -161,7 +161,7 @@ public class AftersalesOvertimeFineController extends BladeController {
/**
* 导出数据
- * http://localhost:8798/aftersalesOvertimeFine/export-aftersalesOvertimeFine
+ * http://localhost:8799/aftersalesOvertimeFine/export-aftersalesOvertimeFine
*/
@GetMapping("/export-aftersalesOvertimeFine")
@ApiOperationSupport(order = 9)
diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java
index c11ea6919..b8bb3f6fc 100644
--- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java
+++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java
@@ -619,7 +619,7 @@ public class AftersalesWorkOrderController extends BladeController {
}
/**
- * 客服异常工单 钉钉流程号、审核人、审核日期,财务理赔入账日期、操作人
+ * 客服异常工单 钉钉流程号、审核人、审核日期,财务理赔入账日期、操作人 //财务理赔入账日期、操作人 拆分
*/
@PostMapping("/updateWorkList")
@ApiOperationSupport(order = 5)
diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/excel/AftersalesOvertimeFineExcel.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/excel/AftersalesOvertimeFineExcel.java
index 72ef2ba91..33b8f33c7 100644
--- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/excel/AftersalesOvertimeFineExcel.java
+++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/excel/AftersalesOvertimeFineExcel.java
@@ -45,8 +45,8 @@ public class AftersalesOvertimeFineExcel implements Serializable {
@ColumnWidth(20)
- @ExcelProperty("异常工单ID")
- private String workOrderId;
+ @ExcelProperty("异常工单号")
+ private String workOrderNumber;
@ColumnWidth(20)
@ExcelProperty("金额")
@@ -56,8 +56,6 @@ public class AftersalesOvertimeFineExcel implements Serializable {
@ExcelProperty("超时时间")
private String timeout;
- @ExcelIgnore
- private String workOrderNumber;
@ColumnWidth(20)
@ExcelProperty("工单异常类型")
private String workOrderType;
@@ -80,4 +78,8 @@ public class AftersalesOvertimeFineExcel implements Serializable {
@ColumnWidth(20)
@ExcelProperty("超时时间")
private Date createTime;
+
+ @ColumnWidth(20)
+ @ExcelProperty("备注")
+ private String remarks;
}
diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/excel/AftersalesWorkOrderExcel.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/excel/AftersalesWorkOrderExcel.java
index 592b6f2d2..53f62e955 100644
--- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/excel/AftersalesWorkOrderExcel.java
+++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/excel/AftersalesWorkOrderExcel.java
@@ -194,6 +194,12 @@ public class AftersalesWorkOrderExcel implements Serializable {
@ColumnWidth(20)
@ExcelProperty("财务入账时间")
private Date entryTime;
+ /**
+ * 操作人
+ */
+ @ColumnWidth(20)
+ @ExcelProperty("操作人")
+ private String operator;
/**
* 备注
*/
@@ -227,11 +233,6 @@ public class AftersalesWorkOrderExcel implements Serializable {
@ColumnWidth(20)
@ExcelProperty("钉钉流程号")
private String processNumber;
- /**
- * 操作人
- */
- @ColumnWidth(20)
- @ExcelProperty("操作人")
- private String operator;
+
}
diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesOvertimeFineMapper.xml b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesOvertimeFineMapper.xml
index 5a7521ea1..c3ad2c1bc 100644
--- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesOvertimeFineMapper.xml
+++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesOvertimeFineMapper.xml
@@ -50,13 +50,14 @@
SELECT
laof.id,
lawo.work_order_number workOrderNumber,
- lawo.work_order_type workOrderType,
+ lawo.work_order_type ,
lawo.discovery_node discoveryNode,
COUNT( laof.id ) AS timeoutRecordNumber,
laof.create_time createTime,
laof.timeout,
laof.money,
laof.business_name businessName,
+ laof.remarks,
lawo.id workOrderId
FROM
logpm_aftersales_overtime_fine laof
diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml
index ec49b8df9..ea80f1c18 100644
--- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml
+++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml
@@ -229,8 +229,15 @@ date_format(from_unixtime(create_time),'%Y-%m-%d') = date_format(now(),'%Y-%m-%d
AND lacr.is_deleted = '0'
lawo.is_deleted = 0
- and lawo.id = #{param.id }
- and lawo.work_order_type = #{param.workOrderType }
+
+ and lawo.id IN
+
+
+ #{id}
+
+
+
+ and lawo.work_order_type = #{param.workOrderType }
and lawo.initiation_identification = #{param.initiationIdentification }
and lawo.discovery_node = #{param.discoveryNode }
and lawo.work_order_number like concat('%',#{param.workOrderNumber },'%')
@@ -329,7 +336,8 @@ date_format(from_unixtime(create_time),'%Y-%m-%d') = date_format(now(),'%Y-%m-%d
law.reviewed_by,
law.audit_time,
law.entry_time,
- law.operator
+ law.operator,
+ law.brand_name
FROM
logpm_aftersales_processor lap
LEFT JOIN logpm_aftersales_work_order law ON lap.work_order_id = law.id
@@ -360,6 +368,7 @@ date_format(from_unixtime(create_time),'%Y-%m-%d') = date_format(now(),'%Y-%m-%d
and date_format(from_unixtime(lawo.audit_time),'%Y-%m-%d') = date_format(#{param.auditTime},'%Y-%m-%d')
and date_format(from_unixtime(lawo.entry_time),'%Y-%m-%d') = date_format(#{param.entryTime},'%Y-%m-%d')
and date_format(from_unixtime(lawo.over_time),'%Y-%m-%d') = date_format(#{param.overTime}),'%Y-%m-%d')
+ and law.brand_name like concat('%',#{param.brandName},'%')
diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/IAftersalesWorkOrderService.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/IAftersalesWorkOrderService.java
index b020bb170..45b097c04 100644
--- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/IAftersalesWorkOrderService.java
+++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/IAftersalesWorkOrderService.java
@@ -116,7 +116,7 @@ public interface IAftersalesWorkOrderService extends BaseService exportAftersalesWorkOrder(Map objectMap) {
+ public List exportAftersalesWorkOrder(Map aftersalesWorkOrder) {
+ Object o = aftersalesWorkOrder.get("ids");
+
//查询用户角色信息
BladeUser user = AuthUtil.getUser();
String roleName = user.getRoleName();
String tenantId = user.getTenantId();
-
//查询客服岗位
List warehouseType = DictBizCache.getList("after_sales_visits");
if (warehouseType.isEmpty()) {
@@ -137,53 +139,64 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl aftersalesWorkOrderList = new ArrayList<>();
//导出
List aftersalesWorkOrderEntities = baseMapper.exportAftersalesWorkOrder(workOrderEntity);
@@ -244,15 +261,16 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl {
// aftersalesWorkOrder.setTypeName(DictCache.getValue(DictEnum.YES_NO, AftersalesWorkOrder.getType()));
AftersalesWorkOrderExcel aftersalesWorkOrderExcel = new AftersalesWorkOrderExcel();
- BeanUtil.copyProperties(i,aftersalesWorkOrderExcel);
+ BeanUtil.copyProperties(i, aftersalesWorkOrderExcel);
aftersalesWorkOrderList.add(aftersalesWorkOrderExcel);
- aftersalesWorkOrderExcel.setWorkOrderTypeName(DictBizCache.getValue(DictBizConstant.PC_WORK_ORDER,i.getWorkOrderStatus()));
- if("PC".equals(aftersalesWorkOrderExcel.getInitiationIdentification())){
+ aftersalesWorkOrderExcel.setWorkOrderTypeName(DictBizCache.getValue(DictBizConstant.PC_WORK_ORDER, i.getWorkOrderStatus()));
+ aftersalesWorkOrderExcel.setWorkOrderStatus(DictBizCache.getValue(DictBizConstant.WORK_ORDER_STATUS, i.getWorkOrderStatus()));
+ if ("PC".equals(aftersalesWorkOrderExcel.getInitiationIdentification())) {
//PC
- aftersalesWorkOrderExcel.setDiscoveryNodeName(DictBizCache.getValue(DictBizConstant.PC_DISCOVERY_NODE,i.getDiscoveryNode()));
- }else{
+ aftersalesWorkOrderExcel.setDiscoveryNodeName(DictBizCache.getValue(DictBizConstant.PC_DISCOVERY_NODE, i.getDiscoveryNode()));
+ } else {
//PDA
- aftersalesWorkOrderExcel.setDiscoveryNodeName(DictBizCache.getValue(DictBizConstant.PDA_LINK_LNITIATION,i.getDiscoveryNode()));
+ aftersalesWorkOrderExcel.setDiscoveryNodeName(DictBizCache.getValue(DictBizConstant.PDA_LINK_LNITIATION, i.getDiscoveryNode()));
}
aftersalesWorkOrderExcel.setWorkOrderTypeName(WorkOrderTypeConstant.getNameByValue(i.getWorkOrderType()));
});
@@ -262,9 +280,10 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl first = Arrays.stream(values).filter(i -> i.getValue().equals(workOrderType)).findFirst();
@@ -274,13 +293,13 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl numberRules = DictBizCache.getList("work_order_number_rules");
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
- if (ObjectUtils.isNull(numberRules) || numberRules.isEmpty()) {
+ if (ObjectUtils.isNull(numberRules) || numberRules.isEmpty()) {
log.info("注意,注意!工单号字典未配置!请配置!");
} else {
Optional first2 = pcWorkOrder.stream().filter(i -> i.getDictKey().equals(workOrderType)).findFirst();
//工单号规则待完善
- if(first2.isPresent()){
+ if (first2.isPresent()) {
DictBiz dictBiz = first2.get();
Optional first1 = numberRules.stream().filter(i -> i.getDictValue().equals(dictBiz.getDictValue())).findFirst();
return first1.map(DictBiz -> DictBiz.getDictKey() + name + format.format(new Date())).orElseGet(() -> "YC" + name + format.format(new Date()));
@@ -288,14 +307,12 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl{
- if("1".equals(k)){
- //责任人
- String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(","));
- aftersalesWorkOrder.setResponsiblePerson(collect);
- }else{
- String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(","));
- aftersalesWorkOrder.setProcessedBy(collect);
- }
+ .forEach((k, v) -> {
+ if ("1".equals(k)) {
+ //责任人
+ String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(","));
+ aftersalesWorkOrder.setResponsiblePerson(collect);
+ } else {
+ String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(","));
+ aftersalesWorkOrder.setProcessedBy(collect);
+ }
- });
+ });
}
//添加处理结果
- if(ObjectUtils.isNotNull(aftersalesWorkOrder.getAftersalesProcessingResultsDTO()) && ObjectUtils.isNotNull(aftersalesWorkOrder.getAftersalesProcessingResultsDTO().getCompensationMethod())){
+ if (ObjectUtils.isNotNull(aftersalesWorkOrder.getAftersalesProcessingResultsDTO()) && ObjectUtils.isNotNull(aftersalesWorkOrder.getAftersalesProcessingResultsDTO().getCompensationMethod())) {
aftersalesWorkOrder.setWorkOrderStatus(WorkOrderStatusConstant.chulijeiguoyitianxei.getValue());
}
baseMapper.insert(aftersalesWorkOrder);
- }else{
+ } else {
//修改
- if(ObjectUtil.isNotNull(aftersalesWorkOrder.getUnPpackageEntityList())){
+ if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnPpackageEntityList())) {
//删除修改包件
aftersalesAbnormalPackageService.deleteLogic(aftersalesWorkOrder.getUnPpackageEntityList());
}
- if(ObjectUtil.isNotNull(aftersalesWorkOrder.getUnProcessorEntityList())){
+ if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnProcessorEntityList())) {
//责任方 处理方
// List list = new ArrayList<>();
- aftersalesWorkOrder.getUnProcessorEntityList().forEach(i ->{
+ aftersalesWorkOrder.getUnProcessorEntityList().forEach(i -> {
AftersalesProcessorEntity processorEntity = new AftersalesProcessorEntity();
processorEntity.setId(i);
processorEntity.setConditions("3");
- if(ObjectUtils.isNotNull(aftersalesWorkOrder.getProcessorEntityList())){
+ if (ObjectUtils.isNotNull(aftersalesWorkOrder.getProcessorEntityList())) {
aftersalesWorkOrder.getProcessorEntityList().stream().collect(Collectors.groupingBy(AftersalesProcessorEntity::getTypesOf))
- .forEach((k,v) ->{
- if("1".equals(k)){
+ .forEach((k, v) -> {
+ if ("1".equals(k)) {
//责任人
String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(","));
aftersalesWorkOrder.setResponsiblePerson(collect);
- }else{
+ } else {
String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(","));
aftersalesWorkOrder.setProcessedBy(collect);
}
@@ -374,24 +391,24 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl list = new ArrayList<>();
- aftersalesWorkOrder.getPackageEntityList().forEach(i ->{
- if(ObjectUtils.isNotNull( i.getId()) ){
+ aftersalesWorkOrder.getPackageEntityList().forEach(i -> {
+ if (ObjectUtils.isNotNull(i.getId())) {
//修改包件信息
// AftersalesAbnormalPackageEntity abnormalPackage = new AftersalesAbnormalPackageEntity();
aftersalesAbnormalPackageService.updateById(i);
- }else{
+ } else {
//添加
AftersalesAbnormalPackageEntity packageEntity = new AftersalesAbnormalPackageEntity();
- BeanUtil.copyProperties(i,packageEntity);
+ BeanUtil.copyProperties(i, packageEntity);
packageEntity.setWorkOrderId(aftersalesWorkOrder.getId());
packageEntity.setWarehouseId(myCurrentWarehouse.getId());
list.add(packageEntity);
}
});
- if(!list.isEmpty()){
+ if (!list.isEmpty()) {
aftersalesAbnormalPackageService.saveBatch(list);
}
}
AftersaleSurveyRecordEntity aftersaleSurveyRecord = new AftersaleSurveyRecordEntity();
//添加调查记录
- if(ObjectUtils.isNotNull(aftersalesWorkOrder.getSurveyRecordDTO())){
+ if (ObjectUtils.isNotNull(aftersalesWorkOrder.getSurveyRecordDTO())) {
AftersaleSurveyRecordDTO surveyRecordDTO = changName(aftersalesWorkOrder, user);
- BeanUtil.copyProperties(surveyRecordDTO,aftersaleSurveyRecord);
+ BeanUtil.copyProperties(surveyRecordDTO, aftersaleSurveyRecord);
aftersaleSurveyRecord.setTypesOf("1");
aftersaleSurveyRecord.setDifference("1");
aftersaleSurveyRecord.setWorkOrderId(aftersalesWorkOrder.getId());
@@ -433,23 +450,23 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl list = new ArrayList<>();
- aftersalesWorkOrder.getProcessorEntityList().forEach(i ->{
+ aftersalesWorkOrder.getProcessorEntityList().forEach(i -> {
AftersalesProcessorEntity processor = addProcessor(aftersalesWorkOrder, myCurrentWarehouse, i);
// list.add(processor);
//添加指派记录
- if(ProcessorTypesOfStatusConstant.chulifang.getValue().equals(i.getTypesOf())){
+ if (ProcessorTypesOfStatusConstant.chulifang.getValue().equals(i.getTypesOf())) {
//处理方
addSurveRecord(aftersalesWorkOrder, user, i);
processor.setAssignTime(new Date());
list.add(processor);
- }else{
+ } else {
list.add(processor);
}
aftersalesProcessorService.save(processor);
- if(ProcessorTypesOfStatusConstant.chulifang.getValue().equals(i.getTypesOf())){
+ if (ProcessorTypesOfStatusConstant.chulifang.getValue().equals(i.getTypesOf())) {
AftersalesReplyingPartyEntity replyingPartyEntity = getPartyEntity(aftersalesWorkOrder, processor, aftersaleSurveyRecord);
//添加待回复信息
aftersalesReplyingPartyService.save(replyingPartyEntity);
@@ -458,71 +475,72 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl list = new ArrayList<>();
- aftersalesWorkOrder.getDecreaseImageEntityList().forEach(i ->{
+ aftersalesWorkOrder.getDecreaseImageEntityList().forEach(i -> {
AftersalesDecreaseImageEntity packageEntity = new AftersalesDecreaseImageEntity();
- BeanUtil.copyProperties(i,packageEntity);
+ BeanUtil.copyProperties(i, packageEntity);
packageEntity.setWorkOrderId(aftersalesWorkOrder.getId());
packageEntity.setWarehouseId(myCurrentWarehouse.getId());
list.add(packageEntity);
});
- if(!list.isEmpty()){
+ if (!list.isEmpty()) {
aftersalesDecreaseImageService.saveBatch(list);
}
}
//添加责任人信息
- if(ObjectUtils.isNotNull(aftersalesWorkOrder.getPersonResponsibleDTO()) && !aftersalesWorkOrder.getPersonResponsibleDTO().isEmpty()){
+ if (ObjectUtils.isNotNull(aftersalesWorkOrder.getPersonResponsibleDTO()) && !aftersalesWorkOrder.getPersonResponsibleDTO().isEmpty()) {
List personResponsibleList = getAftersalesPersonResponsibleEntities(aftersalesWorkOrder);
- if(!personResponsibleList.isEmpty()){
+ if (!personResponsibleList.isEmpty()) {
aftersalesPersonResponsibleService.saveBatch(personResponsibleList);
}
}
//添加完结受款方数据
- if(ObjectUtils.isNotNull(aftersalesWorkOrder.getCompletionRecipientEntities())){
+ if (ObjectUtils.isNotNull(aftersalesWorkOrder.getCompletionRecipientEntities())) {
List collect = aftersalesWorkOrder.getCompletionRecipientEntities().stream().filter(i -> ObjectUtils.isNotNull(i.getId())).collect(Collectors.toList());
List collect1 = aftersalesWorkOrder.getCompletionRecipientEntities().stream().filter(i -> ObjectUtils.isNull(i.getId())).collect(Collectors.toList());
- if(!collect.isEmpty()){
+ if (!collect.isEmpty()) {
//修改
- collect.forEach(i ->{
+ collect.forEach(i -> {
completionRecipientService.updateById(i);
});
}
- if(!collect1.isEmpty()){
+ if (!collect1.isEmpty()) {
//添加
completionRecipientService.saveBatch(collect1);
}
}
//添加完结赔款方数据
- if(ObjectUtils.isNotNull(aftersalesWorkOrder.getCompletionRecordEntities())){
+ if (ObjectUtils.isNotNull(aftersalesWorkOrder.getCompletionRecordEntities())) {
List collect = aftersalesWorkOrder.getCompletionRecordEntities().stream().filter(i -> ObjectUtils.isNotNull(i.getId())).collect(Collectors.toList());
List collect1 = aftersalesWorkOrder.getCompletionRecordEntities().stream().filter(i -> ObjectUtils.isNull(i.getId())).collect(Collectors.toList());
- if(!collect.isEmpty()){
+ if (!collect.isEmpty()) {
//修改
- collect.forEach(i ->{
+ collect.forEach(i -> {
completionRecordService.updateById(i);
});
}
- if(!collect1.isEmpty()){
+ if (!collect1.isEmpty()) {
//添加
completionRecordService.saveBatch(collect1);
}
// completionRecordService.saveBatch(aftersalesWorkOrder.getCompletionRecordEntities());
}
//添加处理结果
- if(ObjectUtils.isNotNull(aftersalesWorkOrder.getAftersalesProcessingResultsDTO()) && ObjectUtils.isNotNull( aftersalesWorkOrder.getAftersalesProcessingResultsDTO().getCompensationMethod() ) ){
+ if (ObjectUtils.isNotNull(aftersalesWorkOrder.getAftersalesProcessingResultsDTO()) && ObjectUtils.isNotNull(aftersalesWorkOrder.getAftersalesProcessingResultsDTO().getCompensationMethod())) {
addProcessingResults(aftersalesWorkOrder);
}
- return true;
+ return true;
}
/**
* 回复信息添加
+ *
* @param aftersalesWorkOrder
* @param processor
* @param aftersaleSurveyRecord
@@ -544,19 +562,20 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl> deptNames = sysClient.getDeptNames(user.getDeptId());
- if(ObjectUtils.isNotNull(deptNames)){
+ if (ObjectUtils.isNotNull(deptNames)) {
String collect = deptNames.getData().stream().collect(Collectors.joining(","));
surveyRecordDTO.setAddDepartment(collect);
}
@@ -570,12 +589,12 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl personResponsibleDTO = aftersalesWorkOrder.getPersonResponsibleDTO();
List personResponsibleList = new ArrayList<>();
- personResponsibleDTO.forEach( i ->{
+ personResponsibleDTO.forEach(i -> {
AftersalesPersonResponsibleEntity personResponsibleEntity = new AftersalesPersonResponsibleEntity();
- BeanUtil.copyProperties(i , personResponsibleEntity);
- if(ObjectUtils.isNotNull(personResponsibleEntity.getPersonResponsibleId()) ){
+ BeanUtil.copyProperties(i, personResponsibleEntity);
+ if (ObjectUtils.isNotNull(personResponsibleEntity.getPersonResponsibleId())) {
personResponsibleEntity.setTypesOf("1");
- }else{
+ } else {
personResponsibleEntity.setTypesOf("2");
}
personResponsibleEntity.setDifference("1");
@@ -587,6 +606,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl getPendingWorkOrder(AftersalesWorkOrderDTO aftersalesWorkOrder, IPage