Browse Source

案件委托律师

测试问题修改
master
God 1 year ago
parent
commit
8a4d428c61
  1. 1
      anrui-flowable/anrui-flowable-api/src/main/java/com/yxt/anrui/flowable/api/utils/ProcDefEnum.java
  2. 5
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseappealapply/LoanCaseAppealApplyFeign.java
  3. 122
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApply.java
  4. 127
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyDetailsVo.java
  5. 128
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyDto.java
  6. 114
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyFeign.java
  7. 114
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyFeignFallback.java
  8. 82
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyQuery.java
  9. 90
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyVo.java
  10. 35
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerFile.java
  11. 37
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/LoanCaseEntrustLawyerApplyCompleteDto.java
  12. 26
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/LoanCaseEntrustLawyerApplyDelegateQuery.java
  13. 25
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/LoanCaseEntrustLawyerApplyNodeQuery.java
  14. 26
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/LoanCaseEntrustLawyerApplyNodeVo.java
  15. 48
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/LoanCaseEntrustLawyerApplyTaskQuery.java
  16. 25
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/SubmitLoanCaseEntrustLawyerApplyDto.java
  17. 1
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanfile/LoanFileEnum.java
  18. 7
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseappealapply/LoanCaseAppealApplyRest.java
  19. 5
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseappealapply/LoanCaseAppealApplyService.java
  20. 72
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyMapper.java
  21. 43
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyMapper.xml
  22. 145
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyRest.java
  23. 598
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyService.java
  24. 2
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitprep/LoanHomevisitPrepMapper.xml
  25. 7
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitprep/LoanHomevisitPrepService.java
  26. 2
      anrui-terminal/anrui-terminal-api/src/main/java/com/yxt/anrui/terminal/api/risk/caseclose/AppCaseCloseApplyDetailsVo.java

1
anrui-flowable/anrui-flowable-api/src/main/java/com/yxt/anrui/flowable/api/utils/ProcDefEnum.java

@ -81,6 +81,7 @@ public enum ProcDefEnum {
LOANCASEEXECUTEAPPLY("案件执行立案申请", "process_aeho48ap:1:8220004"),
LOANCASECLOSEAPPLY("案件结案申请", "process_llaxpwkd:1:8220008"),
LOANLAWSUITAPPLY("诉讼申请", "process_xc4lp97d:1:8380004"),
LOANCASEENTRUSTLAWYERAPPLY("案件委托律师", ""),
/******************************测试流程id*********************************************/

5
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseappealapply/LoanCaseAppealApplyFeign.java

@ -80,6 +80,11 @@ public interface LoanCaseAppealApplyFeign {
@ResponseBody
public ResultBean<LoanCaseAppealApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid);
@ApiOperation("初始化")
@PostMapping("/details")
@ResponseBody
public ResultBean<LoanCaseAppealApplyDetailsVo> details(@RequestParam("sid") String sid,@RequestParam("userSid") String userSid,@RequestParam("orgPath") String orgPath);
@ApiOperation("提交审批流程")
@PostMapping("/submit")
public ResultBean submit(@RequestBody @Valid SubmitLoanCaseAppealApplyDto dto);

122
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApply.java

@ -0,0 +1,122 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yxt.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* Project: anrui-riskcenter(案件委托律师申请) <br/>
* File: LoanCaseEntrustLawyerApply.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApply <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 = "案件委托律师申请")
@TableName("loan_case_entrust_lawyer_apply")
public class LoanCaseEntrustLawyerApply extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty("创建人")
private String createByName; // 创建人
@ApiModelProperty("申请编号")
private String billNo; // 申请编号
@ApiModelProperty("申请部门sid")
private String deptSid; // 申请部门sid
@ApiModelProperty("申请部门名称")
private String deptName; // 申请部门名称
@ApiModelProperty("贷款合同编号")
private String loanContract; // 贷款合同编号
@ApiModelProperty("贷款人")
private String lenderName; // 贷款人
@ApiModelProperty("客户")
private String customName; // 客户
@ApiModelProperty("车架号")
private String vinNo; // 车架号
@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 caseStage;
@ApiModelProperty("资方")
private String bankName; // 资方
@ApiModelProperty("资方合同编号")
private String bankContractNo;
@ApiModelProperty("业务sid")
private String busSid; // 业务sid
@ApiModelProperty("分公司sid")
private String useOrgSid; // 分公司sid
@ApiModelProperty("分公司名称")
private String useOrgName; // 分公司名称
@ApiModelProperty("组织全路径")
private String orgPath; // 组织全路径
@ApiModelProperty("流程定义的id")
private String procDefId; // 流程定义的id
@ApiModelProperty("环节定义的sid")
private String nodeSid; // 环节定义的sid
@ApiModelProperty("流程实例的sid")
private String procInstSid; // 流程实例的sid
@ApiModelProperty("流程状态")
private String nodeState; // 流程状态
@ApiModelProperty("任务id")
private String taskId; // 任务id
}

127
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyDetailsVo.java

@ -0,0 +1,127 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* Project: anrui-riskcenter(案件委托律师申请) <br/>
* File: 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 LoanCaseEntrustLawyerApplyDetailsVo implements Vo {
private String sid; // sid
@ApiModelProperty("创建人")
private String createByName; // 创建人
@ApiModelProperty("申请编号")
private String billNo; // 申请编号
@ApiModelProperty("申请部门sid")
private String deptSid; // 申请部门sid
@ApiModelProperty("申请部门名称")
private String deptName; // 申请部门名称
@ApiModelProperty("贷款合同编号")
private String loanContract; // 贷款合同编号
@ApiModelProperty("贷款人")
private String lenderName; // 贷款人
@ApiModelProperty("客户")
private String customName; // 客户
@ApiModelProperty("车架号")
private String vinNo; // 车架号
@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 caseStage;
@ApiModelProperty("资方")
private String bankName; // 资方
@ApiModelProperty("资方合同编号")
private String bankContractNo;
@ApiModelProperty("业务sid")
private String busSid; // 业务sid
@ApiModelProperty("分公司sid")
private String useOrgSid; // 分公司sid
@ApiModelProperty("分公司名称")
private String useOrgName; // 分公司名称
@ApiModelProperty("组织全路径")
private String orgPath; // 组织全路径
@ApiModelProperty("流程定义的id")
private String procDefId; // 流程定义的id
@ApiModelProperty("环节定义的sid")
private String nodeSid; // 环节定义的sid
@ApiModelProperty("流程实例的sid")
private String procInstSid; // 流程实例的sid
@ApiModelProperty("流程状态")
private String nodeState; // 流程状态
@ApiModelProperty("任务id")
private String taskId; // 任务id
@ApiModelProperty
private List<LoanCaseEntrustLawyerFile> wtxyFiles;
}

128
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyDto.java

@ -0,0 +1,128 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply;
import com.yxt.anrui.riskcenter.api.loancasecloseapply.LoanCaseCloseFile;
import com.yxt.common.core.dto.Dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* Project: anrui-riskcenter(案件委托律师申请) <br/>
* File: LoanCaseEntrustLawyerApplyDto.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyDto <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 LoanCaseEntrustLawyerApplyDto implements Dto {
private String sid; // sid
@ApiModelProperty("创建人")
private String createByName; // 创建人
@ApiModelProperty("申请编号")
private String billNo; // 申请编号
@ApiModelProperty("申请部门sid")
private String deptSid; // 申请部门sid
@ApiModelProperty("申请部门名称")
private String deptName; // 申请部门名称
@ApiModelProperty("贷款合同编号")
private String loanContract; // 贷款合同编号
@ApiModelProperty("贷款人")
private String lenderName; // 贷款人
@ApiModelProperty("客户")
private String customName; // 客户
@ApiModelProperty("车架号")
private String vinNo; // 车架号
@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 caseStage;
@ApiModelProperty("资方")
private String bankName; // 资方
@ApiModelProperty("资方合同编号")
private String bankContractNo;
@ApiModelProperty("业务sid")
private String busSid; // 业务sid
@ApiModelProperty("分公司sid")
private String useOrgSid; // 分公司sid
@ApiModelProperty("分公司名称")
private String useOrgName; // 分公司名称
@ApiModelProperty("组织全路径")
private String orgPath; // 组织全路径
@ApiModelProperty("流程定义的id")
private String procDefId; // 流程定义的id
@ApiModelProperty("环节定义的sid")
private String nodeSid; // 环节定义的sid
@ApiModelProperty("流程实例的sid")
private String procInstSid; // 流程实例的sid
@ApiModelProperty("流程状态")
private String nodeState; // 流程状态
@ApiModelProperty("任务id")
private String taskId; // 任务id
@ApiModelProperty
private List<LoanCaseEntrustLawyerFile> wtxyFiles;
}

114
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyFeign.java

@ -0,0 +1,114 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply;
import com.yxt.anrui.riskcenter.api.loancasecloseapply.flowable.*;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.yxt.common.core.query.PagerQuery;
import com.yxt.common.core.result.ResultBean;
import com.yxt.common.core.vo.PagerVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.List;
/**
* Project: anrui-riskcenter(案件委托律师申请) <br/>
* File: LoanCaseEntrustLawyerApplyFeign.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyFeign <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
*/
@Api(tags = "案件委托律师申请")
@FeignClient(
contextId = "anrui-riskcenter-LoanCaseEntrustLawyerApply",
name = "anrui-riskcenter",
path = "v1/loancaseentrustlawyerapply",
fallback = LoanCaseEntrustLawyerApplyFeignFallback.class)
public interface LoanCaseEntrustLawyerApplyFeign {
@ApiOperation("根据条件分页查询数据的列表")
@PostMapping("/listPage")
@ResponseBody
public ResultBean<PagerVo<LoanCaseEntrustLawyerApplyVo>> listPage(@RequestBody PagerQuery<LoanCaseEntrustLawyerApplyQuery> pq);
@ApiOperation("新增或修改")
@PostMapping("/save")
@ResponseBody
public ResultBean save(@RequestBody LoanCaseEntrustLawyerApplyDto dto);
@ApiOperation("根据sid删除记录")
@DeleteMapping("/delBySids")
@ResponseBody
public ResultBean delBySids(@RequestBody String[] sids);
@ApiOperation("根据SID获取一条记录")
@GetMapping("/fetchDetailsBySid/{sid}")
@ResponseBody
public ResultBean<LoanCaseEntrustLawyerApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid);
@ApiOperation("提交审批流程")
@PostMapping("/submit")
public ResultBean submit(@RequestBody @Valid SubmitLoanCaseEntrustLawyerApplyDto dto);
@ApiOperation(value = "办理(同意)")
@PostMapping("/complete")
public ResultBean complete(@Valid @RequestBody LoanCaseEntrustLawyerApplyCompleteDto query);
@ApiOperation(value = "获取上一个环节")
@GetMapping(value = "/getPreviousNodesForReject")
ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap LoanCaseEntrustLawyerApplyNodeQuery query);
@ApiOperation(value = "获取下一个环节")
@GetMapping(value = "/getNextNodesForSubmit")
ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap LoanCaseEntrustLawyerApplyNodeQuery query);
@ApiOperation(value = "驳回任务")
@PostMapping(value = "/reject")
public ResultBean reject(@Valid @RequestBody LoanCaseEntrustLawyerApplyTaskQuery query);
@ApiOperation(value = "撤回流程")
@PostMapping(value = "/revokeProcess")
public ResultBean revokeProcess(@Valid @RequestBody LoanCaseEntrustLawyerApplyTaskQuery query);
@ApiOperation(value = "终止任务")
@PostMapping(value = "/breakProcess")
public ResultBean breakProcess(@Valid @RequestBody LoanCaseEntrustLawyerApplyTaskQuery query);
@ApiOperation(value = "加签")
@PostMapping(value = "/delegate")
public ResultBean delegate(@RequestBody LoanCaseEntrustLawyerApplyNodeQuery query);
}

114
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyFeignFallback.java

@ -0,0 +1,114 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply;
import com.yxt.anrui.riskcenter.api.loancasecloseapply.flowable.*;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable.*;
import com.yxt.common.core.query.PagerQuery;
import com.yxt.common.core.result.ResultBean;
import com.yxt.common.core.vo.PagerVo;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* Project: anrui-riskcenter(案件委托律师申请) <br/>
* File: LoanCaseEntrustLawyerApplyFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyFeignFallback <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
*/
@Component
public class LoanCaseEntrustLawyerApplyFeignFallback implements LoanCaseEntrustLawyerApplyFeign {
@Override
public ResultBean<PagerVo<LoanCaseEntrustLawyerApplyVo>> listPage(PagerQuery<LoanCaseEntrustLawyerApplyQuery> pq){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loancaseentrustlawyerapply/listPage无法访问");
}
@Override
public ResultBean save(LoanCaseEntrustLawyerApplyDto dto){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loancaseentrustlawyerapply/save无法访问");
}
@Override
public ResultBean delBySids( String[] sids){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loancaseentrustlawyerapply/delBySids无法访问");
}
@Override
public ResultBean<LoanCaseEntrustLawyerApplyDetailsVo> fetchDetailsBySid(String sid){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loancaseentrustlawyerapply/fetchDetailsBySid无法访问");
}
@Override
public ResultBean submit(SubmitLoanCaseEntrustLawyerApplyDto dto) {
return null;
}
@Override
public ResultBean complete(LoanCaseEntrustLawyerApplyCompleteDto query) {
return null;
}
@Override
public ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> getPreviousNodesForReject(LoanCaseEntrustLawyerApplyNodeQuery query) {
return null;
}
@Override
public ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> getNextNodesForSubmit(LoanCaseEntrustLawyerApplyNodeQuery query) {
return null;
}
@Override
public ResultBean reject(LoanCaseEntrustLawyerApplyTaskQuery query) {
return null;
}
@Override
public ResultBean revokeProcess(LoanCaseEntrustLawyerApplyTaskQuery query) {
return null;
}
@Override
public ResultBean breakProcess(LoanCaseEntrustLawyerApplyTaskQuery query) {
return null;
}
@Override
public ResultBean delegate(LoanCaseEntrustLawyerApplyNodeQuery query) {
return null;
}
}

82
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyQuery.java

