54 changed files with 2518 additions and 209 deletions
@ -0,0 +1,40 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanlawsuitapply.app; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author Fan |
|||
* @description |
|||
* @date 2024/2/7 11:15 |
|||
*/ |
|||
@Data |
|||
public class AppLawsuitDetailsVo { |
|||
|
|||
private String sid; |
|||
private String publishInfo; // 发起部门-发起人
|
|||
private String time; //申请日期
|
|||
private String taskId; |
|||
private String procInsId; |
|||
@ApiModelProperty("客户名称") |
|||
private String custName; |
|||
@ApiModelProperty("资方合同号") |
|||
private String bankContractNo; |
|||
@ApiModelProperty("贷款人") |
|||
private String borrName; |
|||
@ApiModelProperty("贷款合同号") |
|||
private String loanContractNo; |
|||
@ApiModelProperty("资方") |
|||
private String bankName; |
|||
@ApiModelProperty("销售订单sid") |
|||
private String salesOrderSid; |
|||
@ApiModelProperty("风控进展描述") |
|||
private String progress; |
|||
@ApiModelProperty("欠款合计") |
|||
private String amountAll; |
|||
private List<AppVehListVo> vehListVos = new ArrayList<>(); |
|||
|
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanlawsuitapply.app; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Fan |
|||
* @description |
|||
* @date 2024/2/22 10:15 |
|||
*/ |
|||
@Data |
|||
public class AppVehListVo { |
|||
|
|||
@ApiModelProperty("车牌号") |
|||
private String vehMark; |
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; |
|||
//费用
|
|||
@ApiModelProperty("已还金额") |
|||
private String alRepaidMoney; // 已还金额
|
|||
@ApiModelProperty("当前逾期金额") |
|||
private String currentBeMoney; // 当前逾期金额
|
|||
@ApiModelProperty("其中资金占用费") |
|||
private String wheFundOccMoney; // 资金占用费
|
|||
@ApiModelProperty("未到期金额") |
|||
private String unexpiredMoney; // 未到期金额
|
|||
@ApiModelProperty("总期数") |
|||
private String nper; // 总期数
|
|||
@ApiModelProperty("当前期数") |
|||
private String currentPeriod; // 当前期数
|
|||
@ApiModelProperty("已还金额换算期数") |
|||
private String alRepaidMoneyConPeriod; // 已还金额换算期数
|
|||
@ApiModelProperty("逾期金额换算期数") |
|||
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
|
|||
@ApiModelProperty("垫资方月还") |
|||
private String price; |
|||
@ApiModelProperty("垫资方逾期利息") |
|||
private String bankInterest; |
|||
@ApiModelProperty("车辆处置金额") |
|||
private String amount; |
|||
@ApiModelProperty("欠款小计") |
|||
private String owedTotal; |
|||
@ApiModelProperty("贷款保证金") |
|||
private String deposit; |
|||
@ApiModelProperty("是否回购") |
|||
private String repo; |
|||
|
|||
|
|||
} |
@ -0,0 +1,41 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanlawsuitapply.flow; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/6/28 9:01 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class LawsuitCompleteDto implements Dto { |
|||
private static final long serialVersionUID = 3240453987322803352L; |
|||
@ApiModelProperty(value = "用户sid") |
|||
@NotBlank(message = "参数错误:userSid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "用户全路径sid") |
|||
private String orgSidPath; |
|||
@ApiModelProperty(value = "节点id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "任务id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
@ApiModelProperty(value = "流程id") |
|||
@NotBlank(message = "参数错误:instanceId") |
|||
private String instanceId; |
|||
@ApiModelProperty(value = "意见") |
|||
@NotBlank(message = "参数错误:comment") |
|||
private String comment; |
|||
@ApiModelProperty(value = "业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "分支字段及业务字段") |
|||
private Map<String, Object> formVariables; |
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanlawsuitapply.flow; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/9/28 9:28 |
|||
*/ |
|||
@Data |
|||
public class LawsuitDelegateQuery { |
|||
@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,26 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanlawsuitapply.flow; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/6/28 10:42 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class LawsuitGetNodeQuery implements Query { |
|||
private static final long serialVersionUID = -5674867230708197611L; |
|||
|
|||
@ApiModelProperty(value = "环节定义id") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "业务sid") |
|||
private String businessSid; |
|||
|
|||
@ApiModelProperty(value = "分支字段及业务字段") |
|||
private Map<String, Object> formVariables; |
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanlawsuitapply.flow; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/6/28 11:09 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class LawsuitGetNodeVo implements Vo { |
|||
private static final long serialVersionUID = 8802774014747063504L; |
|||
@ApiModelProperty(value = "节点名称") |
|||
private String name; |
|||
@ApiModelProperty(value = "节点id") |
|||
private String id; |
|||
@ApiModelProperty(value = "审批组") |
|||
private List<String> candidateGroups; |
|||
@ApiModelProperty(value = "是否是最后环节") |
|||
private String endTask; |
|||
} |
@ -0,0 +1,56 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanlawsuitapply.flow; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/6/28 17:29 |
|||
* @Description 终止、撤回、驳回查询参数 |
|||
*/ |
|||
@Data |
|||
public class LawsuitTaskQuery implements Query { |
|||
private static final long serialVersionUID = -4006020771892400451L; |
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@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") |
|||
private String instanceId; |
|||
/*@ApiModelProperty("用户Id") |
|||
private String userId; |
|||
@ApiModelProperty("节点") |
|||
private String targetKey; |
|||
@ApiModelProperty("流程变量信息") |
|||
private Map<String, Object> values = new HashMap<>(); |
|||
@ApiModelProperty("审批人") |
|||
private String assignee; |
|||
@ApiModelProperty("候选人") |
|||
private List<String> candidateUsers = new ArrayList<>(); |
|||
@ApiModelProperty("审批组") |
|||
private List<String> candidateGroups = new ArrayList<>();*/ |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanlawsuitapply.flow; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanlawsuitapply.LoanLawsuitApplyDto; |
|||
import com.yxt.anrui.riskcenter.api.loanrepurchaseapply.LoanRepurchaseApplyDto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/6/27 13:38 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SubmitLawsuitDto extends LoanLawsuitApplyDto { |
|||
private static final long serialVersionUID = 378585162071125756L; |
|||
@ApiModelProperty("流程实例id") |
|||
private String instanceId; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
|
|||
} |
@ -0,0 +1,115 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.caseclose; |
|||
|
|||
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: LoanCaseCloseApplyVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancasecloseapply.LoanCaseCloseApplyVo <br/> |
|||
* Description: 案件结案申请 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-02-08 11:07:38 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "案件结案申请 视图数据详情", description = "案件结案申请 视图数据详情") |
|||
public class AppCaseCloseApplyDetailsVo 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 finalJudgMoney; |
|||
@ApiModelProperty("回款金额") |
|||
private String returnMoney; |
|||
@ApiModelProperty("未回款金额") |
|||
private String notReturnMoney; |
|||
@ApiModelProperty("执行措施") |
|||
private String executeMeasure; |
|||
@ApiModelProperty("执行说明") |
|||
private String executeRemarks; |
|||
@ApiModelProperty("结案方式value") |
|||
private String closeTypeValue; |
|||
@ApiModelProperty("结案日期") |
|||
private String closeDate; |
|||
@ApiModelProperty("结案说明") |
|||
private String closeRemarks; |
|||
@ApiModelProperty("流程实例的sid") |
|||
private String procInsId; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
|
|||
@ApiModelProperty |
|||
private List<String> appJaclFiles; |
|||
@ApiModelProperty("上诉车辆") |
|||
private List<AppCaseCloseVehDetailsVo> appCaseCloseVehList; |
|||
} |
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.caseclose; |
|||
|
|||
|
|||
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: LoanCaseCloseVehVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancasecloseveh.LoanCaseCloseVehVo <br/> |
|||
* Description: 案件结案车辆 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-02-08 11:07:38 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "案件结案车辆 视图数据详情", description = "案件结案车辆 视图数据详情") |
|||
public class AppCaseCloseVehDetailsVo 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,62 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseclose; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.caseappeal.AppCaseAppealApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.AppCaseCloseDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.CaseCloseQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.CaseCloseTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.CompleteCaseCloseDto; |
|||
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-CaseClose", |
|||
name = "anrui-terminal", |
|||
path = "riskcenter/v1/caseclose", |
|||
fallback = CaseCloseFeignFallback.class) |
|||
public interface CaseCloseFeign { |
|||
|
|||
@ApiOperation("办理") |
|||
@PutMapping("/agreeCreditInfo") |
|||
@ResponseBody |
|||
ResultBean agreeCreditInfo(@RequestBody CompleteCaseCloseDto dto); |
|||
|
|||
@ApiOperation("驳回") |
|||
@PutMapping("/rejectCreditInfo") |
|||
@ResponseBody |
|||
ResultBean rejectCreditInfo(@RequestBody CaseCloseTaskQuery query); |
|||
|
|||
@ApiOperation("撤回") |
|||
@PutMapping("/recallCreditInfo") |
|||
@ResponseBody |
|||
ResultBean recallCreditInfo(@RequestBody CaseCloseTaskQuery query); |
|||
|
|||
@ApiOperation("终止") |
|||
@PutMapping("/stopCreditInfo") |
|||
@ResponseBody |
|||
ResultBean stopCreditInfo(@RequestBody CaseCloseTaskQuery query); |
|||
|
|||
@ApiOperation("获取流程操作标题") |
|||
@GetMapping("/getFlowOperateTitle") |
|||
@ResponseBody |
|||
ResultBean<String> getFlowOperateTitle(@SpringQueryMap CaseCloseQuery query); |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PutMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody AppCaseCloseDelegateQuery delegateQuery); |
|||
|
|||
@ApiOperation("案件结案详情") |
|||
@GetMapping("/details/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<AppCaseCloseApplyDetailsVo> collectionDetail(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseclose; |
|||
|
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2023/8/8 |
|||
**/ |
|||
@Component |
|||
public class CaseCloseFeignFallback { |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseclose.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 AppCaseCloseDelegateQuery { |
|||
@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.caseclose.flowable; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class CaseCloseQuery 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.caseclose.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 CaseCloseTaskQuery 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.caseclose.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 CompleteCaseCloseDto 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,43 @@ |
|||
package com.yxt.anrui.terminal.api.risk.lawsuit; |
|||
|
|||
import com.yxt.anrui.terminal.api.base.common.CarModelVo; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/11/13 15:38 |
|||
*/ |
|||
@Data |
|||
public class LawsuitDetailsVo implements Vo { |
|||
|
|||
|
|||
private String sid; |
|||
private String publishInfo; // 发起部门-发起人
|
|||
private String time; //申请日期
|
|||
private String taskId; |
|||
private String procInsId; |
|||
@ApiModelProperty("客户名称") |
|||
private String custName; |
|||
@ApiModelProperty("资方合同号") |
|||
private String bankContractNo; |
|||
@ApiModelProperty("贷款人") |
|||
private String borrName; |
|||
@ApiModelProperty("贷款合同号") |
|||
private String loanContractNo; |
|||
@ApiModelProperty("资方") |
|||
private String bankName; |
|||
@ApiModelProperty("销售订单sid") |
|||
private String salesOrderSid; |
|||
@ApiModelProperty("风控进展描述") |
|||
private String progress; |
|||
@ApiModelProperty("欠款合计") |
|||
private String amountAll; |
|||
private List<LawsuitVehVo> vehListVos = new ArrayList<>(); |
|||
private CarModelVo jrfa;//金融方案
|
|||
} |
@ -0,0 +1,67 @@ |
|||
package com.yxt.anrui.terminal.api.risk.lawsuit; |
|||
|
|||
|
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.AppLawsuitDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.AppLawsuitTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.CompleteLawsuitDto; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.LawsuitFlowableQuery; |
|||
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.*; |
|||
|
|||
import javax.validation.Valid; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: fzz |
|||
* @date: 2023/8/8 |
|||
**/ |
|||
@Api(tags = "诉讼申请") |
|||
@FeignClient( |
|||
contextId = "terminal-Lawsuit", |
|||
name = "anrui-terminal", |
|||
path = "/riskcenter/v1/Lawsuit", |
|||
fallback = LawsuitFeignFallback.class) |
|||
public interface LawsuitFeign { |
|||
|
|||
|
|||
@ApiOperation("详情") |
|||
@GetMapping("/appDetail/{sid}") |
|||
@ResponseBody |
|||
ResultBean<LawsuitDetailsVo> detail(@PathVariable("sid") String sid); |
|||
|
|||
//-------------------------流程-----------------------------------------
|
|||
|
|||
@ApiOperation("办理") |
|||
@PutMapping("/agreeCreditInfo") |
|||
@ResponseBody |
|||
ResultBean agreeCreditInfo(@Valid @RequestBody CompleteLawsuitDto dto); |
|||
|
|||
@ApiOperation("驳回") |
|||
@PutMapping("/rejectCreditInfo") |
|||
@ResponseBody |
|||
ResultBean rejectCreditInfo(@Valid @RequestBody AppLawsuitTaskQuery query); |
|||
|
|||
@ApiOperation("撤回") |
|||
@PutMapping("/recallCreditInfo") |
|||
@ResponseBody |
|||
ResultBean recallCreditInfo(@Valid @RequestBody AppLawsuitTaskQuery query); |
|||
|
|||
@ApiOperation("终止") |
|||
@PutMapping("/stopCreditInfo") |
|||
@ResponseBody |
|||
ResultBean stopCreditInfo(@Valid @RequestBody AppLawsuitTaskQuery query); |
|||
|
|||
@ApiOperation("获取流程操作标题") |
|||
@GetMapping("/getFlowOperateTitle") |
|||
@ResponseBody |
|||
ResultBean<String> getFlowOperateTitle(@Valid @SpringQueryMap LawsuitFlowableQuery query); |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PutMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody AppLawsuitDelegateQuery delegateQuery); |
|||
} |
@ -0,0 +1,53 @@ |
|||
package com.yxt.anrui.terminal.api.risk.lawsuit; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.AppLawsuitDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.AppLawsuitTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.CompleteLawsuitDto; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.LawsuitFlowableQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: fzz |
|||
* @date: |
|||
**/ |
|||
@Component |
|||
public class LawsuitFeignFallback implements LawsuitFeign { |
|||
|
|||
|
|||
@Override |
|||
public ResultBean<LawsuitDetailsVo> detail(String sid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(CompleteLawsuitDto dto) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(AppLawsuitTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(AppLawsuitTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(AppLawsuitTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(LawsuitFlowableQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppLawsuitDelegateQuery delegateQuery) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,46 @@ |
|||
package com.yxt.anrui.terminal.api.risk.lawsuit; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Fan |
|||
* @description |
|||
* @date 2024/2/22 10:32 |
|||
*/ |
|||
@Data |
|||
public class LawsuitVehVo { |
|||
@ApiModelProperty("车牌号") |
|||
private String vehMark; |
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; |
|||
//费用
|
|||
@ApiModelProperty("已还金额") |
|||
private String alRepaidMoney; // 已还金额
|
|||
@ApiModelProperty("当前逾期金额") |
|||
private String currentBeMoney; // 当前逾期金额
|
|||
@ApiModelProperty("其中资金占用费") |
|||
private String wheFundOccMoney; // 资金占用费
|
|||
@ApiModelProperty("未到期金额") |
|||
private String unexpiredMoney; // 未到期金额
|
|||
@ApiModelProperty("总期数") |
|||
private String nper; // 总期数
|
|||
@ApiModelProperty("当前期数") |
|||
private String currentPeriod; // 当前期数
|
|||
@ApiModelProperty("已还金额换算期数") |
|||
private String alRepaidMoneyConPeriod; // 已还金额换算期数
|
|||
@ApiModelProperty("逾期金额换算期数") |
|||
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
|
|||
@ApiModelProperty("垫资方月还") |
|||
private String price; |
|||
@ApiModelProperty("垫资方逾期利息") |
|||
private String bankInterest; |
|||
@ApiModelProperty("车辆处置金额") |
|||
private String amount; |
|||
@ApiModelProperty("欠款小计") |
|||
private String owedTotal; |
|||
@ApiModelProperty("贷款保证金") |
|||
private String deposit; |
|||
@ApiModelProperty("是否回购") |
|||
private String repo; |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.terminal.api.risk.lawsuit.flow; |
|||
|
|||
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 AppLawsuitDelegateQuery { |
|||
@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,46 @@ |
|||
package com.yxt.anrui.terminal.api.risk.lawsuit.flow; |
|||
|
|||
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; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/10/17 9:14 |
|||
*/ |
|||
@Data |
|||
public class AppLawsuitTaskQuery implements Query { |
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@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,35 @@ |
|||
package com.yxt.anrui.terminal.api.risk.lawsuit.flow; |
|||
|
|||
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; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/10/17 9:13 |
|||
*/ |
|||
@Data |
|||
public class CompleteLawsuitDto implements Dto { |
|||
@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; |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.yxt.anrui.terminal.api.risk.lawsuit.flow; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
@Data |
|||
public class LawsuitFlowableQuery implements Query { |
|||
private static final long serialVersionUID = -5879668616710833830L; |
|||
|
|||
@ApiModelProperty(value = "节点key") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "业务sid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "0 上一环节 1下一环节") |
|||
@NotNull(message = "参数错误:next") |
|||
private Integer next; |
|||
|
|||
} |
@ -0,0 +1,86 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.caseclose; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.caseclose.AppCaseCloseApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.CaseCloseFeign; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.AppCaseCloseDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.CaseCloseQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.CaseCloseTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.CompleteCaseCloseDto; |
|||
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/caseclose") |
|||
public class CaseCloseRest implements CaseCloseFeign { |
|||
|
|||
@Autowired |
|||
private CaseCloseService caseCloseService; |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(CompleteCaseCloseDto dto) { |
|||
return caseCloseService.agreeCreditInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(CaseCloseTaskQuery query) { |
|||
return caseCloseService.rejectCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(CaseCloseTaskQuery query) { |
|||
return caseCloseService.recallCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(CaseCloseTaskQuery query) { |
|||
return caseCloseService.stopCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(CaseCloseQuery query) { |
|||
return caseCloseService.getFlowOperateTitle(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppCaseCloseDelegateQuery delegateQuery) { |
|||
return caseCloseService.delegate(delegateQuery); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<AppCaseCloseApplyDetailsVo> collectionDetail(String sid) { |
|||
return caseCloseService.collectionDetail(sid); |
|||
} |
|||
} |
@ -0,0 +1,171 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.caseclose; |
|||
|
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.yxt.anrui.riskcenter.api.loancasecloseapply.LoanCaseCloseApplyDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loancasecloseapply.LoanCaseCloseApplyFeign; |
|||
import com.yxt.anrui.riskcenter.api.loancasecloseapply.LoanCaseCloseFile; |
|||
import com.yxt.anrui.riskcenter.api.loancasecloseapply.flowable.*; |
|||
import com.yxt.anrui.riskcenter.api.loancasecloseveh.LoanCaseCloseVehDetailsVo; |
|||
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.caseclose.AppCaseCloseApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.AppCaseCloseVehDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.AppCaseCloseDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.CaseCloseQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.CaseCloseTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseclose.flowable.CompleteCaseCloseDto; |
|||
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 CaseCloseService { |
|||
|
|||
@Autowired |
|||
private LoanCaseCloseApplyFeign loanCaseCloseApplyFeign; |
|||
|
|||
public ResultBean agreeCreditInfo(CompleteCaseCloseDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseCloseApplyCompleteDto loanCaseCloseApplyCompleteDto = new LoanCaseCloseApplyCompleteDto(); |
|||
BeanUtil.copyProperties(dto, loanCaseCloseApplyCompleteDto); |
|||
loanCaseCloseApplyFeign.complete(loanCaseCloseApplyCompleteDto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean rejectCreditInfo(CaseCloseTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseCloseApplyTaskQuery taskQuery = new LoanCaseCloseApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanCaseCloseApplyFeign.reject(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean recallCreditInfo(CaseCloseTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseCloseApplyTaskQuery taskQuery = new LoanCaseCloseApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanCaseCloseApplyFeign.revokeProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean stopCreditInfo(CaseCloseTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseCloseApplyTaskQuery taskQuery = new LoanCaseCloseApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanCaseCloseApplyFeign.breakProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean<String> getFlowOperateTitle(CaseCloseQuery query) { |
|||
ResultBean<String> rb = ResultBean.fireFail(); |
|||
//0 上一环节 1下一环节
|
|||
int next = query.getNext(); |
|||
LoanCaseCloseApplyNodeQuery getNodeQuery = new LoanCaseCloseApplyNodeQuery(); |
|||
BeanUtil.copyProperties(query, getNodeQuery); |
|||
String data = ""; |
|||
if (next == 0) { |
|||
ResultBean<List<LoanCaseCloseApplyNodeVo>> previousNodesForReject = loanCaseCloseApplyFeign.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<LoanCaseCloseApplyNodeVo>> nextNodesForSubmit = loanCaseCloseApplyFeign.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(AppCaseCloseDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseCloseApplyDelegateQuery delegateQuery1 = new |
|||
LoanCaseCloseApplyDelegateQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
loanCaseCloseApplyFeign.delegate(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean<AppCaseCloseApplyDetailsVo> collectionDetail(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseCloseApplyDetailsVo loanCaseCloseApplyDetailsVo = loanCaseCloseApplyFeign.fetchDetailsBySid(sid).getData(); |
|||
AppCaseCloseApplyDetailsVo appCaseCloseApplyDetailsVo = new AppCaseCloseApplyDetailsVo(); |
|||
BeanUtil.copyProperties(loanCaseCloseApplyDetailsVo,appCaseCloseApplyDetailsVo); |
|||
appCaseCloseApplyDetailsVo.setPublishInfo(loanCaseCloseApplyDetailsVo.getDeptName() + "-" + loanCaseCloseApplyDetailsVo.getCreateByName()); |
|||
appCaseCloseApplyDetailsVo.setTime(loanCaseCloseApplyDetailsVo.getCreateTime()); |
|||
appCaseCloseApplyDetailsVo.setProcInsId(loanCaseCloseApplyDetailsVo.getProcInstSid()); |
|||
List<LoanCaseCloseFile> jaclFiles = loanCaseCloseApplyDetailsVo.getJaclFiles(); |
|||
List<String> appJacl = new ArrayList<>(); |
|||
if (jaclFiles != null && jaclFiles.size() > 0){ |
|||
for (LoanCaseCloseFile file : jaclFiles) { |
|||
appJacl.add(file.getUrl()); |
|||
} |
|||
} |
|||
appCaseCloseApplyDetailsVo.setAppJaclFiles(appJacl); |
|||
List<LoanCaseCloseVehDetailsVo> loanCaseCloseVehList = loanCaseCloseApplyDetailsVo.getLoanCaseCloseVehList(); |
|||
List<AppCaseCloseVehDetailsVo> appCaseCloseVehDetailsVos = new ArrayList<>(); |
|||
for (LoanCaseCloseVehDetailsVo loanCaseCloseVehDetailsVo : loanCaseCloseVehList) { |
|||
AppCaseCloseVehDetailsVo appCaseCloseVehDetailsVo = new AppCaseCloseVehDetailsVo(); |
|||
BeanUtil.copyProperties(loanCaseCloseVehDetailsVo,appCaseCloseVehDetailsVo); |
|||
appCaseCloseVehDetailsVos.add(appCaseCloseVehDetailsVo); |
|||
} |
|||
appCaseCloseApplyDetailsVo.setAppCaseCloseVehList(appCaseCloseVehDetailsVos); |
|||
return rb.success().setData(appCaseCloseApplyDetailsVo); |
|||
} |
|||
} |
@ -0,0 +1,68 @@ |
|||
package com.yxt.anrui.terminal.biz.risk.lawsuit; |
|||
|
|||
|
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.LawsuitDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.LawsuitFeign; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.AppLawsuitDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.AppLawsuitTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.CompleteLawsuitDto; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.LawsuitFlowableQuery; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.RepurchaseDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.RepurchaseFeign; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.flow.AppRepurchaseDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.flow.AppRepurchaseTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.flow.CompleteRepurchaseDto; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.flow.RepurchaseFlowableQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Controller; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: fzz |
|||
* @date: |
|||
**/ |
|||
@Controller |
|||
@RequestMapping("/riskcenter/v1/Lawsuit") |
|||
public class LawsuitRest implements LawsuitFeign { |
|||
|
|||
@Autowired |
|||
private LawsuitService lawsuitService; |
|||
|
|||
|
|||
@Override |
|||
public ResultBean<LawsuitDetailsVo> detail(String sid) { |
|||
return lawsuitService.detail(sid); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(CompleteLawsuitDto dto) { |
|||
return lawsuitService.agreeCreditInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(AppLawsuitTaskQuery query) { |
|||
return lawsuitService.rejectCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(AppLawsuitTaskQuery query) { |
|||
return lawsuitService.recallCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(AppLawsuitTaskQuery query) { |
|||
return lawsuitService.stopCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(LawsuitFlowableQuery query) { |
|||
return lawsuitService.getFlowOperateTitle(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppLawsuitDelegateQuery delegateQuery) { |
|||
return lawsuitService.delegate(delegateQuery); |
|||
} |
|||
} |
@ -0,0 +1,164 @@ |
|||
package com.yxt.anrui.terminal.biz.risk.lawsuit; |
|||
|
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrg; |
|||
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|||
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|||
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
|||
import com.yxt.anrui.riskcenter.api.loanlawsuitapply.LoanLawsuitApplyFeign; |
|||
import com.yxt.anrui.riskcenter.api.loanlawsuitapply.app.AppLawsuitDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loanlawsuitapply.flow.*; |
|||
import com.yxt.anrui.riskcenter.api.loanrepurchaseapply.LoanRepurchaseApplyFeign; |
|||
import com.yxt.anrui.riskcenter.api.loanrepurchaseapply.app.AppRepurchaseDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loanrepurchaseapply.flow.*; |
|||
import com.yxt.anrui.terminal.api.base.common.CarModelVo; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.LawsuitDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.AppLawsuitDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.AppLawsuitTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.CompleteLawsuitDto; |
|||
import com.yxt.anrui.terminal.api.risk.lawsuit.flow.LawsuitFlowableQuery; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.RepurchaseDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.flow.AppRepurchaseDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.flow.AppRepurchaseTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.flow.CompleteRepurchaseDto; |
|||
import com.yxt.anrui.terminal.api.risk.repurchase.flow.RepurchaseFlowableQuery; |
|||
import com.yxt.anrui.terminal.biz.base.common.CommonService; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.Collections; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: fzz |
|||
* @date: |
|||
**/ |
|||
@Service |
|||
public class LawsuitService { |
|||
|
|||
@Autowired |
|||
private SysUserFeign sysUserFeign; |
|||
@Autowired |
|||
private SysStaffOrgFeign sysStaffOrgFeign; |
|||
@Autowired |
|||
private LoanLawsuitApplyFeign loanLawsuitApplyFeign; |
|||
@Autowired |
|||
private CommonService commonService; |
|||
|
|||
public ResultBean<LawsuitDetailsVo> detail(String sid) { |
|||
ResultBean<LawsuitDetailsVo> rb = ResultBean.fireFail(); |
|||
LawsuitDetailsVo vo = new LawsuitDetailsVo(); |
|||
AppLawsuitDetailsVo data = loanLawsuitApplyFeign.appDetail(sid).getData(); |
|||
if (null != data) { |
|||
BeanUtil.copyProperties(data, vo); |
|||
ResultBean<CarModelVo> getLoanSolution = commonService.getLoanSolution(data.getSalesOrderSid()); |
|||
CarModelVo carModelVo = getLoanSolution.getData(); |
|||
vo.setJrfa(carModelVo); |
|||
} |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
|
|||
public ResultBean agreeCreditInfo(CompleteLawsuitDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
//根据用户sid获取staffSid
|
|||
ResultBean<SysUserVo> userVoResultBean = sysUserFeign.fetchBySid(dto.getUserSid()); |
|||
if (!userVoResultBean.getSuccess()) { |
|||
return rb.setMsg(userVoResultBean.getMsg()); |
|||
} |
|||
//根据staffSid获取用户的组织全路径
|
|||
ResultBean<SysStaffOrg> staffOrgResultBean = sysStaffOrgFeign.getOrgByStaffSid(userVoResultBean.getData().getStaffSid()); |
|||
if (!staffOrgResultBean.getSuccess()) { |
|||
return rb.setMsg(staffOrgResultBean.getMsg()); |
|||
} |
|||
//用户的组织全路径
|
|||
String orgSidPath = staffOrgResultBean.getData().getOrgSidPath(); |
|||
LawsuitCompleteDto completeDto = new |
|||
LawsuitCompleteDto(); |
|||
BeanUtil.copyProperties(dto, completeDto); |
|||
completeDto.setOrgSidPath(orgSidPath); |
|||
ResultBean resultBean = loanLawsuitApplyFeign.complete(completeDto); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean rejectCreditInfo(AppLawsuitTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LawsuitTaskQuery taskQuery = new |
|||
LawsuitTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanLawsuitApplyFeign.taskReject(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean recallCreditInfo(AppLawsuitTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LawsuitTaskQuery taskQuery = new |
|||
LawsuitTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanLawsuitApplyFeign.revokeProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean stopCreditInfo(AppLawsuitTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LawsuitTaskQuery taskQuery = new |
|||
LawsuitTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanLawsuitApplyFeign.breakProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean<String> getFlowOperateTitle(LawsuitFlowableQuery query) { |
|||
ResultBean<String> rb = ResultBean.fireFail(); |
|||
//0 上一环节 1下一环节
|
|||
int next = query.getNext(); |
|||
LawsuitGetNodeQuery getNodeQuery = new |
|||
LawsuitGetNodeQuery(); |
|||
BeanUtil.copyProperties(query, getNodeQuery); |
|||
String data = ""; |
|||
if (next == 0) { |
|||
ResultBean<List<LawsuitGetNodeVo>> getPreviousNodesForReject = loanLawsuitApplyFeign.getPreviousNodesForReject(getNodeQuery); |
|||
if (getPreviousNodesForReject.getSuccess()) { |
|||
getPreviousNodesForReject.getData().removeAll(Collections.singleton(null)); |
|||
data = getPreviousNodesForReject.getData().get(0).getName(); |
|||
} else { |
|||
return rb.setMsg(getPreviousNodesForReject.getMsg()); |
|||
} |
|||
} else if (next == 1) { |
|||
ResultBean<List<LawsuitGetNodeVo>> getNextNodesForSubmit = loanLawsuitApplyFeign.getNextNodesForSubmit(getNodeQuery); |
|||
if (getNextNodesForSubmit.getSuccess()) { |
|||
getNextNodesForSubmit.getData().removeAll(Collections.singleton(null)); |
|||
data = getNextNodesForSubmit.getData().get(0).getName(); |
|||
} else { |
|||
return rb.setMsg(getNextNodesForSubmit.getMsg()); |
|||
} |
|||
} else { |
|||
return rb.setMsg("参数错误:next"); |
|||
} |
|||
return rb.success().setData(data); |
|||
} |
|||
|
|||
public ResultBean delegate(AppLawsuitDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LawsuitDelegateQuery delegateQuery1 = new |
|||
LawsuitDelegateQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
ResultBean delegate = loanLawsuitApplyFeign.delegate(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
} |
Loading…
Reference in new issue