
15 changed files with 572 additions and 9 deletions
@ -0,0 +1,108 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.caseentrustlawyer; |
|||
|
|||
|
|||
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.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(案件委托律师申请) <br/> |
|||
* File: LoanCaseEntrustLawyerApplyVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyVo <br/> |
|||
* Description: 案件委托律师申请 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-02-23 14:26:20 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "案件委托律师申请 视图数据详情", description = "案件委托律师申请 视图数据详情") |
|||
public class AppCaseEntrustLawyerApplyDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("申请部门-申请人") |
|||
private String publishInfo; |
|||
@ApiModelProperty("申请日期") |
|||
private String time; |
|||
@ApiModelProperty("贷款合同编号") |
|||
private String loanContract; |
|||
@ApiModelProperty("贷款人") |
|||
private String lenderName; |
|||
@ApiModelProperty("客户") |
|||
private String customName; |
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("欠款合计") |
|||
private String arrearsTotal; |
|||
@ApiModelProperty("律师事务所") |
|||
private String lawyerFirm; // 律师事务所
|
|||
@ApiModelProperty("承办律师") |
|||
private String lawyerName; // 承办律师
|
|||
@ApiModelProperty("律师联系电话") |
|||
private String lawyerPhone; // 律师联系电话
|
|||
@ApiModelProperty("诉讼方案") |
|||
private String proceedProgramme; // 诉讼方案
|
|||
@ApiModelProperty("车辆欠款金额") |
|||
private String carBeMoney; // 车辆欠款金额
|
|||
@ApiModelProperty("资金占用费") |
|||
private String fundPossCostMoney; // 资金占用费
|
|||
@ApiModelProperty("诉讼费用") |
|||
private String proceedMoney; // 诉讼费用
|
|||
@ApiModelProperty("律师费") |
|||
private String lawyerMoney; // 律师费
|
|||
@ApiModelProperty("保全费") |
|||
private String defendMoney; // 保全费
|
|||
@ApiModelProperty("其他费用") |
|||
private String otherMoney; // 其他费用
|
|||
@ApiModelProperty("其他费用说明") |
|||
private String otherMoneyRemarks; // 其他费用说明
|
|||
@ApiModelProperty("起诉金额合计") |
|||
private String sueMoneyTotal; // 起诉金额合计
|
|||
@ApiModelProperty("是否全额诉讼") |
|||
private String isFullProceed; // 是否全额诉讼
|
|||
@ApiModelProperty("部分诉讼说明") |
|||
private String partProceedRemarks; // 部分诉讼说明
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("流程实例的sid") |
|||
private String procInsId; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
|
|||
@ApiModelProperty |
|||
private List<String> appWtxyFiles; |
|||
} |
@ -0,0 +1,66 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseentrustlawyer; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.AppCaseEntrustLawyerDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.CaseEntrustLawyerQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.CaseEntrustLawyerTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.CompleteCaseEntrustLawyerDto; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.AppCaseExecuteApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.AppCaseExecuteDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CaseExecuteQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CaseExecuteTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseexecute.flowable.CompleteCaseExecuteDto; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @Author |
|||
* @Date |
|||
* @Description |
|||
*/ |
|||
@Api(tags = "案件委托律师管理") |
|||
@FeignClient( |
|||
contextId = "terminal-CaseEntrustLawyer", |
|||
name = "anrui-terminal", |
|||
path = "riskcenter/v1/caseentrustlawyer", |
|||
fallback = CaseEntrustLawyerFeignFallback.class) |
|||
public interface CaseEntrustLawyerFeign { |
|||
|
|||
@ApiOperation("办理") |
|||
@PutMapping("/agreeCreditInfo") |
|||
@ResponseBody |
|||
ResultBean agreeCreditInfo(@RequestBody CompleteCaseEntrustLawyerDto dto); |
|||
|
|||
@ApiOperation("驳回") |
|||
@PutMapping("/rejectCreditInfo") |
|||
@ResponseBody |
|||
ResultBean rejectCreditInfo(@RequestBody CaseEntrustLawyerTaskQuery query); |
|||
|
|||
@ApiOperation("撤回") |
|||
@PutMapping("/recallCreditInfo") |
|||
@ResponseBody |
|||
ResultBean recallCreditInfo(@RequestBody CaseEntrustLawyerTaskQuery query); |
|||
|
|||
@ApiOperation("终止") |
|||
@PutMapping("/stopCreditInfo") |
|||
@ResponseBody |
|||
ResultBean stopCreditInfo(@RequestBody CaseEntrustLawyerTaskQuery query); |
|||
|
|||
@ApiOperation("获取流程操作标题") |
|||
@GetMapping("/getFlowOperateTitle") |
|||
@ResponseBody |
|||
ResultBean<String> getFlowOperateTitle(@SpringQueryMap CaseEntrustLawyerQuery query); |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PutMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody AppCaseEntrustLawyerDelegateQuery delegateQuery); |
|||
|
|||
@ApiOperation("案件委托律师详情") |
|||
@GetMapping("/details/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<AppCaseEntrustLawyerApplyDetailsVo> collectionDetail(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseentrustlawyer; |
|||
|
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2023/8/8 |
|||
**/ |
|||
@Component |
|||
public class CaseEntrustLawyerFeignFallback { |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.terminal.api.risk.caseentrustlawyer.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 AppCaseEntrustLawyerDelegateQuery { |
|||
@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.caseentrustlawyer.flowable; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class CaseEntrustLawyerQuery 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.caseentrustlawyer.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 CaseEntrustLawyerTaskQuery 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.caseentrustlawyer.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 CompleteCaseEntrustLawyerDto implements Dto { |
|||
private static final long serialVersionUID = 7978653524636034916L; |
|||
|
|||
@ApiModelProperty(value = "任务id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
@ApiModelProperty(value = "流程id") |
|||
@NotBlank(message = "参数错误:procInsId") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
@ApiModelProperty(value = "意见") |
|||
private String comment; |
|||
@ApiModelProperty(value = "业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "用户sid") |
|||
@NotBlank(message = "参数错误:userSid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "节点id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
|
|||
private String orgPath; |
|||
} |
@ -0,0 +1,86 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.caseentrustlawyer; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.AppCaseEntrustLawyerApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.CaseEntrustLawyerFeign; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.AppCaseEntrustLawyerDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.CaseEntrustLawyerQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.CaseEntrustLawyerTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.CompleteCaseEntrustLawyerDto; |
|||
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/caseentrustlawyer") |
|||
public class CaseEntrustLawyerRest implements CaseEntrustLawyerFeign { |
|||
|
|||
@Autowired |
|||
private CaseEntrustLawyerService caseEntrustLawyerService; |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(CompleteCaseEntrustLawyerDto dto) { |
|||
return caseEntrustLawyerService.agreeCreditInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(CaseEntrustLawyerTaskQuery query) { |
|||
return caseEntrustLawyerService.rejectCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(CaseEntrustLawyerTaskQuery query) { |
|||
return caseEntrustLawyerService.recallCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(CaseEntrustLawyerTaskQuery query) { |
|||
return caseEntrustLawyerService.stopCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(CaseEntrustLawyerQuery query) { |
|||
return caseEntrustLawyerService.getFlowOperateTitle(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppCaseEntrustLawyerDelegateQuery delegateQuery) { |
|||
return caseEntrustLawyerService.delegate(delegateQuery); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<AppCaseEntrustLawyerApplyDetailsVo> collectionDetail(String sid) { |
|||
return caseEntrustLawyerService.collectionDetail(sid); |
|||
} |
|||
} |
@ -0,0 +1,165 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.caseentrustlawyer; |
|||
|
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.date.DateUtil; |
|||
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyFeign; |
|||
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerFile; |
|||
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable.LoanCaseEntrustLawyerApplyCompleteDto; |
|||
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable.LoanCaseEntrustLawyerApplyNodeQuery; |
|||
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable.LoanCaseEntrustLawyerApplyNodeVo; |
|||
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable.LoanCaseEntrustLawyerApplyTaskQuery; |
|||
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.caseentrustlawyer.AppCaseEntrustLawyerApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.AppCaseEntrustLawyerDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.CaseEntrustLawyerQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.CaseEntrustLawyerTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.caseentrustlawyer.flowable.CompleteCaseEntrustLawyerDto; |
|||
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 CaseEntrustLawyerService { |
|||
|
|||
@Autowired |
|||
private LoanCaseEntrustLawyerApplyFeign loanCaseEntrustLawyerApplyFeign; |
|||
|
|||
public ResultBean agreeCreditInfo(CompleteCaseEntrustLawyerDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseEntrustLawyerApplyCompleteDto loanCaseEntrustLawyerApplyCompleteDto = new LoanCaseEntrustLawyerApplyCompleteDto(); |
|||
BeanUtil.copyProperties(dto, loanCaseEntrustLawyerApplyCompleteDto); |
|||
loanCaseEntrustLawyerApplyFeign.complete(loanCaseEntrustLawyerApplyCompleteDto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean rejectCreditInfo(CaseEntrustLawyerTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseEntrustLawyerApplyTaskQuery taskQuery = new LoanCaseEntrustLawyerApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanCaseEntrustLawyerApplyFeign.reject(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean recallCreditInfo(CaseEntrustLawyerTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseEntrustLawyerApplyTaskQuery taskQuery = new LoanCaseEntrustLawyerApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanCaseEntrustLawyerApplyFeign.revokeProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean stopCreditInfo(CaseEntrustLawyerTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseEntrustLawyerApplyTaskQuery taskQuery = new LoanCaseEntrustLawyerApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanCaseEntrustLawyerApplyFeign.breakProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean<String> getFlowOperateTitle(CaseEntrustLawyerQuery query) { |
|||
ResultBean<String> rb = ResultBean.fireFail(); |
|||
//0 上一环节 1下一环节
|
|||
int next = query.getNext(); |
|||
LoanCaseEntrustLawyerApplyNodeQuery getNodeQuery = new LoanCaseEntrustLawyerApplyNodeQuery(); |
|||
BeanUtil.copyProperties(query, getNodeQuery); |
|||
String data = ""; |
|||
if (next == 0) { |
|||
ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> previousNodesForReject = loanCaseEntrustLawyerApplyFeign.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<LoanCaseEntrustLawyerApplyNodeVo>> nextNodesForSubmit = loanCaseEntrustLawyerApplyFeign.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(AppCaseEntrustLawyerDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseEntrustLawyerApplyNodeQuery delegateQuery1 = new |
|||
LoanCaseEntrustLawyerApplyNodeQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
loanCaseEntrustLawyerApplyFeign.delegate(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean<AppCaseEntrustLawyerApplyDetailsVo> collectionDetail(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCaseEntrustLawyerApplyDetailsVo loanCaseEntrustLawyerApplyDetailsVo = loanCaseEntrustLawyerApplyFeign.fetchDetailsBySid(sid).getData(); |
|||
AppCaseEntrustLawyerApplyDetailsVo appCaseEntrustLawyerApplyDetailsVo = new AppCaseEntrustLawyerApplyDetailsVo(); |
|||
BeanUtil.copyProperties(loanCaseEntrustLawyerApplyDetailsVo,appCaseEntrustLawyerApplyDetailsVo); |
|||
appCaseEntrustLawyerApplyDetailsVo.setPublishInfo(loanCaseEntrustLawyerApplyDetailsVo.getDeptName() + "-" + loanCaseEntrustLawyerApplyDetailsVo.getCreateByName()); |
|||
appCaseEntrustLawyerApplyDetailsVo.setTime(DateUtil.formatDate(loanCaseEntrustLawyerApplyDetailsVo.getCreateTime())); |
|||
appCaseEntrustLawyerApplyDetailsVo.setProcInsId(loanCaseEntrustLawyerApplyDetailsVo.getProcInstSid()); |
|||
List<LoanCaseEntrustLawyerFile> wtxyFiles = loanCaseEntrustLawyerApplyDetailsVo.getWtxyFiles(); |
|||
List<String> appWtxy = new ArrayList<>(); |
|||
if (wtxyFiles != null && wtxyFiles.size() > 0){ |
|||
for (LoanCaseEntrustLawyerFile file : wtxyFiles) { |
|||
appWtxy.add(file.getUrl()); |
|||
} |
|||
} |
|||
appCaseEntrustLawyerApplyDetailsVo.setAppWtxyFiles(appWtxy); |
|||
return rb.success().setData(appCaseEntrustLawyerApplyDetailsVo); |
|||
} |
|||
} |
Loading…
Reference in new issue