@ -0,0 +1,82 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply;
import com.yxt.common.core.query.Query;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* Project: anrui-riskcenter(案件委托律师申请) <br/>
* File: LoanCaseEntrustLawyerApplyQuery.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyQuery <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 LoanCaseEntrustLawyerApplyQuery implements Query {
@ApiModelProperty("分公司名称")
private String useOrgName;
@ApiModelProperty("申请部门名称")
private String deptName;
@ApiModelProperty("创建人")
private String createByName;
@ApiModelProperty("申请开始日期")
private String createStartTime;
@ApiModelProperty("申请结束日期")
private String createEndTime;
@ApiModelProperty("办结开始日期")
private String modifyStartTime;
@ApiModelProperty("办结结束日期")
private String modifyEndTime;
@ApiModelProperty("贷款合同编号")
private String loanContract;
@ApiModelProperty("资方")
private String bankName;
@ApiModelProperty("资方合同编号")
private String bankContractNo;
@ApiModelProperty("客户")
private String customName;
@ApiModelProperty("贷款人")
private String lenderName;
@ApiModelProperty("资方是否还清")
private String isBankPayOff;
private String userSid;
private String orgPath;
private String menuUrl;
private String menuSid;
}

90
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyVo.java

@ -0,0 +1,90 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply;
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;
/**
* 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 LoanCaseEntrustLawyerApplyVo implements Vo {
private String sid;
@ApiModelProperty("流程状态")
private String nodeState;
@ApiModelProperty("分公司名称")
private String useOrgName;
@ApiModelProperty("申请部门名称")
private String deptName;
@ApiModelProperty("创建人")
private String createByName;
@ApiModelProperty("申请日期")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date createTime;
@ApiModelProperty("办结日期")
private String modifyTime;
@ApiModelProperty("申请编号")
private String billNo;
@ApiModelProperty("贷款合同编号")
private String loanContract;
@ApiModelProperty("客户")
private String customName;
@ApiModelProperty("贷款人")
private String lenderName;
@ApiModelProperty("案件阶段")
private String caseStage;
@ApiModelProperty("律师事务所")
private String lawyerFirm;
@ApiModelProperty("承办律师")
private String lawyerName;
@ApiModelProperty("律师联系电话")
private String lawyerPhone;
@ApiModelProperty("流程定义的id")
private String procDefId;
@ApiModelProperty("流程实例的sid")
private String procInstSid;
}

35
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/LoanCaseEntrustLawyerFile.java

@ -0,0 +1,35 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply;
import com.yxt.common.core.vo.Vo;
import lombok.Data;
@Data
public class LoanCaseEntrustLawyerFile implements Vo {
private String url;
}

37
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/LoanCaseEntrustLawyerApplyCompleteDto.java

@ -0,0 +1,37 @@
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable;
import com.yxt.common.core.dto.Dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @Author dimengzhe
* @Date 2022/9/6 14:57
* @Description
*/
@Data
public class LoanCaseEntrustLawyerApplyCompleteDto implements Dto {
private static final long serialVersionUID = 6378752532534735663L;
@ApiModelProperty(value = "用户sid")
private String userSid;
@ApiModelProperty(value = "节点id")
@NotBlank(message = "参数错误:taskDefKey")
private String taskDefKey;
@ApiModelProperty(value = "任务id")
@NotBlank(message = "参数错误:taskId")
private String taskId;
@ApiModelProperty(value = "流程id(PC)")
private String instanceId;
@ApiModelProperty(value = "流程id(移动)")
private String procInsId;
@ApiModelProperty(value = "意见")
private String comment;
@ApiModelProperty(value = "业务sid")
@NotBlank(message = "参数错误:businessSid")
private String businessSid;
private String orgPath;
}

26
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/LoanCaseEntrustLawyerApplyDelegateQuery.java

@ -0,0 +1,26 @@
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author Administrator
* @description
* @date 2023/9/28 9:28
*/
@Data
public class LoanCaseEntrustLawyerApplyDelegateQuery {
@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;
}

25
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/LoanCaseEntrustLawyerApplyNodeQuery.java

@ -0,0 +1,25 @@
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable;
import com.yxt.common.core.query.Query;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @Author dimengzhe
* @Date 2022/9/6 15:04
* @Description
*/
@Data
public class LoanCaseEntrustLawyerApplyNodeQuery implements Query {
private static final long serialVersionUID = 9117613683840483366L;
@ApiModelProperty(value = "环节定义id")
@NotBlank(message = "参数错误:taskDefKey")
private String taskDefKey;
@ApiModelProperty(value = "业务sid")
private String businessSid;
@ApiModelProperty(value = "0 上一环节 1下一环节")
private Integer next;
}

26
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/LoanCaseEntrustLawyerApplyNodeVo.java

@ -0,0 +1,26 @@
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* @Author dimengzhe
* @Date 2022/9/6 15:03
* @Description
*/
@Data
public class LoanCaseEntrustLawyerApplyNodeVo implements Vo {
private static final long serialVersionUID = -833419512294877848L;
@ApiModelProperty(value = "节点名称")
private String name;
@ApiModelProperty(value = "节点id")
private String id;
@ApiModelProperty(value = "审批组")
private List<String> candidateGroups;
@ApiModelProperty(value = "是否是最后环节")
private String endTask;
}

48
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/LoanCaseEntrustLawyerApplyTaskQuery.java

@ -0,0 +1,48 @@
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable;
import com.yxt.common.core.query.Query;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @Author dimengzhe
* @Date 2022/9/6 15:06
* @Description
*/
@Data
public class LoanCaseEntrustLawyerApplyTaskQuery implements Query {
private static final long serialVersionUID = 1288615499873178778L;
/**
* 终止驳回撤回
*/
@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(PC)")
private String instanceId;
@ApiModelProperty("流程实例Id(移动)")
private String procInsId;
}

25
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loancaseentrustlawyerapply/flowable/SubmitLoanCaseEntrustLawyerApplyDto.java

@ -0,0 +1,25 @@
package com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable;
import com.yxt.anrui.riskcenter.api.loancasecloseapply.LoanCaseCloseApplyDto;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author liuguohui
* @version 1.0
* @description
* @date 2022/04/13
*/
@ApiModel("提交")
@Data
public class SubmitLoanCaseEntrustLawyerApplyDto extends LoanCaseEntrustLawyerApplyDto {
@ApiModelProperty("意见")
private String comment;
@ApiModelProperty("流程实例id")
private String instanceId;
@ApiModelProperty("任务id")
private String taskId;
}

1
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanfile/LoanFileEnum.java

