
47 changed files with 2236 additions and 70 deletions
@ -0,0 +1,78 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply; |
||||
|
|
||||
|
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: LoanVehClearanceApply.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApply <br/> |
||||
|
* Description: 车辆远程解控申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:56 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "车辆远程解控申请", description = "车辆远程解控申请") |
||||
|
@TableName("loan_veh_clearance_apply") |
||||
|
public class LoanVehClearanceApply 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("分公司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,90 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionFileVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(车辆远程解控申请) <br/> |
||||
|
* File: LoanVehClearanceApplyVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo <br/> |
||||
|
* Description: 车辆远程解控申请 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "车辆远程解控申请 视图数据详情", description = "车辆远程解控申请 视图数据详情") |
||||
|
public class LoanVehClearanceApplyDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("申请日期") |
||||
|
private String createTime; |
||||
|
@ApiModelProperty("创建人") |
||||
|
private String createByName; // 创建人
|
||||
|
@ApiModelProperty("申请编号") |
||||
|
private String billNo; // 申请编号
|
||||
|
@ApiModelProperty("申请部门sid") |
||||
|
private String deptSid; // 申请部门sid
|
||||
|
@ApiModelProperty("申请部门名称") |
||||
|
private String deptName; // 申请部门名称
|
||||
|
@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<LoanVehClearanceFileVo> files = new ArrayList<>(); |
||||
|
@ApiModelProperty("逾期车辆列表") |
||||
|
private List<LoanVehClearanceVehDetailsVo> loanVehClearanceVehDetailsVoList; |
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionFileVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto; |
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(车辆远程解控申请) <br/> |
||||
|
* File: LoanVehClearanceApplyDto.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyDto <br/> |
||||
|
* Description: 车辆远程解控申请 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:56 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "车辆远程解控申请 数据传输对象", description = "车辆远程解控申请 数据传输对象") |
||||
|
public class LoanVehClearanceApplyDto 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("分公司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<LoanVehClearanceFileVo> files = new ArrayList<>(); |
||||
|
@ApiModelProperty("逾期车辆列表") |
||||
|
private List<LoanVehClearanceVehDto> loanVehClearanceVehDtoList; |
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply; |
||||
|
|
||||
|
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: LoanVehClearanceApplyFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyFeign <br/> |
||||
|
* Description: 车辆远程解控申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:56 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "车辆远程解控申请") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-riskcenter-LoanVehClearanceApply", |
||||
|
name = "anrui-riskcenter", |
||||
|
path = "v1/loanvehclearanceapply", |
||||
|
fallback = LoanVehClearanceApplyFeignFallback.class) |
||||
|
public interface LoanVehClearanceApplyFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<LoanVehClearanceApplyVo>> listPage(@RequestBody PagerQuery<LoanVehClearanceApplyQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody LoanVehClearanceApplyDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<LoanVehClearanceApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply; |
||||
|
|
||||
|
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: LoanVehClearanceApplyFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyFeignFallback <br/> |
||||
|
* Description: 车辆远程解控申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:56 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class LoanVehClearanceApplyFeignFallback implements LoanVehClearanceApplyFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<LoanVehClearanceApplyVo>> listPage(PagerQuery<LoanVehClearanceApplyQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口anrui-riskcenter/loanvehclearanceapply/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(LoanVehClearanceApplyDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanvehclearanceapply/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanvehclearanceapply/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<LoanVehClearanceApplyDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口anrui-riskcenter/loanvehclearanceapply/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply; |
||||
|
|
||||
|
|
||||
|
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: LoanVehClearanceApplyQuery.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyQuery <br/> |
||||
|
* Description: 车辆远程解控申请 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:56 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "车辆远程解控申请 查询条件", description = "车辆远程解控申请 查询条件") |
||||
|
public class LoanVehClearanceApplyQuery 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; |
||||
|
|
||||
|
private String userSid; |
||||
|
private String orgPath; |
||||
|
private String menuUrl; |
||||
|
private String menuSid; |
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply; |
||||
|
|
||||
|
|
||||
|
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: LoanVehClearanceApplyVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo <br/> |
||||
|
* Description: 车辆远程解控申请 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:56 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "车辆远程解控申请 视图数据对象", description = "车辆远程解控申请 视图数据对象") |
||||
|
public class LoanVehClearanceApplyVo implements Vo { |
||||
|
|
||||
|
private String sid; // 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("办结日期") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
||||
|
private Date modifyTime; |
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; |
||||
|
@ApiModelProperty("流程定义的id") |
||||
|
private String procDefId; |
||||
|
@ApiModelProperty("流程实例的sid") |
||||
|
private String procInstSid; |
||||
|
|
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(催收措施申请) <br/> |
||||
|
* File: LoanBeCollectionApplyVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionApplyVo <br/> |
||||
|
* Description: 逾期催收申请 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-12 16:06:20 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "逾期催收申请 视图数据对象", description = "逾期催收申请 视图数据对象") |
||||
|
public class LoanVehClearanceFileVo implements Vo { |
||||
|
|
||||
|
private String url; |
||||
|
} |
@ -0,0 +1,84 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh; |
||||
|
|
||||
|
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: LoanVehClearanceVeh.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVeh <br/> |
||||
|
* Description: 车辆远程解控车辆. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "车辆远程解控车辆", description = "车辆远程解控车辆") |
||||
|
@TableName("loan_veh_clearance_veh") |
||||
|
public class LoanVehClearanceVeh extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("贷款合同编号") |
||||
|
private String loanContractNo; // 贷款合同编号
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; // 车牌号
|
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; // 资方
|
||||
|
@ApiModelProperty("资方合同号") |
||||
|
private String bankContractNo; // 资方合同号
|
||||
|
@ApiModelProperty("客户姓名") |
||||
|
private String customerName; // 客户姓名
|
||||
|
@ApiModelProperty("贷款人姓名") |
||||
|
private String borrowerName; // 贷款人姓名
|
||||
|
@ApiModelProperty("首次逾期日期") |
||||
|
private String firstBeDate; // 首次逾期日期
|
||||
|
@ApiModelProperty("逾期期数") |
||||
|
private String beOverduePeriod; // 逾期期数
|
||||
|
@ApiModelProperty("逾期金额") |
||||
|
private String beOverdueMoney; // 逾期金额
|
||||
|
@ApiModelProperty("逾期金额换算期数") |
||||
|
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
|
||||
|
@ApiModelProperty("远程控制费用") |
||||
|
private String lockCarMoney; // 远程控制费用
|
||||
|
@ApiModelProperty("远程控制费实收") |
||||
|
private String lockCarRealityMoney; // 远程控制费实收
|
||||
|
@ApiModelProperty("销售订单车辆sid") |
||||
|
private String saleVehSid; // 销售订单车辆sid
|
||||
|
@ApiModelProperty("远程控制申请sid") |
||||
|
private String mainSid; // 远程控制申请sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,90 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehFile; |
||||
|
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: LoanVehClearanceVehVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo <br/> |
||||
|
* Description: 车辆远程解控车辆 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "车辆远程解控车辆 视图数据详情", description = "车辆远程解控车辆 视图数据详情") |
||||
|
public class LoanVehClearanceVehDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("贷款合同编号") |
||||
|
private String loanContractNo; // 贷款合同编号
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; // 车牌号
|
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; // 资方
|
||||
|
@ApiModelProperty("资方合同号") |
||||
|
private String bankContractNo; // 资方合同号
|
||||
|
@ApiModelProperty("客户姓名") |
||||
|
private String customerName; // 客户姓名
|
||||
|
@ApiModelProperty("贷款人姓名") |
||||
|
private String borrowerName; // 贷款人姓名
|
||||
|
@ApiModelProperty("首次逾期日期") |
||||
|
private String firstBeDate; // 首次逾期日期
|
||||
|
@ApiModelProperty("逾期期数") |
||||
|
private String beOverduePeriod; // 逾期期数
|
||||
|
@ApiModelProperty("逾期金额") |
||||
|
private String beOverdueMoney; // 逾期金额
|
||||
|
@ApiModelProperty("逾期金额换算期数") |
||||
|
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
|
||||
|
@ApiModelProperty("远程控制费用") |
||||
|
private String lockCarMoney; // 远程控制费用
|
||||
|
@ApiModelProperty("远程控制费实收") |
||||
|
private String lockCarRealityMoney; // 远程控制费实收
|
||||
|
@ApiModelProperty("销售订单车辆sid") |
||||
|
private String saleVehSid; // 销售订单车辆sid
|
||||
|
@ApiModelProperty("远程控制申请sid") |
||||
|
private String mainSid; // 远程控制申请sid
|
||||
|
|
||||
|
@ApiModelProperty |
||||
|
private List<LoanVehClearanceVehFile> sids; |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh; |
||||
|
|
||||
|
|
||||
|
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: LoanVehClearanceVehDto.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto <br/> |
||||
|
* Description: 车辆远程解控车辆 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "车辆远程解控车辆 数据传输对象", description = "车辆远程解控车辆 数据传输对象") |
||||
|
public class LoanVehClearanceVehDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("贷款合同编号") |
||||
|
private String loanContractNo; // 贷款合同编号
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; // 车牌号
|
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; // 资方
|
||||
|
@ApiModelProperty("资方合同号") |
||||
|
private String bankContractNo; // 资方合同号
|
||||
|
@ApiModelProperty("客户姓名") |
||||
|
private String customerName; // 客户姓名
|
||||
|
@ApiModelProperty("贷款人姓名") |
||||
|
private String borrowerName; // 贷款人姓名
|
||||
|
@ApiModelProperty("首次逾期日期") |
||||
|
private String firstBeDate; // 首次逾期日期
|
||||
|
@ApiModelProperty("逾期期数") |
||||
|
private String beOverduePeriod; // 逾期期数
|
||||
|
@ApiModelProperty("逾期金额") |
||||
|
private String beOverdueMoney; // 逾期金额
|
||||
|
@ApiModelProperty("逾期金额换算期数") |
||||
|
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
|
||||
|
@ApiModelProperty("远程控制费用") |
||||
|
private String lockCarMoney; // 远程控制费用
|
||||
|
@ApiModelProperty("远程控制费实收") |
||||
|
private String lockCarRealityMoney; // 远程控制费实收
|
||||
|
@ApiModelProperty("销售订单车辆sid") |
||||
|
private String saleVehSid; // 销售订单车辆sid
|
||||
|
@ApiModelProperty("远程控制申请sid") |
||||
|
private String mainSid; // 远程控制申请sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh; |
||||
|
|
||||
|
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: LoanVehClearanceVehFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeign <br/> |
||||
|
* Description: 车辆远程解控车辆. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "车辆远程解控车辆") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-riskcenter-LoanVehClearanceVeh", |
||||
|
name = "anrui-riskcenter", |
||||
|
path = "v1/loanvehclearanceveh", |
||||
|
fallback = LoanVehClearanceVehFeignFallback.class) |
||||
|
public interface LoanVehClearanceVehFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<LoanVehClearanceVehVo>> listPage(@RequestBody PagerQuery<LoanVehClearanceVehQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody LoanVehClearanceVehDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<LoanVehClearanceVehDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh; |
||||
|
|
||||
|
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: LoanVehClearanceVehFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeignFallback <br/> |
||||
|
* Description: 车辆远程解控车辆. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class LoanVehClearanceVehFeignFallback implements LoanVehClearanceVehFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<LoanVehClearanceVehVo>> listPage(PagerQuery<LoanVehClearanceVehQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口anrui-riskcenter/loanvehclearanceveh/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(LoanVehClearanceVehDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanvehclearanceveh/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanvehclearanceveh/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<LoanVehClearanceVehDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口anrui-riskcenter/loanvehclearanceveh/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(催收措施申请) <br/> |
||||
|
* File: LoanBeCollectionVehVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehVo <br/> |
||||
|
* Description: 逾期催收车辆 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-12 16:06:20 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "逾期催收车辆 视图数据详情", description = "逾期催收车辆 视图数据详情") |
||||
|
public class LoanVehClearanceVehFile implements Vo { |
||||
|
|
||||
|
private String name; |
||||
|
private String sid; |
||||
|
} |
@ -0,0 +1,83 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh; |
||||
|
|
||||
|
|
||||
|
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: LoanVehClearanceVehQuery.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehQuery <br/> |
||||
|
* Description: 车辆远程解控车辆 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "车辆远程解控车辆 查询条件", description = "车辆远程解控车辆 查询条件") |
||||
|
public class LoanVehClearanceVehQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("贷款合同编号") |
||||
|
private String loanContractNo; // 贷款合同编号
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; // 车牌号
|
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; // 资方
|
||||
|
@ApiModelProperty("资方合同号") |
||||
|
private String bankContractNo; // 资方合同号
|
||||
|
@ApiModelProperty("客户姓名") |
||||
|
private String customerName; // 客户姓名
|
||||
|
@ApiModelProperty("贷款人姓名") |
||||
|
private String borrowerName; // 贷款人姓名
|
||||
|
@ApiModelProperty("首次逾期日期") |
||||
|
private String firstBeDate; // 首次逾期日期
|
||||
|
@ApiModelProperty("逾期期数") |
||||
|
private String beOverduePeriod; // 逾期期数
|
||||
|
@ApiModelProperty("逾期金额") |
||||
|
private String beOverdueMoney; // 逾期金额
|
||||
|
@ApiModelProperty("逾期金额换算期数") |
||||
|
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
|
||||
|
@ApiModelProperty("远程控制费用") |
||||
|
private String lockCarMoney; // 远程控制费用
|
||||
|
@ApiModelProperty("远程控制费实收") |
||||
|
private String lockCarRealityMoney; // 远程控制费实收
|
||||
|
@ApiModelProperty("销售订单车辆sid") |
||||
|
private String saleVehSid; // 销售订单车辆sid
|
||||
|
@ApiModelProperty("远程控制申请sid") |
||||
|
private String mainSid; // 远程控制申请sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh; |
||||
|
|
||||
|
|
||||
|
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: LoanVehClearanceVehVo.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo <br/> |
||||
|
* Description: 车辆远程解控车辆 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "车辆远程解控车辆 视图数据对象", description = "车辆远程解控车辆 视图数据对象") |
||||
|
public class LoanVehClearanceVehVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("贷款合同编号") |
||||
|
private String loanContractNo; // 贷款合同编号
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String carNum; // 车牌号
|
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; // 资方
|
||||
|
@ApiModelProperty("资方合同号") |
||||
|
private String bankContractNo; // 资方合同号
|
||||
|
@ApiModelProperty("客户姓名") |
||||
|
private String customerName; // 客户姓名
|
||||
|
@ApiModelProperty("贷款人姓名") |
||||
|
private String borrowerName; // 贷款人姓名
|
||||
|
@ApiModelProperty("首次逾期日期") |
||||
|
private String firstBeDate; // 首次逾期日期
|
||||
|
@ApiModelProperty("逾期期数") |
||||
|
private String beOverduePeriod; // 逾期期数
|
||||
|
@ApiModelProperty("逾期金额") |
||||
|
private String beOverdueMoney; // 逾期金额
|
||||
|
@ApiModelProperty("逾期金额换算期数") |
||||
|
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
|
||||
|
@ApiModelProperty("远程控制费用") |
||||
|
private String lockCarMoney; // 远程控制费用
|
||||
|
@ApiModelProperty("远程控制费实收") |
||||
|
private String lockCarRealityMoney; // 远程控制费实收
|
||||
|
@ApiModelProperty("销售订单车辆sid") |
||||
|
private String saleVehSid; // 销售订单车辆sid
|
||||
|
@ApiModelProperty("远程控制申请sid") |
||||
|
private String mainSid; // 远程控制申请sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loanvehclearanceapply; |
||||
|
|
||||
|
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.loanvehclearanceapply.LoanVehClearanceApply; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(车辆远程解控申请) <br/> |
||||
|
* File: LoanVehClearanceApplyMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceapply.LoanVehClearanceApplyMapper <br/> |
||||
|
* Description: 车辆远程解控申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:56 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface LoanVehClearanceApplyMapper extends BaseMapper<LoanVehClearanceApply> { |
||||
|
|
||||
|
//@Update("update loan_veh_clearance_apply set name=#{msg} where id=#{id}")
|
||||
|
//IPage<LoanVehClearanceApplyVo> voPage(IPage<LoanVehClearanceApply> page, @Param(Constants.WRAPPER) QueryWrapper<LoanVehClearanceApply> qw);
|
||||
|
|
||||
|
IPage<LoanVehClearanceApplyVo> selectPageVo(IPage<LoanVehClearanceApply> page, @Param(Constants.WRAPPER) Wrapper<LoanVehClearanceApply> qw); |
||||
|
|
||||
|
List<LoanVehClearanceApplyVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanVehClearanceApply> qw); |
||||
|
|
||||
|
@Select("select * from loan_veh_clearance_apply") |
||||
|
List<LoanVehClearanceApplyVo> selectListVo(); |
||||
|
|
||||
|
String selectNum(String billNo); |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
<?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.loanvehclearanceapply.LoanVehClearanceApplyMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo"> |
||||
|
SELECT * FROM loan_veh_clearance_apply <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo"> |
||||
|
SELECT * FROM loan_veh_clearance_apply <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectNum" resultType="java.lang.String"> |
||||
|
select RIGHT (billNo, 4) |
||||
|
from loan_veh_clearance_apply |
||||
|
where billNo LIKE concat(#{billNo}, '%') |
||||
|
order by billNo desc |
||||
|
limit 1 |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,100 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loanvehclearanceapply; |
||||
|
|
||||
|
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.loanvehclearanceapply.LoanVehClearanceApply; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(车辆远程解控申请) <br/> |
||||
|
* File: LoanVehClearanceApplyFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceapply.LoanVehClearanceApplyRest <br/> |
||||
|
* Description: 车辆远程解控申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:56 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "车辆远程解控申请") |
||||
|
@RestController("com.yxt.anrui.riskcenter.biz.loanvehclearanceapply.LoanVehClearanceApplyRest") |
||||
|
@RequestMapping("v1/loanvehclearanceapply") |
||||
|
public class LoanVehClearanceApplyRest implements LoanVehClearanceApplyFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private LoanVehClearanceApplyService loanVehClearanceApplyService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<LoanVehClearanceApplyVo>> listPage(@RequestBody PagerQuery<LoanVehClearanceApplyQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<LoanVehClearanceApplyVo> pv = loanVehClearanceApplyService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody LoanVehClearanceApplyDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
loanVehClearanceApplyService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
loanVehClearanceApplyService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<LoanVehClearanceApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
LoanVehClearanceApplyDetailsVo vo = loanVehClearanceApplyService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,319 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loanvehclearanceapply; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import cn.hutool.core.date.DateUtil; |
||||
|
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.buscenter.api.bussalesorder.BusSalesOrder; |
||||
|
import com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrderFeign; |
||||
|
import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusSalesOrderVehicle; |
||||
|
import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusSalesOrderVehicleFeign; |
||||
|
import com.yxt.anrui.fin.api.finvehicleinvoice.FinVehicleInvoice; |
||||
|
import com.yxt.anrui.fin.api.finvehicleinvoice.FinVehicleInvoiceFeign; |
||||
|
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.loanbecollectionapply.LoanBeCollectionApply; |
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionApplyDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionApplyVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionFileVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehFile; |
||||
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFile; |
||||
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFileEnum; |
||||
|
import com.yxt.anrui.riskcenter.api.loansolutions.LoanSolutions; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.*; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFile; |
||||
|
import com.yxt.anrui.riskcenter.biz.loanfile.LoanFileService; |
||||
|
import com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigate.LoanHomevisitInvestigateService; |
||||
|
import com.yxt.anrui.riskcenter.biz.loansolutions.LoanSolutionsService; |
||||
|
import com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehService; |
||||
|
import com.yxt.common.base.config.component.FileUploadComponent; |
||||
|
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 javax.annotation.Resource; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Arrays; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(车辆远程解控申请) <br/> |
||||
|
* File: LoanVehClearanceApplyService.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceapply.LoanVehClearanceApplyService <br/> |
||||
|
* Description: 车辆远程解控申请 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:56 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class LoanVehClearanceApplyService extends MybatisBaseService<LoanVehClearanceApplyMapper, LoanVehClearanceApply> { |
||||
|
|
||||
|
@Autowired |
||||
|
private SysUserFeign sysUserFeign; |
||||
|
@Resource |
||||
|
private SysOrganizationFeign sysOrganizationFeign; |
||||
|
@Autowired |
||||
|
private FileUploadComponent fileUploadComponent; |
||||
|
@Autowired |
||||
|
private LoanFileService loanFileService; |
||||
|
@Autowired |
||||
|
private LoanVehClearanceVehService loanVehClearanceVehService; |
||||
|
@Autowired |
||||
|
private BusSalesOrderVehicleFeign busSalesOrderVehicleFeign; |
||||
|
@Autowired |
||||
|
private BusSalesOrderFeign busSalesOrderFeign; |
||||
|
@Autowired |
||||
|
private LoanSolutionsService loanSolutionsService; |
||||
|
@Autowired |
||||
|
private FinVehicleInvoiceFeign finVehicleInvoiceFeign; |
||||
|
@Autowired |
||||
|
private LoanHomevisitInvestigateService loanHomevisitInvestigateService; |
||||
|
|
||||
|
public PagerVo<LoanVehClearanceApplyVo> listPageVo(PagerQuery<LoanVehClearanceApplyQuery> pq) { |
||||
|
LoanVehClearanceApplyQuery query = pq.getParams(); |
||||
|
QueryWrapper<LoanVehClearanceApply> 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<LoanVehClearanceApplyVo> p = new PagerVo<>(); |
||||
|
return p; |
||||
|
} |
||||
|
} else { |
||||
|
PagerVo<LoanVehClearanceApplyVo> 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')" |
||||
|
); |
||||
|
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')" |
||||
|
); |
||||
|
qw.orderByDesc("createTime"); |
||||
|
IPage<LoanVehClearanceApply> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<LoanVehClearanceApplyVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<LoanVehClearanceApplyVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public String saveOrUpdateDto(LoanVehClearanceApplyDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
List<LoanVehClearanceVehDto> loanVehClearanceVehDtoList = dto.getLoanVehClearanceVehDtoList(); |
||||
|
List<LoanVehClearanceFileVo> files = dto.getFiles(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
//生成单据编号
|
||||
|
String billNo = ""; |
||||
|
String date = DateUtil.format(DateUtil.date(), "yyyyMM"); |
||||
|
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.fetchBySid(dto.getUseOrgSid()).getData(); |
||||
|
billNo = "CLYCJK" + sysOrganizationVo.getOrgCode() + date; |
||||
|
String i = baseMapper.selectNum(billNo); |
||||
|
if (StringUtils.isNotBlank(i)) { |
||||
|
billNo = Rule.getBillNo(billNo, Integer.valueOf(i).intValue()); |
||||
|
} else { |
||||
|
billNo = Rule.getBillNo(billNo, 0); |
||||
|
} |
||||
|
dto.setBillNo(billNo); |
||||
|
String sid = this.insertByDto(dto); |
||||
|
if (files != null && files.size() > 0){ |
||||
|
for (LoanVehClearanceFileVo file : files) { |
||||
|
LoanFile loanFile = new LoanFile(); |
||||
|
loanFile.setLinkSid(sid); |
||||
|
loanFile.setAttachType(LoanFileEnum.VEHCLEARANCE.getAttachType()); |
||||
|
String filePath = file.getUrl(); |
||||
|
if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
||||
|
filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), ""); |
||||
|
} |
||||
|
loanFile.setFilePath(filePath); |
||||
|
loanFileService.save(loanFile); |
||||
|
} |
||||
|
} |
||||
|
for (LoanVehClearanceVehDto loanVehClearanceVehDto : loanVehClearanceVehDtoList) { |
||||
|
loanVehClearanceVehDto.setMainSid(sid); |
||||
|
loanVehClearanceVehService.saveOrUpdateDto(loanVehClearanceVehDto); |
||||
|
} |
||||
|
return sid; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
loanFileService.delByLinkSidOrType(dtoSid,LoanFileEnum.VEHCLEARANCE.getAttachType()); |
||||
|
if (files != null && files.size() > 0){ |
||||
|
for (LoanVehClearanceFileVo file : files) { |
||||
|
LoanFile loanFile = new LoanFile(); |
||||
|
loanFile.setLinkSid(dtoSid); |
||||
|
loanFile.setAttachType(LoanFileEnum.VEHCLEARANCE.getAttachType()); |
||||
|
String filePath = file.getUrl(); |
||||
|
if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
||||
|
filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), ""); |
||||
|
} |
||||
|
loanFile.setFilePath(filePath); |
||||
|
loanFileService.save(loanFile); |
||||
|
} |
||||
|
} |
||||
|
loanVehClearanceVehService.delByMainSid(dtoSid); |
||||
|
for (LoanVehClearanceVehDto loanVehClearanceVehDto : loanVehClearanceVehDtoList) { |
||||
|
loanVehClearanceVehDto.setMainSid(dtoSid); |
||||
|
loanVehClearanceVehDto.setSid(""); |
||||
|
loanVehClearanceVehService.saveOrUpdateDto(loanVehClearanceVehDto); |
||||
|
} |
||||
|
return dtoSid; |
||||
|
} |
||||
|
|
||||
|
public String insertByDto(LoanVehClearanceApplyDto dto){ |
||||
|
LoanVehClearanceApply entity = new LoanVehClearanceApply(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
entity.setNodeState("待提交"); |
||||
|
baseMapper.insert(entity); |
||||
|
return entity.getSid(); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(LoanVehClearanceApplyDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
LoanVehClearanceApply entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public LoanVehClearanceApplyDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
LoanVehClearanceApply entity = fetchBySid(sid); |
||||
|
LoanVehClearanceApplyDetailsVo vo = new LoanVehClearanceApplyDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
vo.setCreateTime(DateUtil.formatDate(entity.getCreateTime())); |
||||
|
List<LoanFile> loanFiles = loanFileService.selectByLinkSid(sid, LoanFileEnum.VEHCLEARANCE.getAttachType()); |
||||
|
List<LoanVehClearanceFileVo> loanVehClearanceFileVos = new ArrayList<>(); |
||||
|
if (loanFiles != null && loanFiles.size() > 0){ |
||||
|
for (LoanFile loanFile : loanFiles) { |
||||
|
LoanVehClearanceFileVo loanVehClearanceFileVo = new LoanVehClearanceFileVo(); |
||||
|
String filePath = loanFile.getFilePath(); |
||||
|
String urlPrefix = fileUploadComponent.getUrlPrefix(); |
||||
|
filePath = urlPrefix + filePath; |
||||
|
loanVehClearanceFileVo.setUrl(filePath); |
||||
|
loanVehClearanceFileVos.add(loanVehClearanceFileVo); |
||||
|
} |
||||
|
} |
||||
|
vo.setFiles(loanVehClearanceFileVos); |
||||
|
List<LoanVehClearanceVehDetailsVo> loanVehClearanceVehDetailsVoList = loanVehClearanceVehService.selByMainSid(sid); |
||||
|
for (LoanVehClearanceVehDetailsVo loanVehClearanceVehDetailsVo : loanVehClearanceVehDetailsVoList) { |
||||
|
List<LoanVehClearanceVehFile> loanVehClearanceVehFiles = new ArrayList<>(); |
||||
|
BusSalesOrderVehicle busSalesOrderVehicle1 = busSalesOrderVehicleFeign.details(loanVehClearanceVehDetailsVo.getSaleVehSid()).getData(); |
||||
|
BusSalesOrder busSalesOrder = busSalesOrderFeign.fetchBySid(busSalesOrderVehicle1.getSalesOrderSid()).getData(); |
||||
|
//催收记录sid
|
||||
|
LoanVehClearanceVehFile loanVehClearanceVehFile1 = new LoanVehClearanceVehFile(); |
||||
|
loanVehClearanceVehFile1.setName("催收记录"); |
||||
|
loanVehClearanceVehFile1.setSid(loanVehClearanceVehDetailsVo.getSaleVehSid()); |
||||
|
loanVehClearanceVehFiles.add(loanVehClearanceVehFile1); |
||||
|
//开票管理sid
|
||||
|
FinVehicleInvoice finVehicleInvoice = finVehicleInvoiceFeign.selectByVinAndContractNo(busSalesOrderVehicle1.getLinkSid(), busSalesOrder.getContractNo()).getData(); |
||||
|
LoanVehClearanceVehFile loanVehClearanceVehFile2 = new LoanVehClearanceVehFile(); |
||||
|
loanVehClearanceVehFile2.setName("开票信息"); |
||||
|
loanVehClearanceVehFile2.setSid(finVehicleInvoice.getSid()); |
||||
|
loanVehClearanceVehFiles.add(loanVehClearanceVehFile2); |
||||
|
//月还明细sid
|
||||
|
LoanVehClearanceVehFile loanVehClearanceVehFile3 = new LoanVehClearanceVehFile(); |
||||
|
loanVehClearanceVehFile3.setName("月还明细"); |
||||
|
loanVehClearanceVehFile3.setSid(loanVehClearanceVehDetailsVo.getSaleVehSid()); |
||||
|
loanVehClearanceVehFiles.add(loanVehClearanceVehFile3); |
||||
|
//金融方案sid
|
||||
|
LoanSolutions loanSolutions = loanSolutionsService.selectBySaleOrderSid(busSalesOrder.getSid()); |
||||
|
LoanVehClearanceVehFile loanVehClearanceVehFile4 = new LoanVehClearanceVehFile(); |
||||
|
loanVehClearanceVehFile4.setName("金融方案"); |
||||
|
loanVehClearanceVehFile4.setSid(loanSolutions.getSid()); |
||||
|
loanVehClearanceVehFiles.add(loanVehClearanceVehFile4); |
||||
|
//家访考察报告sid
|
||||
|
String jfkcSid = loanHomevisitInvestigateService.selectByBorrSid(busSalesOrderVehicle1.getBorrowerSid()); |
||||
|
LoanVehClearanceVehFile loanVehClearanceVehFile5 = new LoanVehClearanceVehFile(); |
||||
|
loanVehClearanceVehFile5.setName("家访考察报告"); |
||||
|
loanVehClearanceVehFile5.setSid(jfkcSid); |
||||
|
loanVehClearanceVehFiles.add(loanVehClearanceVehFile5); |
||||
|
//家访考察资料sid
|
||||
|
LoanVehClearanceVehFile loanVehClearanceVehFile6 = new LoanVehClearanceVehFile(); |
||||
|
loanVehClearanceVehFile6.setName("家访考察资料"); |
||||
|
loanVehClearanceVehFile6.setSid(jfkcSid); |
||||
|
loanVehClearanceVehFiles.add(loanVehClearanceVehFile6); |
||||
|
loanVehClearanceVehDetailsVo.setSids(loanVehClearanceVehFiles); |
||||
|
} |
||||
|
vo.setLoanVehClearanceVehDetailsVoList(loanVehClearanceVehDetailsVoList); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loanvehclearanceveh; |
||||
|
|
||||
|
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.loanvehclearanceveh.LoanVehClearanceVehDetailsVo; |
||||
|
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.loanvehclearanceveh.LoanVehClearanceVeh; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(车辆远程解控申请) <br/> |
||||
|
* File: LoanVehClearanceVehMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehMapper <br/> |
||||
|
* Description: 车辆远程解控车辆. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface LoanVehClearanceVehMapper extends BaseMapper<LoanVehClearanceVeh> { |
||||
|
|
||||
|
//@Update("update loan_veh_clearance_veh set name=#{msg} where id=#{id}")
|
||||
|
//IPage<LoanVehClearanceVehVo> voPage(IPage<LoanVehClearanceVeh> page, @Param(Constants.WRAPPER) QueryWrapper<LoanVehClearanceVeh> qw);
|
||||
|
|
||||
|
IPage<LoanVehClearanceVehVo> selectPageVo(IPage<LoanVehClearanceVeh> page, @Param(Constants.WRAPPER) Wrapper<LoanVehClearanceVeh> qw); |
||||
|
|
||||
|
List<LoanVehClearanceVehVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanVehClearanceVeh> qw); |
||||
|
|
||||
|
@Select("select * from loan_veh_clearance_veh") |
||||
|
List<LoanVehClearanceVehVo> selectListVo(); |
||||
|
|
||||
|
@Delete("delete from loan_veh_clearance_veh where mainSid = #{dtoSid}") |
||||
|
void delByMainSid(String dtoSid); |
||||
|
|
||||
|
@Select("select * from loan_veh_clearance_veh where mainSid = #{sid}") |
||||
|
List<LoanVehClearanceVehDetailsVo> 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.loanvehclearanceveh.LoanVehClearanceVehMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo"> |
||||
|
SELECT * FROM loan_veh_clearance_veh <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo"> |
||||
|
SELECT * FROM loan_veh_clearance_veh <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,100 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loanvehclearanceveh; |
||||
|
|
||||
|
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.loanvehclearanceveh.LoanVehClearanceVeh; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(车辆远程解控申请) <br/> |
||||
|
* File: LoanVehClearanceVehFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehRest <br/> |
||||
|
* Description: 车辆远程解控车辆. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "车辆远程解控车辆") |
||||
|
@RestController("com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehRest") |
||||
|
@RequestMapping("v1/loanvehclearanceveh") |
||||
|
public class LoanVehClearanceVehRest implements LoanVehClearanceVehFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private LoanVehClearanceVehService loanVehClearanceVehService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<LoanVehClearanceVehVo>> listPage(@RequestBody PagerQuery<LoanVehClearanceVehQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<LoanVehClearanceVehVo> pv = loanVehClearanceVehService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody LoanVehClearanceVehDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
loanVehClearanceVehService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
loanVehClearanceVehService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<LoanVehClearanceVehDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
LoanVehClearanceVehDetailsVo vo = loanVehClearanceVehService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,118 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loanvehclearanceveh; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
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.loanvehclearanceveh.LoanVehClearanceVeh; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeign; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-riskcenter(车辆远程解控申请) <br/> |
||||
|
* File: LoanVehClearanceVehService.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehService <br/> |
||||
|
* Description: 车辆远程解控车辆 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-12-29 10:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class LoanVehClearanceVehService extends MybatisBaseService<LoanVehClearanceVehMapper, LoanVehClearanceVeh> { |
||||
|
private QueryWrapper<LoanVehClearanceVeh> createQueryWrapper(LoanVehClearanceVehQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<LoanVehClearanceVeh> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<LoanVehClearanceVehVo> listPageVo(PagerQuery<LoanVehClearanceVehQuery> pq) { |
||||
|
LoanVehClearanceVehQuery query = pq.getParams(); |
||||
|
QueryWrapper<LoanVehClearanceVeh> qw = createQueryWrapper(query); |
||||
|
IPage<LoanVehClearanceVeh> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<LoanVehClearanceVehVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<LoanVehClearanceVehVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(LoanVehClearanceVehDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(LoanVehClearanceVehDto dto){ |
||||
|
LoanVehClearanceVeh entity = new LoanVehClearanceVeh(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(LoanVehClearanceVehDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
LoanVehClearanceVeh entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public LoanVehClearanceVehDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
LoanVehClearanceVeh entity = fetchBySid(sid); |
||||
|
LoanVehClearanceVehDetailsVo vo = new LoanVehClearanceVehDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public void delByMainSid(String dtoSid) { |
||||
|
baseMapper.delByMainSid(dtoSid); |
||||
|
} |
||||
|
|
||||
|
public List<LoanVehClearanceVehDetailsVo> selByMainSid(String sid) { |
||||
|
return baseMapper.selByMainSid(sid); |
||||
|
} |
||||
|
} |
Binary file not shown.
Loading…
Reference in new issue