
53 changed files with 1863 additions and 220 deletions
@ -0,0 +1,24 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanmonthlyaccrualapply; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Fan |
|||
* @description |
|||
* @date 2023/12/22 9:22 |
|||
*/ |
|||
@Data |
|||
public class AppAccrualRecordVo { |
|||
|
|||
private String contractId; |
|||
private String instalments; |
|||
private String vin; |
|||
private String zf; |
|||
private String zfNo; |
|||
private String cusName; |
|||
private String loanName; |
|||
private String repaymentDate; |
|||
private String dept; |
|||
private String dueMoney; |
|||
|
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanmonthlyaccrualapply; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanbuckleapply.app.AppRecordVo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author Fan |
|||
* @description |
|||
* @date 2023/12/22 8:58 |
|||
*/ |
|||
@Data |
|||
public class AppMonthAccrualDetailsVo { |
|||
private String sid; |
|||
private String publishInfo; |
|||
private String time; |
|||
private String remarks; |
|||
private List<String> files = new ArrayList<>(); |
|||
private String taskId; |
|||
private String procInsId; |
|||
private List<AppAccrualRecordVo> records = new ArrayList<>(); |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.yxt.anrui.riskcenter.api.loantransferpaymentapply; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanmonthlyaccrualapply.AppAccrualRecordVo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author Fan |
|||
* @description |
|||
* @date 2023/12/22 9:11 |
|||
*/ |
|||
@Data |
|||
public class AppTransferPaymentDetailsVo { |
|||
private String sid; |
|||
private String publishInfo; |
|||
private String time; |
|||
private String remarks; |
|||
private List<String> files = new ArrayList<>(); |
|||
private String taskId; |
|||
private String procInsId; |
|||
private List<AppTransferRecordVo> records = new ArrayList<>(); |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.yxt.anrui.riskcenter.api.loantransferpaymentapply; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Fan |
|||
* @description |
|||
* @date 2023/12/22 9:23 |
|||
*/ |
|||
@Data |
|||
public class AppTransferRecordVo { |
|||
private String contractId; |
|||
private String instalments; |
|||
private String vin; |
|||
private String zf; |
|||
private String zfNo; |
|||
private String cusName; |
|||
private String loanName; |
|||
private String actualDate; |
|||
private String actualMoney; |
|||
private String spread; |
|||
private String transferPrincipal; |
|||
private String defaultInterest; |
|||
private String account; |
|||
private String accountNumber; |
|||
} |
@ -0,0 +1,31 @@ |
|||
<template> |
|||
<div> |
|||
<slideVerify ref="slideblock" :l="42" :r="10" :w="350" :h="160" slider-text="向右滑动" @success="onSuccess" @fail="onFail" @/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
|
|||
export default { |
|||
data() { |
|||
return { |
|||
verified: false |
|||
} |
|||
}, |
|||
methods: { |
|||
onSuccess() { |
|||
this.verified = true |
|||
this.$emit('login', this.verified) |
|||
}, |
|||
onFail() {}, |
|||
onRefresh() { |
|||
this.$refs.slideblock.reset() |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style> |
|||
|
|||
</style> |
@ -0,0 +1,23 @@ |
|||
package com.yxt.anrui.terminal.api.risk.monthaccrual; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/11/13 15:45 |
|||
*/ |
|||
@Data |
|||
public class AccrualRecordVo { |
|||
private String contractId; |
|||
private String instalments; |
|||
private String vin; |
|||
private String zf; |
|||
private String zfNo; |
|||
private String cusName; |
|||
private String loanName; |
|||
private String repaymentDate; |
|||
private String dept; |
|||
private String dueMoney; |
|||
|
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.yxt.anrui.terminal.api.risk.monthaccrual; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/11/13 15:38 |
|||
*/ |
|||
@Data |
|||
public class MonthAccrualDetailsVo implements Vo { |
|||
private String sid; |
|||
private String publishInfo; |
|||
private String time; |
|||
private String remarks; |
|||
private List<String> files = new ArrayList<>(); |
|||
private String taskId; |
|||
private String procInsId; |
|||
private List<AccrualRecordVo> records = new ArrayList<>(); |
|||
} |
@ -0,0 +1,67 @@ |
|||
package com.yxt.anrui.terminal.api.risk.monthaccrual; |
|||
|
|||
|
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.MonthAccrualFlowableQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.CompleteMonthAccrualDto; |
|||
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-MonthAccrual", |
|||
name = "anrui-terminal", |
|||
path = "/riskcenter/v1/monthaccrual", |
|||
fallback = MonthAccrualFeignFallback.class) |
|||
public interface MonthAccrualFeign { |
|||
|
|||
|
|||
@ApiOperation("划扣申请") |
|||
@GetMapping("/detail/{sid}") |
|||
@ResponseBody |
|||
ResultBean<MonthAccrualDetailsVo> detail(@PathVariable("sid") String sid); |
|||
|
|||
//-------------------------流程-----------------------------------------
|
|||
|
|||
@ApiOperation("办理") |
|||
@PutMapping("/agreeCreditInfo") |
|||
@ResponseBody |
|||
ResultBean agreeCreditInfo(@Valid @RequestBody CompleteMonthAccrualDto dto); |
|||
|
|||
@ApiOperation("驳回") |
|||
@PutMapping("/rejectCreditInfo") |
|||
@ResponseBody |
|||
ResultBean rejectCreditInfo(@Valid @RequestBody AppMonthAccrualTaskQuery query); |
|||
|
|||
@ApiOperation("撤回") |
|||
@PutMapping("/recallCreditInfo") |
|||
@ResponseBody |
|||
ResultBean recallCreditInfo(@Valid @RequestBody AppMonthAccrualTaskQuery query); |
|||
|
|||
@ApiOperation("终止") |
|||
@PutMapping("/stopCreditInfo") |
|||
@ResponseBody |
|||
ResultBean stopCreditInfo(@Valid @RequestBody AppMonthAccrualTaskQuery query); |
|||
|
|||
@ApiOperation("获取流程操作标题") |
|||
@GetMapping("/getFlowOperateTitle") |
|||
@ResponseBody |
|||
ResultBean<String> getFlowOperateTitle(@Valid @SpringQueryMap MonthAccrualFlowableQuery query); |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PutMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody AppMonthAccrualDelegateQuery delegateQuery); |
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.yxt.anrui.terminal.api.risk.monthaccrual; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.MonthAccrualFlowableQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.CompleteMonthAccrualDto; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: fzz |
|||
* @date: |
|||
**/ |
|||
@Component |
|||
public class MonthAccrualFeignFallback implements MonthAccrualFeign { |
|||
|
|||
@Override |
|||
public ResultBean<MonthAccrualDetailsVo> detail(String sid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(CompleteMonthAccrualDto dto) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(AppMonthAccrualTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(AppMonthAccrualTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(AppMonthAccrualTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(MonthAccrualFlowableQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppMonthAccrualDelegateQuery delegateQuery) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.terminal.api.risk.monthaccrual.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 AppMonthAccrualDelegateQuery { |
|||
@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.monthaccrual.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 AppMonthAccrualTaskQuery 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.monthaccrual.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 CompleteMonthAccrualDto 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.monthaccrual.flow; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
@Data |
|||
public class MonthAccrualFlowableQuery 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,26 @@ |
|||
package com.yxt.anrui.terminal.api.risk.transferpayment; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/11/13 15:45 |
|||
*/ |
|||
@Data |
|||
public class PaymentRecordVo { |
|||
private String contractId; |
|||
private String instalments; |
|||
private String vin; |
|||
private String zf; |
|||
private String zfNo; |
|||
private String cusName; |
|||
private String loanName; |
|||
private String actualDate; |
|||
private String actualMoney; |
|||
private String spread; |
|||
private String transferPrincipal; |
|||
private String defaultInterest; |
|||
private String account; |
|||
private String accountNumber; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.yxt.anrui.terminal.api.risk.transferpayment; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/11/13 15:38 |
|||
*/ |
|||
@Data |
|||
public class TransferPaymentDetailsVo implements Vo { |
|||
private String sid; |
|||
private String publishInfo; |
|||
private String time; |
|||
private String remarks; |
|||
private List<String> files = new ArrayList<>(); |
|||
private String taskId; |
|||
private String procInsId; |
|||
private List<PaymentRecordVo> records = new ArrayList<>(); |
|||
} |
@ -0,0 +1,67 @@ |
|||
package com.yxt.anrui.terminal.api.risk.transferpayment; |
|||
|
|||
|
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.AppTransferPaymentDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.AppTransferPaymentTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.TransferPaymentFlowableQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.CompleteTransferPaymentDto; |
|||
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-TransferPayment", |
|||
name = "anrui-terminal", |
|||
path = "/riskcenter/v1/transferpayment", |
|||
fallback = TransferPaymentFeignFallback.class) |
|||
public interface TransferPaymentFeign { |
|||
|
|||
|
|||
@ApiOperation("划扣申请") |
|||
@GetMapping("/detail/{sid}") |
|||
@ResponseBody |
|||
ResultBean<TransferPaymentDetailsVo> detail(@PathVariable("sid") String sid); |
|||
|
|||
//-------------------------流程-----------------------------------------
|
|||
|
|||
@ApiOperation("办理") |
|||
@PutMapping("/agreeCreditInfo") |
|||
@ResponseBody |
|||
ResultBean agreeCreditInfo(@Valid @RequestBody CompleteTransferPaymentDto dto); |
|||
|
|||
@ApiOperation("驳回") |
|||
@PutMapping("/rejectCreditInfo") |
|||
@ResponseBody |
|||
ResultBean rejectCreditInfo(@Valid @RequestBody AppTransferPaymentTaskQuery query); |
|||
|
|||
@ApiOperation("撤回") |
|||
@PutMapping("/recallCreditInfo") |
|||
@ResponseBody |
|||
ResultBean recallCreditInfo(@Valid @RequestBody AppTransferPaymentTaskQuery query); |
|||
|
|||
@ApiOperation("终止") |
|||
@PutMapping("/stopCreditInfo") |
|||
@ResponseBody |
|||
ResultBean stopCreditInfo(@Valid @RequestBody AppTransferPaymentTaskQuery query); |
|||
|
|||
@ApiOperation("获取流程操作标题") |
|||
@GetMapping("/getFlowOperateTitle") |
|||
@ResponseBody |
|||
ResultBean<String> getFlowOperateTitle(@Valid @SpringQueryMap TransferPaymentFlowableQuery query); |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PutMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody AppTransferPaymentDelegateQuery delegateQuery); |
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.yxt.anrui.terminal.api.risk.transferpayment; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.AppTransferPaymentDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.AppTransferPaymentTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.TransferPaymentFlowableQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.CompleteTransferPaymentDto; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: fzz |
|||
* @date: |
|||
**/ |
|||
@Component |
|||
public class TransferPaymentFeignFallback implements TransferPaymentFeign { |
|||
|
|||
@Override |
|||
public ResultBean<TransferPaymentDetailsVo> detail(String sid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(CompleteTransferPaymentDto dto) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(AppTransferPaymentTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(AppTransferPaymentTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(AppTransferPaymentTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(TransferPaymentFlowableQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppTransferPaymentDelegateQuery delegateQuery) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.terminal.api.risk.transferpayment.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 AppTransferPaymentDelegateQuery { |
|||
@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.transferpayment.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 AppTransferPaymentTaskQuery 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.transferpayment.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 CompleteTransferPaymentDto 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.transferpayment.flow; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
@Data |
|||
public class TransferPaymentFlowableQuery 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,68 @@ |
|||
package com.yxt.anrui.terminal.biz.risk.monthaccrual; |
|||
|
|||
|
|||
import com.yxt.anrui.terminal.api.risk.buckle.BuckleDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.buckle.BuckleFeign; |
|||
import com.yxt.anrui.terminal.api.risk.buckle.flow.AppBuckleDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.buckle.flow.AppBuckleTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.buckle.flow.BuckleFlowableQuery; |
|||
import com.yxt.anrui.terminal.api.risk.buckle.flow.CompleteBuckleDto; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.MonthAccrualDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.MonthAccrualFeign; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.CompleteMonthAccrualDto; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.MonthAccrualFlowableQuery; |
|||
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/monthaccrual") |
|||
public class MonthAccrualRest implements MonthAccrualFeign { |
|||
|
|||
@Autowired |
|||
private MonthAccrualService monthAccrualService; |
|||
|
|||
|
|||
@Override |
|||
public ResultBean<MonthAccrualDetailsVo> detail(String sid) { |
|||
return monthAccrualService.detail(sid); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(CompleteMonthAccrualDto dto) { |
|||
return monthAccrualService.agreeCreditInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(AppMonthAccrualTaskQuery query) { |
|||
return monthAccrualService.rejectCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(AppMonthAccrualTaskQuery query) { |
|||
return monthAccrualService.recallCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(AppMonthAccrualTaskQuery query) { |
|||
return monthAccrualService.stopCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(MonthAccrualFlowableQuery query) { |
|||
return monthAccrualService.getFlowOperateTitle(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppMonthAccrualDelegateQuery delegateQuery) { |
|||
return monthAccrualService.delegate(delegateQuery); |
|||
} |
|||
} |
@ -0,0 +1,157 @@ |
|||
package com.yxt.anrui.terminal.biz.risk.monthaccrual; |
|||
|
|||
|
|||
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.loanbuckleapply.LoanBuckleApplyFeign; |
|||
import com.yxt.anrui.riskcenter.api.loanbuckleapply.app.AppBuckleDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loanbuckleapply.flow.*; |
|||
import com.yxt.anrui.riskcenter.api.loanmonthlyaccrualapply.AppMonthAccrualDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loanmonthlyaccrualapply.LoanMonthlyAccrualApplyFeign; |
|||
import com.yxt.anrui.riskcenter.api.loanmonthlyaccrualapply.flow.*; |
|||
import com.yxt.anrui.terminal.api.risk.buckle.BuckleDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.buckle.flow.AppBuckleDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.buckle.flow.AppBuckleTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.buckle.flow.BuckleFlowableQuery; |
|||
import com.yxt.anrui.terminal.api.risk.buckle.flow.CompleteBuckleDto; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.MonthAccrualDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.CompleteMonthAccrualDto; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.MonthAccrualFlowableQuery; |
|||
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 MonthAccrualService { |
|||
|
|||
@Autowired |
|||
private SysUserFeign sysUserFeign; |
|||
@Autowired |
|||
private SysStaffOrgFeign sysStaffOrgFeign; |
|||
@Autowired |
|||
private LoanMonthlyAccrualApplyFeign loanMonthlyAccrualApplyFeign; |
|||
|
|||
public ResultBean<MonthAccrualDetailsVo> detail(String sid) { |
|||
ResultBean<MonthAccrualDetailsVo> rb = ResultBean.fireFail(); |
|||
MonthAccrualDetailsVo vo = new MonthAccrualDetailsVo(); |
|||
AppMonthAccrualDetailsVo data = loanMonthlyAccrualApplyFeign.appDetail(sid).getData(); |
|||
if (null != data) { |
|||
BeanUtil.copyProperties(data, vo); |
|||
} |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
|
|||
public ResultBean agreeCreditInfo(CompleteMonthAccrualDto 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(); |
|||
AccrualCompleteDto completeDto = new |
|||
AccrualCompleteDto(); |
|||
BeanUtil.copyProperties(dto, completeDto); |
|||
completeDto.setOrgSidPath(orgSidPath); |
|||
ResultBean resultBean = loanMonthlyAccrualApplyFeign.complete(completeDto); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean rejectCreditInfo(AppMonthAccrualTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
AccrualTaskQuery taskQuery = new |
|||
AccrualTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanMonthlyAccrualApplyFeign.taskReject(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean recallCreditInfo(AppMonthAccrualTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
AccrualTaskQuery taskQuery = new |
|||
AccrualTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanMonthlyAccrualApplyFeign.revokeProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean stopCreditInfo(AppMonthAccrualTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
AccrualTaskQuery taskQuery = new |
|||
AccrualTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanMonthlyAccrualApplyFeign.breakProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean<String> getFlowOperateTitle(MonthAccrualFlowableQuery query) { |
|||
ResultBean<String> rb = ResultBean.fireFail(); |
|||
//0 上一环节 1下一环节
|
|||
int next = query.getNext(); |
|||
AccrualGetNodeQuery getNodeQuery = new |
|||
AccrualGetNodeQuery(); |
|||
BeanUtil.copyProperties(query, getNodeQuery); |
|||
String data = ""; |
|||
if (next == 0) { |
|||
ResultBean<List<AccrualGetNodeVo>> getPreviousNodesForReject = loanMonthlyAccrualApplyFeign.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<AccrualGetNodeVo>> getNextNodesForSubmit = loanMonthlyAccrualApplyFeign.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(AppMonthAccrualDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
AccrualDelegateQuery delegateQuery1 = new |
|||
AccrualDelegateQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
ResultBean delegate = loanMonthlyAccrualApplyFeign.delegate(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
} |
@ -0,0 +1,68 @@ |
|||
package com.yxt.anrui.terminal.biz.risk.transferpayment; |
|||
|
|||
|
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.MonthAccrualDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.MonthAccrualFeign; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.CompleteMonthAccrualDto; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.MonthAccrualFlowableQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.TransferPaymentDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.TransferPaymentFeign; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.AppTransferPaymentDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.AppTransferPaymentTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.CompleteTransferPaymentDto; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.TransferPaymentFlowableQuery; |
|||
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/transferpayment") |
|||
public class TransferPaymentRest implements TransferPaymentFeign { |
|||
|
|||
@Autowired |
|||
private TransferPaymentService transferPaymentService; |
|||
|
|||
|
|||
@Override |
|||
public ResultBean<TransferPaymentDetailsVo> detail(String sid) { |
|||
return transferPaymentService.detail(sid); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(CompleteTransferPaymentDto dto) { |
|||
return transferPaymentService.agreeCreditInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(AppTransferPaymentTaskQuery query) { |
|||
return transferPaymentService.rejectCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(AppTransferPaymentTaskQuery query) { |
|||
return transferPaymentService.recallCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(AppTransferPaymentTaskQuery query) { |
|||
return transferPaymentService.stopCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(TransferPaymentFlowableQuery query) { |
|||
return transferPaymentService.getFlowOperateTitle(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppTransferPaymentDelegateQuery delegateQuery) { |
|||
return transferPaymentService.delegate(delegateQuery); |
|||
} |
|||
} |
@ -0,0 +1,157 @@ |
|||
package com.yxt.anrui.terminal.biz.risk.transferpayment; |
|||
|
|||
|
|||
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.loanmonthlyaccrualapply.AppMonthAccrualDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loanmonthlyaccrualapply.LoanMonthlyAccrualApplyFeign; |
|||
import com.yxt.anrui.riskcenter.api.loanmonthlyaccrualapply.flow.*; |
|||
import com.yxt.anrui.riskcenter.api.loantransferpaymentapply.AppTransferPaymentDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loantransferpaymentapply.LoanTransferPaymentApplyFeign; |
|||
import com.yxt.anrui.riskcenter.api.loantransferpaymentapply.flow.*; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.MonthAccrualDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.AppMonthAccrualTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.CompleteMonthAccrualDto; |
|||
import com.yxt.anrui.terminal.api.risk.monthaccrual.flow.MonthAccrualFlowableQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.TransferPaymentDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.AppTransferPaymentDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.AppTransferPaymentTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.CompleteTransferPaymentDto; |
|||
import com.yxt.anrui.terminal.api.risk.transferpayment.flow.TransferPaymentFlowableQuery; |
|||
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 TransferPaymentService { |
|||
|
|||
@Autowired |
|||
private SysUserFeign sysUserFeign; |
|||
@Autowired |
|||
private SysStaffOrgFeign sysStaffOrgFeign; |
|||
@Autowired |
|||
private LoanTransferPaymentApplyFeign loanTransferPaymentApplyFeign; |
|||
|
|||
public ResultBean<TransferPaymentDetailsVo> detail(String sid) { |
|||
ResultBean<TransferPaymentDetailsVo> rb = ResultBean.fireFail(); |
|||
TransferPaymentDetailsVo vo = new TransferPaymentDetailsVo(); |
|||
AppTransferPaymentDetailsVo data = loanTransferPaymentApplyFeign.appDetail(sid).getData(); |
|||
if (null != data) { |
|||
BeanUtil.copyProperties(data, vo); |
|||
} |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
|
|||
public ResultBean agreeCreditInfo(CompleteTransferPaymentDto 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(); |
|||
TransferCompleteDto completeDto = new |
|||
TransferCompleteDto(); |
|||
BeanUtil.copyProperties(dto, completeDto); |
|||
completeDto.setOrgSidPath(orgSidPath); |
|||
ResultBean resultBean = loanTransferPaymentApplyFeign.complete(completeDto); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean rejectCreditInfo(AppTransferPaymentTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
TransferTaskQuery taskQuery = new |
|||
TransferTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanTransferPaymentApplyFeign.taskReject(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean recallCreditInfo(AppTransferPaymentTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
TransferTaskQuery taskQuery = new |
|||
TransferTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanTransferPaymentApplyFeign.revokeProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean stopCreditInfo(AppTransferPaymentTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
TransferTaskQuery taskQuery = new |
|||
TransferTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanTransferPaymentApplyFeign.breakProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean<String> getFlowOperateTitle(TransferPaymentFlowableQuery query) { |
|||
ResultBean<String> rb = ResultBean.fireFail(); |
|||
//0 上一环节 1下一环节
|
|||
int next = query.getNext(); |
|||
TransferGetNodeQuery getNodeQuery = new |
|||
TransferGetNodeQuery(); |
|||
BeanUtil.copyProperties(query, getNodeQuery); |
|||
String data = ""; |
|||
if (next == 0) { |
|||
ResultBean<List<TransferGetNodeVo>> getPreviousNodesForReject = loanTransferPaymentApplyFeign.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<TransferGetNodeVo>> getNextNodesForSubmit = loanTransferPaymentApplyFeign.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(AppTransferPaymentDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
TransferDelegateQuery delegateQuery1 = new |
|||
TransferDelegateQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
ResultBean delegate = loanTransferPaymentApplyFeign.delegate(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
} |
Loading…
Reference in new issue