33 changed files with 1182 additions and 52 deletions
@ -0,0 +1,15 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loanrepaymenthistory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/1/4 10:40 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class DifferenceVo { |
||||
|
private String sid; |
||||
|
private String difference; //差额
|
||||
|
|
||||
|
} |
@ -0,0 +1,15 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loanrepaymenthistory; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/1/4 9:24 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class HistoryOverDueVo { |
||||
|
private String planSid; //还款计划sid
|
||||
|
private String overdueState; //是否逾期 0是1否
|
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.api.risk.becollection; |
||||
|
|
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(逾期催收记录) <br/> |
||||
|
* File: LoanBeCollectionRecordVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordVo <br/> |
||||
|
* Description: 逾期催收记录 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-11 13:45:41 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "逾期催收记录 视图数据详情", description = "逾期催收记录 视图数据详情") |
||||
|
public class AppBeCollectionRecordDetailsVo implements Vo { |
||||
|
|
||||
|
@ApiModelProperty("催收方式value") |
||||
|
private String collectionTypeValue; |
||||
|
@ApiModelProperty("定位具体位置") |
||||
|
private String locationStr; |
||||
|
@ApiModelProperty("催收结果value") |
||||
|
private String collectionResultValue; |
||||
|
@ApiModelProperty("联系人value") |
||||
|
private String contactsValue; |
||||
|
@ApiModelProperty("逾期原因") |
||||
|
private String beReason; |
||||
|
@ApiModelProperty("是否正常运营value") |
||||
|
private String isNormalOperValue; |
||||
|
@ApiModelProperty("承诺还款日期") |
||||
|
private String promRepayDate; |
||||
|
@ApiModelProperty("承诺还款金额") |
||||
|
private String promRepayMoney; |
||||
|
@ApiModelProperty("预处理措施value") |
||||
|
private String taskHandMeasuresValue; |
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; |
||||
|
@ApiModelProperty("催收附件") |
||||
|
private List<String> files = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.becollection; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class AppBeCollectionRecordHistoryVehVo { |
||||
|
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; |
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; |
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String borrowerName; |
||||
|
@ApiModelProperty("贷款人联系电话") |
||||
|
private String borrowerMobile; |
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String custName; |
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("首次逾期日期") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
||||
|
private Date firstBeDate; |
||||
|
@ApiModelProperty("逾期期数") |
||||
|
private String beOverduePeriod; |
||||
|
@ApiModelProperty("逾期金额") |
||||
|
private String beOverdueMoney; |
||||
|
@ApiModelProperty("逾期金额换算期数") |
||||
|
private String beOverdueMoneyAndPeriod; |
||||
|
@ApiModelProperty |
||||
|
private List<AppBeCollectionRecordHistoryVo> appBeCollectionRecordHistoryVoList; |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.api.risk.becollection; |
||||
|
|
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(逾期催收记录) <br/> |
||||
|
* File: LoanBeCollectionRecordVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordVo <br/> |
||||
|
* Description: 逾期催收记录 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-11 13:45:41 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppBeCollectionRecordHistoryVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("催收日期") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
||||
|
private Date createTime; // 催收日期
|
||||
|
@ApiModelProperty("催收方式value") |
||||
|
private String collectionTypeValue; // 催收方式value
|
||||
|
@ApiModelProperty("定位具体位置") |
||||
|
private String locationStr; // 定位具体位置
|
||||
|
@ApiModelProperty("催收结果value") |
||||
|
private String collectionResultValue; // 催收结果value
|
||||
|
@ApiModelProperty("联系人value") |
||||
|
private String contactsValue; // 联系人value
|
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; // 备注
|
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.overduebank; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.risk.overduebank.flowable.OverdueBankDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduebank.flowable.OverdueBankQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduebank.flowable.OverdueBankTaskQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.cloud.openfeign.SpringQueryMap; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PutMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@FeignClient( |
||||
|
contextId = "terminal-overduebank", |
||||
|
name = "anrui-terminal", |
||||
|
path = "/risk/v1/overduebank", |
||||
|
fallback = OverdueBankFeignFallback.class) |
||||
|
public interface OverdueBankFeign { |
||||
|
|
||||
|
@ApiOperation("办理") |
||||
|
@PutMapping("/agreeOverdueBank") |
||||
|
@ResponseBody |
||||
|
ResultBean agreeOverdueBank(@RequestBody OverdueBankDto dto); |
||||
|
|
||||
|
@ApiOperation("驳回") |
||||
|
@PutMapping("/rejectOverdueBank") |
||||
|
@ResponseBody |
||||
|
ResultBean rejectOverdueBank(@RequestBody OverdueBankTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("撤回") |
||||
|
@PutMapping("/recallOverdueBank") |
||||
|
@ResponseBody |
||||
|
ResultBean recallOverdueBank(@RequestBody OverdueBankTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("终止") |
||||
|
@PutMapping("/stopOverdueBank") |
||||
|
@ResponseBody |
||||
|
ResultBean stopOverdueBank(@RequestBody OverdueBankTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("获取流程操作标题") |
||||
|
@GetMapping("/getFlowOperateTitle") |
||||
|
@ResponseBody |
||||
|
ResultBean<String> getFlowOperateTitle(@SpringQueryMap OverdueBankQuery query); |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.overduebank; |
||||
|
|
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Component |
||||
|
public class OverdueBankFeignFallback { |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.overduebank.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; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class OverdueBankDto 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,23 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.overduebank.flowable; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class OverdueBankQuery { |
||||
|
|
||||
|
@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,45 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.overduebank.flowable; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class OverdueBankTaskQuery { |
||||
|
|
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@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,51 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.overduefin; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.risk.overduefin.flowable.OverdueFinDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduefin.flowable.OverdueFinQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduefin.flowable.OverdueFinTaskQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.cloud.openfeign.SpringQueryMap; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PutMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@FeignClient( |
||||
|
contextId = "terminal-overduefin", |
||||
|
name = "anrui-terminal", |
||||
|
path = "/risk/v1/overduefin", |
||||
|
fallback = OverdueFinFeignFallback.class) |
||||
|
public interface OverdueFinFeign { |
||||
|
|
||||
|
@ApiOperation("办理") |
||||
|
@PutMapping("/agreeOverdueFin") |
||||
|
@ResponseBody |
||||
|
ResultBean agreeOverdueFin(@RequestBody OverdueFinDto dto); |
||||
|
|
||||
|
@ApiOperation("驳回") |
||||
|
@PutMapping("/rejectOverdueFin") |
||||
|
@ResponseBody |
||||
|
ResultBean rejectOverdueFin(@RequestBody OverdueFinTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("撤回") |
||||
|
@PutMapping("/recallOverdueFin") |
||||
|
@ResponseBody |
||||
|
ResultBean recallOverdueFin(@RequestBody OverdueFinTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("终止") |
||||
|
@PutMapping("/stopOverdueFin") |
||||
|
@ResponseBody |
||||
|
ResultBean stopOverdueFin(@RequestBody OverdueFinTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("获取流程操作标题") |
||||
|
@GetMapping("/getFlowOperateTitle") |
||||
|
@ResponseBody |
||||
|
ResultBean<String> getFlowOperateTitle(@SpringQueryMap OverdueFinQuery query); |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.overduefin; |
||||
|
|
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Component |
||||
|
public class OverdueFinFeignFallback { |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.overduefin.flowable; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class OverdueFinDto { |
||||
|
|
||||
|
@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,23 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.overduefin.flowable; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class OverdueFinQuery { |
||||
|
|
||||
|
@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,45 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.overduefin.flowable; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class OverdueFinTaskQuery { |
||||
|
|
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@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,48 @@ |
|||||
|
package com.yxt.anrui.terminal.biz.risk.overduebank; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.risk.overduebank.OverdueBankFeign; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduebank.flowable.OverdueBankDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduebank.flowable.OverdueBankQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduebank.flowable.OverdueBankTaskQuery; |
||||
|
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: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Controller |
||||
|
@RequestMapping("/risk/v1/overduebank") |
||||
|
public class OverdueBankRest implements OverdueBankFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private OverdueBankService overdueBankService; |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean agreeOverdueBank(OverdueBankDto dto) { |
||||
|
return overdueBankService.agreeOverdueBank(dto); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean rejectOverdueBank(OverdueBankTaskQuery query) { |
||||
|
return overdueBankService.rejectOverdueBank(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean recallOverdueBank(OverdueBankTaskQuery query) { |
||||
|
return overdueBankService.recallOverdueBank(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean stopOverdueBank(OverdueBankTaskQuery query) { |
||||
|
return overdueBankService.stopOverdueBank(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<String> getFlowOperateTitle(OverdueBankQuery query) { |
||||
|
return overdueBankService.getFlowOperateTitle(query); |
||||
|
} |
||||
|
} |
@ -0,0 +1,107 @@ |
|||||
|
package com.yxt.anrui.terminal.biz.risk.overduebank; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoverduebank.LoanOverdueBankFeign; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoverduebank.flowable.CompleteBankDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoverduebank.flowable.OverdueBankApplyNodeQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoverduebank.flowable.OverdueBankApplyNodeVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoverduebank.flowable.OverdueBankApplyTaskQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loantemplate.flowable.TemplateApplyNodeQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loantemplate.flowable.TemplateApplyNodeVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loantemplate.flowable.TemplateApplyTaskQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loantemplate.flowable.TemplateCompleteDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduebank.flowable.OverdueBankDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduebank.flowable.OverdueBankQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduebank.flowable.OverdueBankTaskQuery; |
||||
|
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: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Service |
||||
|
public class OverdueBankService { |
||||
|
|
||||
|
|
||||
|
@Autowired |
||||
|
private LoanOverdueBankFeign loanOverdueBankFeign; |
||||
|
|
||||
|
public ResultBean agreeOverdueBank(OverdueBankDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
CompleteBankDto completeBankDto = new CompleteBankDto(); |
||||
|
BeanUtil.copyProperties(dto, completeBankDto); |
||||
|
ResultBean resultBean = loanOverdueBankFeign.complete(completeBankDto); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean rejectOverdueBank(OverdueBankTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
OverdueBankApplyTaskQuery overdueBankApplyTaskQuery = new OverdueBankApplyTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, overdueBankApplyTaskQuery); |
||||
|
ResultBean resultBean = loanOverdueBankFeign.taskReject(overdueBankApplyTaskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean recallOverdueBank(OverdueBankTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
OverdueBankApplyTaskQuery overdueBankApplyTaskQuery = new OverdueBankApplyTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, overdueBankApplyTaskQuery); |
||||
|
ResultBean resultBean = loanOverdueBankFeign.revokeProcess(overdueBankApplyTaskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean stopOverdueBank(OverdueBankTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
OverdueBankApplyTaskQuery overdueBankApplyTaskQuery = new OverdueBankApplyTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, overdueBankApplyTaskQuery); |
||||
|
ResultBean resultBean = loanOverdueBankFeign.breakProcess(overdueBankApplyTaskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean<String> getFlowOperateTitle(OverdueBankQuery query) { |
||||
|
ResultBean<String> rb = ResultBean.fireFail(); |
||||
|
//0 上一环节 1下一环节
|
||||
|
int next = query.getNext(); |
||||
|
OverdueBankApplyNodeQuery getNodeQuery = new OverdueBankApplyNodeQuery(); |
||||
|
BeanUtil.copyProperties(query, getNodeQuery); |
||||
|
String data = ""; |
||||
|
if (next == 0) { |
||||
|
ResultBean<List<OverdueBankApplyNodeVo>> getPreviousNodesForReject = loanOverdueBankFeign.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<OverdueBankApplyNodeVo>> getNextNodesForSubmit = loanOverdueBankFeign.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); |
||||
|
} |
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
package com.yxt.anrui.terminal.biz.risk.overduefin; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.risk.overduefin.OverdueFinFeign; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduefin.flowable.OverdueFinDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduefin.flowable.OverdueFinQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduefin.flowable.OverdueFinTaskQuery; |
||||
|
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: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Controller |
||||
|
@RequestMapping("/risk/v1/overduefin") |
||||
|
public class OverdueFinRest implements OverdueFinFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private OverdueFinService overdueFinService; |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean agreeOverdueFin(OverdueFinDto dto) { |
||||
|
return overdueFinService.agreeOverdueFin(dto); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean rejectOverdueFin(OverdueFinTaskQuery query) { |
||||
|
return overdueFinService.rejectOverdueFin(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean recallOverdueFin(OverdueFinTaskQuery query) { |
||||
|
return overdueFinService.recallOverdueFin(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean stopOverdueFin(OverdueFinTaskQuery query) { |
||||
|
return overdueFinService.stopOverdueFin(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<String> getFlowOperateTitle(OverdueFinQuery query) { |
||||
|
return overdueFinService.getFlowOperateTitle(query); |
||||
|
} |
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
package com.yxt.anrui.terminal.biz.risk.overduefin; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoverduefin.LoanOverdueFinFeign; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoverduefin.flowable.CompleteDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoverduefin.flowable.OverdueApplyNodeQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoverduefin.flowable.OverdueApplyNodeVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoverduefin.flowable.OverdueApplyTaskQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduefin.flowable.OverdueFinDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduefin.flowable.OverdueFinQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.overduefin.flowable.OverdueFinTaskQuery; |
||||
|
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: dimengzhe |
||||
|
* @date: 2024/1/4 |
||||
|
**/ |
||||
|
@Service |
||||
|
public class OverdueFinService { |
||||
|
|
||||
|
@Autowired |
||||
|
private LoanOverdueFinFeign loanOverdueFinFeign; |
||||
|
|
||||
|
public ResultBean agreeOverdueFin(OverdueFinDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
CompleteDto completeDto = new CompleteDto(); |
||||
|
BeanUtil.copyProperties(dto, completeDto); |
||||
|
ResultBean resultBean = loanOverdueFinFeign.complete(completeDto); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean rejectOverdueFin(OverdueFinTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
OverdueApplyTaskQuery overdueApplyTaskQuery = new OverdueApplyTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, overdueApplyTaskQuery); |
||||
|
ResultBean resultBean = loanOverdueFinFeign.taskReject(overdueApplyTaskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean recallOverdueFin(OverdueFinTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
OverdueApplyTaskQuery overdueApplyTaskQuery = new OverdueApplyTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, overdueApplyTaskQuery); |
||||
|
ResultBean resultBean = loanOverdueFinFeign.revokeProcess(overdueApplyTaskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean stopOverdueFin(OverdueFinTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
OverdueApplyTaskQuery overdueApplyTaskQuery = new OverdueApplyTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, overdueApplyTaskQuery); |
||||
|
ResultBean resultBean = loanOverdueFinFeign.breakProcess(overdueApplyTaskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean<String> getFlowOperateTitle(OverdueFinQuery query) { |
||||
|
ResultBean<String> rb = ResultBean.fireFail(); |
||||
|
//0 上一环节 1下一环节
|
||||
|
int next = query.getNext(); |
||||
|
OverdueApplyNodeQuery getNodeQuery = new OverdueApplyNodeQuery(); |
||||
|
BeanUtil.copyProperties(query, getNodeQuery); |
||||
|
String data = ""; |
||||
|
if (next == 0) { |
||||
|
ResultBean<List<OverdueApplyNodeVo>> getPreviousNodesForReject = loanOverdueFinFeign.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<OverdueApplyNodeVo>> getNextNodesForSubmit = loanOverdueFinFeign.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); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue