面试/面谈
This commit is contained in:
@@ -2,9 +2,11 @@ package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.dao.LineInfoDAO;
|
||||
import com.cool.store.entity.LineInfoDO;
|
||||
import com.cool.store.enums.WorkflowSubStageEnum;
|
||||
import com.cool.store.request.AuditPassRequest;
|
||||
import com.cool.store.request.AuditRejectRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.impl.CommonService;
|
||||
import com.cool.store.service.impl.LineFlowService;
|
||||
import com.cool.store.service.impl.LineInterviewServiceImpl;
|
||||
import io.swagger.annotations.Api;
|
||||
@@ -29,39 +31,25 @@ import javax.annotation.Resource;
|
||||
@RequestMapping({"/audit"})
|
||||
public class LineAuditController {
|
||||
|
||||
private LineFlowService lineFlowService;
|
||||
@Autowired
|
||||
private ApplicationContext applicationContext;
|
||||
@Resource
|
||||
private CommonService commonService;
|
||||
|
||||
@ApiOperation("审核通过")
|
||||
@PostMapping("/pass")
|
||||
public ResponseResult<Boolean> auditPass(@RequestBody AuditPassRequest request){
|
||||
initLineFlowService(request.getWorkflowSubStage());
|
||||
return ResponseResult.success(lineFlowService.auditPass(request));
|
||||
return ResponseResult.success(commonService.getLineFlowService(request.getWorkflowSubStage()).auditPass(request));
|
||||
}
|
||||
|
||||
@ApiOperation("审核拒绝")
|
||||
@PostMapping("/reject")
|
||||
public ResponseResult<Boolean> auditReject(@RequestBody AuditRejectRequest request){
|
||||
initLineFlowService(request.getWorkflowSubStage());
|
||||
return ResponseResult.success(lineFlowService.auditReject(request));
|
||||
return ResponseResult.success(commonService.getLineFlowService(request.getWorkflowSubStage()).auditReject(request));
|
||||
}
|
||||
|
||||
@ApiOperation("结束跟进")
|
||||
@PostMapping("/close")
|
||||
public ResponseResult<Boolean> auditClose(@RequestBody AuditRejectRequest request){
|
||||
initLineFlowService(request.getWorkflowSubStage());
|
||||
return ResponseResult.success(lineFlowService.auditClose(request));
|
||||
return ResponseResult.success(commonService.getLineFlowService(request.getWorkflowSubStage()).auditClose(request));
|
||||
}
|
||||
|
||||
|
||||
private void initLineFlowService(Integer workflowSubStage){
|
||||
if(workflowSubStage == 1){
|
||||
this.lineFlowService = (LineFlowService)applicationContext.getBean(LineInterviewServiceImpl.class);
|
||||
}else{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user