
31 changed files with 2718 additions and 0 deletions
@ -0,0 +1,126 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply; |
||||
|
|
||||
|
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: LoanCaseExecuteApply.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApply <br/> |
||||
|
* Description: 案件执行立案申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件执行立案申请", description = "案件执行立案申请") |
||||
|
@TableName("loan_case_execute_apply") |
||||
|
public class LoanCaseExecuteApply 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 caseCreateDate; // 案件创建日期
|
||||
|
@ApiModelProperty("公司负责人") |
||||
|
private String compHead; // 公司负责人
|
||||
|
@ApiModelProperty("法务部门负责人") |
||||
|
private String legalDeptHead; // 法务部门负责人
|
||||
|
@ApiModelProperty("案件编号") |
||||
|
private String caseNo; // 案件编号
|
||||
|
@ApiModelProperty("案件类型") |
||||
|
private String caseType; // 案件类型
|
||||
|
@ApiModelProperty("贷款合同编号") |
||||
|
private String loanContract; // 贷款合同编号
|
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String lenderName; // 贷款人
|
||||
|
@ApiModelProperty("贷款人证件号码") |
||||
|
private String lenderIdNo; // 贷款人证件号码
|
||||
|
@ApiModelProperty("贷款人户籍/注册地址") |
||||
|
private String lenderAddress; // 贷款人户籍/注册地址
|
||||
|
@ApiModelProperty("客户") |
||||
|
private String customName; // 客户
|
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; // 资方
|
||||
|
@ApiModelProperty("资方合同编号") |
||||
|
private String bankContract; // 资方合同编号
|
||||
|
@ApiModelProperty("欠款合计") |
||||
|
private String arrearsTotal; // 欠款合计
|
||||
|
@ApiModelProperty("是否全额诉讼") |
||||
|
private String isFullLitigation; // 是否全额诉讼
|
||||
|
@ApiModelProperty("起诉金额合计") |
||||
|
private String sueMoneyTotal; // 起诉金额合计
|
||||
|
@ApiModelProperty("部分诉讼说明") |
||||
|
private String partProceRemarks; // 部分诉讼说明
|
||||
|
@ApiModelProperty("判决日期") |
||||
|
private String judgDate; // 判决日期
|
||||
|
@ApiModelProperty("判决结果") |
||||
|
private String judgResult; // 判决结果
|
||||
|
@ApiModelProperty("判决金额") |
||||
|
private String judgMoney; // 判决金额
|
||||
|
@ApiModelProperty("判决备注") |
||||
|
private String judgRemarks; // 判决备注
|
||||
|
@ApiModelProperty("判决生效后回款金额") |
||||
|
private String judgPayMoney; // 判决生效后回款金额
|
||||
|
@ApiModelProperty("预执行立案日期") |
||||
|
private String executeRegisDate; // 预执行立案日期
|
||||
|
@ApiModelProperty("执行时限") |
||||
|
private String executeDeadline; // 执行时限
|
||||
|
@ApiModelProperty("执行立案金额") |
||||
|
private String executeRegisMoney; // 执行立案金额
|
||||
|
@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
|
||||
|
|
||||
|
} |
@ -0,0 +1,137 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDto; |
||||
|
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: LoanCaseExecuteApplyVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyVo <br/> |
||||
|
* Description: 案件执行立案申请 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件执行立案申请 视图数据详情", description = "案件执行立案申请 视图数据详情") |
||||
|
public class LoanCaseExecuteApplyDetailsVo 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 caseCreateDate; // 案件创建日期
|
||||
|
@ApiModelProperty("公司负责人") |
||||
|
private String compHead; // 公司负责人
|
||||
|
@ApiModelProperty("法务部门负责人") |
||||
|
private String legalDeptHead; // 法务部门负责人
|
||||
|
@ApiModelProperty("案件编号") |
||||
|
private String caseNo; // 案件编号
|
||||
|
@ApiModelProperty("案件类型") |
||||
|
private String caseType; // 案件类型
|
||||
|
@ApiModelProperty("贷款合同编号") |
||||
|
private String loanContract; // 贷款合同编号
|
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String lenderName; // 贷款人
|
||||
|
@ApiModelProperty("贷款人证件号码") |
||||
|
private String lenderIdNo; // 贷款人证件号码
|
||||
|
@ApiModelProperty("贷款人户籍/注册地址") |
||||
|
private String lenderAddress; // 贷款人户籍/注册地址
|
||||
|
@ApiModelProperty("客户") |
||||
|
private String customName; // 客户
|
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; // 资方
|
||||
|
@ApiModelProperty("资方合同编号") |
||||
|
private String bankContract; // 资方合同编号
|
||||
|
@ApiModelProperty("欠款合计") |
||||
|
private String arrearsTotal; // 欠款合计
|
||||
|
@ApiModelProperty("是否全额诉讼") |
||||
|
private String isFullLitigation; // 是否全额诉讼
|
||||
|
@ApiModelProperty("起诉金额合计") |
||||
|
private String sueMoneyTotal; // 起诉金额合计
|
||||
|
@ApiModelProperty("部分诉讼说明") |
||||
|
private String partProceRemarks; // 部分诉讼说明
|
||||
|
@ApiModelProperty("判决日期") |
||||
|
private String judgDate; // 判决日期
|
||||
|
@ApiModelProperty("判决结果") |
||||
|
private String judgResult; // 判决结果
|
||||
|
@ApiModelProperty("判决金额") |
||||
|
private String judgMoney; // 判决金额
|
||||
|
@ApiModelProperty("判决备注") |
||||
|
private String judgRemarks; // 判决备注
|
||||
|
@ApiModelProperty("判决生效后回款金额") |
||||
|
private String judgPayMoney; // 判决生效后回款金额
|
||||
|
@ApiModelProperty("预执行立案日期") |
||||
|
private String executeRegisDate; // 预执行立案日期
|
||||
|
@ApiModelProperty("执行时限") |
||||
|
private String executeDeadline; // 执行时限
|
||||
|
@ApiModelProperty("执行立案金额") |
||||
|
private String executeRegisMoney; // 执行立案金额
|
||||
|
@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<LoanCaseExecuteFile> pjclFiles; |
||||
|
@ApiModelProperty |
||||
|
private List<LoanCaseExecuteFile> zxclFiles; |
||||
|
@ApiModelProperty("上诉车辆") |
||||
|
private List<LoanCaseExecuteVehDetailsVo> loanCaseExecuteVehList; |
||||
|
} |
@ -0,0 +1,138 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loancaseappealapply.LoanCaseAppealFile; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseappealveh.LoanCaseAppealVehDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDto; |
||||
|
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: LoanCaseExecuteApplyDto.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyDto <br/> |
||||
|
* Description: 案件执行立案申请 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件执行立案申请 数据传输对象", description = "案件执行立案申请 数据传输对象") |
||||
|
public class LoanCaseExecuteApplyDto 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 caseCreateDate; // 案件创建日期
|
||||
|
@ApiModelProperty("公司负责人") |
||||
|
private String compHead; // 公司负责人
|
||||
|
@ApiModelProperty("法务部门负责人") |
||||
|
private String legalDeptHead; // 法务部门负责人
|
||||
|
@ApiModelProperty("案件编号") |
||||
|
private String caseNo; // 案件编号
|
||||
|
@ApiModelProperty("案件类型") |
||||
|
private String caseType; // 案件类型
|
||||
|
@ApiModelProperty("贷款合同编号") |
||||
|
private String loanContract; // 贷款合同编号
|
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String lenderName; // 贷款人
|
||||
|
@ApiModelProperty("贷款人证件号码") |
||||
|
private String lenderIdNo; // 贷款人证件号码
|
||||
|
@ApiModelProperty("贷款人户籍/注册地址") |
||||
|
private String lenderAddress; // 贷款人户籍/注册地址
|
||||
|
@ApiModelProperty("客户") |
||||
|
private String customName; // 客户
|
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; // 资方
|
||||
|
@ApiModelProperty("资方合同编号") |
||||
|
private String bankContract; // 资方合同编号
|
||||
|
@ApiModelProperty("欠款合计") |
||||
|
private String arrearsTotal; // 欠款合计
|
||||
|
@ApiModelProperty("是否全额诉讼") |
||||
|
private String isFullLitigation; // 是否全额诉讼
|
||||
|
@ApiModelProperty("起诉金额合计") |
||||
|
private String sueMoneyTotal; // 起诉金额合计
|
||||
|
@ApiModelProperty("部分诉讼说明") |
||||
|
private String partProceRemarks; // 部分诉讼说明
|
||||
|
@ApiModelProperty("判决日期") |
||||
|
private String judgDate; // 判决日期
|
||||
|
@ApiModelProperty("判决结果") |
||||
|
private String judgResult; // 判决结果
|
||||
|
@ApiModelProperty("判决金额") |
||||
|
private String judgMoney; // 判决金额
|
||||
|
@ApiModelProperty("判决备注") |
||||
|
private String judgRemarks; // 判决备注
|
||||
|
@ApiModelProperty("判决生效后回款金额") |
||||
|
private String judgPayMoney; // 判决生效后回款金额
|
||||
|
@ApiModelProperty("预执行立案日期") |
||||
|
private String executeRegisDate; // 预执行立案日期
|
||||
|
@ApiModelProperty("执行时限") |
||||
|
private String executeDeadline; // 执行时限
|
||||
|
@ApiModelProperty("执行立案金额") |
||||
|
private String executeRegisMoney; // 执行立案金额
|
||||
|
@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<LoanCaseExecuteFile> pjclFiles; |
||||
|
@ApiModelProperty |
||||
|
private List<LoanCaseExecuteFile> zxclFiles; |
||||
|
@ApiModelProperty("上诉车辆") |
||||
|
private List<LoanCaseExecuteVehDto> loanCaseExecuteVehList; |
||||
|
} |
@ -0,0 +1,114 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply; |
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loancaseappealapply.flowable.*; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.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: LoanCaseExecuteApplyFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyFeign <br/> |
||||
|
* Description: 案件执行立案申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "案件执行立案申请") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-riskcenter-LoanCaseExecuteApply", |
||||
|
name = "anrui-riskcenter", |
||||
|
path = "v1/loancaseexecuteapply", |
||||
|
fallback = LoanCaseExecuteApplyFeignFallback.class) |
||||
|
public interface LoanCaseExecuteApplyFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<LoanCaseExecuteApplyVo>> listPage(@RequestBody PagerQuery<LoanCaseExecuteApplyQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody LoanCaseExecuteApplyDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<LoanCaseExecuteApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
|
||||
|
@ApiOperation("提交审批流程") |
||||
|
@PostMapping("/submit") |
||||
|
public ResultBean submit(@RequestBody @Valid SubmitLoanCaseExecuteApplyDto dto); |
||||
|
|
||||
|
@ApiOperation(value = "办理(同意)") |
||||
|
@PostMapping("/complete") |
||||
|
public ResultBean complete(@Valid @RequestBody LoanCaseExecuteApplyCompleteDto query); |
||||
|
|
||||
|
@ApiOperation(value = "获取上一个环节") |
||||
|
@GetMapping(value = "/getPreviousNodesForReject") |
||||
|
ResultBean<List<LoanCaseExecuteApplyNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap LoanCaseExecuteApplyNodeQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "获取下一个环节") |
||||
|
@GetMapping(value = "/getNextNodesForSubmit") |
||||
|
ResultBean<List<LoanCaseExecuteApplyNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap LoanCaseExecuteApplyNodeQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "驳回任务") |
||||
|
@PostMapping(value = "/reject") |
||||
|
public ResultBean reject(@Valid @RequestBody LoanCaseExecuteApplyTaskQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "撤回流程") |
||||
|
@PostMapping(value = "/revokeProcess") |
||||
|
public ResultBean revokeProcess(@Valid @RequestBody LoanCaseExecuteApplyTaskQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "终止任务") |
||||
|
@PostMapping(value = "/breakProcess") |
||||
|
public ResultBean breakProcess(@Valid @RequestBody LoanCaseExecuteApplyTaskQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "加签") |
||||
|
@PostMapping(value = "/delegate") |
||||
|
public ResultBean delegate(@RequestBody LoanCaseExecuteApplyDelegateQuery query); |
||||
|
} |
@ -0,0 +1,113 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply; |
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.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: LoanCaseExecuteApplyFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyFeignFallback <br/> |
||||
|
* Description: 案件执行立案申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class LoanCaseExecuteApplyFeignFallback implements LoanCaseExecuteApplyFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<LoanCaseExecuteApplyVo>> listPage(PagerQuery<LoanCaseExecuteApplyQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口anrui-riskcenter/loancaseexecuteapply/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(LoanCaseExecuteApplyDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loancaseexecuteapply/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loancaseexecuteapply/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<LoanCaseExecuteApplyDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口anrui-riskcenter/loancaseexecuteapply/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean submit(SubmitLoanCaseExecuteApplyDto dto) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean complete(LoanCaseExecuteApplyCompleteDto query) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<List<LoanCaseExecuteApplyNodeVo>> getPreviousNodesForReject(LoanCaseExecuteApplyNodeQuery query) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<List<LoanCaseExecuteApplyNodeVo>> getNextNodesForSubmit(LoanCaseExecuteApplyNodeQuery query) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean reject(LoanCaseExecuteApplyTaskQuery query) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean revokeProcess(LoanCaseExecuteApplyTaskQuery query) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean breakProcess(LoanCaseExecuteApplyTaskQuery query) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delegate(LoanCaseExecuteApplyDelegateQuery query) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply; |
||||
|
|
||||
|
|
||||
|
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: LoanCaseExecuteApplyQuery.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyQuery <br/> |
||||
|
* Description: 案件执行立案申请 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件执行立案申请 查询条件", description = "案件执行立案申请 查询条件") |
||||
|
public class LoanCaseExecuteApplyQuery 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 customName; |
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String lenderName; |
||||
|
@ApiModelProperty("预执行立案开始日期") |
||||
|
private String executeRegisStartDate; |
||||
|
@ApiModelProperty("预执行立案结束日期") |
||||
|
private String executeRegisEndDate; |
||||
|
@ApiModelProperty("执行时限") |
||||
|
private String executeDeadline; |
||||
|
@ApiModelProperty("执行立案金额") |
||||
|
private String executeRegisMoney; |
||||
|
|
||||
|
private String userSid; |
||||
|
private String orgPath; |
||||
|
private String menuUrl; |
||||
|
private String menuSid; |
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply; |
||||
|
|
||||
|
|
||||
|
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: LoanCaseExecuteApplyVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyVo <br/> |
||||
|
* Description: 案件执行立案申请 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件执行立案申请 视图数据对象", description = "案件执行立案申请 视图数据对象") |
||||
|
public class LoanCaseExecuteApplyVo 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 loanContract; |
||||
|
@ApiModelProperty("客户") |
||||
|
private String customName; |
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String lenderName; |
||||
|
@ApiModelProperty("预执行立案日期") |
||||
|
private String executeRegisDate; |
||||
|
@ApiModelProperty("执行时限") |
||||
|
private String executeDeadline; |
||||
|
@ApiModelProperty("执行立案金额") |
||||
|
private String executeRegisMoney; |
||||
|
@ApiModelProperty("流程定义的id") |
||||
|
private String procDefId; |
||||
|
@ApiModelProperty("流程实例的sid") |
||||
|
private String procInstSid; |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class LoanCaseExecuteFile implements Vo { |
||||
|
|
||||
|
private String url; |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply.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 LoanCaseExecuteApplyCompleteDto 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; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply.flowable; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/28 9:28 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LoanCaseExecuteApplyDelegateQuery { |
||||
|
@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,25 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply.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 LoanCaseExecuteApplyNodeQuery 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; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply.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 LoanCaseExecuteApplyNodeVo 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; |
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply.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 LoanCaseExecuteApplyTaskQuery 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; |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteapply.flowable; |
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loancaseappealapply.LoanCaseAppealApplyDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyDto; |
||||
|
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 SubmitLoanCaseExecuteApplyDto extends LoanCaseExecuteApplyDto { |
||||
|
|
||||
|
@ApiModelProperty("意见") |
||||
|
private String comment; |
||||
|
@ApiModelProperty("流程实例id") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty("任务id") |
||||
|
private String taskId; |
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteveh; |
||||
|
|
||||
|
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: LoanCaseExecuteVeh.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVeh <br/> |
||||
|
* Description: 案件执行立案车辆. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件执行立案车辆", description = "案件执行立案车辆") |
||||
|
@TableName("loan_case_execute_veh") |
||||
|
public class LoanCaseExecuteVeh extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; // 车牌号
|
||||
|
@ApiModelProperty("挂靠公司") |
||||
|
private String affiliatedCompany; // 挂靠公司
|
||||
|
@ApiModelProperty("车辆状态") |
||||
|
private String carState; // 车辆状态
|
||||
|
@ApiModelProperty("案件执行立案申请sid") |
||||
|
private String mainSid; // 案件执行立案申请sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteveh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
||||
|
* File: LoanCaseExecuteVehVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehVo <br/> |
||||
|
* Description: 案件执行立案车辆 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件执行立案车辆 视图数据详情", description = "案件执行立案车辆 视图数据详情") |
||||
|
public class LoanCaseExecuteVehDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; // 车牌号
|
||||
|
@ApiModelProperty("挂靠公司") |
||||
|
private String affiliatedCompany; // 挂靠公司
|
||||
|
@ApiModelProperty("车辆状态") |
||||
|
private String carState; // 车辆状态
|
||||
|
@ApiModelProperty("案件执行立案申请sid") |
||||
|
private String mainSid; // 案件执行立案申请sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteveh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
||||
|
* File: LoanCaseExecuteVehDto.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDto <br/> |
||||
|
* Description: 案件执行立案车辆 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件执行立案车辆 数据传输对象", description = "案件执行立案车辆 数据传输对象") |
||||
|
public class LoanCaseExecuteVehDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; // 车牌号
|
||||
|
@ApiModelProperty("挂靠公司") |
||||
|
private String affiliatedCompany; // 挂靠公司
|
||||
|
@ApiModelProperty("车辆状态") |
||||
|
private String carState; // 车辆状态
|
||||
|
@ApiModelProperty("案件执行立案申请sid") |
||||
|
private String mainSid; // 案件执行立案申请sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteveh; |
||||
|
|
||||
|
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.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
||||
|
* File: LoanCaseExecuteVehFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehFeign <br/> |
||||
|
* Description: 案件执行立案车辆. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "案件执行立案车辆") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-riskcenter-LoanCaseExecuteVeh", |
||||
|
name = "anrui-riskcenter", |
||||
|
path = "v1/loancaseexecuteveh", |
||||
|
fallback = LoanCaseExecuteVehFeignFallback.class) |
||||
|
public interface LoanCaseExecuteVehFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<LoanCaseExecuteVehVo>> listPage(@RequestBody PagerQuery<LoanCaseExecuteVehQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody LoanCaseExecuteVehDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<LoanCaseExecuteVehDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteveh; |
||||
|
|
||||
|
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: LoanCaseExecuteVehFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehFeignFallback <br/> |
||||
|
* Description: 案件执行立案车辆. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class LoanCaseExecuteVehFeignFallback implements LoanCaseExecuteVehFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<LoanCaseExecuteVehVo>> listPage(PagerQuery<LoanCaseExecuteVehQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口anrui-riskcenter/loancaseexecuteveh/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(LoanCaseExecuteVehDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loancaseexecuteveh/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loancaseexecuteveh/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<LoanCaseExecuteVehDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口anrui-riskcenter/loancaseexecuteveh/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteveh; |
||||
|
|
||||
|
|
||||
|
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: LoanCaseExecuteVehQuery.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehQuery <br/> |
||||
|
* Description: 案件执行立案车辆 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件执行立案车辆 查询条件", description = "案件执行立案车辆 查询条件") |
||||
|
public class LoanCaseExecuteVehQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; // 车牌号
|
||||
|
@ApiModelProperty("挂靠公司") |
||||
|
private String affiliatedCompany; // 挂靠公司
|
||||
|
@ApiModelProperty("车辆状态") |
||||
|
private String carState; // 车辆状态
|
||||
|
@ApiModelProperty("案件执行立案申请sid") |
||||
|
private String mainSid; // 案件执行立案申请sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loancaseexecuteveh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
||||
|
* File: LoanCaseExecuteVehVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehVo <br/> |
||||
|
* Description: 案件执行立案车辆 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件执行立案车辆 视图数据对象", description = "案件执行立案车辆 视图数据对象") |
||||
|
public class LoanCaseExecuteVehVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; // 车牌号
|
||||
|
@ApiModelProperty("挂靠公司") |
||||
|
private String affiliatedCompany; // 挂靠公司
|
||||
|
@ApiModelProperty("车辆状态") |
||||
|
private String carState; // 车辆状态
|
||||
|
@ApiModelProperty("案件执行立案申请sid") |
||||
|
private String mainSid; // 案件执行立案申请sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loancaseexecuteapply; |
||||
|
|
||||
|
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.loancaseexecuteapply.LoanCaseExecuteApply; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
||||
|
* File: LoanCaseExecuteApplyMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loancaseexecuteapply.LoanCaseExecuteApplyMapper <br/> |
||||
|
* Description: 案件执行立案申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface LoanCaseExecuteApplyMapper extends BaseMapper<LoanCaseExecuteApply> { |
||||
|
|
||||
|
//@Update("update loan_case_execute_apply set name=#{msg} where id=#{id}")
|
||||
|
//IPage<LoanCaseExecuteApplyVo> voPage(IPage<LoanCaseExecuteApply> page, @Param(Constants.WRAPPER) QueryWrapper<LoanCaseExecuteApply> qw);
|
||||
|
|
||||
|
IPage<LoanCaseExecuteApplyVo> selectPageVo(IPage<LoanCaseExecuteApply> page, @Param(Constants.WRAPPER) Wrapper<LoanCaseExecuteApply> qw); |
||||
|
|
||||
|
List<LoanCaseExecuteApplyVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanCaseExecuteApply> qw); |
||||
|
|
||||
|
@Select("select * from loan_case_execute_apply") |
||||
|
List<LoanCaseExecuteApplyVo> selectListVo(); |
||||
|
|
||||
|
String selectNum(String billNo); |
||||
|
|
||||
|
int selectBySid(String join); |
||||
|
|
||||
|
int updateFlowFiled(Map<String, Object> map); |
||||
|
} |
@ -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.loancaseexecuteapply.LoanCaseExecuteApplyMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyVo"> |
||||
|
SELECT * FROM loan_case_execute_apply <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyVo"> |
||||
|
SELECT * FROM loan_case_execute_apply <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectNum" resultType="java.lang.String"> |
||||
|
select RIGHT (billNo, 4) |
||||
|
from loan_case_execute_apply |
||||
|
where billNo LIKE concat(#{billNo}, '%') |
||||
|
order by billNo desc |
||||
|
limit 1 |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectBySid" resultType="int"> |
||||
|
SELECT COUNT(*) |
||||
|
FROM loan_case_execute_apply |
||||
|
WHERE nodeState != '待提交' |
||||
|
and find_in_set(sid, #{list}) |
||||
|
</select> |
||||
|
|
||||
|
<update id="updateFlowFiled"> |
||||
|
UPDATE loan_case_execute_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> |
@ -0,0 +1,145 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loancaseexecuteapply; |
||||
|
|
||||
|
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.loancaseexecuteapply.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.loancaseexecuteapply.LoanCaseExecuteApply; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.LoanCaseExecuteApplyFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
||||
|
* File: LoanCaseExecuteApplyFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loancaseexecuteapply.LoanCaseExecuteApplyRest <br/> |
||||
|
* Description: 案件执行立案申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "案件执行立案申请") |
||||
|
@RestController("com.yxt.anrui.riskcenter.biz.loancaseexecuteapply.LoanCaseExecuteApplyRest") |
||||
|
@RequestMapping("v1/loancaseexecuteapply") |
||||
|
public class LoanCaseExecuteApplyRest implements LoanCaseExecuteApplyFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private LoanCaseExecuteApplyService loanCaseExecuteApplyService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<LoanCaseExecuteApplyVo>> listPage(@RequestBody PagerQuery<LoanCaseExecuteApplyQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<LoanCaseExecuteApplyVo> pv = loanCaseExecuteApplyService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody LoanCaseExecuteApplyDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
loanCaseExecuteApplyService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
return loanCaseExecuteApplyService.delAll(sids); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<LoanCaseExecuteApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
LoanCaseExecuteApplyDetailsVo vo = loanCaseExecuteApplyService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean submit(SubmitLoanCaseExecuteApplyDto dto) { |
||||
|
return loanCaseExecuteApplyService.submit(dto); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean complete(LoanCaseExecuteApplyCompleteDto query) { |
||||
|
BusinessVariables bv = new BusinessVariables(); |
||||
|
BeanUtil.copyProperties(query, bv); |
||||
|
bv.setModelId(ProcDefEnum.LOANCASEEXECUTEAPPLY.getProDefId()); |
||||
|
return loanCaseExecuteApplyService.complete(bv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<List<LoanCaseExecuteApplyNodeVo>> getPreviousNodesForReject(LoanCaseExecuteApplyNodeQuery query) { |
||||
|
return loanCaseExecuteApplyService.getPreviousNodesForReject(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<List<LoanCaseExecuteApplyNodeVo>> getNextNodesForSubmit(LoanCaseExecuteApplyNodeQuery query) { |
||||
|
return loanCaseExecuteApplyService.getNextNodesForSubmit(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean reject(LoanCaseExecuteApplyTaskQuery query) { |
||||
|
return loanCaseExecuteApplyService.reject(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean revokeProcess(LoanCaseExecuteApplyTaskQuery query) { |
||||
|
return loanCaseExecuteApplyService.revokeProcess(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean breakProcess(LoanCaseExecuteApplyTaskQuery query) { |
||||
|
return loanCaseExecuteApplyService.breakProcess(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delegate(LoanCaseExecuteApplyDelegateQuery query) { |
||||
|
return loanCaseExecuteApplyService.delegate(query); |
||||
|
} |
||||
|
} |
@ -0,0 +1,656 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loancaseexecuteapply; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import cn.hutool.core.date.DateTime; |
||||
|
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.LoanCaseAppealApply; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseappealapply.flowable.LoanCaseAppealApplyNodeVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseappealapply.flowable.SubmitLoanCaseAppealApplyDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.*; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.flowable.*; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFile; |
||||
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFileEnum; |
||||
|
import com.yxt.anrui.riskcenter.biz.loancaseexecuteveh.LoanCaseExecuteVehService; |
||||
|
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: LoanCaseExecuteApplyService.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loancaseexecuteapply.LoanCaseExecuteApplyService <br/> |
||||
|
* Description: 案件执行立案申请 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class LoanCaseExecuteApplyService extends MybatisBaseService<LoanCaseExecuteApplyMapper, LoanCaseExecuteApply> { |
||||
|
|
||||
|
@Autowired |
||||
|
private SysUserFeign sysUserFeign; |
||||
|
@Autowired |
||||
|
private SysOrganizationFeign sysOrganizationFeign; |
||||
|
@Autowired |
||||
|
private LoanCaseExecuteVehService loanCaseExecuteVehService; |
||||
|
@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<LoanCaseExecuteApplyVo> listPageVo(PagerQuery<LoanCaseExecuteApplyQuery> pq) { |
||||
|
LoanCaseExecuteApplyQuery query = pq.getParams(); |
||||
|
QueryWrapper<LoanCaseExecuteApply> 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<LoanCaseExecuteApplyVo> p = new PagerVo<>(); |
||||
|
return p; |
||||
|
} |
||||
|
} else { |
||||
|
PagerVo<LoanCaseExecuteApplyVo> 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.getCustomName())){ |
||||
|
qw.like("customName",query.getCustomName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getLenderName())){ |
||||
|
qw.like("lenderName",query.getLenderName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getExecuteDeadline())){ |
||||
|
qw.like("executeDeadline",query.getExecuteDeadline()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getExecuteRegisMoney())){ |
||||
|
qw.like("executeRegisMoney",query.getExecuteRegisMoney()); |
||||
|
} |
||||
|
qw.apply(StringUtils.isNotBlank(query.getExecuteRegisStartDate()), "date_format (executeRegisDate,'%Y-%m-%d') >= date_format('" + query.getExecuteRegisStartDate() + "','%Y-%m-%d')"). |
||||
|
apply(StringUtils.isNotBlank(query.getExecuteRegisEndDate()), "date_format (executeRegisDate,'%Y-%m-%d') <= date_format('" + query.getExecuteRegisEndDate() + "','%Y-%m-%d')" |
||||
|
); |
||||
|
qw.orderByDesc("createTime"); |
||||
|
IPage<LoanCaseExecuteApply> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<LoanCaseExecuteApplyVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
for (LoanCaseExecuteApplyVo record : pagging.getRecords()) { |
||||
|
if ("终止".equals(record.getNodeState()) || "已办结".equals(record.getNodeState())) { |
||||
|
DateTime modifyTime = DateUtil.parse(record.getModifyTime()); |
||||
|
record.setModifyTime(DateUtil.formatDate(modifyTime)); |
||||
|
} else { |
||||
|
record.setModifyTime(""); |
||||
|
} |
||||
|
} |
||||
|
PagerVo<LoanCaseExecuteApplyVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public String saveOrUpdateDto(LoanCaseExecuteApplyDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
List<LoanCaseExecuteFile> pjclFiles = dto.getPjclFiles(); |
||||
|
List<LoanCaseExecuteFile> zxclFiles = dto.getZxclFiles(); |
||||
|
List<LoanCaseExecuteVehDto> loanCaseExecuteVehList = dto.getLoanCaseExecuteVehList(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
//生成单据编号
|
||||
|
String billNo = ""; |
||||
|
String date = DateUtil.format(DateUtil.date(), "yyyyMM"); |
||||
|
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.fetchBySid(dto.getUseOrgSid()).getData(); |
||||
|
billNo = "AJZXLA" + 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); |
||||
|
for (LoanCaseExecuteVehDto loanCaseExecuteVehDto : loanCaseExecuteVehList) { |
||||
|
loanCaseExecuteVehDto.setMainSid(sid); |
||||
|
loanCaseExecuteVehService.saveOrUpdateDto(loanCaseExecuteVehDto); |
||||
|
} |
||||
|
if (pjclFiles != null && pjclFiles.size() > 0) { |
||||
|
for (LoanCaseExecuteFile file : pjclFiles) { |
||||
|
LoanFile loanFile = new LoanFile(); |
||||
|
loanFile.setLinkSid(sid); |
||||
|
loanFile.setAttachType(LoanFileEnum.AJZXLA_JUDGMENT.getAttachType()); |
||||
|
String filePath = file.getUrl(); |
||||
|
if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
||||
|
filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), ""); |
||||
|
} |
||||
|
loanFile.setFilePath(filePath); |
||||
|
loanFileService.save(loanFile); |
||||
|
} |
||||
|
} |
||||
|
if (zxclFiles != null && zxclFiles.size() > 0) { |
||||
|
for (LoanCaseExecuteFile file : zxclFiles) { |
||||
|
LoanFile loanFile = new LoanFile(); |
||||
|
loanFile.setLinkSid(sid); |
||||
|
loanFile.setAttachType(LoanFileEnum.EXECUTE.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); |
||||
|
loanCaseExecuteVehService.delByMainSid(dtoSid); |
||||
|
for (LoanCaseExecuteVehDto loanCaseExecuteVehDto : loanCaseExecuteVehList) { |
||||
|
loanCaseExecuteVehDto.setMainSid(dtoSid); |
||||
|
loanCaseExecuteVehService.saveOrUpdateDto(loanCaseExecuteVehDto); |
||||
|
} |
||||
|
loanFileService.delByLinkSidOrType(dtoSid, LoanFileEnum.AJZXLA_JUDGMENT.getAttachType()); |
||||
|
if (pjclFiles != null && pjclFiles.size() > 0) { |
||||
|
for (LoanCaseExecuteFile file : pjclFiles) { |
||||
|
LoanFile loanFile = new LoanFile(); |
||||
|
loanFile.setLinkSid(dtoSid); |
||||
|
loanFile.setAttachType(LoanFileEnum.AJZXLA_JUDGMENT.getAttachType()); |
||||
|
String filePath = file.getUrl(); |
||||
|
if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
||||
|
filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), ""); |
||||
|
} |
||||
|
loanFile.setFilePath(filePath); |
||||
|
loanFileService.save(loanFile); |
||||
|
} |
||||
|
} |
||||
|
loanFileService.delByLinkSidOrType(dtoSid, LoanFileEnum.EXECUTE.getAttachType()); |
||||
|
if (zxclFiles != null && zxclFiles.size() > 0) { |
||||
|
for (LoanCaseExecuteFile file : zxclFiles) { |
||||
|
LoanFile loanFile = new LoanFile(); |
||||
|
loanFile.setLinkSid(dtoSid); |
||||
|
loanFile.setAttachType(LoanFileEnum.EXECUTE.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(LoanCaseExecuteApplyDto dto){ |
||||
|
LoanCaseExecuteApply entity = new LoanCaseExecuteApply(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
entity.setNodeState("待提交"); |
||||
|
baseMapper.insert(entity); |
||||
|
return entity.getSid(); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(LoanCaseExecuteApplyDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
LoanCaseExecuteApply entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public LoanCaseExecuteApplyDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
LoanCaseExecuteApply entity = fetchBySid(sid); |
||||
|
LoanCaseExecuteApplyDetailsVo vo = new LoanCaseExecuteApplyDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
List<LoanCaseExecuteVehDetailsVo> loanCaseExecuteVehDetailsVoList = loanCaseExecuteVehService.selByMainSid(sid); |
||||
|
vo.setLoanCaseExecuteVehList(loanCaseExecuteVehDetailsVoList); |
||||
|
List<LoanFile> pjcl = loanFileService.selectByLinkSid(sid, LoanFileEnum.AJZXLA_JUDGMENT.getAttachType()); |
||||
|
List<LoanCaseExecuteFile> pjclFiles = new ArrayList<>(); |
||||
|
if (pjcl != null && pjcl.size() > 0) { |
||||
|
for (LoanFile loanFile : pjcl) { |
||||
|
LoanCaseExecuteFile loanCaseExecuteFile = new LoanCaseExecuteFile(); |
||||
|
String filePath = loanFile.getFilePath(); |
||||
|
String urlPrefix = fileUploadComponent.getUrlPrefix(); |
||||
|
filePath = urlPrefix + filePath; |
||||
|
loanCaseExecuteFile.setUrl(filePath); |
||||
|
pjclFiles.add(loanCaseExecuteFile); |
||||
|
} |
||||
|
} |
||||
|
vo.setPjclFiles(pjclFiles); |
||||
|
List<LoanFile> zxcl = loanFileService.selectByLinkSid(sid, LoanFileEnum.ANSWERRELATE.getAttachType()); |
||||
|
List<LoanCaseExecuteFile> zxclFiles = new ArrayList<>(); |
||||
|
if (zxcl != null && zxcl.size() > 0) { |
||||
|
for (LoanFile loanFile : zxcl) { |
||||
|
LoanCaseExecuteFile loanCaseExecuteFile = new LoanCaseExecuteFile(); |
||||
|
String filePath = loanFile.getFilePath(); |
||||
|
String urlPrefix = fileUploadComponent.getUrlPrefix(); |
||||
|
filePath = urlPrefix + filePath; |
||||
|
loanCaseExecuteFile.setUrl(filePath); |
||||
|
zxclFiles.add(loanCaseExecuteFile); |
||||
|
} |
||||
|
} |
||||
|
vo.setZxclFiles(zxclFiles); |
||||
|
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) { |
||||
|
loanCaseExecuteVehService.delByMainSid(sid); |
||||
|
loanFileService.delByLinkSidOrType(sid, LoanFileEnum.AJZXLA_JUDGMENT.getAttachType()); |
||||
|
loanFileService.delByLinkSidOrType(sid, LoanFileEnum.EXECUTE.getAttachType()); |
||||
|
} |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
public ResultBean submit(SubmitLoanCaseExecuteApplyDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
LoanCaseExecuteApply loanCaseExecuteApply = fetchBySid(dto.getSid()); |
||||
|
int r = submitBusinessData(dto, loanCaseExecuteApply); |
||||
|
if (r == 3) { |
||||
|
return rb.setMsg("该申请不存在"); |
||||
|
} |
||||
|
if (r == 0) { |
||||
|
return rb.setMsg("操作失败!提交的数据不一致"); |
||||
|
} |
||||
|
//新增修改保存
|
||||
|
String businessSid = saveOrUpdateDto(dto); |
||||
|
loanCaseExecuteApply = fetchBySid(businessSid); |
||||
|
//创建BusinessVariables实体对象
|
||||
|
BusinessVariables bv = new BusinessVariables(); |
||||
|
//流程中的参数赋值、若有网关,则赋值网关中判断的字段。
|
||||
|
Map<String, Object> variables = new HashMap<>(); |
||||
|
//用户的部门全路径sid
|
||||
|
bv.setOrgSidPath(loanCaseExecuteApply.getOrgPath()); |
||||
|
//业务sid
|
||||
|
bv.setBusinessSid(businessSid); |
||||
|
//用户sid
|
||||
|
bv.setUserSid(loanCaseExecuteApply.getCreateBySid()); |
||||
|
//若app移动端有此功能,则传递appMap参数
|
||||
|
Map<String, Object> appMap = new HashMap<>(); |
||||
|
appMap.put("sid", businessSid); |
||||
|
//需和移动端沟通业务sid保存的属性具体值:appMap中sid不是固定的。移动端提供具体字段。
|
||||
|
variables.put("app", appMap); |
||||
|
//流程定义id
|
||||
|
bv.setModelId(ProcDefEnum.LOANCASEEXECUTEAPPLY.getProDefId()); |
||||
|
bv.setFormVariables(variables); |
||||
|
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.selectByOrgSidPath(loanCaseExecuteApply.getOrgPath()).getData(); |
||||
|
bv.setNextNodeUserSids(sysOrganizationVo.getManagerSid()); |
||||
|
if (r == 1) { |
||||
|
ResultBean<UpdateFlowFieldVo> voResultBean = flowableFeign.startProcess(bv); |
||||
|
UpdateFlowFieldVo ufVo = voResultBean.getData(); |
||||
|
updateFlowFiled(BeanUtil.beanToMap(ufVo)); |
||||
|
//极光推送
|
||||
|
loanCaseExecuteApply = 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(loanCaseExecuteApply.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(loanCaseExecuteApply.getTaskId()); |
||||
|
bv.setTaskDefKey(loanCaseExecuteApply.getNodeSid()); |
||||
|
bv.setComment(StringUtils.isNotBlank(dto.getComment()) ? dto.getComment() : "重新提交"); |
||||
|
bv.setInstanceId(dto.getInstanceId()); |
||||
|
return complete(bv); |
||||
|
} |
||||
|
return rb; |
||||
|
} |
||||
|
|
||||
|
private synchronized int submitBusinessData(SubmitLoanCaseExecuteApplyDto dto, LoanCaseExecuteApply loanCaseExecuteApply) { |
||||
|
int r = 0; |
||||
|
if (StringUtils.isBlank(dto.getSid())) { |
||||
|
r = 1; |
||||
|
} else { |
||||
|
if (loanCaseExecuteApply != null) { |
||||
|
String businessTaskId = loanCaseExecuteApply.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(); |
||||
|
LoanCaseExecuteApply loanCaseExecuteApply = 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(loanCaseExecuteApply.getProcDefId())) { |
||||
|
flowProcessMapQuery.setProDefKey(bv.getModelId()); |
||||
|
} else { |
||||
|
flowProcessMapQuery.setProDefKey(loanCaseExecuteApply.getProcDefId()); |
||||
|
} |
||||
|
flowProcessMapQuery.setVariables(variables); |
||||
|
variables = flowableFeign.getMap(flowProcessMapQuery).getData(); |
||||
|
//=======================================
|
||||
|
bv.setFormVariables(variables); |
||||
|
bv.setOrgSidPath(loanCaseExecuteApply.getOrgPath()); |
||||
|
if (bv.getTaskId().equals(loanCaseExecuteApply.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 { |
||||
|
//极光推送
|
||||
|
loanCaseExecuteApply = fetchBySid(businessSid); |
||||
|
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery(); |
||||
|
MessageFlowVo messageFlowVo = new MessageFlowVo(); |
||||
|
BeanUtil.copyProperties(ufVo, messageFlowVo); |
||||
|
ufVo.setProcDefId(loanCaseExecuteApply.getProcDefId()); |
||||
|
ufVo.setProcInsId(loanCaseExecuteApply.getProcInstSid()); |
||||
|
messageFlowableQuery.setUfVo(messageFlowVo); |
||||
|
messageFlowableQuery.setAppMap(appMap); |
||||
|
messageFlowableQuery.setBusinessSid(businessSid); |
||||
|
messageFlowableQuery.setModuleName("案件执行立案申请"); |
||||
|
messageFlowableQuery.setMsgContent(loanCaseExecuteApply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批"); |
||||
|
messageFlowableQuery.setMsgTitle("案件执行立案申请"); |
||||
|
messageFeign.pushMessage(messageFlowableQuery); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} else { |
||||
|
return rb.setMsg("操作失败!提交的数据不一致"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public ResultBean<List<LoanCaseExecuteApplyNodeVo>> getPreviousNodesForReject(LoanCaseExecuteApplyNodeQuery query) { |
||||
|
ResultBean<List<LoanCaseExecuteApplyNodeVo>> rb = ResultBean.fireFail(); |
||||
|
BusinessVariables bv = new BusinessVariables(); |
||||
|
BeanUtil.copyProperties(query, bv); |
||||
|
bv.setModelId(ProcDefEnum.LOANCASEEXECUTEAPPLY.getProDefId()); |
||||
|
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getPreviousNodesForReject(bv); |
||||
|
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给getNodeVo
|
||||
|
List<LoanCaseExecuteApplyNodeVo> voList = Optional.ofNullable(resultBean.getData()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), LoanCaseExecuteApplyNodeVo.class)).collect(Collectors.toList()); |
||||
|
return rb.success().setData(voList); |
||||
|
} |
||||
|
|
||||
|
public ResultBean<List<LoanCaseExecuteApplyNodeVo>> getNextNodesForSubmit(LoanCaseExecuteApplyNodeQuery query) { |
||||
|
ResultBean<List<LoanCaseExecuteApplyNodeVo>> rb = ResultBean.fireFail(); |
||||
|
BusinessVariables bv = new BusinessVariables(); |
||||
|
BeanUtil.copyProperties(query, bv); |
||||
|
bv.setModelId(ProcDefEnum.LOANCASEEXECUTEAPPLY.getProDefId()); |
||||
|
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getNextNodesForSubmit(bv); |
||||
|
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给getNodeVo
|
||||
|
List<LoanCaseExecuteApplyNodeVo> voList = Optional.ofNullable(resultBean.getData()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), LoanCaseExecuteApplyNodeVo.class)).collect(Collectors.toList()); |
||||
|
return rb.success().setData(voList); |
||||
|
} |
||||
|
|
||||
|
public ResultBean reject(LoanCaseExecuteApplyTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
String businessSid = query.getBusinessSid(); |
||||
|
LoanCaseExecuteApply loanCaseExecuteApply = fetchBySid(businessSid); |
||||
|
if (loanCaseExecuteApply == null) { |
||||
|
return rb.setMsg("该申请不存在"); |
||||
|
} |
||||
|
String businessTaskId = loanCaseExecuteApply.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); |
||||
|
//极光推送
|
||||
|
loanCaseExecuteApply = fetchBySid(businessSid); |
||||
|
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery(); |
||||
|
MessageFlowVo messageFlowVo = new MessageFlowVo(); |
||||
|
BeanUtil.copyProperties(ufVo, messageFlowVo); |
||||
|
String procId = loanCaseExecuteApply.getProcInstSid(); |
||||
|
ufVo.setProcInsId(procId); |
||||
|
ufVo.setProcDefId(loanCaseExecuteApply.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(loanCaseExecuteApply.getCreateBySid())) { |
||||
|
messageFlowableQuery.setMsgContent("您提交的" + messageFlowableQuery.getModuleName() + "已被驳回,请重新提交"); |
||||
|
} else { |
||||
|
messageFlowableQuery.setMsgContent(loanCaseExecuteApply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批"); |
||||
|
} |
||||
|
messageFlowableQuery.setMsgTitle("案件执行立案申请"); |
||||
|
messageFeign.pushMessage(messageFlowableQuery); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
} |
||||
|
return rb.setMsg("操作失败!提交的数据不一致!"); |
||||
|
} |
||||
|
|
||||
|
public ResultBean revokeProcess(LoanCaseExecuteApplyTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
if (StringUtils.isBlank(query.getUserSid())) { |
||||
|
return rb.setMsg("参数错误:userSid"); |
||||
|
} |
||||
|
LoanCaseExecuteApply loanCaseExecuteApply = fetchBySid(query.getBusinessSid()); |
||||
|
String businessTaskId = loanCaseExecuteApply.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(LoanCaseExecuteApplyTaskQuery 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("请填写意见"); |
||||
|
} |
||||
|
LoanCaseExecuteApply loanCaseExecuteApply = fetchBySid(query.getBusinessSid()); |
||||
|
String businessTaskId = loanCaseExecuteApply.getTaskId(); |
||||
|
if (StringUtils.isNotBlank(businessTaskId)) { |
||||
|
if (query.getUserSid().equals(loanCaseExecuteApply.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(LoanCaseExecuteApplyDelegateQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
FlowDelegateQuery delegateQuery = new FlowDelegateQuery(); |
||||
|
BeanUtil.copyProperties(query, delegateQuery); |
||||
|
flowFeign.delegate(delegateQuery); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loancaseexecuteveh; |
||||
|
|
||||
|
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 com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDetailsVo; |
||||
|
import org.apache.ibatis.annotations.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVeh; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
||||
|
* File: LoanCaseExecuteVehMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loancaseexecuteveh.LoanCaseExecuteVehMapper <br/> |
||||
|
* Description: 案件执行立案车辆. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface LoanCaseExecuteVehMapper extends BaseMapper<LoanCaseExecuteVeh> { |
||||
|
|
||||
|
//@Update("update loan_case_execute_veh set name=#{msg} where id=#{id}")
|
||||
|
//IPage<LoanCaseExecuteVehVo> voPage(IPage<LoanCaseExecuteVeh> page, @Param(Constants.WRAPPER) QueryWrapper<LoanCaseExecuteVeh> qw);
|
||||
|
|
||||
|
IPage<LoanCaseExecuteVehVo> selectPageVo(IPage<LoanCaseExecuteVeh> page, @Param(Constants.WRAPPER) Wrapper<LoanCaseExecuteVeh> qw); |
||||
|
|
||||
|
List<LoanCaseExecuteVehVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanCaseExecuteVeh> qw); |
||||
|
|
||||
|
@Select("select * from loan_case_execute_veh") |
||||
|
List<LoanCaseExecuteVehVo> selectListVo(); |
||||
|
|
||||
|
@Delete("delete from loan_case_execute_veh where mainSid = #{dtoSid}") |
||||
|
void delByMainSid(String dtoSid); |
||||
|
|
||||
|
@Select("select * from loan_case_execute_veh where mainSid = #{sid}") |
||||
|
List<LoanCaseExecuteVehDetailsVo> selByMainSid(String sid); |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
<?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.loancaseexecuteveh.LoanCaseExecuteVehMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehVo"> |
||||
|
SELECT * FROM loan_case_execute_veh <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehVo"> |
||||
|
SELECT * FROM loan_case_execute_veh <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,100 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loancaseexecuteveh; |
||||
|
|
||||
|
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.loancaseexecuteveh.LoanCaseExecuteVeh; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
||||
|
* File: LoanCaseExecuteVehFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loancaseexecuteveh.LoanCaseExecuteVehRest <br/> |
||||
|
* Description: 案件执行立案车辆. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "案件执行立案车辆") |
||||
|
@RestController("com.yxt.anrui.riskcenter.biz.loancaseexecuteveh.LoanCaseExecuteVehRest") |
||||
|
@RequestMapping("v1/loancaseexecuteveh") |
||||
|
public class LoanCaseExecuteVehRest implements LoanCaseExecuteVehFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private LoanCaseExecuteVehService loanCaseExecuteVehService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<LoanCaseExecuteVehVo>> listPage(@RequestBody PagerQuery<LoanCaseExecuteVehQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<LoanCaseExecuteVehVo> pv = loanCaseExecuteVehService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody LoanCaseExecuteVehDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
loanCaseExecuteVehService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
loanCaseExecuteVehService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<LoanCaseExecuteVehDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
LoanCaseExecuteVehDetailsVo vo = loanCaseExecuteVehService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,119 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loancaseexecuteveh; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFileEnum; |
||||
|
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 com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVeh; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehFeign; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(案件执行立案申请) <br/> |
||||
|
* File: LoanCaseExecuteVehService.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loancaseexecuteveh.LoanCaseExecuteVehService <br/> |
||||
|
* Description: 案件执行立案车辆 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-02-07 10:00:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class LoanCaseExecuteVehService extends MybatisBaseService<LoanCaseExecuteVehMapper, LoanCaseExecuteVeh> { |
||||
|
private QueryWrapper<LoanCaseExecuteVeh> createQueryWrapper(LoanCaseExecuteVehQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<LoanCaseExecuteVeh> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<LoanCaseExecuteVehVo> listPageVo(PagerQuery<LoanCaseExecuteVehQuery> pq) { |
||||
|
LoanCaseExecuteVehQuery query = pq.getParams(); |
||||
|
QueryWrapper<LoanCaseExecuteVeh> qw = createQueryWrapper(query); |
||||
|
IPage<LoanCaseExecuteVeh> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<LoanCaseExecuteVehVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<LoanCaseExecuteVehVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(LoanCaseExecuteVehDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(LoanCaseExecuteVehDto dto){ |
||||
|
LoanCaseExecuteVeh entity = new LoanCaseExecuteVeh(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(LoanCaseExecuteVehDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
LoanCaseExecuteVeh entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public LoanCaseExecuteVehDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
LoanCaseExecuteVeh entity = fetchBySid(sid); |
||||
|
LoanCaseExecuteVehDetailsVo vo = new LoanCaseExecuteVehDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public void delByMainSid(String dtoSid) { |
||||
|
baseMapper.delByMainSid(dtoSid); |
||||
|
} |
||||
|
|
||||
|
public List<LoanCaseExecuteVehDetailsVo> selByMainSid(String sid) { |
||||
|
return baseMapper.selByMainSid(sid); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue