Browse Source

PC端查看考察报告详情接口开发

master
God 1 year ago
parent
commit
e96b8092d1
  1. 193
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateDetailsPCVo.java
  2. 5
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateFeign.java
  3. 5
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateFeignFallback.java
  4. 10
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateFile.java
  5. 67
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigateotherpeo/LoanHomevisitInvestigateOtherpeoDetailsPCVo.java
  6. 7
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateRest.java
  7. 17
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateService.java

193
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateDetailsPCVo.java

@ -0,0 +1,193 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate;
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateotherpeo.LoanHomevisitInvestigateOtherpeoDetailsPCVo;
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: LoanHomevisitInvestigateVo.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo <br/>
* Description: 家访考察 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 15:13:46 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "家访考察 视图数据详情", description = "家访考察 视图数据详情")
public class LoanHomevisitInvestigateDetailsPCVo implements Vo {
private String remarks;
/*
* 借款人
* */
@ApiModelProperty("是否为实际购车人")
private Boolean isConfirmRealBuyer; // 是否为实际购车人
@ApiModelProperty("借款人姓名")
private String borrowerName; // 借款人姓名
@ApiModelProperty("借款人身份证号")
private String borrowerIdNumber; // 借款人身份证号
@ApiModelProperty("借款人手机号")
private String borrowerMobile; // 借款人手机号
@ApiModelProperty("借款人职业value")
private String borrowerCareerValue; // 借款人职业value
@ApiModelProperty("婚姻状况value")
private String maritalStatusValue; // 婚姻状况value
@ApiModelProperty("有无子女value")
private String isChildrenValue; // 有无子女value
@ApiModelProperty("借款人户籍地址")
private String borrowerDomAddress; // 借款人户籍地址
@ApiModelProperty("借款人现住址")
private String borrowerPreAddress; // 借款人现住址
@ApiModelProperty("银行卡号")
private String bankCardNo; // 银行卡号
@ApiModelProperty("开户行")
private String depositBank; // 开户行
@ApiModelProperty("银行卡照片")
private List<LoanHomevisitInvestigateFile> yhkImages = new ArrayList<>();
/*
* 配偶
* */
@ApiModelProperty("配偶姓名")
private String spouseName; // 配偶姓名
@ApiModelProperty("配偶身份证号")
private String spouseIdNumber; // 配偶身份证号
@ApiModelProperty("配偶手机号")
private String spouseMobile; // 配偶手机号
@ApiModelProperty("配偶职业value")
private String spouseCareerValue; // 配偶职业value
@ApiModelProperty("配偶户籍地址")
private String spouseDomAddress; // 配偶户籍地址
@ApiModelProperty("配偶现住址")
private String spousePreAddress; // 配偶现住址
@ApiModelProperty("紧急联系人")
private String emergencyContact; // 紧急联系人
@ApiModelProperty("紧急联系电话")
private String emergencyMobile; // 紧急联系电话
@ApiModelProperty("关系value")
private String relationshipValue; // 关系value
/*
* 其他人员
* */
@ApiModelProperty("其他人员")
private List<LoanHomevisitInvestigateOtherpeoDetailsPCVo> loanHomevisitInvestigateOtherpeoDetailsPCVoList;
/*
* 订单信息
* */
@ApiModelProperty("车辆信息确认key")
private String carConfirmKey;
@ApiModelProperty("车辆信息确认")
private String carConfirm;
@ApiModelProperty("车辆信息确认备注")
private String carRemarks;
@ApiModelProperty("金融方案信息确认key")
private String finConfirmKey;
@ApiModelProperty("金融方案信息确认")
private String finConfirm;
@ApiModelProperty("金融方案信息确认备注")
private String finRemarks;
@ApiModelProperty("金融首付比例key")
private String finDownPayKey;
@ApiModelProperty("金融首付比例")
private String finDownPay;
@ApiModelProperty("金融首付比例备注")
private String finDownPayRemarks;
/*
* 营运经历
* */
@ApiModelProperty("行业年限")
private String industryYears; // 行业年限
@ApiModelProperty("驾驶证类型value")
private String driveProTypeValue; // 驾驶证类型value
@ApiModelProperty("以往营运方式value")
private String beforeOpeTypeValue; // 以往营运方式value
/*
* 运输信息
* */
@ApiModelProperty("运输路线")
private String transportRoute; // 运输路线
@ApiModelProperty("运输方式value")
private String transportTypeValue; // 运输方式value
@ApiModelProperty("运输货物(去程)")
private String transportGoodsTrip; // 运输货物(去程)
@ApiModelProperty("运输货物(回程)")
private String transportGoodsRetTrip; // 运输货物(回程)
@ApiModelProperty("来回里程")
private String roundTripMileage; // 来回里程
@ApiModelProperty("载重(吨)")
private String deadWeight; // 载重(吨)
@ApiModelProperty("每月/趟")
private String monthlyTrip; // 每月/趟
@ApiModelProperty("每趟/元")
private String perTripYuan; // 每趟/元
@ApiModelProperty("每趟油耗")
private String fuelConsumptionPerTrip; // 每趟油耗
@ApiModelProperty("司机工资")
private String driverSalary; // 司机工资
@ApiModelProperty("过路费")
private String toll; // 过路费
@ApiModelProperty("维修保养")
private String maintenance; // 维修保养
@ApiModelProperty("预期收益")
private String expectedRevenue; // 预期收益
@ApiModelProperty("净收入")
private String netIncome; // 净收入
/*
* 资产情况
* */
@ApiModelProperty("是否有房产")
private Boolean isRealEstate; // 是否有房产
@ApiModelProperty("产权类型")
private int propertyType; // 产权类型
@ApiModelProperty("房产贷款情况")
private String realLoanSituation;
@ApiModelProperty("房产备注")
private String realRemarks; // 房产备注
@ApiModelProperty("是否是车辆")
private Boolean isCar; // 是否是车辆
@ApiModelProperty("车辆类型")
private int carType; // 车辆类型
@ApiModelProperty("车辆贷款情况")
private String carLoanSituation; // 车辆贷款情况
@ApiModelProperty("车辆备注")
private String zcCarRemarks; // 车辆备注
@ApiModelProperty("首付来源value")
private String downPaySourceValue; // 首付来源value
@ApiModelProperty("其他收入来源value")
private String otherSourceValue; // 其他收入来源value
}