@ -50,6 +50,7 @@ public enum LoanFileEnum {
AJZXLA_JUDGMENT("036", "案件执行立案-判决材料"),
EXECUTE("037", "案件执行立案-执行材料"),
CLOSE("038", "案件结案-结案材料"),
ENTRUSTLAWYER_WTXY("039", "案件委托律师-委托协议"),
;

7
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseappealapply/LoanCaseAppealApplyRest.java

@ -101,6 +101,13 @@ public class LoanCaseAppealApplyRest implements LoanCaseAppealApplyFeign {
return rb.success().setData(vo);
}
@Override
public ResultBean<LoanCaseAppealApplyDetailsVo> details(String sid, String userSid, String orgPath) {
ResultBean rb = ResultBean.fireFail();
LoanCaseAppealApplyDetailsVo vo = loanCaseAppealApplyService.details(sid,userSid,orgPath);
return rb.success().setData(vo);
}
@Override
public ResultBean submit(SubmitLoanCaseAppealApplyDto dto) {
return loanCaseAppealApplyService.submit(dto);

5
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseappealapply/LoanCaseAppealApplyService.java

@ -352,6 +352,11 @@ public class LoanCaseAppealApplyService extends MybatisBaseService<LoanCaseAppea
return vo;
}
public LoanCaseAppealApplyDetailsVo details(String sid, String userSid, String orgPath) {
return null;
}
public ResultBean delAll(String[] sids) {
ResultBean rb = ResultBean.fireFail();
//查询该sid中是否有流程不是待提交的

72
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyMapper.java

@ -0,0 +1,72 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loancaseentrustlawyerapply;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApply;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyVo;
import java.util.List;
import java.util.Map;
/**
* Project: anrui-riskcenter(案件委托律师申请) <br/>
* File: LoanCaseEntrustLawyerApplyMapper.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyMapper <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
*/
@Mapper
public interface LoanCaseEntrustLawyerApplyMapper extends BaseMapper<LoanCaseEntrustLawyerApply> {
//@Update("update loan_case_entrust_lawyer_apply set name=#{msg} where id=#{id}")
//IPage<LoanCaseEntrustLawyerApplyVo> voPage(IPage<LoanCaseEntrustLawyerApply> page, @Param(Constants.WRAPPER) QueryWrapper<LoanCaseEntrustLawyerApply> qw);
IPage<LoanCaseEntrustLawyerApplyVo> selectPageVo(IPage<LoanCaseEntrustLawyerApply> page, @Param(Constants.WRAPPER) Wrapper<LoanCaseEntrustLawyerApply> qw);
List<LoanCaseEntrustLawyerApplyVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanCaseEntrustLawyerApply> qw);
@Select("select * from loan_case_entrust_lawyer_apply")
List<LoanCaseEntrustLawyerApplyVo> selectListVo();
String selectNum(String billNo);
int selectBySid(String join);
int updateFlowFiled(Map<String, Object> map);
}

43
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyMapper.xml

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yxt.anrui.riskcenter.biz.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyMapper">
<!-- <where> ${ew.sqlSegment} </where>-->
<!-- ${ew.customSqlSegment} -->
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyVo">
SELECT * FROM loan_case_entrust_lawyer_apply <where> ${ew.sqlSegment} </where>
</select>
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyVo">
SELECT * FROM loan_case_entrust_lawyer_apply <where> ${ew.sqlSegment} </where>
</select>
<select id="selectNum" resultType="java.lang.String">
select RIGHT (billNo, 4)
from loan_case_entrust_lawyer_apply
where billNo LIKE concat(#{billNo}, '%')
order by billNo desc
limit 1
</select>
<select id="selectBySid" resultType="int">
SELECT COUNT(*)
FROM loan_case_entrust_lawyer_apply
WHERE nodeState != '待提交'
and find_in_set(sid, #{list})
</select>
<update id="updateFlowFiled">
UPDATE loan_case_entrust_lawyer_apply
SET nodeState=#{nodeState}, nodeSid=#{taskDefKey}, modifyTime = NOW()
<if test="procDefId != null and procDefId != ''">
, procDefId=#{procDefId}
</if>
<if test="procInsId != null and procInsId != ''">
, procInstSid=#{procInsId}
</if>
<if test="taskId != null and taskId != ''">
, taskId=#{taskId}
</if>
WHERE sid=#{sid}
</update>
</mapper>

145
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyRest.java

@ -0,0 +1,145 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loancaseentrustlawyerapply;
import cn.hutool.core.bean.BeanUtil;
import com.yxt.anrui.flowable.api.utils.ProcDefEnum;
import com.yxt.anrui.flowable.sqloperationsymbol.BusinessVariables;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.flowable.*;
import com.yxt.common.core.query.PagerQuery;
import com.yxt.common.core.result.ResultBean;
import com.yxt.common.core.vo.PagerVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApply;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyQuery;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyVo;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyDetailsVo;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyDto;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyFeign;
/**
* Project: anrui-riskcenter(案件委托律师申请) <br/>
* File: LoanCaseEntrustLawyerApplyFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyRest <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
*/
@Api(tags = "案件委托律师申请")
@RestController("com.yxt.anrui.riskcenter.biz.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyRest")
@RequestMapping("v1/loancaseentrustlawyerapply")
public class LoanCaseEntrustLawyerApplyRest implements LoanCaseEntrustLawyerApplyFeign {
@Autowired
private LoanCaseEntrustLawyerApplyService loanCaseEntrustLawyerApplyService;
@Override
@ApiOperation("根据条件分页查询数据的列表")
@PostMapping("/listPage")
public ResultBean<PagerVo<LoanCaseEntrustLawyerApplyVo>> listPage(@RequestBody PagerQuery<LoanCaseEntrustLawyerApplyQuery> pq){
ResultBean rb = ResultBean.fireFail();
PagerVo<LoanCaseEntrustLawyerApplyVo> pv = loanCaseEntrustLawyerApplyService.listPageVo(pq);
return rb.success().setData(pv);
}
@Override
@ApiOperation("新增或修改")
@PostMapping("/save")
public ResultBean save(@RequestBody LoanCaseEntrustLawyerApplyDto dto){
ResultBean rb = ResultBean.fireFail();
loanCaseEntrustLawyerApplyService.saveOrUpdateDto(dto);
return rb.success();
}
@Override
@ApiOperation("根据sid批量删除")
@DeleteMapping("/delBySids")
public ResultBean delBySids(@RequestBody String[] sids){
return loanCaseEntrustLawyerApplyService.delAll(sids);
}
@Override
@ApiOperation("根据SID获取一条记录")
@GetMapping("/fetchDetailsBySid/{sid}")
public ResultBean<LoanCaseEntrustLawyerApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){
ResultBean rb = ResultBean.fireFail();
LoanCaseEntrustLawyerApplyDetailsVo vo = loanCaseEntrustLawyerApplyService.fetchDetailsVoBySid(sid);
return rb.success().setData(vo);
}
@Override
public ResultBean submit(SubmitLoanCaseEntrustLawyerApplyDto dto) {
return loanCaseEntrustLawyerApplyService.submit(dto);
}
@Override
public ResultBean complete(LoanCaseEntrustLawyerApplyCompleteDto query) {
BusinessVariables bv = new BusinessVariables();
BeanUtil.copyProperties(query, bv);
bv.setModelId(ProcDefEnum.LOANCASEENTRUSTLAWYERAPPLY.getProDefId());
return loanCaseEntrustLawyerApplyService.complete(bv);
}
@Override
public ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> getPreviousNodesForReject(LoanCaseEntrustLawyerApplyNodeQuery query) {
return loanCaseEntrustLawyerApplyService.getPreviousNodesForReject(query);
}
@Override
public ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> getNextNodesForSubmit(LoanCaseEntrustLawyerApplyNodeQuery query) {
return loanCaseEntrustLawyerApplyService.getNextNodesForSubmit(query);
}
@Override
public ResultBean reject(LoanCaseEntrustLawyerApplyTaskQuery query) {
return loanCaseEntrustLawyerApplyService.reject(query);
}
@Override
public ResultBean revokeProcess(LoanCaseEntrustLawyerApplyTaskQuery query) {
return loanCaseEntrustLawyerApplyService.revokeProcess(query);
}
@Override
public ResultBean breakProcess(LoanCaseEntrustLawyerApplyTaskQuery query) {
return loanCaseEntrustLawyerApplyService.breakProcess(query);
}
@Override
public ResultBean delegate(LoanCaseEntrustLawyerApplyNodeQuery query) {
return loanCaseEntrustLawyerApplyService.delegate(query);
}
}

598
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loancaseentrustlawyerapply/LoanCaseEntrustLawyerApplyService.java

@ -0,0 +1,598 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loancaseentrustlawyerapply;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yxt.anrui.base.common.utils.Rule;
import com.yxt.anrui.flowable.api.flow.FlowProcessMapQuery;
import com.yxt.anrui.flowable.api.flow.FlowableFeign;
import com.yxt.anrui.flowable.api.flow.UpdateFlowFieldVo;
import com.yxt.anrui.flowable.api.flow2.FlowDelegateQuery;
import com.yxt.anrui.flowable.api.flow2.FlowFeign;
import com.yxt.anrui.flowable.api.flowtask.FlowTaskFeign;
import com.yxt.anrui.flowable.api.flowtask.FlowTaskVo;
import com.yxt.anrui.flowable.api.flowtask.LatestTaskVo;
import com.yxt.anrui.flowable.api.utils.ProcDefEnum;
import com.yxt.anrui.flowable.sqloperationsymbol.BusinessVariables;
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign;
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo;
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery;
import com.yxt.anrui.portal.api.sysuser.SysUserFeign;
import com.yxt.anrui.riskcenter.api.loancaseappealapply.LoanCaseAppealApplyVo;
import com.yxt.anrui.riskcenter.api.loancasecloseapply.LoanCaseCloseApply;
import com.yxt.anrui.riskcenter.api.loancasecloseapply.LoanCaseCloseFile;
import com.yxt.anrui.riskcenter.api.loancasecloseapply.flowable.LoanCaseCloseApplyNodeVo;
import com.yxt.anrui.riskcenter.api.loancasecloseapply.flowable.SubmitLoanCaseCloseApplyDto;
import com.yxt.anrui.riskcenter.api.loancasecloseveh.LoanCaseCloseVehDetailsVo;
import com.yxt.anrui.riskcenter.api.loancasecloseveh.LoanCaseCloseVehDto;
import com.yxt.anrui.riskcenter.api.loancaseentrustlawyerapply.*;
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.loancaseentrustlawyerapply.flowable.SubmitLoanCaseEntrustLawyerApplyDto;
import com.yxt.anrui.riskcenter.api.loanfile.LoanFile;
import com.yxt.anrui.riskcenter.api.loanfile.LoanFileEnum;
import com.yxt.anrui.riskcenter.biz.loancaseappealveh.LoanCaseAppealVehService;
import com.yxt.anrui.riskcenter.biz.loanfile.LoanFileService;
import com.yxt.common.base.config.component.FileUploadComponent;
import com.yxt.messagecenter.api.message.MessageFeign;
import com.yxt.messagecenter.api.message.MessageFlowVo;
import com.yxt.messagecenter.api.message.MessageFlowableQuery;
import org.apache.commons.lang3.StringUtils;
import com.yxt.common.base.service.MybatisBaseService;
import com.yxt.common.base.utils.PagerUtil;
import com.yxt.common.core.query.PagerQuery;
import com.yxt.common.core.result.ResultBean;
import com.yxt.common.core.vo.PagerVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.stream.Collectors;
/**
* Project: anrui-riskcenter(案件委托律师申请) <br/>
* File: LoanCaseEntrustLawyerApplyService.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyService <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
*/
@Service
public class LoanCaseEntrustLawyerApplyService extends MybatisBaseService<LoanCaseEntrustLawyerApplyMapper, LoanCaseEntrustLawyerApply> {
@Autowired
private SysUserFeign sysUserFeign;
@Autowired
private SysOrganizationFeign sysOrganizationFeign;
@Autowired
private LoanCaseAppealVehService loanCaseAppealVehService;
@Autowired
private FileUploadComponent fileUploadComponent;
@Autowired
private LoanFileService loanFileService;
@Autowired
private FlowableFeign flowableFeign;
@Autowired
private MessageFeign messageFeign;
@Autowired
private FlowTaskFeign flowTaskFeign;
@Autowired
private FlowFeign flowFeign;
public PagerVo<LoanCaseEntrustLawyerApplyVo> listPageVo(PagerQuery<LoanCaseEntrustLawyerApplyQuery> pq) {
LoanCaseEntrustLawyerApplyQuery query = pq.getParams();
QueryWrapper<LoanCaseEntrustLawyerApply> qw = new QueryWrapper<>();
//========================================数据授权开始
if (StringUtils.isNotBlank(query.getMenuUrl())) {
PrivilegeQuery privilegeQuery = new PrivilegeQuery();
privilegeQuery.setOrgPath(query.getOrgPath());
privilegeQuery.setMenuUrl(query.getMenuUrl());
privilegeQuery.setMenuSid(query.getMenuSid());
privilegeQuery.setUserSid(query.getUserSid());
ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery);
if (StringUtils.isNotBlank(defaultIdReltBean.getData())) {
//数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
String orgSidPath = query.getOrgPath();
orgSidPath = orgSidPath + "/";
int i1 = orgSidPath.indexOf("/");
int i2 = orgSidPath.indexOf("/", i1 + 1);
int i3 = orgSidPath.indexOf("/", i2 + 1);
int i4 = orgSidPath.indexOf("/", i3 + 1);
String orgLevelKey = defaultIdReltBean.getData();
if ("1".equals(orgLevelKey)) {
orgSidPath = orgSidPath.substring(0, i1);
qw.like("orgPath", orgSidPath);
} else if ("2".equals(orgLevelKey)) {
orgSidPath = orgSidPath.substring(0, i2);
qw.like("orgPath", orgSidPath);
} else if ("3".equals(orgLevelKey)) {
orgSidPath = orgSidPath.substring(0, i3);
qw.like("orgPath", orgSidPath);
} else if ("4".equals(orgLevelKey)) {
orgSidPath = orgSidPath.substring(0, i4);
qw.like("orgPath", orgSidPath);
} else if ("5".equals(orgLevelKey)) {
qw.eq("createBySid", query.getUserSid());
} else {
PagerVo<LoanCaseEntrustLawyerApplyVo> p = new PagerVo<>();
return p;
}
} else {
PagerVo<LoanCaseEntrustLawyerApplyVo> p = new PagerVo<>();
return p;
}
}
if (StringUtils.isNotBlank(query.getUseOrgName())) {
qw.like("useOrgName", query.getUseOrgName());
}
if (StringUtils.isNotBlank(query.getDeptName())) {
qw.like("deptName", query.getDeptName());
}
if (StringUtils.isNotBlank(query.getCreateByName())) {
qw.like("createByName", query.getCreateByName());
}
qw.apply(StringUtils.isNotBlank(query.getCreateStartTime()), "date_format (createTime,'%Y-%m-%d') >= date_format('" + query.getCreateStartTime() + "','%Y-%m-%d')").
apply(StringUtils.isNotBlank(query.getCreateEndTime()), "date_format (createTime,'%Y-%m-%d') <= date_format('" + query.getCreateEndTime() + "','%Y-%m-%d')"
);
if (StringUtils.isNotBlank(query.getModifyStartTime()) && StringUtils.isNotBlank(query.getModifyEndTime())) {
qw.and(wrapper -> wrapper.eq("nodeState", "终止").or().eq("nodeState", "已办结"));
}
qw.apply(StringUtils.isNotBlank(query.getModifyStartTime()), "date_format (modifyTime,'%Y-%m-%d') >= date_format('" + query.getModifyStartTime() + "','%Y-%m-%d')").
apply(StringUtils.isNotBlank(query.getModifyEndTime()), "date_format (modifyTime,'%Y-%m-%d') <= date_format('" + query.getModifyEndTime() + "','%Y-%m-%d')"
);
if (StringUtils.isNotBlank(query.getLoanContract())){
qw.like("loanContract",query.getLoanContract());
}
if (StringUtils.isNotBlank(query.getBankName())){
qw.like("bankName",query.getBankName());
}
if (StringUtils.isNotBlank(query.getBankContractNo())){
qw.like("bankContractNo",query.getBankContractNo());
}
if (StringUtils.isNotBlank(query.getCustomName())){
qw.like("customName",query.getCustomName());
}
if (StringUtils.isNotBlank(query.getLenderName())){
qw.like("lenderName",query.getLenderName());
}
if (StringUtils.isNotBlank(query.getIsBankPayOff())){
qw.eq("isBankPayOff",query.getIsBankPayOff());
}
qw.orderByDesc("createTime");
IPage<LoanCaseEntrustLawyerApply> page = PagerUtil.queryToPage(pq);
IPage<LoanCaseEntrustLawyerApplyVo> pagging = baseMapper.selectPageVo(page, qw);
PagerVo<LoanCaseEntrustLawyerApplyVo> p = PagerUtil.pageToVo(pagging, null);
return p;
}
public String saveOrUpdateDto(LoanCaseEntrustLawyerApplyDto dto){
String dtoSid = dto.getSid();
List<LoanCaseEntrustLawyerFile> wtxyFiles = dto.getWtxyFiles();
if (StringUtils.isBlank(dtoSid)) {
//生成单据编号
String billNo = "";
String date = DateUtil.format(DateUtil.date(), "yyyyMM");
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.fetchBySid(dto.getUseOrgSid()).getData();
billNo = "AJWTLS" + sysOrganizationVo.getOrgCode() + date;
String i = baseMapper.selectNum(billNo);
if (StringUtils.isNotBlank(i)) {
billNo = Rule.getBillNo(billNo, Integer.valueOf(i).intValue());
} else {
billNo = Rule.getBillNo(billNo, 0);
}
dto.setBillNo(billNo);
String sid = this.insertByDto(dto);
if (wtxyFiles != null && wtxyFiles.size() > 0) {
for (LoanCaseEntrustLawyerFile file : wtxyFiles) {
LoanFile loanFile = new LoanFile();
loanFile.setLinkSid(sid);
loanFile.setAttachType(LoanFileEnum.ENTRUSTLAWYER_WTXY.getAttachType());
String filePath = file.getUrl();
if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanFile.setFilePath(filePath);
loanFileService.save(loanFile);
}
}
return sid;
}
this.updateByDto(dto);
loanFileService.delByLinkSidOrType(dtoSid, LoanFileEnum.ENTRUSTLAWYER_WTXY.getAttachType());
if (wtxyFiles != null && wtxyFiles.size() > 0) {
for (LoanCaseEntrustLawyerFile file : wtxyFiles) {
LoanFile loanFile = new LoanFile();
loanFile.setLinkSid(dtoSid);
loanFile.setAttachType(LoanFileEnum.ENTRUSTLAWYER_WTXY.getAttachType());
String filePath = file.getUrl();
if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanFile.setFilePath(filePath);
loanFileService.save(loanFile);
}
}
return dtoSid;
}
public String insertByDto(LoanCaseEntrustLawyerApplyDto dto){
LoanCaseEntrustLawyerApply entity = new LoanCaseEntrustLawyerApply();
BeanUtil.copyProperties(dto, entity, "id", "sid");
entity.setNodeState("待提交");
baseMapper.insert(entity);
return entity.getSid();
}
public void updateByDto(LoanCaseEntrustLawyerApplyDto dto){
String dtoSid = dto.getSid();
if (StringUtils.isBlank(dtoSid)) {
return;
}
LoanCaseEntrustLawyerApply entity = fetchBySid(dtoSid);
BeanUtil.copyProperties(dto, entity, "id", "sid");
baseMapper.updateById(entity);
}
public LoanCaseEntrustLawyerApplyDetailsVo fetchDetailsVoBySid(String sid){
LoanCaseEntrustLawyerApply entity = fetchBySid(sid);
LoanCaseEntrustLawyerApplyDetailsVo vo = new LoanCaseEntrustLawyerApplyDetailsVo();
BeanUtil.copyProperties(entity, vo);
List<LoanFile> wtxy = loanFileService.selectByLinkSid(sid, LoanFileEnum.ENTRUSTLAWYER_WTXY.getAttachType());
List<LoanCaseEntrustLawyerFile> wtxyFiles = new ArrayList<>();
if (wtxy != null && wtxy.size() > 0) {
for (LoanFile loanFile : wtxy) {
LoanCaseEntrustLawyerFile loanCaseEntrustLawyerFile = new LoanCaseEntrustLawyerFile();
String filePath = loanFile.getFilePath();
String urlPrefix = fileUploadComponent.getUrlPrefix();
filePath = urlPrefix + filePath;
loanCaseEntrustLawyerFile.setUrl(filePath);
wtxyFiles.add(loanCaseEntrustLawyerFile);
}
}
vo.setWtxyFiles(wtxyFiles);
return vo;
}
public ResultBean delAll(String[] sids) {
ResultBean rb = ResultBean.fireFail();
//查询该sid中是否有流程不是待提交的
int count = baseMapper.selectBySid(StringUtils.join(sids, ","));
if (count > 0) {
return rb.setMsg("删除的数据中包含已提交或已办结审批的数据,删除失败");
}
delBySids(sids);
for (String sid : sids) {
loanFileService.delByLinkSidOrType(sid, LoanFileEnum.ENTRUSTLAWYER_WTXY.getAttachType());
}
return rb.success();
}
public ResultBean submit(SubmitLoanCaseEntrustLawyerApplyDto dto) {
ResultBean rb = ResultBean.fireFail();
LoanCaseEntrustLawyerApply loanCaseEntrustLawyerApply = fetchBySid(dto.getSid());
int r = submitBusinessData(dto, loanCaseEntrustLawyerApply);
if (r == 3) {
return rb.setMsg("该申请不存在");
}
if (r == 0) {
return rb.setMsg("操作失败!提交的数据不一致");
}
//新增修改保存
String businessSid = saveOrUpdateDto(dto);
loanCaseEntrustLawyerApply = fetchBySid(businessSid);
//创建BusinessVariables实体对象
BusinessVariables bv = new BusinessVariables();
//流程中的参数赋值、若有网关,则赋值网关中判断的字段。
Map<String, Object> variables = new HashMap<>();
//用户的部门全路径sid
bv.setOrgSidPath(loanCaseEntrustLawyerApply.getOrgPath());
//业务sid
bv.setBusinessSid(businessSid);
//用户sid
bv.setUserSid(loanCaseEntrustLawyerApply.getCreateBySid());
//若app移动端有此功能,则传递appMap参数
Map<String, Object> appMap = new HashMap<>();
appMap.put("sid", businessSid);
//需和移动端沟通业务sid保存的属性具体值:appMap中sid不是固定的。移动端提供具体字段。
variables.put("app", appMap);
//流程定义id
bv.setModelId(ProcDefEnum.LOANCASECLOSEAPPLY.getProDefId());
bv.setFormVariables(variables);
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.selectByOrgSidPath(loanCaseEntrustLawyerApply.getOrgPath()).getData();
bv.setNextNodeUserSids(sysOrganizationVo.getManagerSid());
if (r == 1) {
ResultBean<UpdateFlowFieldVo> voResultBean = flowableFeign.startProcess(bv);
UpdateFlowFieldVo ufVo = voResultBean.getData();
updateFlowFiled(BeanUtil.beanToMap(ufVo));
//极光推送
loanCaseEntrustLawyerApply = fetchBySid(businessSid);
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery();
MessageFlowVo messageFlowVo = new MessageFlowVo();
BeanUtil.copyProperties(ufVo, messageFlowVo);
messageFlowableQuery.setUfVo(messageFlowVo);
messageFlowableQuery.setAppMap(appMap);
messageFlowableQuery.setBusinessSid(businessSid);
messageFlowableQuery.setModuleName("案件结案申请");
messageFlowableQuery.setMsgContent(loanCaseEntrustLawyerApply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批");
messageFlowableQuery.setMsgTitle("案件结案申请");
messageFeign.pushMessage(messageFlowableQuery);
return voResultBean;
}
if (r == 2) {
// ToDo:驳回到发起人后再次提交
if (StringUtils.isBlank(dto.getInstanceId())) {
return rb.setMsg("参数错误:instanceId");
}
bv.setTaskId(loanCaseEntrustLawyerApply.getTaskId());
bv.setTaskDefKey(loanCaseEntrustLawyerApply.getNodeSid());
bv.setComment(StringUtils.isNotBlank(dto.getComment()) ? dto.getComment() : "重新提交");
bv.setInstanceId(dto.getInstanceId());
return complete(bv);
}
return rb;
}
private synchronized int submitBusinessData(SubmitLoanCaseEntrustLawyerApplyDto dto, LoanCaseEntrustLawyerApply loanCaseEntrustLawyerApply) {
int r = 0;
if (StringUtils.isBlank(dto.getSid())) {
r = 1;
} else {
if (loanCaseEntrustLawyerApply != null) {
String businessTaskId = loanCaseEntrustLawyerApply.getTaskId();
if (StringUtils.isBlank(businessTaskId) && StringUtils.isBlank(dto.getTaskId())) {
//新提交
r = 1;
} else if (StringUtils.isNotBlank(businessTaskId) && businessTaskId.equals(dto.getTaskId())) {
//二次提交//只有数据一致的时候才能进行下一步
r = 2;
}
} else {
r = 3;
}
}
return r;
}
private int updateFlowFiled(Map<String, Object> map) {
return baseMapper.updateFlowFiled(map);
}
public ResultBean complete(BusinessVariables bv) {
ResultBean rb = ResultBean.fireFail();
String businessSid = bv.getBusinessSid();
LoanCaseEntrustLawyerApply loanCaseEntrustLawyerApply = fetchBySid(businessSid);
Map<String, Object> variables = new HashMap<>();
Map<String, Object> appMap = new HashMap<>();
appMap.put("sid", businessSid);
variables.put("app", appMap);
FlowProcessMapQuery flowProcessMapQuery = new FlowProcessMapQuery();
if (StringUtils.isBlank(loanCaseEntrustLawyerApply.getProcDefId())) {
flowProcessMapQuery.setProDefKey(bv.getModelId());
} else {
flowProcessMapQuery.setProDefKey(loanCaseEntrustLawyerApply.getProcDefId());
}
flowProcessMapQuery.setVariables(variables);
variables = flowableFeign.getMap(flowProcessMapQuery).getData();
//=======================================
bv.setFormVariables(variables);
bv.setOrgSidPath(loanCaseEntrustLawyerApply.getOrgPath());
if (bv.getTaskId().equals(loanCaseEntrustLawyerApply.getTaskId())) {
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.handleProsess(bv);
if (!resultBean.getSuccess()) {
return rb.setMsg(resultBean.getMsg());
}
UpdateFlowFieldVo ufVo = resultBean.getData();
updateFlowFiled(BeanUtil.beanToMap(resultBean.getData()));
if ("Event_end".equals(resultBean.getData().getTaskDefKey())) {
} else {
//极光推送
loanCaseEntrustLawyerApply = fetchBySid(businessSid);
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery();
MessageFlowVo messageFlowVo = new MessageFlowVo();
BeanUtil.copyProperties(ufVo, messageFlowVo);
ufVo.setProcDefId(loanCaseEntrustLawyerApply.getProcDefId());
ufVo.setProcInsId(loanCaseEntrustLawyerApply.getProcInstSid());
messageFlowableQuery.setUfVo(messageFlowVo);
messageFlowableQuery.setAppMap(appMap);
messageFlowableQuery.setBusinessSid(businessSid);
messageFlowableQuery.setModuleName("案件结案申请");
messageFlowableQuery.setMsgContent(loanCaseEntrustLawyerApply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批");
messageFlowableQuery.setMsgTitle("案件结案申请");
messageFeign.pushMessage(messageFlowableQuery);
}
return rb.success().setData(resultBean.getData());
} else {
return rb.setMsg("操作失败!提交的数据不一致");
}
}
public ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> getPreviousNodesForReject(LoanCaseEntrustLawyerApplyNodeQuery query) {
ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> rb = ResultBean.fireFail();
BusinessVariables bv = new BusinessVariables();
BeanUtil.copyProperties(query, bv);
bv.setModelId(ProcDefEnum.LOANCASECLOSEAPPLY.getProDefId());
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getPreviousNodesForReject(bv);
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给getNodeVo
List<LoanCaseEntrustLawyerApplyNodeVo> voList = Optional.ofNullable(resultBean.getData()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), LoanCaseEntrustLawyerApplyNodeVo.class)).collect(Collectors.toList());
return rb.success().setData(voList);
}
public ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> getNextNodesForSubmit(LoanCaseEntrustLawyerApplyNodeQuery query) {
ResultBean<List<LoanCaseEntrustLawyerApplyNodeVo>> rb = ResultBean.fireFail();
BusinessVariables bv = new BusinessVariables();
BeanUtil.copyProperties(query, bv);
bv.setModelId(ProcDefEnum.LOANCASECLOSEAPPLY.getProDefId());
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getNextNodesForSubmit(bv);
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给getNodeVo
List<LoanCaseEntrustLawyerApplyNodeVo> voList = Optional.ofNullable(resultBean.getData()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), LoanCaseEntrustLawyerApplyNodeVo.class)).collect(Collectors.toList());
return rb.success().setData(voList);
}
public ResultBean reject(LoanCaseEntrustLawyerApplyTaskQuery query) {
ResultBean rb = ResultBean.fireFail();
String businessSid = query.getBusinessSid();
LoanCaseEntrustLawyerApply loanCaseEntrustLawyerApply = fetchBySid(businessSid);
if (loanCaseEntrustLawyerApply == null) {
return rb.setMsg("该申请不存在");
}
String businessTaskId = loanCaseEntrustLawyerApply.getTaskId();
if (StringUtils.isNotBlank(businessTaskId)) {
if (businessTaskId.equals(query.getTaskId())) {
if (StringUtils.isBlank(query.getComment())) {
return rb.setMsg("请填写意见");
}
if (StringUtils.isBlank(query.getUserSid())) {
return rb.setMsg("参数错误:userSid");
}
FlowTaskVo flowTaskVo = new FlowTaskVo();
BeanUtil.copyProperties(query, flowTaskVo);
Map<String, Object> variables = new HashMap<>();
Map<String, Object> appMap = new HashMap<>();
appMap.put("sid", businessSid);
variables.put("app", appMap);
flowTaskVo.setValues(variables);
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.taskReject(flowTaskVo);
if (!resultBean.getSuccess()) {
return rb.setMsg(resultBean.getMsg());
}
UpdateFlowFieldVo ufVo = resultBean.getData();
Map<String, Object> map = BeanUtil.beanToMap(ufVo);
//更新业务中的流程相关的参数
updateFlowFiled(map);
//极光推送
loanCaseEntrustLawyerApply = fetchBySid(businessSid);
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery();
MessageFlowVo messageFlowVo = new MessageFlowVo();
BeanUtil.copyProperties(ufVo, messageFlowVo);
String procId = loanCaseEntrustLawyerApply.getProcInstSid();
ufVo.setProcInsId(procId);
ufVo.setProcDefId(loanCaseEntrustLawyerApply.getProcDefId());
messageFlowableQuery.setUfVo(messageFlowVo);
messageFlowableQuery.setAppMap(appMap);
messageFlowableQuery.setBusinessSid(businessSid);
messageFlowableQuery.setModuleName("案件结案申请");
ResultBean<List<LatestTaskVo>> listResultBean = flowTaskFeign.getLatestTasks(procId);
String nextNodeUserSids = listResultBean.getData().get(0).getASSIGNEE_();
List<String> receiveSidList = Arrays.asList(nextNodeUserSids.split(","));
if (receiveSidList.size() == 1 && receiveSidList.get(0).equals(loanCaseEntrustLawyerApply.getCreateBySid())) {
messageFlowableQuery.setMsgContent("您提交的" + messageFlowableQuery.getModuleName() + "已被驳回,请重新提交");
} else {
messageFlowableQuery.setMsgContent(loanCaseEntrustLawyerApply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批");
}
messageFlowableQuery.setMsgTitle("案件结案申请");
messageFeign.pushMessage(messageFlowableQuery);
return rb.success();
}
}
return rb.setMsg("操作失败!提交的数据不一致!");
}
public ResultBean revokeProcess(LoanCaseEntrustLawyerApplyTaskQuery query) {
ResultBean rb = ResultBean.fireFail();
if (StringUtils.isBlank(query.getUserSid())) {
return rb.setMsg("参数错误:userSid");
}
LoanCaseEntrustLawyerApply loanCaseEntrustLawyerApply = fetchBySid(query.getBusinessSid());
String businessTaskId = loanCaseEntrustLawyerApply.getTaskId();
if (StringUtils.isNotBlank(businessTaskId)) {
if (businessTaskId.equals(query.getTaskId())) {
FlowTaskVo flowTaskVo = new FlowTaskVo();
BeanUtil.copyProperties(query, flowTaskVo);
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.revokeProcess(flowTaskVo);
if (!resultBean.getSuccess()) {
return rb.setMsg(resultBean.getMsg());
}
updateFlowFiled(BeanUtil.beanToMap(resultBean.getData()));
return rb.success().setData(resultBean.getData());
}
}
return rb.setMsg("操作失败,提交的数据不一致!");
}
public ResultBean breakProcess(LoanCaseEntrustLawyerApplyTaskQuery query) {
ResultBean rb = ResultBean.fireFail();
if (StringUtils.isBlank(query.getInstanceId())) {
return rb.setMsg("参数错误:instanceId");
}
if (StringUtils.isBlank(query.getUserSid())) {
return rb.setMsg("参数错误:userSid");
}
if (StringUtils.isBlank(query.getComment())) {
return rb.setMsg("请填写意见");
}
LoanCaseEntrustLawyerApply loanCaseEntrustLawyerApply = fetchBySid(query.getBusinessSid());
String businessTaskId = loanCaseEntrustLawyerApply.getTaskId();
if (StringUtils.isNotBlank(businessTaskId)) {
if (query.getUserSid().equals(loanCaseEntrustLawyerApply.getCreateBySid())) {
FlowTaskVo flowTaskVo = new FlowTaskVo();
BeanUtil.copyProperties(query, flowTaskVo);
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.breakProcess(flowTaskVo);
if (!resultBean.getSuccess()) {
return rb.setMsg(resultBean.getMsg());
}
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData());
updateFlowFiled(map);
return rb.success().setData(resultBean.getData());
} else {
if (businessTaskId.equals(query.getTaskId())) {
FlowTaskVo flowTaskVo = new FlowTaskVo();
BeanUtil.copyProperties(query, flowTaskVo);
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.breakProcess(flowTaskVo);
if (!resultBean.getSuccess()) {
return rb.setMsg(resultBean.getMsg());
}
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData());
updateFlowFiled(map);
return rb.success().setData(resultBean.getData());
}
}
}
return rb.setMsg("操作失败!提交的数据不一致!");
}
public ResultBean delegate(LoanCaseEntrustLawyerApplyNodeQuery query) {
ResultBean rb = ResultBean.fireFail();
FlowDelegateQuery delegateQuery = new FlowDelegateQuery();
BeanUtil.copyProperties(query, delegateQuery);
flowFeign.delegate(delegateQuery);
return rb.success();
}
}

