@ -41,6 +41,7 @@ import com.logpm.aftersales.service.IAftersalesCompletionRecipientService;
import com.logpm.aftersales.service.IAftersalesCompletionRecordService ;
import com.logpm.aftersales.service.IAftersalesCompletionRecordService ;
import com.logpm.aftersales.service.IAftersalesPersonResponsibleService ;
import com.logpm.aftersales.service.IAftersalesPersonResponsibleService ;
import com.logpm.aftersales.service.IAftersalesWorkOrderService ;
import com.logpm.aftersales.service.IAftersalesWorkOrderService ;
import com.logpm.aftersales.vo.AftersalesPersonResponsibleVO ;
import com.logpm.aftersales.vo.AftersalesWorkOrderVO ;
import com.logpm.aftersales.vo.AftersalesWorkOrderVO ;
import com.logpm.aftersales.wrapper.AftersalesWorkOrderWrapper ;
import com.logpm.aftersales.wrapper.AftersalesWorkOrderWrapper ;
import com.logpm.basicdata.entity.BasicdataWarehouseEntity ;
import com.logpm.basicdata.entity.BasicdataWarehouseEntity ;
@ -160,21 +161,7 @@ public class AftersalesWorkOrderController extends BladeController {
}
}
/ * *
* 客服异常工单 查询异常工单完整数据集合
* /
@PostMapping ( "/pageAllList" )
@ApiOperationSupport ( order = 2 )
@ApiOperation ( value = "查询异常工单完整数据集合" , notes = "传入aftersalesWorkOrder" )
public R ageAllList ( @ApiIgnore @RequestBody AftersalesWorkOrderQueryDTO workOrderQueryDTO , Query query ) {
try {
R r = aftersalesWorkOrderService . ageAllList ( workOrderQueryDTO , Condition . getPage ( query ) ) ;
return r ;
} catch ( Exception e ) {
log . error ( "工单查询系统异常》》》{}" , e . getMessage ( ) ) ;
return R . fail ( "系统异常!" ) ;
}
}
@ -297,7 +284,7 @@ public class AftersalesWorkOrderController extends BladeController {
if ( ObjectUtils . isNull ( aftersalesWorkOrderDTO . getSurveyRecordDTO ( ) . getContent ( ) ) ) {
if ( ObjectUtils . isNull ( aftersalesWorkOrderDTO . getSurveyRecordDTO ( ) . getContent ( ) ) ) {
throw new ServiceException ( "内容不能为空!!" ) ;
throw new ServiceException ( "内容不能为空!!" ) ;
}
}
return R . status ( aftersalesWorkOrderService . savaSurveyRecord ( aftersalesWorkOrderDTO ) ) ;
return aftersalesWorkOrderService . savaSurveyRecord ( aftersalesWorkOrderDTO ) ;
} catch ( ServiceException s ) {
} catch ( ServiceException s ) {
return R . fail ( s . getMessage ( ) ) ;
return R . fail ( s . getMessage ( ) ) ;
} catch ( Exception e ) {
} catch ( Exception e ) {
@ -676,7 +663,6 @@ public class AftersalesWorkOrderController extends BladeController {
log . error ( "填写钉钉流程号异常》》{}" , e . getMessage ( ) ) ;
log . error ( "填写钉钉流程号异常》》{}" , e . getMessage ( ) ) ;
return R . fail ( "系统异常!!!" ) ;
return R . fail ( "系统异常!!!" ) ;
}
}
}
}
/ * *
/ * *
@ -695,14 +681,13 @@ public class AftersalesWorkOrderController extends BladeController {
}
}
try {
try {
aftersalesWorkOrder . setInitiationIdentification ( "PC" ) ;
aftersalesWorkOrder . setInitiationIdentification ( "PC" ) ;
return R . status ( aftersalesWorkOrderService . saveOrUpdateOwn ( aftersalesWorkOrder ) ) ;
return aftersalesWorkOrderService . saveOrUpdateOwn ( aftersalesWorkOrder ) ;
} catch ( ServiceException s ) {
} catch ( ServiceException s ) {
return R . fail ( s . getMessage ( ) ) ;
return R . fail ( s . getMessage ( ) ) ;
} catch ( Exception e ) {
} catch ( Exception e ) {
log . error ( "工单提交异常》》》{}" , e . getMessage ( ) ) ;
log . error ( "工单提交异常》》》{}" , e . getMessage ( ) ) ;
return R . fail ( e . getMessage ( ) ) ;
return R . fail ( e . getMessage ( ) ) ;
}
}
}
}
@ -1413,6 +1398,26 @@ public class AftersalesWorkOrderController extends BladeController {
return R . success ( "操作成功" ) ;
return R . success ( "操作成功" ) ;
}
}
/ * *
* 修改内部责任信息
* /
@PostMapping ( "/updatePersonResponsible" )
@ApiOperationSupport ( order = 13 )
@ApiOperation ( value = "写入财务入账时间" , notes = "传入aftersalesWorkOrder" )
public R updatePersonResponsible ( @Valid @RequestBody AftersalesWorkOrderVO aftersalesWorkOrderVO ) {
if ( Objects . isNull ( aftersalesWorkOrderVO . getPersonResponsibleVOS ( ) ) ) {
return R . fail ( "参数缺失,请联系管理员" ) ;
}
if ( Objects . isNull ( aftersalesWorkOrderVO . getId ( ) ) ) {
return R . fail ( "参数缺失,请联系管理员" ) ;
}
List < AftersalesPersonResponsibleVO > personResponsibleVOS = aftersalesWorkOrderVO . getPersonResponsibleVOS ( ) ;
Long id = aftersalesWorkOrderVO . getId ( ) ;
return aftersalesWorkOrderService . updatePersonResponsible ( id , personResponsibleVOS ) ;
}
/ * *
/ * *
* 写入财务入账时间
* 写入财务入账时间
* /
* /
@ -1431,4 +1436,38 @@ public class AftersalesWorkOrderController extends BladeController {
}
}
/ * *
* 客服异常工单 查询异常工单完整数据集合
* /
@PostMapping ( "/newPage" )
@ApiOperationSupport ( order = 2 )
@ApiOperation ( value = "查询" , notes = "传入aftersalesWorkOrder" )
public R newPage ( @ApiIgnore @RequestBody AftersalesWorkOrderQueryDTO workOrderQueryDTO , Query query , @RequestParam Integer pageType ) {
try {
R r = aftersalesWorkOrderService . newPage ( workOrderQueryDTO , query , pageType ) ;
return r ;
} catch ( Exception e ) {
log . error ( "工单查询系统异常》》》{}" , e . getMessage ( ) ) ;
return R . fail ( "系统异常!" ) ;
}
}
/ * *
* 客服异常工单 查询异常工单完整数据集合
* /
@PostMapping ( "/newExport" )
@ApiOperationSupport ( order = 2 )
@ApiOperation ( value = "查询" , notes = "传入aftersalesWorkOrder" )
public void newExport ( @ApiIgnore @RequestBody AftersalesWorkOrderQueryDTO workOrderQueryDTO , Query query , @RequestParam Integer pageType , HttpServletResponse response ) {
try {
aftersalesWorkOrderService . newExport ( workOrderQueryDTO , query , pageType , response ) ;
} catch ( Exception e ) {
log . error ( "工单查询系统异常》》》{}" , e . getMessage ( ) ) ;
}
}
}
}