5
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateFeign.java

@ -203,6 +203,11 @@ public interface LoanHomevisitInvestigateFeign {
@ResponseBody
public ResultBean<LoanHomeVisitInvestigateNewDetailsVo> details(@RequestParam("sid") String sid);
@ApiOperation("家访考察详情(PC)")
@GetMapping("/detailsPc")
@ResponseBody
public ResultBean<LoanHomevisitInvestigateDetailsPCVo> detailsPc(@RequestParam("sid") String sid);
@ApiOperation("家访考察资料详情")
@GetMapping("/details2")
@ResponseBody

5
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateFeignFallback.java

@ -196,6 +196,11 @@ public class LoanHomevisitInvestigateFeignFallback implements LoanHomevisitInves
return null;
}
@Override
public ResultBean<LoanHomevisitInvestigateDetailsPCVo> detailsPc(String sid) {
return null;
}
@Override
public ResultBean<LoanHomeVisitInvestigateInitZLVo> details2(String sid) {
return null;

10
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateFile.java

@ -0,0 +1,10 @@
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class LoanHomevisitInvestigateFile {
private String url;
}

67
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigateotherpeo/LoanHomevisitInvestigateOtherpeoDetailsPCVo.java

@ -0,0 +1,67 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateotherpeo;
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: LoanHomevisitInvestigateOtherpeoVo.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateotherpeo.LoanHomevisitInvestigateOtherpeoVo <br/>
* Description: 家访考察-其他人员 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 15:13:46 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "家访考察-其他人员 视图数据详情", description = "家访考察-其他人员 视图数据详情")
public class LoanHomevisitInvestigateOtherpeoDetailsPCVo implements Vo {
@ApiModelProperty("人员身份")
private String peoType; // 人员身份
@ApiModelProperty("姓名")
private String peoName; // 姓名
@ApiModelProperty("身份证号")
private String idNumber; // 身份证号
@ApiModelProperty("手机号")
private String mobile; // 手机号
@ApiModelProperty("户籍地址")
private String peoDomAddress; // 户籍地址
@ApiModelProperty("现住址")
private String peoPreAddress; // 现住址
@ApiModelProperty("工作单位")
private String workUnit; // 工作单位
@ApiModelProperty("职业value")
private String peoCareerValue; // 职业value
}

7
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateRest.java

@ -219,6 +219,13 @@ public class LoanHomevisitInvestigateRest implements LoanHomevisitInvestigateFei
return loanHomevisitInvestigateService.details(sid);
}
@Override
public ResultBean<LoanHomevisitInvestigateDetailsPCVo> detailsPc(String sid) {
ResultBean rb = ResultBean.fireFail();
LoanHomevisitInvestigateDetailsPCVo loanHomevisitInvestigateDetailsPCVo = loanHomevisitInvestigateService.detailsPc(sid);
return rb.success().setData(loanHomevisitInvestigateDetailsPCVo);
}
@Override
public ResultBean<LoanHomeVisitInvestigateInitZLVo> details2(String sid) {
return loanHomevisitInvestigateService.details2(sid);

17
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateService.java

@ -1992,4 +1992,21 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome
public String selectByBorrSid(String borrowerSid) {
return baseMapper.selectByBorrSid(borrowerSid);
}
public LoanHomevisitInvestigateDetailsPCVo detailsPc(String sid) {
LoanHomevisitInvestigateDetailsPCVo loanHomevisitInvestigateDetailsPCVo = new LoanHomevisitInvestigateDetailsPCVo();
LoanHomevisitInvestigate loanHomevisitInvestigate = fetchBySid(sid);
//考察意见
loanHomevisitInvestigateDetailsPCVo.setRemarks(loanHomevisitInvestigate.getRemarks());
//借款人
LoanHomevisitInvestigateCustomerDetailsVo loanHomevisitInvestigateCustomerDetailsVo = loanHomevisitInvestigateCustomerService.selByMainSid(sid);
loanHomevisitInvestigateDetailsPCVo.setIsConfirmRealBuyer(loanHomevisitInvestigateCustomerDetailsVo.getIsConfirmRealBuyer());
loanHomevisitInvestigateDetailsPCVo.setBorrowerName(loanHomevisitInvestigateCustomerDetailsVo.getBorrowerName());
loanHomevisitInvestigateDetailsPCVo.setBorrowerIdNumber(loanHomevisitInvestigateCustomerDetailsVo.getBorrowerIdNumber());
loanHomevisitInvestigateDetailsPCVo.setBorrowerMobile(loanHomevisitInvestigateCustomerDetailsVo.getBorrowerMobile());
loanHomevisitInvestigateDetailsPCVo.setBorrowerCareerValue(loanHomevisitInvestigateCustomerDetailsVo.getBorrowerCareerValue());
loanHomevisitInvestigateDetailsPCVo.setMaritalStatusValue(loanHomevisitInvestigateCustomerDetailsVo.getMaritalStatusValue());
return null;
}
}
Loading…
Cancel
Save