Browse Source

添加理赔查询,修改申述

single_db
caoyizhong 1 year ago
parent
commit
a172184785
  1. 2
      blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesAppealPeopleEntity.java
  2. 69
      blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesSettlementEntity.java
  3. 18
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java
  4. 9
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java
  5. 35
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml
  6. 9
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/IAftersalesWorkOrderService.java
  7. 2
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesAppealServiceImpl.java
  8. 2
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesProcessingResultsServiceImpl.java
  9. 123
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java

2
blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesAppealPeopleEntity.java

@ -80,6 +80,6 @@ public class AftersalesAppealPeopleEntity extends TenantEntity {
* 仓库ID
*/
@ApiModelProperty(value = "仓库ID")
private String warehouseId;
private Long warehouseId;
}

69
blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesSettlementEntity.java

@ -0,0 +1,69 @@
package com.logpm.aftersales.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import java.math.BigDecimal;
/**
* @author 12702
*/
@Data
@TableName("logpm_aftersales_settlement")
@ApiModel(value = "logpm_aftersales_settlement对象", description = "客服理赔工单")
@EqualsAndHashCode(callSuper = true)
public class AftersalesSettlementEntity extends TenantEntity {
//工单号
private String workOrderNumber;
//营业部
private String businessName;
//品牌
private String brandName;
//商场名称
private String mallName;
//运单号
private String waybillNumber;
//异常类型
private String workOrderType;
//异常类型名称
private String workOrderTypeName;
//处理结果
private String resulType;
//处理结果名称
private String resulTypeName;
//处理结果ID
private Long laprId;
//发现环节
private String discoveryNode;
//发现环境名称
private String discoveryNodeName;
//处理结果说明
private String resultDescription;
//车辆路线
private String vehicleRoute;
//赔款方
private String indemnitor;
//判责原因
private String reason;
//金额
private BigDecimal money;
//异常工单ID
private Long lawoId;
//钉钉流程号
private String processNumber;
//工单状态
private String workOrderStatus;
//工单状态名称
private String workOrderStatusName;
}

18
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java

@ -19,6 +19,7 @@ package com.logpm.aftersales.controller;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.logpm.aftersales.dto.AftersalesWorkOrderDTO;
import com.logpm.aftersales.entity.AftersaleSurveyRecordEntity;
import com.logpm.aftersales.entity.AftersalesSettlementEntity;
import com.logpm.aftersales.excel.AftersalesWorkOrderImporter;
import com.logpm.basicdata.entity.BasicdataWarehouseEntity;
import com.logpm.basicdata.feign.IBasicdataWarehouseClient;
@ -108,6 +109,23 @@ public class AftersalesWorkOrderController extends BladeController {
return R.data(AftersalesWorkOrderWrapper.build().pageVO(pages));
}
/**
* 客服异常工单 查询异常工单理赔信息
*/
@GetMapping("/listSettlement")
@ApiOperationSupport(order = 2)
@ApiOperation(value = "查询异常工单理赔信息", notes = "传入aftersalesWorkOrder")
public R<IPage<AftersalesSettlementEntity>> getListSettlement(@ApiIgnore @RequestParam Map<String, Object> aftersalesWorkOrder, Query query) {
log.info("查询理赔参数》》》{}",aftersalesWorkOrder);
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
if(ObjectUtils.isNotNull(myCurrentWarehouse)){
aftersalesWorkOrder.put("business_id",myCurrentWarehouse.getId());
aftersalesWorkOrder.put("business_name",myCurrentWarehouse.getName());
}
IPage<AftersalesSettlementEntity> pages = aftersalesWorkOrderService.getListSettlement(aftersalesWorkOrder, Condition.getPage(query));
return R.data(pages);
}
/**
* 客服异常工单 提交异常工单处理结果
*/

9
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java

