
25 changed files with 680 additions and 11 deletions
@ -0,0 +1,118 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.caseexecute; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
|||
* File: LoanCaseExecuteApplyVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyVo <br/> |
|||
* Description: 案件执行立案申请 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-02-07 10:00:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "案件执行立案申请 视图数据详情", description = "案件执行立案申请 视图数据详情") |
|||
public class AppCaseExecuteApplyDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("申请部门-申请人") |
|||
private String publishInfo; |
|||
@ApiModelProperty("申请日期") |
|||
private String time; |
|||
@ApiModelProperty("案件创建日期") |
|||
private String caseCreateDate; |
|||
@ApiModelProperty("公司负责人") |
|||
private String compHead; |
|||
@ApiModelProperty("法务部门负责人") |
|||
private String legalDeptHead; |
|||
@ApiModelProperty("案件编号") |
|||
private String caseNo; |
|||
@ApiModelProperty("案件类型") |
|||
private String caseType; |
|||
@ApiModelProperty("贷款合同编号") |
|||
private String loanContract; |
|||
@ApiModelProperty("贷款人") |
|||
private String lenderName; |
|||
@ApiModelProperty("贷款人证件号码") |
|||
private String lenderIdNo; |
|||
@ApiModelProperty("贷款人户籍/注册地址") |
|||
private String lenderAddress; |
|||
@ApiModelProperty("客户") |
|||
private String customName; |
|||
@ApiModelProperty("资方") |
|||
private String bankName; |
|||
@ApiModelProperty("资方合同编号") |
|||
private String bankContract; |
|||
@ApiModelProperty("欠款合计") |
|||
private String arrearsTotal; |
|||
@ApiModelProperty("是否全额诉讼") |
|||
private String isFullLitigation; |
|||
@ApiModelProperty("起诉金额合计") |
|||
private String sueMoneyTotal; |
|||
@ApiModelProperty("部分诉讼说明") |
|||
private String partProceRemarks; |
|||
@ApiModelProperty("判决日期") |
|||
private String judgDate; |
|||
@ApiModelProperty("判决结果") |
|||
private String judgResult; |
|||
@ApiModelProperty("判决金额") |
|||
private String judgMoney; |
|||
@ApiModelProperty("判决备注") |
|||
private String judgRemarks; |
|||
@ApiModelProperty("判决生效后回款金额") |
|||
private String judgPayMoney; |
|||
@ApiModelProperty("预执行立案日期") |
|||
private String executeRegisDate; |
|||
@ApiModelProperty("执行时限") |
|||
private String executeDeadline; |
|||
@ApiModelProperty("执行立案金额") |
|||
private String executeRegisMoney; |
|||
@ApiModelProperty("流程实例的sid") |
|||
private String procInsId; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
|
|||
@ApiModelProperty |
|||
private List<String> appPjclFiles; |
|||
@ApiModelProperty |
|||
private List<String> appZxclFiles; |
|||
@ApiModelProperty("上诉车辆") |
|||
private List<AppCaseExecuteVehDetailsVo> appCaseExecuteVehList; |
|||
} |
@ -0,0 +1,63 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.caseexecute; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
|||
* File: LoanCaseExecuteVehVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehVo <br/> |
|||
* Description: 案件执行立案车辆 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-02-07 10:00:58 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "案件执行立案车辆 视图数据详情", description = "案件执行立案车辆 视图数据详情") |
|||
public class AppCaseExecuteVehDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("车牌号") |
|||
private String carNum; // 车牌号
|
|||
@ApiModelProperty("挂靠公司") |
|||
private String affiliatedCompany; // 挂靠公司
|
|||
@ApiModelProperty("车辆状态") |
|||
private String carState; // 车辆状态
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
} |
@ -0,0 +1,61 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseexecute; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.AppCaseExecuteDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CaseExecuteQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CaseExecuteTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CompleteCaseExecuteDto; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @Author |
|||
* @Date |
|||
* @Description |
|||
*/ |
|||
@Api(tags = "案件上诉管理") |
|||
@FeignClient( |
|||
contextId = "terminal-CaseExecute", |
|||
name = "anrui-terminal", |
|||
path = "riskcenter/v1/caseexecute", |
|||
fallback = CaseExecuteFeignFallback.class) |
|||
public interface CaseExecuteFeign { |
|||
|
|||
@ApiOperation("办理") |
|||
@PutMapping("/agreeCreditInfo") |
|||
@ResponseBody |
|||
ResultBean agreeCreditInfo(@RequestBody CompleteCaseExecuteDto dto); |
|||
|
|||
@ApiOperation("驳回") |
|||
@PutMapping("/rejectCreditInfo") |
|||
@ResponseBody |
|||
ResultBean rejectCreditInfo(@RequestBody CaseExecuteTaskQuery query); |
|||
|
|||
@ApiOperation("撤回") |
|||
@PutMapping("/recallCreditInfo") |
|||
@ResponseBody |
|||
ResultBean recallCreditInfo(@RequestBody CaseExecuteTaskQuery query); |
|||
|
|||
@ApiOperation("终止") |
|||
@PutMapping("/stopCreditInfo") |
|||
@ResponseBody |
|||
ResultBean stopCreditInfo(@RequestBody CaseExecuteTaskQuery query); |
|||
|
|||
@ApiOperation("获取流程操作标题") |
|||
@GetMapping("/getFlowOperateTitle") |
|||
@ResponseBody |
|||
ResultBean<String> getFlowOperateTitle(@SpringQueryMap CaseExecuteQuery query); |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PutMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody AppCaseExecuteDelegateQuery delegateQuery); |
|||
|
|||
@ApiOperation("案件上诉详情") |
|||
@GetMapping("/details/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<AppCaseExecuteApplyDetailsVo> collectionDetail(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseexecute; |
|||
|
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2023/8/8 |
|||
**/ |
|||
@Component |
|||
public class CaseExecuteFeignFallback { |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseexecute.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/9/28 10:16 |
|||
*/ |
|||
@Data |
|||
public class AppCaseExecuteDelegateQuery { |
|||
@ApiModelProperty |
|||
private String userSid; |
|||
@ApiModelProperty("流程实例id") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
@ApiModelProperty("任务Id") |
|||
private String taskId; |
|||
@ApiModelProperty("审批人sid") |
|||
private String assignee; |
|||
@ApiModelProperty("填写意见") |
|||
private String views; |
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseexecute.flowable; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class CaseExecuteQuery implements Query { |
|||
private static final long serialVersionUID = -3563282658560745370L; |
|||
|
|||
@ApiModelProperty(value = "节点key") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "业务sid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "0 上一环节 1下一环节") |
|||
private Integer next; |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseexecute.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
@Data |
|||
public class CaseExecuteTaskQuery implements Query { |
|||
private static final long serialVersionUID = -6952737531036706114L; |
|||
|
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("任务Id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
/** |
|||
* 终止、驳回 |
|||
*/ |
|||
@ApiModelProperty("任务意见") |
|||
private String comment; |
|||
/** |
|||
* 终止、撤回、驳回 |
|||
*/ |
|||
@ApiModelProperty("用户Sid") |
|||
private String userSid; |
|||
/** |
|||
* 终止 |
|||
*/ |
|||
@ApiModelProperty("流程实例Id") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseexecute.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
@Data |
|||
public class CompleteCaseExecuteDto implements Dto { |
|||
private static final long serialVersionUID = 7978653524636034916L; |
|||
|
|||
@ApiModelProperty(value = "任务id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
@ApiModelProperty(value = "流程id") |
|||
@NotBlank(message = "参数错误:procInsId") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
@ApiModelProperty(value = "意见") |
|||
private String comment; |
|||
@ApiModelProperty(value = "业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "用户sid") |
|||
@NotBlank(message = "参数错误:userSid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "节点id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
|
|||
private String orgPath; |
|||
} |
@ -0,0 +1,86 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.caseexecute; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.caseappeal.AppCaseAppealApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseappeal.CaseAppealFeign; |
|||
import com.yxt.anrui.terminal.api.risk.caseappeal.flowable.AppCaseAppealDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseappeal.flowable.CaseAppealQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseappeal.flowable.CaseAppealTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseappeal.flowable.CompleteCaseAppealDto; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.AppCaseExecuteApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.CaseExecuteFeign; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.AppCaseExecuteDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CaseExecuteQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CaseExecuteTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CompleteCaseExecuteDto; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
@RestController("案件立案管理") |
|||
@RequestMapping("riskcenter/v1/caseexecute") |
|||
public class CaseExecuteRest implements CaseExecuteFeign { |
|||
|
|||
@Autowired |
|||
private CaseExecuteService caseExecuteService; |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(CompleteCaseExecuteDto dto) { |
|||
return caseExecuteService.agreeCreditInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(CaseExecuteTaskQuery query) { |
|||
return caseExecuteService.rejectCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(CaseExecuteTaskQuery query) { |
|||
return caseExecuteService.recallCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(CaseExecuteTaskQuery query) { |
|||
return caseExecuteService.stopCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(CaseExecuteQuery query) { |
|||
return caseExecuteService.getFlowOperateTitle(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppCaseExecuteDelegateQuery delegateQuery) { |
|||
return caseExecuteService.delegate(delegateQuery); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<AppCaseExecuteApplyDetailsVo> collectionDetail(String sid) { |
|||
return caseExecuteService.collectionDetail(sid); |
|||
} |
|||
} |
@ -0,0 +1,168 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.caseexecute; |
|||
|
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyFeign; |
|||
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteFile; |
|||
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.flowable.*; |
|||
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.AppCaseExecuteApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.AppCaseExecuteVehDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.AppCaseExecuteDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CaseExecuteQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CaseExecuteTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CompleteCaseExecuteDto; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Collections; |
|||
import java.util.List; |
|||
|
|||
@Service |
|||
public class CaseExecuteService { |
|||
|
|||
@Autowired |
|||
private LoanCaseExecuteApplyFeign loanCaseExecuteApplyFeign; |
|||
|
|||
public ResultBean agreeCreditInfo(CompleteCaseExecuteDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseExecuteApplyCompleteDto loanCaseExecuteApplyCompleteDto = new LoanCaseExecuteApplyCompleteDto(); |
|||
BeanUtil.copyProperties(dto, loanCaseExecuteApplyCompleteDto); |
|||
loanCaseExecuteApplyFeign.complete(loanCaseExecuteApplyCompleteDto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean rejectCreditInfo(CaseExecuteTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseExecuteApplyTaskQuery taskQuery = new LoanCaseExecuteApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanCaseExecuteApplyFeign.reject(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean recallCreditInfo(CaseExecuteTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseExecuteApplyTaskQuery taskQuery = new LoanCaseExecuteApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanCaseExecuteApplyFeign.revokeProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean stopCreditInfo(CaseExecuteTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseExecuteApplyTaskQuery taskQuery = new LoanCaseExecuteApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanCaseExecuteApplyFeign.breakProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean<String> getFlowOperateTitle(CaseExecuteQuery query) { |
|||
ResultBean<String> rb = ResultBean.fireFail(); |
|||
//0 上一环节 1下一环节
|
|||
int next = query.getNext(); |
|||
LoanCaseExecuteApplyNodeQuery getNodeQuery = new LoanCaseExecuteApplyNodeQuery(); |
|||
BeanUtil.copyProperties(query, getNodeQuery); |
|||
String data = ""; |
|||
if (next == 0) { |
|||
ResultBean<List<LoanCaseExecuteApplyNodeVo>> previousNodesForReject = loanCaseExecuteApplyFeign.getPreviousNodesForReject(getNodeQuery); |
|||
if (previousNodesForReject.getSuccess()) { |
|||
previousNodesForReject.getData().removeAll(Collections.singleton(null)); |
|||
data = previousNodesForReject.getData().get(0).getName(); |
|||
} else { |
|||
return rb.setMsg(previousNodesForReject.getMsg()); |
|||
} |
|||
} else if (next == 1) { |
|||
ResultBean<List<LoanCaseExecuteApplyNodeVo>> nextNodesForSubmit = loanCaseExecuteApplyFeign.getNextNodesForSubmit(getNodeQuery); |
|||
if (nextNodesForSubmit.getSuccess()) { |
|||
nextNodesForSubmit.getData().removeAll(Collections.singleton(null)); |
|||
data = nextNodesForSubmit.getData().get(0).getName(); |
|||
} else { |
|||
return rb.setMsg(nextNodesForSubmit.getMsg()); |
|||
} |
|||
} else { |
|||
return rb.setMsg("参数错误:next"); |
|||
} |
|||
return rb.success().setData(data); |
|||
} |
|||
|
|||
public ResultBean delegate(AppCaseExecuteDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseExecuteApplyDelegateQuery delegateQuery1 = new |
|||
LoanCaseExecuteApplyDelegateQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
loanCaseExecuteApplyFeign.delegate(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean<AppCaseExecuteApplyDetailsVo> collectionDetail(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseExecuteApplyDetailsVo loanCaseExecuteApplyDetailsVo = loanCaseExecuteApplyFeign.fetchDetailsBySid(sid).getData(); |
|||
AppCaseExecuteApplyDetailsVo appCaseExecuteApplyDetailsVo = new AppCaseExecuteApplyDetailsVo(); |
|||
BeanUtil.copyProperties(loanCaseExecuteApplyDetailsVo,appCaseExecuteApplyDetailsVo); |
|||
appCaseExecuteApplyDetailsVo.setPublishInfo(loanCaseExecuteApplyDetailsVo.getDeptName() + "-" + loanCaseExecuteApplyDetailsVo.getCreateByName()); |
|||
appCaseExecuteApplyDetailsVo.setTime(loanCaseExecuteApplyDetailsVo.getCreateTime()); |
|||
appCaseExecuteApplyDetailsVo.setProcInsId(loanCaseExecuteApplyDetailsVo.getProcInstSid()); |
|||
List<LoanCaseExecuteFile> pjclFiles = loanCaseExecuteApplyDetailsVo.getPjclFiles(); |
|||
List<String> appPjcl = new ArrayList<>(); |
|||
if (pjclFiles != null && pjclFiles.size() > 0){ |
|||
for (LoanCaseExecuteFile file : pjclFiles) { |
|||
appPjcl.add(file.getUrl()); |
|||
} |
|||
} |
|||
List<LoanCaseExecuteFile> zxclFiles = loanCaseExecuteApplyDetailsVo.getZxclFiles(); |
|||
List<String> appZxcl = new ArrayList<>(); |
|||
if (zxclFiles != null && zxclFiles.size() > 0){ |
|||
for (LoanCaseExecuteFile file : zxclFiles) { |
|||
appZxcl.add(file.getUrl()); |
|||
} |
|||
} |
|||
appCaseExecuteApplyDetailsVo.setAppPjclFiles(appPjcl); |
|||
appCaseExecuteApplyDetailsVo.setAppZxclFiles(appZxcl); |
|||
List<LoanCaseExecuteVehDetailsVo> loanCaseExecuteVehList = loanCaseExecuteApplyDetailsVo.getLoanCaseExecuteVehList(); |
|||
List<AppCaseExecuteVehDetailsVo> appCaseExecuteVehDetailsVos = new ArrayList<>(); |
|||
for (LoanCaseExecuteVehDetailsVo loanCaseExecuteVehDetailsVo : loanCaseExecuteVehList) { |
|||
AppCaseExecuteVehDetailsVo appCaseExecuteVehDetailsVo = new AppCaseExecuteVehDetailsVo(); |
|||
BeanUtil.copyProperties(loanCaseExecuteVehDetailsVo,appCaseExecuteVehDetailsVo); |
|||
appCaseExecuteVehDetailsVos.add(appCaseExecuteVehDetailsVo); |
|||
} |
|||
appCaseExecuteApplyDetailsVo.setAppCaseExecuteVehList(appCaseExecuteVehDetailsVos); |
|||
return rb.success().setData(appCaseExecuteApplyDetailsVo); |
|||
} |
|||
} |
Loading…
Reference in new issue