2
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitprep/LoanHomevisitPrepMapper.xml

@ -18,7 +18,7 @@
bb.`bankName`,
bb.policyName,
IF(
bl.`borrowerSid` IS NULL,
lp.downUrl IS NULL,
'未生成',
'已生成'
) AS createState,

7
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitprep/LoanHomevisitPrepService.java

@ -291,6 +291,9 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr
public ResultBean visit(String sid) {
ResultBean rb = ResultBean.fireFail();
LoanHomevisitPrep loanHomevisitPrep = fetchBySid(sid);
if (StringUtils.isBlank(loanHomevisitPrep.getDownUrl())){
return rb.setMsg("未生成消贷合同信息");
}
List<BusSalesOrderLoancontract> busSalesOrderLoancontracts = busSalesOrderLoancontractFeign.fetchAllByOrderSidAndDkrSid(loanHomevisitPrep.getSaleOrderSid(), loanHomevisitPrep.getSaleOrderBorrowerSid()).getData();
if (busSalesOrderLoancontracts == null || busSalesOrderLoancontracts.isEmpty()) {
return rb.setMsg("未生成消贷合同信息");
@ -1018,13 +1021,13 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr
BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo = busSalesOrderLoancontractFeign.fetchDetailsBySid(salesOrderVehicle.getLoanContractSid()).getData();
//还款协议编号
map.put("num", "H" + busSalesOrderLoancontractDetailsVo.getLoanContractNo());
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "dgclwts" + ".ftl");
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "dgclsqwts" + ".ftl");
//生成word文件名
String targetPath = docPdfComponent.getUploadTemplateUrl();
String dateStr = DateUtil.format(new Date(), "yyyyMMdd");
long seconds = System.currentTimeMillis();
String typeName = dateStr + seconds + ".doc";
File file = new File(targetPath + "dgclwts" + seconds + ".ftl");
File file = new File(targetPath + "dgclsqwts" + seconds + ".ftl");
File dir = new File(targetPath);
WordConvertUtils.inputStreamToFile(inputStream, file);
WordConvertUtils.creatWord1(map, file, targetPath, typeName, dir);

2
anrui-terminal/anrui-terminal-api/src/main/java/com/yxt/anrui/terminal/api/risk/caseclose/AppCaseCloseApplyDetailsVo.java

@ -110,6 +110,6 @@ public class AppCaseCloseApplyDetailsVo implements Vo {
@ApiModelProperty
private List<String> appJaclFiles;
@ApiModelProperty("上诉车辆")
@ApiModelProperty("结案车辆")
private List<AppCaseCloseVehDetailsVo> appCaseCloseVehList;
}
Loading…
Cancel
Save