@ -17,6 +17,7 @@
package com.logpm.aftersales.mapper;
import com.logpm.aftersales.dto.AftersalesWorkOrderDTO;
import com.logpm.aftersales.entity.AftersalesSettlementEntity;
import com.logpm.aftersales.entity.AftersalesWorkOrderEntity;
import com.logpm.aftersales.vo.AftersalesWorkOrderVO;
import com.logpm.aftersales.excel.AftersalesWorkOrderExcel;
@ -69,4 +70,12 @@ public interface AftersalesWorkOrderMapper extends BaseMapper<AftersalesWorkOrde
IPage<AftersalesWorkOrderEntity> pageListOwn(IPage<Object> page,@Param("param") AftersalesWorkOrderEntity workOrderEntity);
boolean updateList(@Param("list") List<AftersalesWorkOrderEntity> list);
/**
* 查询理赔数据
* @param page
* @param aftersalesSettlementEntity
* @return
*/
IPage<AftersalesSettlementEntity> getListSettlement(IPage<Object> page,@Param("param") AftersalesSettlementEntity aftersalesSettlementEntity);
}

35
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml

@ -134,10 +134,43 @@ date_format(from_unixtime(create_time),'%Y-%m-%d') = date_format(now(),'%Y-%m-%d
LEFT JOIN logpm_aftersales_work_order law on lap.work_order_id = law.id
<where>
lap.conditions != '3' and lap.is_deleted = 0 and law.id is not null
<if test="param.workOrderStatus != null and param.workOrderStatus != ''">and law.work_order_status = #{param.work_order_status}</if>
<if test="param.workOrderStatus != null and param.workOrderStatus != ''">and law.work_order_status = #{param.workOrderStatus}</if>
<if test="param.warehouseId != null and param.warehouseId != ''">and lap.business_id = #{param.warehouseId}</if>
</where>
</select>
<select id="getListSettlement" resultType="com.logpm.aftersales.entity.AftersalesSettlementEntity">
select lawo.work_order_number workOrderNumber,lap.business_name businessName,ldpl.brand_name brandName,ldsa.mall_name mallName,laap.waybill_number waybillNumber,
lawo.work_order_type workOrderType,lapr.result_type resultType,lapr.id laprId, lawo.discovery_node discoveryNode, lapr.result_description resultDescription,
lawo.vehicle_route vehicleRoute,lacr.indemnitor,lacr.reason,lacr.money,lawo.id lawoId,lawo.create_time createTime,lawo.process_number processNumber,
lawo.work_order_status workOrderStatus
from logpm_aftersales_processor lap
LEFT JOIN logpm_aftersales_processing_results lapr on lapr.work_order_id = lap.work_order_id
LEFT JOIN logpm_aftersales_completion_record lacr on lacr.work_order_id = lapr.work_order_id
LEFT JOIN logpm_aftersales_work_order lawo on lawo.id = lapr.work_order_id
LEFT JOIN logpm_aftersales_abnormal_package laap on laap.work_order_id = lawo.id
LEFT JOIN logpm_distribution_parcel_list ldpl on ldpl.order_package_code =laap.package_code and ldpl.waybill_number = laap.waybill_number
LEFT JOIN logpm_distribution_stock_article ldsa on ldsa.id = ldpl.stock_article_id
<where>
lap.processing_status = '4' and lap.is_deleted = 0
<if test="param.businessId != null and param.businessId != '' "> and lap.business_id = #{param.businessId }</if>
<if test="param.businessName != null and param.businessName != '' "> and lap.business_name = #{param.businessName }</if>
<if test="param.workOrderNumber != null and param.workOrderNumber != '' "> and lawo.work_order_number = #{param.workOrderNumber }</if>
<if test="param.businessName != null and param.businessName != '' "> and lap.business_name = #{param.businessName }</if>
<if test="param.brandName != null and param.brandName != '' "> and ldpl.brand_name = #{param.brandName }</if>
<if test="param.mallName != null and param.mallName != '' "> and ldsa.mall_name = #{param.mallName }</if>
<if test="param.waybillNumber != null and param.waybillNumber != '' "> and laap.waybill_number = #{param.waybillNumber }</if>
<if test="param.workOrderType != null and param.workOrderType != '' "> and lawo.work_order_type = #{param.workOrderType }</if>
<if test="param.resultType != null and param.resultType != '' "> and lapr.result_type = #{param.resultType }</if>
<if test="param.discoveryNode != null and param.discoveryNode != '' "> and lawo.discovery_node = #{param.discoveryNode }</if>
<if test="param.resultDescription != null and param.resultDescription != '' "> and lapr.result_description = #{param.resultDescription }</if>
<if test="param.vehicleRoute != null and param.vehicleRoute != '' "> and lawo.vehicle_route = #{param.vehicleRoute }</if>
<if test="param.indemnitor != null and param.indemnitor != '' "> and lacr.indemnitor = #{param.indemnitor }</if>
<if test="param.reason != null and param.reason != '' "> and lacr.reason = #{param.reason }</if>
<if test="param. != null and param. != '' "> and date_format(from_unixtime(lawo.create_time),'%Y-%m-%d') = date_format(#{param.createTime}),'%Y-%m-%d') </if>
<if test="param.processNumber != null and param.processNumber != '' "> and lawo.process_number = #{param.processNumber }</if>
</where>
</select>
</mapper>

9
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/IAftersalesWorkOrderService.java

@ -19,6 +19,7 @@ package com.logpm.aftersales.service;
import com.logpm.aftersales.dto.AftersalesPackageScanDTO;
import com.logpm.aftersales.dto.AftersalesWorkOrderDTO;
import com.logpm.aftersales.entity.AftersaleSurveyRecordEntity;
import com.logpm.aftersales.entity.AftersalesSettlementEntity;
import com.logpm.aftersales.entity.AftersalesWorkOrderEntity;
import com.logpm.aftersales.vo.AftersalesAbnormalPackageVO;
import com.logpm.aftersales.vo.AftersalesWorkOrderVO;
@ -207,4 +208,12 @@ public interface IAftersalesWorkOrderService extends BaseService<AftersalesWorkO
* @return
*/
AftersalesWorkOrderVO getTrackRecord(AftersalesWorkOrderDTO aftersalesWorkOrderDTO);
/**
* 查询理赔信息
* @param aftersalesWorkOrder
* @param page
* @return
*/
IPage<AftersalesSettlementEntity> getListSettlement(Map<String, Object> aftersalesWorkOrder, IPage<Object> page);
}

2
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesAppealServiceImpl.java

@ -121,7 +121,7 @@ public class AftersalesAppealServiceImpl extends BaseServiceImpl<AftersalesAppea
});
}
return false;
return true;
}
}

