
14 changed files with 1022 additions and 0 deletions
@ -0,0 +1,94 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanbecollectionrecord; |
|||
|
|||
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: LoanBeCollectionRecord.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecord <br/> |
|||
* Description: 逾期催收记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-11 13:45:40 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "逾期催收记录", description = "逾期催收记录") |
|||
@TableName("loan_be_collection_record") |
|||
public class LoanBeCollectionRecord extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("创建人") |
|||
private String createByName; // 创建人
|
|||
@ApiModelProperty("催收方式key") |
|||
private String collectionTypeKey; // 催收方式key
|
|||
@ApiModelProperty("催收方式value") |
|||
private String collectionTypeValue; // 催收方式value
|
|||
@ApiModelProperty("定位坐标") |
|||
private String location; // 定位坐标
|
|||
@ApiModelProperty("定位具体位置") |
|||
private String locationStr; // 定位具体位置
|
|||
@ApiModelProperty("催收结果key") |
|||
private String collectionResultKey; // 催收结果key
|
|||
@ApiModelProperty("催收结果value") |
|||
private String collectionResultValue; // 催收结果value
|
|||
@ApiModelProperty("联系人key") |
|||
private String contactsKey; // 联系人key
|
|||
@ApiModelProperty("联系人value") |
|||
private String contactsValue; // 联系人value
|
|||
@ApiModelProperty("逾期原因") |
|||
private String beReason; // 逾期原因
|
|||
@ApiModelProperty("是否正常运营key") |
|||
private String isNormalOperKey; // 是否正常运营key
|
|||
@ApiModelProperty("是否正常运营value") |
|||
private String isNormalOperValue; // 是否正常运营value
|
|||
@ApiModelProperty("承诺还款日期") |
|||
private String promRepayDate; // 承诺还款日期
|
|||
@ApiModelProperty("承诺还款金额") |
|||
private String promRepayMoney; // 承诺还款金额
|
|||
@ApiModelProperty("预处理措施key") |
|||
private String taskHandMeasuresKey; // 预处理措施key
|
|||
@ApiModelProperty("预处理措施value") |
|||
private String taskHandMeasuresValue; // 预处理措施value
|
|||
@ApiModelProperty("销售订单车辆sid") |
|||
private String saleVehSid; // 销售订单车辆sid
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; // 分公司名称
|
|||
@ApiModelProperty("组织全路径") |
|||
private String orgPath; // 组织全路径
|
|||
|
|||
} |
@ -0,0 +1,103 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanbecollectionrecord; |
|||
|
|||
|
|||
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: LoanBeCollectionRecordVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordVo <br/> |
|||
* Description: 逾期催收记录 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-11 13:45:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "逾期催收记录 视图数据详情", description = "逾期催收记录 视图数据详情") |
|||
public class LoanBeCollectionRecordDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; // 备注
|
|||
@ApiModelProperty("创建人sid") |
|||
private String createBySid; // 创建人sid
|
|||
@ApiModelProperty("创建人") |
|||
private String createByName; // 创建人
|
|||
@ApiModelProperty("催收方式key") |
|||
private String collectionTypeKey; // 催收方式key
|
|||
@ApiModelProperty("催收方式value") |
|||
private String collectionTypeValue; // 催收方式value
|
|||
@ApiModelProperty("定位坐标") |
|||
private String location; // 定位坐标
|
|||
@ApiModelProperty("定位具体位置") |
|||
private String locationStr; // 定位具体位置
|
|||
@ApiModelProperty("催收结果key") |
|||
private String collectionResultKey; // 催收结果key
|
|||
@ApiModelProperty("催收结果value") |
|||
private String collectionResultValue; // 催收结果value @ApiModelProperty("联系人key")
|
|||
|
|||
private String contactsKey; // 联系人key
|
|||
@ApiModelProperty("联系人value") |
|||
private String contactsValue; // 联系人value
|
|||
@ApiModelProperty("逾期原因") |
|||
private String beReason; // 逾期原因
|
|||
@ApiModelProperty("是否正常运营key") |
|||
private String isNormalOperKey; // 是否正常运营key
|
|||
@ApiModelProperty("是否正常运营value") |
|||
private String isNormalOperValue; // 是否正常运营value
|
|||
@ApiModelProperty("承诺还款日期") |
|||
private String promRepayDate; // 承诺还款日期
|
|||
@ApiModelProperty("承诺还款金额") |
|||
private String promRepayMoney; // 承诺还款金额
|
|||
@ApiModelProperty("预处理措施key") |
|||
private String taskHandMeasuresKey; // 预处理措施key
|
|||
@ApiModelProperty("预处理措施value") |
|||
private String taskHandMeasuresValue; // 预处理措施value
|
|||
@ApiModelProperty("销售订单车辆sid") |
|||
private String saleVehSid; // 销售订单车辆sid
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; // 分公司名称
|
|||
@ApiModelProperty("组织全路径") |
|||
private String orgPath; // 组织全路径
|
|||
@ApiModelProperty("催收附件") |
|||
private List<LoanBeCollectionRecordFile> loanBeCollectionRecordFileList = new ArrayList<>(); // 催收附件
|
|||
} |
@ -0,0 +1,105 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanbecollectionrecord; |
|||
|
|||
|
|||
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: LoanBeCollectionRecordDto.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordDto <br/> |
|||
* Description: 逾期催收记录 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-11 13:45:40 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "逾期催收记录 数据传输对象", description = "逾期催收记录 数据传输对象") |
|||
public class LoanBeCollectionRecordDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; // 备注
|
|||
@ApiModelProperty("创建人sid") |
|||
private String createBySid; // 创建人sid
|
|||
@ApiModelProperty("创建人") |
|||
private String createByName; // 创建人
|
|||
@ApiModelProperty("催收方式key") |
|||
private String collectionTypeKey; // 催收方式key
|
|||
@ApiModelProperty("催收方式value") |
|||
private String collectionTypeValue; // 催收方式value
|
|||
@ApiModelProperty("定位坐标") |
|||
private String location; // 定位坐标
|
|||
@ApiModelProperty("定位具体位置") |
|||
private String locationStr; // 定位具体位置
|
|||
@ApiModelProperty("催收结果key") |
|||
private String collectionResultKey; // 催收结果key
|
|||
@ApiModelProperty("催收结果value") |
|||
private String collectionResultValue; // 催收结果value
|
|||
@ApiModelProperty("联系人key") |
|||
private String contactsKey; // 联系人key
|
|||
@ApiModelProperty("联系人value") |
|||
private String contactsValue; // 联系人value
|
|||
@ApiModelProperty("逾期原因") |
|||
private String beReason; // 逾期原因
|
|||
@ApiModelProperty("是否正常运营key") |
|||
private String isNormalOperKey; // 是否正常运营key
|
|||
@ApiModelProperty("是否正常运营value") |
|||
private String isNormalOperValue; // 是否正常运营value
|
|||
@ApiModelProperty("承诺还款日期") |
|||
private String promRepayDate; // 承诺还款日期
|
|||
@ApiModelProperty("承诺还款金额") |
|||
private String promRepayMoney; // 承诺还款金额
|
|||
@ApiModelProperty("预处理措施key") |
|||
private String taskHandMeasuresKey; // 预处理措施key
|
|||
@ApiModelProperty("预处理措施value") |
|||
private String taskHandMeasuresValue; // 预处理措施value
|
|||
@ApiModelProperty("销售订单车辆sid") |
|||
private String saleVehSid; // 销售订单车辆sid
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; // 分公司名称
|
|||
@ApiModelProperty("组织全路径") |
|||
private String orgPath; // 组织全路径
|
|||
@ApiModelProperty("销售订单车辆sid") |
|||
private List<String> saleVehSids; // 销售订单车辆sid
|
|||
@ApiModelProperty("催收附件") |
|||
private List<LoanBeCollectionRecordFile> loanBeCollectionRecordFileList = new ArrayList<>(); // 催收附件
|
|||
} |
@ -0,0 +1,83 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanbecollectionrecord; |
|||
|
|||
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: LoanBeCollectionRecordFeign.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordFeign <br/> |
|||
* Description: 逾期催收记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-11 13:45:40 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "逾期催收记录") |
|||
@FeignClient( |
|||
contextId = "anrui-riskcenter-LoanBeCollectionRecord", |
|||
name = "anrui-riskcenter", |
|||
path = "v1/loanbecollectionrecord", |
|||
fallback = LoanBeCollectionRecordFeignFallback.class) |
|||
public interface LoanBeCollectionRecordFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<LoanBeCollectionRecordVo>> listPage(@RequestBody PagerQuery<LoanBeCollectionRecordQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody LoanBeCollectionRecordDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<LoanBeCollectionRecordDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("初始化") |
|||
@GetMapping("/init/{saleVehSid}") |
|||
@ResponseBody |
|||
public ResultBean<LoanBeCollectionRecordInit> init(@PathVariable("saleVehSid") String saleVehSid); |
|||
} |
@ -0,0 +1,77 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanbecollectionrecord; |
|||
|
|||
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: LoanBeCollectionRecordFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordFeignFallback <br/> |
|||
* Description: 逾期催收记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-11 13:45:40 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class LoanBeCollectionRecordFeignFallback implements LoanBeCollectionRecordFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<LoanBeCollectionRecordVo>> listPage(PagerQuery<LoanBeCollectionRecordQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-riskcenter/loanbecollectionrecord/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(LoanBeCollectionRecordDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanbecollectionrecord/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanbecollectionrecord/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<LoanBeCollectionRecordDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-riskcenter/loanbecollectionrecord/fetchDetailsBySid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<LoanBeCollectionRecordInit> init(String saleVehSid) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,11 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanbecollectionrecord; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class LoanBeCollectionRecordFile { |
|||
|
|||
@ApiModelProperty("路径") |
|||
private String url; |
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanbecollectionrecord; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class LoanBeCollectionRecordInit { |
|||
|
|||
@ApiModelProperty("贷款人名称") |
|||
private String borrowerName; |
|||
@ApiModelProperty("贷款人联系电话") |
|||
private String borrowerMobile; |
|||
@ApiModelProperty("贷款人配偶姓名") |
|||
private String spouseName; |
|||
@ApiModelProperty("贷款人配偶联系电话") |
|||
private String spouseMobile; |
|||
} |
@ -0,0 +1,91 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanbecollectionrecord; |
|||
|
|||
|
|||
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: LoanBeCollectionRecordQuery.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordQuery <br/> |
|||
* Description: 逾期催收记录 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-11 13:45:40 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "逾期催收记录 查询条件", description = "逾期催收记录 查询条件") |
|||
public class LoanBeCollectionRecordQuery implements Query { |
|||
|
|||
@ApiModelProperty("创建人") |
|||
private String createByName; // 创建人
|
|||
@ApiModelProperty("催收方式key") |
|||
private String collectionTypeKey; // 催收方式key
|
|||
@ApiModelProperty("催收方式value") |
|||
private String collectionTypeValue; // 催收方式value
|
|||
@ApiModelProperty("定位坐标") |
|||
private String location; // 定位坐标
|
|||
@ApiModelProperty("定位具体位置") |
|||
private String locationStr; // 定位具体位置
|
|||
@ApiModelProperty("催收结果key") |
|||
private String collectionResultKey; // 催收结果key
|
|||
@ApiModelProperty("催收结果value") |
|||
private String collectionResultValue; // 催收结果value
|
|||
@ApiModelProperty("联系人key") |
|||
private String contactsKey; // 联系人key
|
|||
@ApiModelProperty("联系人value") |
|||
private String contactsValue; // 联系人value
|
|||
@ApiModelProperty("逾期原因") |
|||
private String beReason; // 逾期原因
|
|||
@ApiModelProperty("是否正常运营key") |
|||
private String isNormalOperKey; // 是否正常运营key
|
|||
@ApiModelProperty("是否正常运营value") |
|||
private String isNormalOperValue; // 是否正常运营value
|
|||
@ApiModelProperty("承诺还款日期") |
|||
private String promRepayDate; // 承诺还款日期
|
|||
@ApiModelProperty("承诺还款金额") |
|||
private String promRepayMoney; // 承诺还款金额
|
|||
@ApiModelProperty("预处理措施key") |
|||
private String taskHandMeasuresKey; // 预处理措施key
|
|||
@ApiModelProperty("预处理措施value") |
|||
private String taskHandMeasuresValue; // 预处理措施value
|
|||
@ApiModelProperty("销售订单车辆sid") |
|||
private String saleVehSid; // 销售订单车辆sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; // 分公司名称
|
|||
@ApiModelProperty("组织全路径") |
|||
private String orgPath; // 组织全路径
|
|||
|
|||
} |
@ -0,0 +1,93 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanbecollectionrecord; |
|||
|
|||
|
|||
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: LoanBeCollectionRecordVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordVo <br/> |
|||
* Description: 逾期催收记录 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-11 13:45:40 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "逾期催收记录 视图数据对象", description = "逾期催收记录 视图数据对象") |
|||
public class LoanBeCollectionRecordVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("创建人") |
|||
private String createByName; // 创建人
|
|||
@ApiModelProperty("催收方式key") |
|||
private String collectionTypeKey; // 催收方式key
|
|||
@ApiModelProperty("催收方式value") |
|||
private String collectionTypeValue; // 催收方式value
|
|||
@ApiModelProperty("定位坐标") |
|||
private String location; // 定位坐标
|
|||
@ApiModelProperty("定位具体位置") |
|||
private String locationStr; // 定位具体位置
|
|||
@ApiModelProperty("催收结果key") |
|||
private String collectionResultKey; // 催收结果key
|
|||
@ApiModelProperty("催收结果value") |
|||
private String collectionResultValue; // 催收结果value
|
|||
@ApiModelProperty("联系人key") |
|||
private String contactsKey; // 联系人key
|
|||
@ApiModelProperty("联系人value") |
|||
private String contactsValue; // 联系人value
|
|||
@ApiModelProperty("逾期原因") |
|||
private String beReason; // 逾期原因
|
|||
@ApiModelProperty("是否正常运营key") |
|||
private String isNormalOperKey; // 是否正常运营key
|
|||
@ApiModelProperty("是否正常运营value") |
|||
private String isNormalOperValue; // 是否正常运营value
|
|||
@ApiModelProperty("承诺还款日期") |
|||
private String promRepayDate; // 承诺还款日期
|
|||
@ApiModelProperty("承诺还款金额") |
|||
private String promRepayMoney; // 承诺还款金额
|
|||
@ApiModelProperty("预处理措施key") |
|||
private String taskHandMeasuresKey; // 预处理措施key
|
|||
@ApiModelProperty("预处理措施value") |
|||
private String taskHandMeasuresValue; // 预处理措施value
|
|||
@ApiModelProperty("销售订单车辆sid") |
|||
private String saleVehSid; // 销售订单车辆sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; // 分公司名称
|
|||
@ApiModelProperty("组织全路径") |
|||
private String orgPath; // 组织全路径
|
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.biz.loanbecollectionrecord; |
|||
|
|||
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.loanbecollectionrecord.LoanBeCollectionRecord; |
|||
import com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(逾期催收记录) <br/> |
|||
* File: LoanBeCollectionRecordMapper.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loanbecollectionrecord.LoanBeCollectionRecordMapper <br/> |
|||
* Description: 逾期催收记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-11 13:45:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface LoanBeCollectionRecordMapper extends BaseMapper<LoanBeCollectionRecord> { |
|||
|
|||
//@Update("update loan_be_collection_record set name=#{msg} where id=#{id}")
|
|||
//IPage<LoanBeCollectionRecordVo> voPage(IPage<LoanBeCollectionRecord> page, @Param(Constants.WRAPPER) QueryWrapper<LoanBeCollectionRecord> qw);
|
|||
|
|||
IPage<LoanBeCollectionRecordVo> selectPageVo(IPage<LoanBeCollectionRecord> page, @Param(Constants.WRAPPER) Wrapper<LoanBeCollectionRecord> qw); |
|||
|
|||
List<LoanBeCollectionRecordVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanBeCollectionRecord> qw); |
|||
|
|||
@Select("select * from loan_be_collection_record") |
|||
List<LoanBeCollectionRecordVo> selectListVo(); |
|||
} |
@ -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.loanbecollectionrecord.LoanBeCollectionRecordMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordVo"> |
|||
SELECT * FROM loan_be_collection_record <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loanbecollectionrecord.LoanBeCollectionRecordVo"> |
|||
SELECT * FROM loan_be_collection_record <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,102 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.biz.loanbecollectionrecord; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanbecollectionrecord.*; |
|||
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; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(逾期催收记录) <br/> |
|||
* File: LoanBeCollectionRecordFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loanbecollectionrecord.LoanBeCollectionRecordRest <br/> |
|||
* Description: 逾期催收记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-11 13:45:40 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "逾期催收记录") |
|||
@RestController("com.yxt.anrui.riskcenter.biz.loanbecollectionrecord.LoanBeCollectionRecordRest") |
|||
@RequestMapping("v1/loanbecollectionrecord") |
|||
public class LoanBeCollectionRecordRest implements LoanBeCollectionRecordFeign { |
|||
|
|||
@Autowired |
|||
private LoanBeCollectionRecordService loanBeCollectionRecordService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<LoanBeCollectionRecordVo>> listPage(@RequestBody PagerQuery<LoanBeCollectionRecordQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<LoanBeCollectionRecordVo> pv = loanBeCollectionRecordService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody LoanBeCollectionRecordDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
loanBeCollectionRecordService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
loanBeCollectionRecordService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<LoanBeCollectionRecordDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanBeCollectionRecordDetailsVo vo = loanBeCollectionRecordService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<LoanBeCollectionRecordInit> init(String saleVehSid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
loanBeCollectionRecordService.init(saleVehSid); |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,167 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.biz.loanbecollectionrecord; |
|||
|
|||
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.buscenter.api.bussalesordervehicle.BusSalesOrderVehicle; |
|||
import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusSalesOrderVehicleFeign; |
|||
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
|||
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
|||
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|||
import com.yxt.anrui.riskcenter.api.loanbecollectionrecord.*; |
|||
import com.yxt.anrui.riskcenter.api.loanfile.LoanFile; |
|||
import com.yxt.anrui.riskcenter.api.loanfile.LoanFileEnum; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatecustomer.LoanHomevisitInvestigateCustomer; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatecustomer.LoanHomevisitInvestigateCustomerDetailsVo; |
|||
import com.yxt.anrui.riskcenter.biz.loanfile.LoanFileService; |
|||
import com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatecustomer.LoanHomevisitInvestigateCustomerService; |
|||
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 java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(逾期催收记录) <br/> |
|||
* File: LoanBeCollectionRecordService.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loanbecollectionrecord.LoanBeCollectionRecordService <br/> |
|||
* Description: 逾期催收记录 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-11 13:45:40 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class LoanBeCollectionRecordService extends MybatisBaseService<LoanBeCollectionRecordMapper, LoanBeCollectionRecord> { |
|||
|
|||
@Autowired |
|||
private BusSalesOrderVehicleFeign busSalesOrderVehicleFeign; |
|||
@Autowired |
|||
private LoanHomevisitInvestigateCustomerService loanHomevisitInvestigateCustomerService; |
|||
@Autowired |
|||
private SysStaffOrgFeign sysStaffOrgFeign; |
|||
@Autowired |
|||
private SysOrganizationFeign sysOrganizationFeign; |
|||
@Autowired |
|||
private LoanFileService loanFileService; |
|||
@Autowired |
|||
private FileUploadComponent fileUploadComponent; |
|||
|
|||
private QueryWrapper<LoanBeCollectionRecord> createQueryWrapper(LoanBeCollectionRecordQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<LoanBeCollectionRecord> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<LoanBeCollectionRecordVo> listPageVo(PagerQuery<LoanBeCollectionRecordQuery> pq) { |
|||
LoanBeCollectionRecordQuery query = pq.getParams(); |
|||
QueryWrapper<LoanBeCollectionRecord> qw = createQueryWrapper(query); |
|||
IPage<LoanBeCollectionRecord> page = PagerUtil.queryToPage(pq); |
|||
IPage<LoanBeCollectionRecordVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<LoanBeCollectionRecordVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(LoanBeCollectionRecordDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
List<LoanBeCollectionRecordFile> loanBeCollectionRecordFileList = dto.getLoanBeCollectionRecordFileList(); |
|||
List<String> saleVehSids = dto.getSaleVehSids(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
for (String saleVehSid : saleVehSids) { |
|||
String orgPath = dto.getOrgPath(); |
|||
String useOrgSid = sysStaffOrgFeign.getOrgSidByPath(orgPath).getData(); |
|||
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.fetchBySid(useOrgSid).getData(); |
|||
dto.setUseOrgName(sysOrganizationVo.getName()); |
|||
dto.setUseOrgSid(useOrgSid); |
|||
dto.setSaleVehSid(saleVehSid); |
|||
String sid = this.insertByDto(dto); |
|||
if (loanBeCollectionRecordFileList.size() > 0){ |
|||
for (LoanBeCollectionRecordFile loanBeCollectionRecordFile : loanBeCollectionRecordFileList) { |
|||
LoanFile loanFile = new LoanFile(); |
|||
loanFile.setLinkSid(sid); |
|||
loanFile.setAttachType(LoanFileEnum.BECOLLECTIONRECORD.getAttachType()); |
|||
String filePath = loanBeCollectionRecordFile.getUrl(); |
|||
if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|||
filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), ""); |
|||
} |
|||
loanFile.setFilePath(filePath); |
|||
loanFileService.save(loanFile); |
|||
} |
|||
} |
|||
} |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public String insertByDto(LoanBeCollectionRecordDto dto){ |
|||
LoanBeCollectionRecord entity = new LoanBeCollectionRecord(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
return entity.getSid(); |
|||
} |
|||
|
|||
public void updateByDto(LoanBeCollectionRecordDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
LoanBeCollectionRecord entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public LoanBeCollectionRecordDetailsVo fetchDetailsVoBySid(String sid){ |
|||
LoanBeCollectionRecord entity = fetchBySid(sid); |
|||
LoanBeCollectionRecordDetailsVo vo = new LoanBeCollectionRecordDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
|
|||
public LoanBeCollectionRecordInit init(String saleVehSid) { |
|||
LoanBeCollectionRecordInit loanBeCollectionRecordInit = new LoanBeCollectionRecordInit(); |
|||
BusSalesOrderVehicle busSalesOrderVehicle = busSalesOrderVehicleFeign.details(saleVehSid).getData(); |
|||
LoanHomevisitInvestigateCustomerDetailsVo loanHomevisitInvestigateCustomerDetailsVo = loanHomevisitInvestigateCustomerService.fetchByBorrowerSid(busSalesOrderVehicle.getBorrowerSid()); |
|||
loanBeCollectionRecordInit.setBorrowerName(loanHomevisitInvestigateCustomerDetailsVo.getBorrowerName()); |
|||
loanBeCollectionRecordInit.setBorrowerMobile(loanHomevisitInvestigateCustomerDetailsVo.getBorrowerMobile()); |
|||
loanBeCollectionRecordInit.setSpouseName(loanHomevisitInvestigateCustomerDetailsVo.getSpouseName()); |
|||
loanBeCollectionRecordInit.setSpouseMobile(loanHomevisitInvestigateCustomerDetailsVo.getSpouseMobile()); |
|||
return loanBeCollectionRecordInit; |
|||
} |
|||
} |
Loading…
Reference in new issue