@ -18,6 +18,7 @@ package com.logpm.aftersales.controller;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils ;
import com.logpm.aftersales.dto.AftersalesWorkOrderDTO ;
import com.logpm.aftersales.excel.AftersalesWorkOrderImporter ;
import com.logpm.basicdata.entity.BasicdataWarehouseEntity ;
import com.logpm.basicdata.feign.IBasicdataWarehouseClient ;
import io.swagger.annotations.Api ;
@ -43,6 +44,7 @@ import com.logpm.aftersales.service.IAftersalesWorkOrderService;
import org.springblade.core.boot.ctrl.BladeController ;
import org.springblade.core.tool.utils.DateUtil ;
import org.springblade.core.excel.util.ExcelUtil ;
import org.springframework.web.multipart.MultipartFile ;
import springfox.documentation.annotations.ApiIgnore ;
import java.util.Map ;
@ -172,10 +174,10 @@ public class AftersalesWorkOrderController extends BladeController {
/ * *
* 客服异常工单 查询处理结果信息数据
* /
@Pos tMapping ( "/getProcessingResults" )
@Ge tMapping ( "/getProcessingResults" )
@ApiOperationSupport ( order = 4 )
@ApiOperation ( value = "客服异常工单 查询处理结果信息数据" , notes = "传入aftersalesWorkOrder" )
public R getProcessingResults ( @Valid @RequestBody AftersalesWorkOrderDTO aftersalesWorkOrder ) {
public R getProcessingResults ( AftersalesWorkOrderDTO aftersalesWorkOrder ) {
if ( ObjectUtils . isNull ( aftersalesWorkOrder . getId ( ) ) ) {
return R . fail ( "异常工单ID不能为空!!" ) ;
}
@ -260,5 +262,19 @@ public class AftersalesWorkOrderController extends BladeController {
ExcelUtil . export ( response , "异常工单数据" + DateUtil . time ( ) , "异常工单数据" , list , AftersalesWorkOrderExcel . class ) ;
}
/ * *
* 导入 批量修改 钉钉流程号 、 审核人 、 审核日期 , 财务理赔入账日期 、 操作人
* /
@PostMapping ( "/import-aftersalesWorkOrder" )
@ApiOperationSupport ( order = 12 )
@ApiOperation ( value = "批量修改 钉钉流程号、审核人、审核日期,财务理赔入账日期、操作人" , notes = "传入excel" )
public R importWarehousingEntry ( MultipartFile file , Integer isCovered ) {
isCovered = 1 ;
AftersalesWorkOrderImporter userImporter = new AftersalesWorkOrderImporter ( aftersalesWorkOrderService , isCovered = = 1 ) ;
ExcelUtil . save ( file , userImporter , AftersalesWorkOrderExcel . class ) ;
return R . success ( "操作成功" ) ;
}
}