88 changed files with 2003 additions and 383 deletions
@ -0,0 +1,57 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine; |
|||
|
|||
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: LoanHomevisitFileexamine.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamine <br/> |
|||
* Description: 家访资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-24 09:29:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "家访资料审核", description = "家访资料审核") |
|||
@TableName("loan_homevisit_fileexamine") |
|||
public class LoanHomevisitFileexamine extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("家访考察sid") |
|||
private String homeVisitSid; |
|||
@ApiModelProperty("销售订单sid") |
|||
private String saleOrderSid; |
|||
} |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine; |
|||
|
|||
|
|||
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: LoanHomevisitFileexamineVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineVo <br/> |
|||
* Description: 家访资料审核 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-24 09:29:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "家访资料审核 视图数据详情", description = "家访资料审核 视图数据详情") |
|||
public class LoanHomevisitFileexamineDetailsVo implements Vo { |
|||
|
|||
private String sid; |
|||
private String remarks; |
|||
private String homeVisitSid; |
|||
private String saleOrderSid; |
|||
|
|||
@ApiModelProperty("定位信息") |
|||
private List<String> location; |
|||
@ApiModelProperty("房屋照片") |
|||
private List<String> house; |
|||
@ApiModelProperty("门口照片") |
|||
private List<String> doorway; |
|||
@ApiModelProperty("客厅卧室") |
|||
private List<String> indoor; |
|||
@ApiModelProperty("合影照等") |
|||
private List<String> groupPhoto; |
|||
|
|||
@ApiModelProperty("贷款人身份证") |
|||
private List<String> lenderIdCard; |
|||
@ApiModelProperty("贷款人户口本") |
|||
private List<String> lenderAccount; |
|||
@ApiModelProperty("贷款人婚姻证明") |
|||
private List<String> lenderMarriageCertificate; |
|||
@ApiModelProperty("贷款人驾驶本") |
|||
private List<String> lenderDriverBook; |
|||
@ApiModelProperty("贷款人银行流水") |
|||
private List<String> lenderBankStatement; |
|||
@ApiModelProperty("配偶身份证") |
|||
private List<String> spouseIdCard; |
|||
@ApiModelProperty("配偶户口本") |
|||
private List<String> spouseAccount; |
|||
@ApiModelProperty("担保人身份证") |
|||
private List<String> guarantorIdCard; |
|||
@ApiModelProperty("担保人户口本") |
|||
private List<String> guarantorAccount; |
|||
|
|||
@ApiModelProperty("银行卡") |
|||
private List<String> yhkImages; |
|||
@ApiModelProperty("房产") |
|||
private List<String> houseProperty; |
|||
@ApiModelProperty("车辆") |
|||
private List<String> carProperty; |
|||
|
|||
@ApiModelProperty("消贷合同编号") |
|||
private List<String> loanCotractNos; |
|||
@ApiModelProperty("资方合同编号") |
|||
private List<String> bankContractNos; |
|||
} |
@ -0,0 +1,59 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine; |
|||
|
|||
|
|||
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: LoanHomevisitFileexamineDto.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineDto <br/> |
|||
* Description: 家访资料审核 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-24 09:29:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "家访资料审核 数据传输对象", description = "家访资料审核 数据传输对象") |
|||
public class LoanHomevisitFileexamineDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
private String remarks; |
|||
@ApiModelProperty("家访考察sid") |
|||
private String homeVisitSid; |
|||
@ApiModelProperty("销售订单sid") |
|||
private String saleOrderSid; |
|||
} |
@ -0,0 +1,80 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateQuery; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo; |
|||
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: LoanHomevisitFileexamineFeign.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineFeign <br/> |
|||
* Description: 家访资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-24 09:29:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "家访资料审核") |
|||
@FeignClient( |
|||
contextId = "anrui-riskcenter-LoanHomevisitFileexamine", |
|||
name = "anrui-riskcenter", |
|||
path = "v1/loanhomevisitfileexamine", |
|||
fallback = LoanHomevisitFileexamineFeignFallback.class) |
|||
public interface LoanHomevisitFileexamineFeign { |
|||
|
|||
@ApiOperation("家访资料审核列表") |
|||
@PostMapping("/homeInforListPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<LoanHomevisitFileexamineVo>> homeInforListPage(@RequestBody PagerQuery<LoanHomevisitFileexamineQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody LoanHomevisitFileexamineDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<LoanHomevisitFileexamineDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,74 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateQuery; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo; |
|||
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: LoanHomevisitFileexamineFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineFeignFallback <br/> |
|||
* Description: 家访资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-24 09:29:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class LoanHomevisitFileexamineFeignFallback implements LoanHomevisitFileexamineFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<LoanHomevisitFileexamineVo>> homeInforListPage(PagerQuery<LoanHomevisitFileexamineQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-riskcenter/loanhomevisitfileexamine/homeInforListPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(LoanHomevisitFileexamineDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanhomevisitfileexamine/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanhomevisitfileexamine/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<LoanHomevisitFileexamineDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-riskcenter/loanhomevisitfileexamine/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,81 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine; |
|||
|
|||
|
|||
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: LoanHomevisitFileexamineQuery.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineQuery <br/> |
|||
* Description: 家访资料审核 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-24 09:29:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "家访资料审核 查询条件", description = "家访资料审核 查询条件") |
|||
public class LoanHomevisitFileexamineQuery implements Query { |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
@ApiModelProperty("销售部门名称") |
|||
private String saleDeptName; |
|||
@ApiModelProperty("销售专员名称") |
|||
private String staffName; |
|||
@ApiModelProperty("订单开始日期") |
|||
private String orderStartDate; |
|||
@ApiModelProperty("订单结束日期") |
|||
private String orderEndDate; |
|||
@ApiModelProperty("预约家访开始时间") |
|||
private String resHomeVisStartDate; |
|||
@ApiModelProperty("预约家访结束时间") |
|||
private String resHomeVisEndDate; |
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; |
|||
@ApiModelProperty("贷款人名称") |
|||
private String loanPeoName; |
|||
@ApiModelProperty("金融产品名称") |
|||
private String policyName; |
|||
@ApiModelProperty("家访专员姓名") |
|||
private String homeVisStaffName; |
|||
@ApiModelProperty("组织全路径") |
|||
private String orgSidPath; |
|||
private String menuUrl; |
|||
private String type; |
|||
private String names; |
|||
} |
@ -0,0 +1,81 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine; |
|||
|
|||
|
|||
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: LoanHomevisitFileexamineVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineVo <br/> |
|||
* Description: 家访资料审核 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-24 09:29:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "家访资料审核 视图数据对象", description = "家访资料审核 视图数据对象") |
|||
public class LoanHomevisitFileexamineVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("家访资料审核状态") |
|||
private String state; |
|||
@ApiModelProperty("订单日期") |
|||
private String createDate; |
|||
@ApiModelProperty("预约家访时间") |
|||
private String resHomeVisDate; |
|||
@ApiModelProperty("家访地点") |
|||
private String homeVisAddress; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
@ApiModelProperty("销售部门名称") |
|||
private String orgName; |
|||
@ApiModelProperty("销售专员名称") |
|||
private String staffName; |
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; |
|||
@ApiModelProperty("贷款人名称") |
|||
private String borrowerName; |
|||
@ApiModelProperty("手机号码") |
|||
private String mobile; |
|||
@ApiModelProperty("金融产品名称") |
|||
private String policyName; |
|||
@ApiModelProperty("家访专员姓名") |
|||
private String homeVisStaffName; |
|||
@ApiModelProperty("考察结果value") |
|||
private String investigateValue; |
|||
|
|||
} |
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.biz.loanhomevisitfileexamine; |
|||
|
|||
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.loanhomevisitinvestigate.LoanHomevisitInvestigate; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamine; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(家访资料审核) <br/> |
|||
* File: LoanHomevisitFileexamineMapper.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loanhomevisitfileexamine.LoanHomevisitFileexamineMapper <br/> |
|||
* Description: 家访资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-24 09:29:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface LoanHomevisitFileexamineMapper extends BaseMapper<LoanHomevisitFileexamine> { |
|||
|
|||
IPage<LoanHomevisitFileexamineVo> selectPageVo(IPage<LoanHomevisitFileexamine> page, @Param(Constants.WRAPPER) Wrapper<LoanHomevisitFileexamine> qw); |
|||
|
|||
List<LoanHomevisitFileexamineVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanHomevisitFileexamine> qw); |
|||
|
|||
@Select("select * from loan_homevisit_fileexamine") |
|||
List<LoanHomevisitFileexamineVo> selectListVo(); |
|||
} |
@ -0,0 +1,40 @@ |
|||
<?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.loanhomevisitfileexamine.LoanHomevisitFileexamineMapper"> |
|||
<select id="selectPageVo" |
|||
resultType="com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineVo"> |
|||
SELECT |
|||
lf.`sid`, |
|||
lf.state, |
|||
bo.createDate, |
|||
li.`resHomeVisDate`, |
|||
li.`homeVisAddress`, |
|||
bo.`useOrgName`, |
|||
bo.`orgName`, |
|||
bo.`staffName`, |
|||
bo.`contractNo`, |
|||
bb.`borrowerName`, |
|||
bb.`mobile`, |
|||
bb.`policyName`, |
|||
li.`homeVisStaffName`, |
|||
li.investigateValue |
|||
FROM loan_homevisit_fileexamine lf |
|||
LEFT JOIN loan_homevisit_investigate li |
|||
ON lf.homeVisitSid = li.sid |
|||
LEFT JOIN anrui_buscenter.`bus_sales_order_borrower` bb |
|||
ON li.`saleOrderBorrowerSid` = bb.`sid` |
|||
LEFT JOIN anrui_buscenter.`bus_sales_order` bo |
|||
ON li.`saleOrderSid` = bo.`sid` |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" |
|||
resultType="com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineVo"> |
|||
SELECT * FROM loan_homevisit_fileexamine |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.biz.loanhomevisitfileexamine; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateQuery; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo; |
|||
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.loanhomevisitfileexamine.LoanHomevisitFileexamine; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineQuery; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineVo; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineDto; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineFeign; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(家访资料审核) <br/> |
|||
* File: LoanHomevisitFileexamineFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loanhomevisitfileexamine.LoanHomevisitFileexamineRest <br/> |
|||
* Description: 家访资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-24 09:29:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "家访资料审核") |
|||
@RestController("com.yxt.anrui.riskcenter.biz.loanhomevisitfileexamine.LoanHomevisitFileexamineRest") |
|||
@RequestMapping("v1/loanhomevisitfileexamine") |
|||
public class LoanHomevisitFileexamineRest implements LoanHomevisitFileexamineFeign { |
|||
|
|||
@Autowired |
|||
private LoanHomevisitFileexamineService loanHomevisitFileexamineService; |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<LoanHomevisitFileexamineVo>> homeInforListPage(PagerQuery<LoanHomevisitFileexamineQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<LoanHomevisitFileexamineVo> pv = loanHomevisitFileexamineService.homeInforListPage(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody LoanHomevisitFileexamineDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
loanHomevisitFileexamineService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
loanHomevisitFileexamineService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<LoanHomevisitFileexamineDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanHomevisitFileexamineDetailsVo vo = loanHomevisitFileexamineService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,366 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.biz.loanhomevisitfileexamine; |
|||
|
|||
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.bussalesorderloancontract.BusSalesOrderLoancontractDetailsVo; |
|||
import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoancontractFeign; |
|||
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
|||
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigate; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateQuery; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanAttachTypeEnum; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileDetailsVo; |
|||
import com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigate.LoanHomevisitInvestigateService; |
|||
import com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileService; |
|||
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.loanhomevisitfileexamine.LoanHomevisitFileexamine; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineQuery; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineVo; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineDto; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineFeign; |
|||
|
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(家访资料审核) <br/> |
|||
* File: LoanHomevisitFileexamineService.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loanhomevisitfileexamine.LoanHomevisitFileexamineService <br/> |
|||
* Description: 家访资料审核 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-24 09:29:41 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class LoanHomevisitFileexamineService extends MybatisBaseService<LoanHomevisitFileexamineMapper, LoanHomevisitFileexamine> { |
|||
|
|||
@Autowired |
|||
private SysUserFeign sysUserFeign; |
|||
@Autowired |
|||
private LoanHomevisitInvestigateFileService loanHomevisitInvestigateFileService; |
|||
@Autowired |
|||
private LoanHomevisitInvestigateService loanHomevisitInvestigateService; |
|||
@Autowired |
|||
private BusSalesOrderLoancontractFeign busSalesOrderLoancontractFeign; |
|||
|
|||
public PagerVo<LoanHomevisitFileexamineVo> homeInforListPage(PagerQuery<LoanHomevisitFileexamineQuery> pq) { |
|||
LoanHomevisitFileexamineQuery query = pq.getParams(); |
|||
QueryWrapper<LoanHomevisitFileexamine> qw = new QueryWrapper<>(); |
|||
qw.eq("li.state", query.getType()); |
|||
qw.eq("bb.busNo", 303); |
|||
if (StringUtils.isNotBlank(query.getMenuUrl())) { |
|||
//=======================
|
|||
PrivilegeQuery privilegeQuery = new PrivilegeQuery(); |
|||
privilegeQuery.setOrgPath(query.getOrgSidPath()); |
|||
privilegeQuery.setMenuUrl(query.getMenuUrl()); |
|||
privilegeQuery.setUserSid(query.getUserSid()); |
|||
ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery); |
|||
if (StringUtils.isNotBlank(defaultIdReltBean.getData())) { |
|||
//数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
|
|||
String orgSidPath = query.getOrgSidPath(); |
|||
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("bo.orgSidPath", orgSidPath); |
|||
} else if ("2".equals(orgLevelKey)) { |
|||
orgSidPath = orgSidPath.substring(0, i2); |
|||
qw.like("bo.orgSidPath", orgSidPath); |
|||
} else if ("3".equals(orgLevelKey)) { |
|||
orgSidPath = orgSidPath.substring(0, i3); |
|||
qw.like("bo.orgSidPath", orgSidPath); |
|||
} else if ("4".equals(orgLevelKey)) { |
|||
orgSidPath = orgSidPath.substring(0, i4); |
|||
qw.like("bo.orgSidPath", orgSidPath); |
|||
} else if ("5".equals(orgLevelKey)) { |
|||
qw.eq("bo.createBySid", query.getUserSid()); |
|||
} else { |
|||
PagerVo<LoanHomevisitFileexamineVo> p = new PagerVo<>(); |
|||
return p; |
|||
} |
|||
} else { |
|||
PagerVo<LoanHomevisitFileexamineVo> p = new PagerVo<>(); |
|||
return p; |
|||
} |
|||
} |
|||
if (StringUtils.isNotBlank(query.getUseOrgName())) { |
|||
qw.like("bo.useOrgName", query.getUseOrgName()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getSaleDeptName())) { |
|||
qw.like("bo.orgName", query.getSaleDeptName()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getStaffName())) { |
|||
qw.like("bo.staffName", query.getStaffName()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getContractNo())) { |
|||
qw.like("bo.contractNo", query.getContractNo()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getLoanPeoName())) { |
|||
qw.like("bb.borrowerName", query.getLoanPeoName()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getPolicyName())) { |
|||
qw.like("bb.policyName", query.getPolicyName()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getHomeVisStaffName())) { |
|||
qw.like("li.homeVisStaffName", query.getHomeVisStaffName()); |
|||
} |
|||
String orderStartDate = query.getOrderStartDate(); |
|||
String orderEndDate = query.getOrderEndDate(); |
|||
qw.apply(StringUtils.isNotBlank(orderStartDate), "date_format (bo.createDate,'%Y-%m-%d') >= date_format('" + orderStartDate + "','%Y-%m-%d')"). |
|||
apply(StringUtils.isNotBlank(orderEndDate), "date_format (bo.createDate,'%Y-%m-%d') <= date_format('" + orderEndDate + "','%Y-%m-%d')" |
|||
); |
|||
String resHomeVisStartDate = query.getResHomeVisStartDate(); |
|||
String resHomeVisEndDate = query.getResHomeVisEndDate(); |
|||
qw.apply(StringUtils.isNotBlank(resHomeVisStartDate), "date_format (li.resHomeVisDate,'%Y-%m-%d') >= date_format('" + resHomeVisStartDate + "','%Y-%m-%d')"). |
|||
apply(StringUtils.isNotBlank(resHomeVisEndDate), "date_format (li.resHomeVisDate,'%Y-%m-%d') <= date_format('" + resHomeVisEndDate + "','%Y-%m-%d')" |
|||
); |
|||
IPage<LoanHomevisitFileexamine> page = PagerUtil.queryToPage(pq); |
|||
IPage<LoanHomevisitFileexamineVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<LoanHomevisitFileexamineVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(LoanHomevisitFileexamineDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(LoanHomevisitFileexamineDto dto){ |
|||
LoanHomevisitFileexamine entity = new LoanHomevisitFileexamine(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(LoanHomevisitFileexamineDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
LoanHomevisitFileexamine entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public LoanHomevisitFileexamineDetailsVo fetchDetailsVoBySid(String sid){ |
|||
LoanHomevisitFileexamineDetailsVo vo = new LoanHomevisitFileexamineDetailsVo(); |
|||
LoanHomevisitFileexamine loanHomevisitFileexamine = fetchBySid(sid); |
|||
BeanUtil.copyProperties(loanHomevisitFileexamine,vo); |
|||
LoanHomevisitInvestigateDetailsVo loanHomevisitInvestigateDetailsVo = loanHomevisitInvestigateService.fetchDetailsVoBySid(loanHomevisitFileexamine.getHomeVisitSid()); |
|||
List<BusSalesOrderLoancontractDetailsVo> busSalesOrderLoancontractDetailsVos = busSalesOrderLoancontractFeign.selectByBorrowerSid(loanHomevisitInvestigateDetailsVo.getSaleOrderBorrowerSid()).getData(); |
|||
List<String> loanCotractNos = new ArrayList<>(); |
|||
List<String> bankContractNos = new ArrayList<>(); |
|||
for (BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo : busSalesOrderLoancontractDetailsVos) { |
|||
loanCotractNos.add("消贷合同号" + "(" +busSalesOrderLoancontractDetailsVo.getLoanCotractNo() + ")"); |
|||
if (StringUtils.isBlank(busSalesOrderLoancontractDetailsVo.getBankContractNo())){ |
|||
bankContractNos.add("资方合同号(暂无)"); |
|||
}else { |
|||
bankContractNos.add("资方合同号" + "(" +busSalesOrderLoancontractDetailsVo.getLoanCotractNo() + ")"); |
|||
} |
|||
} |
|||
vo.setLoanCotractNos(loanCotractNos); |
|||
vo.setBankContractNos(bankContractNos); |
|||
//定位信息
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> dwxxImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DWXX.getAttachType()); |
|||
List<String> location = new ArrayList<>(); |
|||
if (dwxxImages != null && dwxxImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo dwxxImage : dwxxImages) { |
|||
location.add(dwxxImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setLocation(location); |
|||
//房屋照片
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> fwzpImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.FWZP.getAttachType()); |
|||
List<String> house = new ArrayList<>(); |
|||
if (fwzpImages != null && fwzpImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo fwzpImage : fwzpImages) { |
|||
house.add(fwzpImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setHouse(house); |
|||
//门口照片
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> mkzpImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.MKZP.getAttachType()); |
|||
List<String> doorway = new ArrayList<>(); |
|||
if (mkzpImages != null && mkzpImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo mkzpImage : mkzpImages) { |
|||
doorway.add(mkzpImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setDoorway(doorway); |
|||
//客厅卧室照片
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> ktwszpImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.KTWSZP.getAttachType()); |
|||
List<String> indoor = new ArrayList<>(); |
|||
if (ktwszpImages != null && ktwszpImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo ktwszpImage : ktwszpImages) { |
|||
indoor.add(ktwszpImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setIndoor(indoor); |
|||
//合影照等
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> hyzdImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.HYZD.getAttachType()); |
|||
List<String> groupPhoto = new ArrayList<>(); |
|||
if (hyzdImages != null && hyzdImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo hyzdImage : hyzdImages) { |
|||
groupPhoto.add(hyzdImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setGroupPhoto(groupPhoto); |
|||
//贷款人身份证
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> dkrsfzImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DKRSFZ.getAttachType()); |
|||
List<String> lenderIdCard = new ArrayList<>(); |
|||
if (dkrsfzImages != null && dkrsfzImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo dkrsfzImage : dkrsfzImages) { |
|||
lenderIdCard.add(dkrsfzImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setLenderIdCard(lenderIdCard); |
|||
//贷款人户口本
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> dkrhkbImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DKRHKB.getAttachType()); |
|||
List<String> lenderAccount = new ArrayList<>(); |
|||
if (dkrhkbImages != null && dkrhkbImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo dkrhkbImage : dkrhkbImages) { |
|||
lenderAccount.add(dkrhkbImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setLenderAccount(lenderAccount); |
|||
//贷款人婚姻证明
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> dkrhyzmImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DKRHYZM.getAttachType()); |
|||
List<String> lenderMarriageCertificate = new ArrayList<>(); |
|||
if (dkrhyzmImages != null && dkrhyzmImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo dkrhyzmImage : dkrhyzmImages) { |
|||
lenderMarriageCertificate.add(dkrhyzmImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setLenderMarriageCertificate(lenderMarriageCertificate); |
|||
//贷款人驾驶本
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> dkrjsbImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DKRJSB.getAttachType()); |
|||
List<String> lenderDriverBook = new ArrayList<>(); |
|||
if (dkrjsbImages != null && dkrjsbImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo dkrjsbImage : dkrjsbImages) { |
|||
lenderDriverBook.add(dkrjsbImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setLenderDriverBook(lenderDriverBook); |
|||
//贷款人银行流水
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> dkryhlsImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DKRYHLS.getAttachType()); |
|||
List<String> lenderBankStatement = new ArrayList<>(); |
|||
if (dkryhlsImages != null && dkryhlsImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo dkryhlsImage : dkryhlsImages) { |
|||
lenderBankStatement.add(dkryhlsImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setLenderBankStatement(lenderBankStatement); |
|||
//配偶身份证
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> posfzImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.POSFZ.getAttachType()); |
|||
List<String> spouseIdCard = new ArrayList<>(); |
|||
if (posfzImages != null && posfzImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo posfzImage : posfzImages) { |
|||
spouseIdCard.add(posfzImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setSpouseIdCard(spouseIdCard); |
|||
//配偶户口本
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> pohkbImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.POHKB.getAttachType()); |
|||
List<String> spouseAccount = new ArrayList<>(); |
|||
if (pohkbImages != null && pohkbImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo pohkbImage : pohkbImages) { |
|||
spouseAccount.add(pohkbImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setSpouseAccount(spouseAccount); |
|||
//担保人身份证
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> dbrsfzImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DBRSFZ.getAttachType()); |
|||
List<String> pohkbImage = new ArrayList<>(); |
|||
if (dbrsfzImages != null && dbrsfzImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo dbrsfzImage : dbrsfzImages) { |
|||
pohkbImage.add(dbrsfzImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setGuarantorIdCard(pohkbImage); |
|||
//担保人户口本
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> dbrhkbImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DBRHKB.getAttachType()); |
|||
List<String> guarantorAccount = new ArrayList<>(); |
|||
if (dbrhkbImages != null && dbrhkbImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo dbrhkbImage : dbrhkbImages) { |
|||
guarantorAccount.add(dbrhkbImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setGuarantorAccount(guarantorAccount); |
|||
//银行卡
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> yhkImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.YHK.getAttachType()); |
|||
List<String> yhkImagess = new ArrayList<>(); |
|||
if (yhkImages != null && yhkImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo yhkImage : yhkImages) { |
|||
yhkImagess.add(yhkImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setYhkImages(yhkImagess); |
|||
//房产
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> fcImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.FC.getAttachType()); |
|||
List<String> houseProperty = new ArrayList<>(); |
|||
if (fcImages != null && fcImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo fcImage : fcImages) { |
|||
houseProperty.add(fcImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setHouseProperty(houseProperty); |
|||
//车辆
|
|||
List<LoanHomevisitInvestigateFileDetailsVo> clImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.CL.getAttachType()); |
|||
List<String> carProperty = new ArrayList<>(); |
|||
if (clImages != null && clImages.size() > 0){ |
|||
for (LoanHomevisitInvestigateFileDetailsVo clImage : clImages) { |
|||
carProperty.add(clImage.getFileUrl()); |
|||
} |
|||
} |
|||
vo.setCarProperty(carProperty); |
|||
return vo; |
|||
} |
|||
} |
@ -0,0 +1,33 @@ |
|||
package com.yxt.anrui.terminal.api.risk.loanhomevisitinvestigate; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/8/26 10:51 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class AppLoanHomeVisitVo implements Vo { |
|||
|
|||
@ApiModelProperty("版本编码") |
|||
private Integer moduleVersion; |
|||
|
|||
@ApiModelProperty("apk下载地址") |
|||
private String path; |
|||
|
|||
@ApiModelProperty("0.内置Activity 1.内置WebView 2.RePlugin插件") |
|||
private String type; |
|||
|
|||
@ApiModelProperty("插件名称") |
|||
private String modulePluginName; |
|||
|
|||
@ApiModelProperty("地址") |
|||
private String moduleAction; |
|||
|
|||
private String json; |
|||
|
|||
private String requestCode; |
|||
} |
Loading…
Reference in new issue