2
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesProcessingResultsServiceImpl.java

@ -43,6 +43,7 @@ import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.List;
@ -80,6 +81,7 @@ public class AftersalesProcessingResultsServiceImpl extends BaseServiceImpl<Afte
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean ownSaveOrUpdate(AftersalesProcessingResultsDTO aftersalesProcessingResults) {
if(ObjectUtil.isNull( aftersalesProcessingResults.getWorkOrderId())){
throw new ServiceException("异常工单ID不能为空");

123
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java

@ -258,7 +258,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
aftersalesWorkOrder.getProcessorEntityList().forEach(i ->{
AftersalesProcessorEntity processor = addProcessor(aftersalesWorkOrder, myCurrentWarehouse, i);
list.add(processor);
//添加记录
//添加指派记录
if(ProcessorTypesOfStatusConstant.chulifang.getValue().equals(i.getTypesOf())){
//处理方
addSurveRecord(aftersalesWorkOrder, user, i);
@ -372,6 +372,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
*/
@Override
public boolean addCompletionEnd(List<AftersalesWorkOrderDTO> aftersalesWorkOrder) {
BladeUser user = AuthUtil.getUser();
if(ObjectUtil.isNull(aftersalesWorkOrder)){
return false;
}
@ -385,6 +386,16 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
if(ObjectUtils.isNotNull(v.getCompletionRecipientEntities())){
completionRecipientService.saveBatch(v.getCompletionRecipientEntities());
}
//添加跟踪记录
AftersaleSurveyRecordEntity surveyRecordEntity = new AftersaleSurveyRecordEntity();
AftersaleSurveyRecordDTO aftersaleSurveyRecordDTO = changName(v, user);
BeanUtil.copyProperties(aftersaleSurveyRecordDTO,surveyRecordEntity);
surveyRecordEntity.setTypesOf("1");
surveyRecordEntity.setDifference("3");
surveyRecordEntity.setWorkOrderId(v.getId());
String collect = v.getCompletionRecordEntities().stream().map(AftersalesCompletionRecordEntity::getIndemnitor).collect(Collectors.joining(","));
surveyRecordEntity.setProcessingResults(collect);
aftersaleSurveyRecordService.save(surveyRecordEntity);
});
return true;
}
@ -584,6 +595,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
*/
@Override
public R updateAssignCustomerService(AftersalesWorkOrderDTO aftersalesWorkOrderDTO) {
BladeUser user = AuthUtil.getUser();
for (Long i : aftersalesWorkOrderDTO.getAssignList()) {
//查询有没有指派过
AftersalesWorkOrderEntity workOrderEntity = baseMapper.selectById(i);
@ -596,6 +608,15 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
aftersalesWorkOrder.setCustomerServiceName(aftersalesWorkOrderDTO.getCustomerServiceName());
aftersalesWorkOrder.setId(i);
baseMapper.updateById(aftersalesWorkOrder);
//添加跟踪数据
AftersaleSurveyRecordEntity surveyRecordEntity = new AftersaleSurveyRecordEntity();
AftersaleSurveyRecordDTO aftersaleSurveyRecordDTO = changName(aftersalesWorkOrderDTO, user);
BeanUtil.copyProperties(aftersaleSurveyRecordDTO ,surveyRecordEntity);
surveyRecordEntity.setDifference("3");
surveyRecordEntity.setTypesOf("1");
surveyRecordEntity.setWorkOrderId(i);
surveyRecordEntity.setProcessingResults("指派客服");
aftersaleSurveyRecordService.save(surveyRecordEntity);
}
return R.success("操作成功!!");
@ -799,6 +820,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
@Override
public boolean updateArbitrate(AftersalesWorkOrderDTO aftersalesWorkOrder) {
List<AftersalesArbitrationOrderEntity> arbitrationOrderList = new ArrayList<>();
BladeUser user = AuthUtil.getUser();
aftersalesWorkOrder.getAssignList().forEach(i ->{
AftersalesWorkOrderEntity aftersalesWorkOrderEntity = new AftersalesWorkOrderEntity();
aftersalesWorkOrderEntity.setId(i);
@ -810,10 +832,20 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
aftersalesArbitrationOrderEntity.setOperateType("正常");
aftersalesArbitrationOrderEntity.setTypesOf(WorkOrderTypesOfStatusConstant.kaiqi.getValue());
arbitrationOrderList.add(aftersalesArbitrationOrderEntity);
//添加跟踪记录
AftersaleSurveyRecordEntity surveyRecordEntity = new AftersaleSurveyRecordEntity();
AftersaleSurveyRecordDTO aftersaleSurveyRecordDTO = changName(aftersalesWorkOrder, user);
BeanUtil.copyProperties(aftersaleSurveyRecordDTO,surveyRecordEntity);
surveyRecordEntity.setDifference("3");
surveyRecordEntity.setTypesOf("1");
surveyRecordEntity.setWorkOrderId(i);
surveyRecordEntity.setProcessingResults("申请仲裁");
aftersaleSurveyRecordService.save(surveyRecordEntity);
});
if(!arbitrationOrderList.isEmpty()){
//添加仲裁记录
aftersalesArbitrationOrderService.saveBatch(arbitrationOrderList);
return true;
}
return false;
@ -824,7 +856,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
*/
@Override
public boolean addArbitrateEnd(AftersalesWorkOrderDTO aftersalesWorkOrder) {
BladeUser user = AuthUtil.getUser();
for (Long l : aftersalesWorkOrder.getAssignList()) {
//查询工单的状态
AftersalesWorkOrderEntity workOrderEntity = baseMapper.selectById(l);
@ -853,6 +885,17 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
lambdaUpdateWrapper.set(AftersalesArbitrationOrderEntity::getOperateType,"客服完结");
lambdaUpdateWrapper.set(AftersalesArbitrationOrderEntity::getTypesOf,WorkOrderTypesOfStatusConstant.jeishu.getValue());
aftersalesArbitrationOrderService.update(lambdaUpdateWrapper);
//添加跟踪记录
AftersaleSurveyRecordEntity surveyRecordEntity = new AftersaleSurveyRecordEntity();
AftersaleSurveyRecordDTO aftersaleSurveyRecordDTO = changName(aftersalesWorkOrder, user);
BeanUtil.copyProperties(aftersaleSurveyRecordDTO,surveyRecordEntity);
surveyRecordEntity.setDifference("3");
surveyRecordEntity.setTypesOf("1");
surveyRecordEntity.setWorkOrderId(l);
surveyRecordEntity.setProcessingResults("客服仲裁完结");
aftersaleSurveyRecordService.save(surveyRecordEntity);
}
return true;
@ -888,8 +931,18 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
public boolean savaSurveyRecord(AftersalesWorkOrderDTO aftersalesWorkOrderDTO) {
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
BladeUser user = AuthUtil.getUser();
//查询处理方信息
AftersalesProcessorEntity one = aftersalesProcessorService.getOne(Wrappers.<AftersalesProcessorEntity>query().lambda()
.eq(AftersalesProcessorEntity::getBusinessName, myCurrentWarehouse.getName())
.eq(AftersalesProcessorEntity::getWorkOrderId,aftersalesWorkOrderDTO.getId())
.eq(AftersalesProcessorEntity::getBusinessId, myCurrentWarehouse.getId())
.eq(AftersalesProcessorEntity::getTypesOf, ProcessorTypesOfStatusConstant.chulifang.getValue())
);
if(ObjectUtils.isNull(one)){
throw new ServiceException("处理方信息不存在!!");
}
//修改处理方 处理状态
updateProcessor(myCurrentWarehouse);
updateProcessor(ProcessorProcessingStatusStatusConstant.yichuli.getValue(),one);
//查询所有处理方
List<AftersalesProcessorEntity> list = aftersalesProcessorService.list(Wrappers.<AftersalesProcessorEntity>query().lambda()
@ -903,7 +956,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
if(first.isPresent()){
//修改处理方 处理状态
updateProcessor(myCurrentWarehouse);
updateProcessor(ProcessorProcessingStatusStatusConstant.daichuli.getValue(),first.get());
}else{
//不存在 添加处理方信息
AftersalesProcessorEntity processor = addProcessor(aftersalesWorkOrderDTO, myCurrentWarehouse, i);
@ -920,8 +973,10 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
}
//添加回复信息
AftersaleSurveyRecordDTO surveyRecordDTO = aftersalesWorkOrderDTO.getSurveyRecordDTO();
AftersaleSurveyRecordEntity surveyRecordEntity = new AftersaleSurveyRecordEntity();
BeanUtil.copyProperties(surveyRecordDTO,surveyRecordEntity);
surveyRecordEntity.setProcessorId(one.getId());
surveyRecordEntity.setDifference("1");
aftersaleSurveyRecordService.save(surveyRecordEntity);
return true;
@ -952,17 +1007,26 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
workOrderEntity.setWorkOrderStatus(WorkOrderStatusConstant.yichuli.getValue());
baseMapper.updateById(workOrderEntity);
//修改处理方提交结果
LambdaUpdateWrapper<AftersalesProcessorEntity> q = new LambdaUpdateWrapper<>();
q.eq(AftersalesProcessorEntity::getBusinessName,myCurrentWarehouse.getName());
q.eq(AftersalesProcessorEntity::getBusinessId,myCurrentWarehouse.getId());
q.eq(AftersalesProcessorEntity::getTypesOf,ProcessorTypesOfStatusConstant.chulifang.getValue());
q.set(AftersalesProcessorEntity::getProcessingStatus,ProcessorProcessingStatusStatusConstant.tijiaofang.getValue());
aftersalesProcessorService.update(q);
//添加处理结果
AftersalesProcessorEntity one = aftersalesProcessorService.getOne(Wrappers.<AftersalesProcessorEntity>query().lambda()
.eq(AftersalesProcessorEntity::getWorkOrderId, aftersalesWorkOrderDTO.getId())
.eq(AftersalesProcessorEntity::getBusinessName, myCurrentWarehouse.getName())
.eq(AftersalesProcessorEntity::getBusinessId, myCurrentWarehouse.getId())
.eq(AftersalesProcessorEntity::getTypesOf, ProcessorTypesOfStatusConstant.chulifang.getValue())
);
if(ObjectUtils.isNull(one)){
throw new ServiceException("处理方信息不存在!!");
}
AftersalesProcessorEntity processor = new AftersalesProcessorEntity();
processor.setProcessingStatus(ProcessorProcessingStatusStatusConstant.tijiaofang.getValue());
processor.setId(one.getId());
aftersalesProcessorService.updateById(processor);
//添加操作记录
// AftersaleSurveyRecordDTO aftersaleSurveyRecordDTO = new AftersaleSurveyRecordDTO();
AftersaleSurveyRecordDTO aftersaleSurveyRecordDTO = changName(aftersalesWorkOrderDTO, user);
aftersaleSurveyRecordDTO.setTypesOf("1");
// aftersaleSurveyRecordDTO.setContent();
aftersaleSurveyRecordDTO.setProcessingResults(aftersalesProcessingResultsDTO.getResultType());
aftersaleSurveyRecordDTO.setDifference("3");
aftersaleSurveyRecordDTO.setWorkOrderId(aftersalesWorkOrderDTO.getId());
aftersaleSurveyRecordDTO.setFollowWarehouseId(myCurrentWarehouse.getId());
@ -1023,6 +1087,25 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
return workOrderVO;
}
/**
* 查询理赔集合
* @param aftersalesWorkOrder
* @param page
* @return
*/
@Override
public IPage<AftersalesSettlementEntity> getListSettlement(Map<String, Object> aftersalesWorkOrder, IPage<Object> page) {
AftersalesSettlementEntity aftersalesSettlementEntity = JSONObject.parseObject(JSONObject.toJSONString(aftersalesWorkOrder), AftersalesSettlementEntity.class);
IPage<AftersalesSettlementEntity> iPage = baseMapper.getListSettlement(page,aftersalesSettlementEntity);
iPage.getRecords().forEach(i ->{
i.setWorkOrderTypeName( DictBizCache.getValue(DictBizConstant.PC_WORK_ORDER,i.getWorkOrderType()));
i.setDiscoveryNodeName( DictBizCache.getValue(DictBizConstant.PC_DISCOVERY_NODE,i.getDiscoveryNode()));
i.setResulTypeName( DictBizCache.getValue(DictBizConstant.RESULT_HANDLING,i.getResulType()));
i.setWorkOrderStatusName(DictBizCache.getValue(DictBizConstant.WORK_ORDER_STATUS,i.getWorkOrderStatus()));
});
return iPage;
}
/**
* 添加处理处理方信息
* @param aftersalesWorkOrderDTO
@ -1066,16 +1149,14 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
/**
* 修改处理方状态
* @param myCurrentWarehouse
* @param type
* @return
*/
private Boolean updateProcessor(BasicdataWarehouseEntity myCurrentWarehouse) {
LambdaUpdateWrapper<AftersalesProcessorEntity> q = new LambdaUpdateWrapper<>();
q.eq(AftersalesProcessorEntity::getBusinessName,myCurrentWarehouse.getName());
q.eq(AftersalesProcessorEntity::getBusinessId,myCurrentWarehouse.getId());
q.eq(AftersalesProcessorEntity::getTypesOf,ProcessorTypesOfStatusConstant.chulifang.getValue());
q.set(AftersalesProcessorEntity::getProcessingStatus, ProcessorProcessingStatusStatusConstant.yichuli.getValue());
return aftersalesProcessorService.update(q);
private Boolean updateProcessor(String type,AftersalesProcessorEntity one) {
AftersalesProcessorEntity processor = new AftersalesProcessorEntity();
processor.setId(one.getId());
processor.setProcessingStatus(type);
return aftersalesProcessorService.updateById(processor);
}
}

Loading…
Cancel
Save