Browse Source

Merge remote-tracking branch 'origin/master'

master
yunuo970428 2 years ago
parent
commit
0fede1ae94
  1. 3
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bushandoverwait/BusHandoverWait.java
  2. 3
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bushandoverwait/BusHandoverWaitDto.java
  3. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderborrower/BusSalesOrderBorrower.java
  4. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderborrower/BusSalesOrderBorrowerDetailsVo.java
  5. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderborrower/BusSalesOrderBorrowerDto.java
  6. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderborrower/BusSalesOrderBorrowerQuery.java
  7. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderborrower/BusSalesOrderBorrowerVo.java
  8. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontract.java
  9. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontractDetailsVo.java
  10. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontractDto.java
  11. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontractQuery.java
  12. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontractVo.java
  13. 2
      anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/bushandoverprepare/BusHandoverPrepareService.java
  14. 1
      anrui-flowable/anrui-flowable-api/src/main/java/com/yxt/anrui/flowable/api/utils/ProcDefEnum.java
  15. 5
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateFeign.java
  16. 5
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateFeignFallback.java
  17. 45
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateQuery.java
  18. 37
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateVo.java
  19. 50
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanAttachTypeEnum.java
  20. 62
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFile.java
  21. 90
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileAllDto.java
  22. 63
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileDetailsVo.java
  23. 63
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileDto.java
  24. 78
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileFeign.java
  25. 72
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileFeignFallback.java
  26. 61
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileQuery.java
  27. 63
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileVo.java
  28. 4
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loansolutions/LoanSolutionsFeign.java
  29. 5
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loansolutions/LoanSolutionsFeignFallback.java
  30. 1
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loantemplate/LoanTemplateSolutionsDto.java
  31. 22
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateMapper.java
  32. 45
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateMapper.xml
  33. 5
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateRest.java
  34. 99
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateService.java
  35. 65
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileMapper.java
  36. 13
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileMapper.xml
  37. 93
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileRest.java
  38. 303
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileService.java
  39. 4
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitprep/LoanHomevisitPrepService.java
  40. 5
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsRest.java
  41. 214
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsService.java
  42. 3
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loantemplate/LoanTemplateService.java

3
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bushandoverwait/BusHandoverWait.java

@ -47,5 +47,6 @@ public class BusHandoverWait extends BaseEntity {
@ApiModelProperty("分公司sid")
private String useOrgSid;
@ApiModelProperty("组织全路径")
private String orgSidPath;
}

3
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bushandoverwait/BusHandoverWaitDto.java

@ -52,5 +52,6 @@ public class BusHandoverWaitDto implements Dto {
@ApiModelProperty("分公司sid")
private String useOrgSid;
@ApiModelProperty("组织全路径")
private String orgSidPath;
}

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderborrower/BusSalesOrderBorrower.java

@ -60,6 +60,8 @@ public class BusSalesOrderBorrower extends BaseEntity {
private String mobile; // 手机号码
@ApiModelProperty("台数")
private Integer vehCount; // 台数
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("金融产品名称")
private String policyName; // 金融产品名称
@ApiModelProperty("业务阶段编码")

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderborrower/BusSalesOrderBorrowerDetailsVo.java

@ -61,6 +61,8 @@ public class BusSalesOrderBorrowerDetailsVo implements Vo {
private String mobile; // 手机号码
@ApiModelProperty("台数")
private Integer vehCount; // 台数
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("金融产品名称")
private String policyName; // 金融产品名称
@ApiModelProperty("业务阶段编码")

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderborrower/BusSalesOrderBorrowerDto.java

@ -61,6 +61,8 @@ public class BusSalesOrderBorrowerDto implements Dto {
private String mobile; // 手机号码
@ApiModelProperty("台数")
private Integer vehCount; // 台数
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("金融产品名称")
private String policyName; // 金融产品名称
@ApiModelProperty("业务阶段编码")

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderborrower/BusSalesOrderBorrowerQuery.java

@ -59,6 +59,8 @@ public class BusSalesOrderBorrowerQuery implements Query {
private String mobile; // 手机号码
@ApiModelProperty("台数")
private Integer vehCount; // 台数
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("金融产品名称")
private String policyName; // 金融产品名称
@ApiModelProperty("业务阶段编码")

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderborrower/BusSalesOrderBorrowerVo.java

@ -61,6 +61,8 @@ public class BusSalesOrderBorrowerVo implements Vo {
private String mobile; // 手机号码
@ApiModelProperty("台数")
private Integer vehCount; // 台数
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("金融产品名称")
private String policyName; // 金融产品名称
@ApiModelProperty("业务阶段编码")

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontract.java

@ -62,6 +62,8 @@ public class BusSalesOrderLoancontract extends BaseEntity {
private String loanCotractNo; // 消贷合同编号
@ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("金融产品名称")
private String policyName; // 金融产品名称
@ApiModelProperty("业务阶段编码")

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontractDetailsVo.java

@ -63,6 +63,8 @@ public class BusSalesOrderLoancontractDetailsVo implements Vo {
private String loanCotractNo; // 消贷合同编号
@ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("金融产品名称")
private String policyName; // 金融产品名称
@ApiModelProperty("业务阶段编码")

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontractDto.java

@ -63,6 +63,8 @@ public class BusSalesOrderLoancontractDto implements Dto {
private String loanCotractNo; // 消贷合同编号
@ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("金融产品名称")
private String policyName; // 金融产品名称
@ApiModelProperty("业务阶段编码")

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontractQuery.java

@ -61,6 +61,8 @@ public class BusSalesOrderLoancontractQuery implements Query {
private String loanCotractNo; // 消贷合同编号
@ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("金融产品名称")
private String policyName; // 金融产品名称
@ApiModelProperty("业务阶段编码")

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontractVo.java

@ -63,6 +63,8 @@ public class BusSalesOrderLoancontractVo implements Vo {
private String loanCotractNo; // 消贷合同编号
@ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("金融产品名称")
private String policyName; // 金融产品名称
@ApiModelProperty("业务阶段编码")

2
anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/bushandoverprepare/BusHandoverPrepareService.java

@ -570,6 +570,8 @@ public class BusHandoverPrepareService extends MybatisBaseService<BusHandoverPre
busHandoverWaitDto.setUseOrgSid(busHandoverPrepare.getUseOrgSid());
busHandoverWaitDto.setPayTypeKey(busHandoverPrepare.getPayTypeKey());
busHandoverWaitDto.setPayTypeValue(busHandoverPrepare.getPayType());
busHandoverWaitDto.setCreateBySid(busHandoverPrepare.getCreateBySid());
busHandoverWaitDto.setOrgSidPath(busHandoverPrepare.getOrgSidPath());
busHandoverWaitService.saveAll(busHandoverWaitDto);
}
}

1
anrui-flowable/anrui-flowable-api/src/main/java/com/yxt/anrui/flowable/api/utils/ProcDefEnum.java

@ -51,6 +51,7 @@ public enum ProcDefEnum {
LOANOTHERPOLICYRECORDAPPLY("其它融产品备案", "process_7pptyzfc:1:2272524"),
LOANCREDITAPPEALAPPLY("信用审核申诉", "process_gygvxw8k:1:2847504"),
DEALERFILINGAPPLY("经销商备案", "process_jdu35cog:3:2577504"),
LOANTEMPLATEAPPLY("定制金融方案", "process_9q5omebi:2:2685008"),
/******************************测试流程id*********************************************/

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

@ -61,6 +61,11 @@ public interface LoanHomevisitInvestigateFeign {
@ResponseBody
public ResultBean<PagerVo<LoanHomevisitInvestigateVo>> listPage(@RequestBody PagerQuery<LoanHomevisitInvestigateQuery> pq);
@ApiOperation("是否通过")
@PostMapping("/isPassThrough")
@ResponseBody
public ResultBean isPassThrough(@RequestParam("sid") String sid,@RequestParam("pass") String pass);
@ApiOperation("新增或修改")
@PostMapping("/save")
@ResponseBody

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

@ -54,6 +54,11 @@ public class LoanHomevisitInvestigateFeignFallback implements LoanHomevisitInves
return rb.setMsg("接口anrui-riskcenter/loanhomevisitinvestigate/listPage无法访问");
}
@Override
public ResultBean isPassThrough(String sid, String pass) {
return null;
}
@Override
public ResultBean save(LoanHomevisitInvestigateDto dto){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanhomevisitinvestigate/save无法访问");

45
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateQuery.java

@ -49,21 +49,32 @@ import lombok.Data;
@ApiModel(value = "家访考察 查询条件", description = "家访考察 查询条件")
public class LoanHomevisitInvestigateQuery implements Query {
@ApiModelProperty("预约家访时间")
private String resHomeVisDate; // 预约家访时间
@ApiModelProperty("家访地点")
private String homeVisAddress; // 家访地点
@ApiModelProperty("家访专员用户sid")
private String homeVisUserSid; // 家访专员用户sid
@ApiModelProperty("家访专员姓名")
private String homeVisStaffName; // 家访专员姓名
@ApiModelProperty("考察结果key")
private String investigateKey; // 考察结果key
@ApiModelProperty("考察结果value")
private String investigateValue; // 考察结果value
@ApiModelProperty("销售订单sid")
private String saleOrderSid; // 销售订单sid
@ApiModelProperty("销售订单贷款人表sid")
private String saleOrderBorrowerSid; // 销售订单贷款人表sid
@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 menuSid;
private String type;
}

37
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigate/LoanHomevisitInvestigateVo.java

@ -26,12 +26,15 @@
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* Project: anrui-riskcenter(家访考察) <br/>
* File: LoanHomevisitInvestigateVo.java <br/>
@ -51,21 +54,29 @@ public class LoanHomevisitInvestigateVo implements Vo {
private String sid; // sid
@ApiModelProperty("订单日期")
private String createDate;
@ApiModelProperty("预约家访时间")
private String resHomeVisDate; // 预约家访时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date resHomeVisDate;
@ApiModelProperty("家访地点")
private String homeVisAddress; // 家访地点
@ApiModelProperty("家访专员用户sid")
private String homeVisUserSid; // 家访专员用户sid
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("考察结果key")
private String investigateKey; // 考察结果key
private String homeVisStaffName;
@ApiModelProperty("考察结果value")
private String investigateValue; // 考察结果value
@ApiModelProperty("销售订单sid")
private String saleOrderSid; // 销售订单sid
@ApiModelProperty("销售订单贷款人表sid")
private String saleOrderBorrowerSid; // 销售订单贷款人表sid
private String investigateValue;
}

50
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanAttachTypeEnum.java

@ -0,0 +1,50 @@
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile;
/**
* @Author dimengzhe
* @Date 2022/2/12 10:13
* @Description 附件类型枚举
*/
public enum LoanAttachTypeEnum {
DWXX("001", "定位信息"),
FWZP("002", "房屋照片"),
MKZP("003", "门口照片"),
KTWSZP("004", "客厅卧室照片"),
HYZD("005", "合影照等"),
DKRSFZ("006", "贷款人身份证"),
DKRHKB("007", "贷款人户口本"),
DKRHYZM("008", "贷款人婚姻证明"),
DKRJSB("009", "贷款人驾驶本"),
DKRYHLS("010", "贷款人银行流水"),
POSFZ("011", "配偶身份证"),
POHKB("012", "配偶户口本"),
DBRSFZ("013", "担保人身份证"),
DBRHKB("014", "担保人户口本"),
YHK("015", "银行卡"),
FC("016", "房产"),
CL("017", "车辆");
/**
* 附件类型
*/
private final String attachType;
/**
* 代号
*/
private final String mark;
LoanAttachTypeEnum(String attachType, String mark) {
this.attachType = attachType;
this.mark = mark;
}
public String getAttachType() {
return attachType;
}
public String getMark() {
return mark;
}
}

62
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFile.java

@ -0,0 +1,62 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile;
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: LoanHomevisitInvestigateFile.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFile <br/>
* Description: 家访考察附件. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "家访考察附件", description = "家访考察附件")
@TableName("loan_homevisit_investigate_file")
public class LoanHomevisitInvestigateFile extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty("创建人接口")
private String createByName; // 创建人接口
@ApiModelProperty("家访考察sid")
private String mainSid; // 家访考察sid
@ApiModelProperty("附件路径")
private String fileUrl; // 附件路径
@ApiModelProperty("附件类型")
private String attachType; // 附件类型
}

90
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileAllDto.java

@ -0,0 +1,90 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile;
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: LoanHomevisitInvestigateFileDto.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileDto <br/>
* Description: 家访考察附件 数据传输对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "家访考察附件 数据传输对象", description = "家访考察附件 数据传输对象")
public class LoanHomevisitInvestigateFileAllDto implements Dto {
private String sid; // sid
@ApiModelProperty("定位信息")
private List<String> dwxxImages = new ArrayList<>();
@ApiModelProperty("房屋照片")
private List<String> fwzpImages = new ArrayList<>();
@ApiModelProperty("门口照片")
private List<String> mkzpImages = new ArrayList<>();
@ApiModelProperty("客厅卧室照片")
private List<String> ktwszpImages = new ArrayList<>();
@ApiModelProperty("合影照等")
private List<String> hyzdImages = new ArrayList<>();
@ApiModelProperty("贷款人身份证")
private List<String> dkrsfzImages = new ArrayList<>();
@ApiModelProperty("贷款人户口本")
private List<String> dkrhkbImages = new ArrayList<>();
@ApiModelProperty("贷款人婚姻证明")
private List<String> dkrhyzmImages = new ArrayList<>();
@ApiModelProperty("贷款人驾驶本")
private List<String> dkrjsbImages = new ArrayList<>();
@ApiModelProperty("贷款人银行流水")
private List<String> dkryhlsImages = new ArrayList<>();
@ApiModelProperty("配偶身份证")
private List<String> posfzImages = new ArrayList<>();
@ApiModelProperty("配偶户口本")
private List<String> pohkbImages = new ArrayList<>();
@ApiModelProperty("担保人身份证")
private List<String> dbrsfzImages = new ArrayList<>();
@ApiModelProperty("担保人户口本")
private List<String> dbrhkbImages = new ArrayList<>();
@ApiModelProperty("银行卡")
private List<String> yhkImages = new ArrayList<>();
@ApiModelProperty("房产")
private List<String> fcImages = new ArrayList<>();
@ApiModelProperty("车辆")
private List<String> clImages = new ArrayList<>();
}

63
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileDetailsVo.java

@ -0,0 +1,63 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile;
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: LoanHomevisitInvestigateFileVo.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileVo <br/>
* Description: 家访考察附件 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "家访考察附件 视图数据详情", description = "家访考察附件 视图数据详情")
public class LoanHomevisitInvestigateFileDetailsVo implements Vo {
private String sid; // sid
@ApiModelProperty("创建人接口")
private String createByName; // 创建人接口
@ApiModelProperty("家访考察sid")
private String mainSid; // 家访考察sid
@ApiModelProperty("附件路径")
private String fileUrl; // 附件路径
@ApiModelProperty("附件类型")
private String attachType; // 附件类型
}

63
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileDto.java

@ -0,0 +1,63 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile;
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: LoanHomevisitInvestigateFileDto.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileDto <br/>
* Description: 家访考察附件 数据传输对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "家访考察附件 数据传输对象", description = "家访考察附件 数据传输对象")
public class LoanHomevisitInvestigateFileDto implements Dto {
private String sid; // sid
@ApiModelProperty("创建人接口")
private String createByName; // 创建人接口
@ApiModelProperty("家访考察sid")
private String mainSid; // 家访考察sid
@ApiModelProperty("附件路径")
private String fileUrl; // 附件路径
@ApiModelProperty("附件类型")
private String attachType; // 附件类型
}

78
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileFeign.java

@ -0,0 +1,78 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile;
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: LoanHomevisitInvestigateFileFeign.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileFeign <br/>
* Description: 家访考察附件. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Api(tags = "家访考察附件")
@FeignClient(
contextId = "anrui-riskcenter-LoanHomevisitInvestigateFile",
name = "anrui-riskcenter",
path = "v1/loanhomevisitinvestigatefile",
fallback = LoanHomevisitInvestigateFileFeignFallback.class)
public interface LoanHomevisitInvestigateFileFeign {
@ApiOperation("根据条件分页查询数据的列表")
@PostMapping("/listPage")
@ResponseBody
public ResultBean<PagerVo<LoanHomevisitInvestigateFileVo>> listPage(@RequestBody PagerQuery<LoanHomevisitInvestigateFileQuery> pq);
@ApiOperation("新增或修改")
@PostMapping("/save")
@ResponseBody
public ResultBean save(@RequestBody LoanHomevisitInvestigateFileAllDto dto);
@ApiOperation("根据sid删除记录")
@DeleteMapping("/delBySids")
@ResponseBody
public ResultBean delBySids(@RequestBody String[] sids);
@ApiOperation("根据SID获取一条记录")
@GetMapping("/fetchDetailsBySid/{sid}")
@ResponseBody
public ResultBean<LoanHomevisitInvestigateFileDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid);
}

72
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileFeignFallback.java

@ -0,0 +1,72 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile;
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: LoanHomevisitInvestigateFileFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileFeignFallback <br/>
* Description: 家访考察附件. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Component
public class LoanHomevisitInvestigateFileFeignFallback implements LoanHomevisitInvestigateFileFeign {
@Override
public ResultBean<PagerVo<LoanHomevisitInvestigateFileVo>> listPage(PagerQuery<LoanHomevisitInvestigateFileQuery> pq){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loanhomevisitinvestigatefile/listPage无法访问");
}
@Override
public ResultBean save(LoanHomevisitInvestigateFileAllDto dto){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanhomevisitinvestigatefile/save无法访问");
}
@Override
public ResultBean delBySids( String[] sids){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanhomevisitinvestigatefile/delBySids无法访问");
}
@Override
public ResultBean<LoanHomevisitInvestigateFileDetailsVo> fetchDetailsBySid(String sid){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loanhomevisitinvestigatefile/fetchDetailsBySid无法访问");
}
}

61
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileQuery.java

@ -0,0 +1,61 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile;
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: LoanHomevisitInvestigateFileQuery.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileQuery <br/>
* Description: 家访考察附件 查询条件. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "家访考察附件 查询条件", description = "家访考察附件 查询条件")
public class LoanHomevisitInvestigateFileQuery implements Query {
@ApiModelProperty("创建人接口")
private String createByName; // 创建人接口
@ApiModelProperty("家访考察sid")
private String mainSid; // 家访考察sid
@ApiModelProperty("附件路径")
private String fileUrl; // 附件路径
@ApiModelProperty("附件类型")
private String attachType; // 附件类型
}

63
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileVo.java

@ -0,0 +1,63 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile;
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: LoanHomevisitInvestigateFileVo.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileVo <br/>
* Description: 家访考察附件 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "家访考察附件 视图数据对象", description = "家访考察附件 视图数据对象")
public class LoanHomevisitInvestigateFileVo implements Vo {
private String sid; // sid
@ApiModelProperty("创建人接口")
private String createByName; // 创建人接口
@ApiModelProperty("家访考察sid")
private String mainSid; // 家访考察sid
@ApiModelProperty("附件路径")
private String fileUrl; // 附件路径
@ApiModelProperty("附件类型")
private String attachType; // 附件类型
}

4
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loansolutions/LoanSolutionsFeign.java

@ -41,6 +41,10 @@ public interface LoanSolutionsFeign {
@PostMapping("/save")
ResultBean save(@RequestBody SolutionsDto dto);
@ApiOperation("保存金融方案2")
@PostMapping("/save2")
ResultBean save2(@RequestBody SolutionsDto dto);
@ApiOperation("根据销售订单sid查询金融方案")
@GetMapping("/selectDetailss")
ResultBean<SolutionsDetailsVo> selectDetailss(@RequestParam("businessSid") String businessSid);

5
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loansolutions/LoanSolutionsFeignFallback.java

@ -34,6 +34,11 @@ public class LoanSolutionsFeignFallback implements LoanSolutionsFeign {
return null;
}
@Override
public ResultBean save2(SolutionsDto dto) {
return null;
}
@Override
public ResultBean<SolutionsDetailsVo> selectDetailss(String businessSid) {
return null;

1
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loantemplate/LoanTemplateSolutionsDto.java

@ -19,6 +19,7 @@ public class LoanTemplateSolutionsDto implements Dto {
private String isPack;
@ApiModelProperty("产品政策名称")
private String policyName;
private String policySid;
@ApiModelProperty("主车发票价")
private String mainVehicleAmount;

22
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateMapper.java

@ -34,6 +34,7 @@ import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigate;
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo;
import org.apache.ibatis.annotations.Update;
import java.util.List;
@ -53,13 +54,16 @@ import java.util.List;
@Mapper
public interface LoanHomevisitInvestigateMapper extends BaseMapper<LoanHomevisitInvestigate> {
//@Update("update loan_homevisit_investigate set name=#{msg} where id=#{id}")
//IPage<LoanHomevisitInvestigateVo> voPage(IPage<LoanHomevisitInvestigate> page, @Param(Constants.WRAPPER) QueryWrapper<LoanHomevisitInvestigate> qw);
IPage<LoanHomevisitInvestigateVo> selectPageVo(IPage<LoanHomevisitInvestigate> page, @Param(Constants.WRAPPER) Wrapper<LoanHomevisitInvestigate> qw);
List<LoanHomevisitInvestigateVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanHomevisitInvestigate> qw);
@Select("select * from loan_homevisit_investigate")
List<LoanHomevisitInvestigateVo> selectListVo();
//@Update("update loan_homevisit_investigate set name=#{msg} where id=#{id}")
//IPage<LoanHomevisitInvestigateVo> voPage(IPage<LoanHomevisitInvestigate> page, @Param(Constants.WRAPPER) QueryWrapper<LoanHomevisitInvestigate> qw);
IPage<LoanHomevisitInvestigateVo> selectPageVo(IPage<LoanHomevisitInvestigate> page, @Param(Constants.WRAPPER) Wrapper<LoanHomevisitInvestigate> qw);
List<LoanHomevisitInvestigateVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanHomevisitInvestigate> qw);
@Select("select * from loan_homevisit_investigate")
List<LoanHomevisitInvestigateVo> selectListVo();
@Update("update loan_homevisit_investigate set state = '2',investigateKey = #{investigateKey},investigateValue = #{investigateValue} where sid = #{sid}")
void isPassThrough(@Param("sid") String sid, @Param("investigateKey") String investigateKey, @Param("investigateValue") String investigateValue);
}

45
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateMapper.xml

@ -1,13 +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.loanhomevisitinvestigate.LoanHomevisitInvestigateMapper">
<!-- <where> ${ew.sqlSegment} </where>-->
<!-- ${ew.customSqlSegment} -->
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo">
SELECT * FROM loan_homevisit_investigate <where> ${ew.sqlSegment} </where>
</select>
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo">
SELECT * FROM loan_homevisit_investigate <where> ${ew.sqlSegment} </where>
</select>
<!-- <where> ${ew.sqlSegment} </where>-->
<!-- ${ew.customSqlSegment} -->
<select id="selectPageVo"
resultType="com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo">
SELECT
li.`sid`,
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_investigate li
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.loanhomevisitinvestigate.LoanHomevisitInvestigateVo">
SELECT * FROM loan_homevisit_investigate
<where>
${ew.sqlSegment}
</where>
</select>
</mapper>

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

@ -71,6 +71,11 @@ public class LoanHomevisitInvestigateRest implements LoanHomevisitInvestigateFei
return rb.success().setData(pv);
}
@Override
public ResultBean isPassThrough(String sid, String pass) {
return loanHomevisitInvestigateService.isPassThrough(sid,pass);
}
@Override
@ApiOperation("新增或修改")
@PostMapping("/save")

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

@ -28,6 +28,9 @@ package com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigate;
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.portal.api.sysuser.PrivilegeQuery;
import com.yxt.anrui.portal.api.sysuser.SysUserFeign;
import com.yxt.anrui.riskcenter.api.loanhomevisitprep.LoanHomevisitPrepVo;
import org.apache.commons.lang3.StringUtils;
import com.yxt.common.base.service.MybatisBaseService;
import com.yxt.common.base.utils.PagerUtil;
@ -41,6 +44,7 @@ import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvest
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateDto;
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@ -60,16 +64,85 @@ import java.util.List;
*/
@Service
public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHomevisitInvestigateMapper, LoanHomevisitInvestigate> {
private QueryWrapper<LoanHomevisitInvestigate> createQueryWrapper(LoanHomevisitInvestigateQuery query) {
// todo: 这里根据具体业务调整查询条件
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
QueryWrapper<LoanHomevisitInvestigate> qw = new QueryWrapper<>();
return qw;
}
@Autowired
private SysUserFeign sysUserFeign;
public PagerVo<LoanHomevisitInvestigateVo> listPageVo(PagerQuery<LoanHomevisitInvestigateQuery> pq) {
LoanHomevisitInvestigateQuery query = pq.getParams();
QueryWrapper<LoanHomevisitInvestigate> qw = createQueryWrapper(query);
QueryWrapper<LoanHomevisitInvestigate> qw = new QueryWrapper<>();
qw.eq("li.state", query.getType());
qw.eq("bb.busNo", 302);
if (StringUtils.isNotBlank(query.getMenuSid())) {
//=======================
PrivilegeQuery privilegeQuery = new PrivilegeQuery();
privilegeQuery.setOrgPath(query.getOrgSidPath());
privilegeQuery.setMenuUrl(query.getMenuSid());
privilegeQuery.setUserSid(query.getUserSid());
ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery);
if (StringUtils.isNotBlank(defaultIdReltBean.getData())) {
//数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
String orgSidPath = query.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<LoanHomevisitInvestigateVo> p = new PagerVo<>();
return p;
}
} else {
PagerVo<LoanHomevisitInvestigateVo> 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<LoanHomevisitInvestigate> page = PagerUtil.queryToPage(pq);
IPage<LoanHomevisitInvestigateVo> pagging = baseMapper.selectPageVo(page, qw);
PagerVo<LoanHomevisitInvestigateVo> p = PagerUtil.pageToVo(pagging, null);
@ -107,4 +180,14 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome
BeanUtil.copyProperties(entity, vo);
return vo;
}
public ResultBean isPassThrough(String sid, String pass) {
ResultBean rb = ResultBean.fireFail();
if ("1".equals(pass)){//1通过 2不通过
baseMapper.isPassThrough(sid,"001","通过");
}else {
baseMapper.isPassThrough(sid,"002","不通过");
}
return rb.success();
}
}

65
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileMapper.java

@ -0,0 +1,65 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatefile;
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.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFile;
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileVo;
import java.util.List;
/**
* Project: anrui-riskcenter(家访考察附件) <br/>
* File: LoanHomevisitInvestigateFileMapper.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileMapper <br/>
* Description: 家访考察附件. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Mapper
public interface LoanHomevisitInvestigateFileMapper extends BaseMapper<LoanHomevisitInvestigateFile> {
//@Update("update loan_homevisit_investigate_file set name=#{msg} where id=#{id}")
//IPage<LoanHomevisitInvestigateFileVo> voPage(IPage<LoanHomevisitInvestigateFile> page, @Param(Constants.WRAPPER) QueryWrapper<LoanHomevisitInvestigateFile> qw);
IPage<LoanHomevisitInvestigateFileVo> selectPageVo(IPage<LoanHomevisitInvestigateFile> page, @Param(Constants.WRAPPER) Wrapper<LoanHomevisitInvestigateFile> qw);
List<LoanHomevisitInvestigateFileVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanHomevisitInvestigateFile> qw);
@Select("select * from loan_homevisit_investigate_file")
List<LoanHomevisitInvestigateFileVo> selectListVo();
}

13
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileMapper.xml

@ -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.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileMapper">
<!-- <where> ${ew.sqlSegment} </where>-->
<!-- ${ew.customSqlSegment} -->
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileVo">
SELECT * FROM loan_homevisit_investigate_file <where> ${ew.sqlSegment} </where>
</select>
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileVo">
SELECT * FROM loan_homevisit_investigate_file <where> ${ew.sqlSegment} </where>
</select>
</mapper>

93
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileRest.java

@ -0,0 +1,93 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatefile;
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.*;
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: LoanHomevisitInvestigateFileFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileRest <br/>
* Description: 家访考察附件. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Api(tags = "家访考察附件")
@RestController("com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileRest")
@RequestMapping("v1/loanhomevisitinvestigatefile")
public class LoanHomevisitInvestigateFileRest implements LoanHomevisitInvestigateFileFeign {
@Autowired
private LoanHomevisitInvestigateFileService loanHomevisitInvestigateFileService;
@Override
@ApiOperation("根据条件分页查询数据的列表")
@PostMapping("/listPage")
public ResultBean<PagerVo<LoanHomevisitInvestigateFileVo>> listPage(@RequestBody PagerQuery<LoanHomevisitInvestigateFileQuery> pq){
ResultBean rb = ResultBean.fireFail();
PagerVo<LoanHomevisitInvestigateFileVo> pv = loanHomevisitInvestigateFileService.listPageVo(pq);
return rb.success().setData(pv);
}
@Override
@ApiOperation("新增或修改")
@PostMapping("/save")
public ResultBean save(@RequestBody LoanHomevisitInvestigateFileAllDto dto){
return loanHomevisitInvestigateFileService.saveOrUpdateAllDto(dto);
}
@Override
@ApiOperation("根据sid批量删除")
@PostMapping("/delBySids")
public ResultBean delBySids(@RequestBody String[] sids){
ResultBean rb = ResultBean.fireFail();
loanHomevisitInvestigateFileService.delBySids(sids);
return rb.success();
}
@Override
@ApiOperation("根据SID获取一条记录")
@GetMapping("/fetchDetailsBySid/{sid}")
public ResultBean<LoanHomevisitInvestigateFileDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){
ResultBean rb = ResultBean.fireFail();
LoanHomevisitInvestigateFileDetailsVo vo = loanHomevisitInvestigateFileService.fetchDetailsVoBySid(sid);
return rb.success().setData(vo);
}
}

303
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigatefile/LoanHomevisitInvestigateFileService.java

@ -0,0 +1,303 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatefile;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.*;
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: LoanHomevisitInvestigateFileService.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileService <br/>
* Description: 家访考察附件 业务逻辑. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-08-10 17:28:23 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Service
public class LoanHomevisitInvestigateFileService extends MybatisBaseService<LoanHomevisitInvestigateFileMapper, LoanHomevisitInvestigateFile> {
@Autowired
private FileUploadComponent fileUploadComponent;
private QueryWrapper<LoanHomevisitInvestigateFile> createQueryWrapper(LoanHomevisitInvestigateFileQuery query) {
// todo: 这里根据具体业务调整查询条件
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
QueryWrapper<LoanHomevisitInvestigateFile> qw = new QueryWrapper<>();
return qw;
}
public PagerVo<LoanHomevisitInvestigateFileVo> listPageVo(PagerQuery<LoanHomevisitInvestigateFileQuery> pq) {
LoanHomevisitInvestigateFileQuery query = pq.getParams();
QueryWrapper<LoanHomevisitInvestigateFile> qw = createQueryWrapper(query);
IPage<LoanHomevisitInvestigateFile> page = PagerUtil.queryToPage(pq);
IPage<LoanHomevisitInvestigateFileVo> pagging = baseMapper.selectPageVo(page, qw);
PagerVo<LoanHomevisitInvestigateFileVo> p = PagerUtil.pageToVo(pagging, null);
return p;
}
public void saveOrUpdateDto(LoanHomevisitInvestigateFileDto dto){
String dtoSid = dto.getSid();
if (StringUtils.isBlank(dtoSid)) {
this.insertByDto(dto);
return;
}
this.updateByDto(dto);
}
public void insertByDto(LoanHomevisitInvestigateFileDto dto){
LoanHomevisitInvestigateFile entity = new LoanHomevisitInvestigateFile();
BeanUtil.copyProperties(dto, entity, "id", "sid");
baseMapper.insert(entity);
}
public void updateByDto(LoanHomevisitInvestigateFileDto dto){
String dtoSid = dto.getSid();
if (StringUtils.isBlank(dtoSid)) {
return;
}
LoanHomevisitInvestigateFile entity = fetchBySid(dtoSid);
BeanUtil.copyProperties(dto, entity, "id", "sid");
baseMapper.updateById(entity);
}
public LoanHomevisitInvestigateFileDetailsVo fetchDetailsVoBySid(String sid){
LoanHomevisitInvestigateFile entity = fetchBySid(sid);
LoanHomevisitInvestigateFileDetailsVo vo = new LoanHomevisitInvestigateFileDetailsVo();
BeanUtil.copyProperties(entity, vo);
return vo;
}
public ResultBean saveOrUpdateAllDto(LoanHomevisitInvestigateFileAllDto dto) {
ResultBean rb = ResultBean.fireFail();
//定位信息
for (String dwxxImage : dto.getDwxxImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (dwxxImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
dwxxImage = dwxxImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(dwxxImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DWXX.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//房屋照片
for (String fwzpImage : dto.getFwzpImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (fwzpImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
fwzpImage = fwzpImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(fwzpImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.FWZP.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//门口照片
for (String mkzpImage : dto.getMkzpImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (mkzpImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
mkzpImage = mkzpImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(mkzpImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.MKZP.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//客厅卧室照片
for (String ktwszpImage : dto.getKtwszpImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (ktwszpImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
ktwszpImage = ktwszpImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(ktwszpImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.KTWSZP.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//合影照等
for (String hyzdImage : dto.getHyzdImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (hyzdImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
hyzdImage = hyzdImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(hyzdImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.HYZD.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//贷款人身份证
for (String dkrsfzImage : dto.getDkrsfzImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (dkrsfzImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
dkrsfzImage = dkrsfzImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(dkrsfzImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRSFZ.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//贷款人户口本
for (String dkrhkbImage : dto.getDkrhkbImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (dkrhkbImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
dkrhkbImage = dkrhkbImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(dkrhkbImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRHKB.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//贷款人婚姻证明
for (String dkrhyzmImage : dto.getDkrhyzmImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (dkrhyzmImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
dkrhyzmImage = dkrhyzmImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(dkrhyzmImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRHYZM.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//贷款人驾驶本
for (String dkrjsbImage : dto.getDkrjsbImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (dkrjsbImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
dkrjsbImage = dkrjsbImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(dkrjsbImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRJSB.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//贷款人银行流水
for (String dkryhlsImage : dto.getDkryhlsImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (dkryhlsImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
dkryhlsImage = dkryhlsImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(dkryhlsImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRYHLS.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//配偶身份证
for (String posfzImage : dto.getPosfzImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (posfzImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
posfzImage = posfzImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(posfzImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.POSFZ.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//配偶户口本
for (String pohkbImage : dto.getPohkbImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (pohkbImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
pohkbImage = pohkbImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(pohkbImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.POHKB.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//担保人身份证
for (String dbrsfzImage : dto.getDbrsfzImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (dbrsfzImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
dbrsfzImage = dbrsfzImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(dbrsfzImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DBRSFZ.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//担保人户口本
for (String dbrhkbImage : dto.getDbrhkbImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (dbrhkbImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
dbrhkbImage = dbrhkbImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(dbrhkbImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DBRHKB.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//银行卡
for (String yhkImage : dto.getYhkImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (yhkImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
yhkImage = yhkImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(yhkImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.YHK.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//房产
for (String fcImage : dto.getFcImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (fcImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
fcImage = fcImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(fcImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.FC.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
//车辆
for (String clImage : dto.getClImages()) {
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto();
if (clImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
clImage = clImage.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanHomevisitInvestigateFileDto.setFileUrl(clImage);
loanHomevisitInvestigateFileDto.setSid(dto.getSid());
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.CL.getAttachType());
saveOrUpdateDto(loanHomevisitInvestigateFileDto);
}
return rb.success();
}
}

4
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitprep/LoanHomevisitPrepService.java

@ -132,8 +132,8 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr
}
String orderStartDate = query.getOrderStartDate();
String orderEndDate = query.getOrderEndDate();
qw.apply(StringUtils.isNotBlank(orderStartDate), "date_format (orderDate,'%Y-%m-%d') >= date_format('" + orderStartDate + "','%Y-%m-%d')").
apply(StringUtils.isNotBlank(orderEndDate), "date_format (orderDate,'%Y-%m-%d') <= date_format('" + orderEndDate + "','%Y-%m-%d')"
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')"
);
IPage<LoanHomevisitPrep> page = PagerUtil.queryToPage(pq);
IPage<LoanHomevisitPrepVo> pagging = baseMapper.selectPageVo(page, qw);

5
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsRest.java

@ -45,6 +45,11 @@ public class LoanSolutionsRest implements LoanSolutionsFeign {
return loanSolutionsService.saveDto(dto);
}
@Override
public ResultBean save2(SolutionsDto dto) {
return loanSolutionsService.save2(dto);
}
@Override
public ResultBean<SolutionsDetailsVo> selectDetailss(String businessSid) {
return loanSolutionsService.selectDetailss(businessSid);

214
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsService.java

@ -701,7 +701,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
}
}
//是否勾选保险
if (dto.isPremiumCb()) {
/* if (dto.isPremiumCb()) {
//保险
String premium = dto.getPremium();
if (StringUtils.isBlank(premium)) {
@ -720,9 +720,9 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
}
}
}
}*/
//是否勾选购置税
if (dto.isPurchaseTaxCb()) {
/*if (dto.isPurchaseTaxCb()) {
//购置税
String purchaseTax = dto.getPurchaseTax();
if (StringUtils.isBlank(purchaseTax)) {
@ -741,7 +741,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
return rb.setMsg("抵顶购置税不能超过购置税");
}
}
}
}*/
//产品期数
String loanPeriod = dto.getLoanPeriod();
if (StringUtils.isBlank(loanPeriod)) {
@ -772,10 +772,16 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
loanSolutions.setTrailerAmount(dto.isTrailerAmountCb() ? new BigDecimal(dto.getTrailerAmount()) : BigDecimal.ZERO);
//是否勾选保险
loanSolutions.setPremiumCb(dto.isPremiumCb() ? 1 : 0);
loanSolutions.setPremium(StringUtils.isNotBlank(dto.getPremium()) ? new BigDecimal(dto.getPremium()) : BigDecimal.ZERO);
if (StringUtils.isNotBlank(dto.getPremium())) {
loanSolutions.setPremium(new BigDecimal(dto.getPremium()));
}
// loanSolutions.setPremium(StringUtils.isNotBlank(dto.getPremium()) ? new BigDecimal(dto.getPremium()) : BigDecimal.ZERO);
//是否勾选购置税
loanSolutions.setPurchaseTaxCb(dto.isPurchaseTaxCb() ? 1 : 0);
loanSolutions.setPurchaseTax(StringUtils.isNotBlank(dto.getPurchaseTax()) ? new BigDecimal(dto.getPurchaseTax()) : BigDecimal.ZERO);
// loanSolutions.setPurchaseTax(StringUtils.isNotBlank(dto.getPurchaseTax()) ? new BigDecimal(dto.getPurchaseTax()) : BigDecimal.ZERO);
if (StringUtils.isNotBlank(dto.getPurchaseTax())) {
loanSolutions.setPurchaseTax(new BigDecimal(dto.getPurchaseTax()));
}
//项目融资总额
String loanTotal = dto.getLoanTotal();
loanSolutions.setLoanTotal(StringUtils.isNotBlank(loanTotal) ? new BigDecimal(loanTotal) : BigDecimal.ZERO);
@ -1020,8 +1026,16 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
CalculateVo calculateVo = new CalculateVo();
//计算的初始化
BigDecimal loanTotal = BigDecimal.ZERO;//融资项目总额
//产品贷款金额
BigDecimal loanAmount = BigDecimal.ZERO;//贷款金额
BigDecimal loanDownPay = BigDecimal.ZERO;//方案汇总融资首付
BigDecimal downPayAmountsRatio = BigDecimal.ZERO;//实际首付比例
BigDecimal loanAmountTotal = BigDecimal.ZERO;//总贷款金额
//其他融期数
String otherPolicyPeriod = query.getOtherPolicyPeriod();
BigDecimal loanPayMoneyAll = BigDecimal.ZERO;
BigDecimal vehTotalPrice = BigDecimal.ZERO;
BigDecimal interstAll = BigDecimal.ZERO;
BigDecimal yueAll = BigDecimal.ZERO;
/***************相关计算及字段*****************/
//主车发票价
@ -1076,10 +1090,21 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
}
} else {//不打包
if (StringUtils.isNotBlank(premium)) {
vehTotalPrice = vehTotalPrice.add(new BigDecimal(premium));
}
if (StringUtils.isNotBlank(purchaseTax)) {
vehTotalPrice = vehTotalPrice.add(new BigDecimal(purchaseTax));
}
}
//首付金额不为空:
if (StringUtils.isNotBlank(downPayAmount)) {
//贷款金额 = 融资项目总额-首付金额。
loanAmount = loanTotal.subtract(new BigDecimal(downPayAmount));
//方案汇总融资首付 = 融资首付+首付金额-其他融贷款金额
loanDownPay = loanDownPay.add(new BigDecimal(downPayAmount));
loanAmountTotal = loanAmountTotal.add(loanAmount);
}
//计算主方案的年利率、月还金额、利息总额
//如果有不是0的厂家贴息,则年利率需要计算。如果厂家贴息空或者0,则年利率需要根据产品政策的sid获取
@ -1098,9 +1123,14 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
BigDecimal loanPayMoneyNew = loanPayMoney.subtract(new BigDecimal(factoryDiscount).divide(new BigDecimal(loanPeriod), 4, BigDecimal.ROUND_HALF_UP));
//根据新月还rate计算新年利率。
BigDecimal policyYearRatioNew = simpleCalculateRate(new BigDecimal(loanPeriod).doubleValue(), loanPayMoneyNew.doubleValue(), -loanAmount.doubleValue()).multiply(new BigDecimal("12")).multiply(new BigDecimal("100"));
policyYearRatioNew = policyYearRatioNew.setScale(2,BigDecimal.ROUND_HALF_UP);
loanPayMoneyNew = loanPayMoneyNew.setScale(0,BigDecimal.ROUND_HALF_UP);
loanInterestNew = loanInterestNew.setScale(0,BigDecimal.ROUND_HALF_UP);
//四舍五入取两位小数
policyYearRatioNew = policyYearRatioNew.setScale(2, BigDecimal.ROUND_HALF_UP);
//四舍五入取整数
loanPayMoneyNew = loanPayMoneyNew.setScale(0, BigDecimal.ROUND_HALF_UP);
loanInterestNew = loanInterestNew.setScale(0, BigDecimal.ROUND_HALF_UP);
loanPayMoneyAll = loanPayMoneyAll.add(loanPayMoneyNew);
interstAll = interstAll.add(loanInterestNew);
yueAll = yueAll.add(loanPayMoneyNew.multiply(new BigDecimal(loanPeriod)));
calculateVo.setLoanInterest(loanInterestNew.toString());
calculateVo.setPolicyYearRatio(policyYearRatioNew.toString());
calculateVo.setLoanPayMoney(loanPayMoneyNew.toString());
@ -1108,18 +1138,163 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
} else {
//年利率
BigDecimal policyYearRatio = loanFinPolicy.getYearRatio();
//根据年利率和期数、贷款金额计算月还
//根据年利率和期数、贷款金额计算月还
BigDecimal loanPayMoney = calculatePMT(policyYearRatio.divide(new BigDecimal("100"), 4, BigDecimal.ROUND_CEILING).doubleValue(), new BigDecimal(loanPeriod).doubleValue(), loanAmount.doubleValue());
//根据月还计算利息总额=月还金额 乘以 期数 减去 本金
//根据月还计算利息总额=月还金额 乘以 期数 减去 本金
BigDecimal loanInterest = loanPayMoney.multiply(new BigDecimal(loanPeriod)).subtract(loanAmount);
loanPayMoney = loanPayMoney.setScale(0,BigDecimal.ROUND_HALF_UP);
loanInterest = loanInterest.setScale(0,BigDecimal.ROUND_HALF_UP);
//四舍五入取整数
loanPayMoney = loanPayMoney.setScale(0, BigDecimal.ROUND_HALF_UP);
loanInterest = loanInterest.setScale(0, BigDecimal.ROUND_HALF_UP);
loanPayMoneyAll = loanPayMoneyAll.add(loanPayMoney);
interstAll = interstAll.add(loanInterest);
yueAll = yueAll.add(loanPayMoney.multiply(new BigDecimal(loanPeriod)));
calculateVo.setLoanInterest(loanInterest.toString());
calculateVo.setPolicyYearRatio(policyYearRatio.toString());
calculateVo.setLoanPayMoney(loanPayMoney.toString());
}
//是否包含其他融
boolean otherPolicyState = query.isOtherPolicyState();
if (otherPolicyState) {//包含
otherPolicyPeriod = query.getOtherPolicyPeriod();
if (StringUtils.isBlank(otherPolicyPeriod)) {
return rb.setMsg("请选择其他融");
}
String otherPolicyYearRatio = query.getOtherPolicyYearRatio();
String otherPolicyAmount = query.getOtherPolicyAmount();
if (StringUtils.isBlank(otherPolicyAmount)) {
return rb.setMsg("其他融贷款金额不能为空");
}
if (StringUtils.isBlank(otherPolicyPeriod)) {
otherPolicyPeriod = "0";
}
loanDownPay = loanDownPay.subtract(new BigDecimal(otherPolicyAmount));
//总贷款金额的计算
loanAmountTotal = loanAmountTotal.add(new BigDecimal(otherPolicyAmount));
//根据年利率和期数、贷款金额计算月还
BigDecimal otherPolicyMonthlyRepay = calculatePMT(new BigDecimal(otherPolicyPeriod).divide(new BigDecimal("100"), 4, BigDecimal.ROUND_CEILING).doubleValue(), new BigDecimal(otherPolicyPeriod).doubleValue(), new BigDecimal(otherPolicyAmount).doubleValue());
//根据月还计算利息总额=月还金额 乘以 期数 减去 本金
BigDecimal otherPolicyInterest = otherPolicyMonthlyRepay.multiply(new BigDecimal(otherPolicyPeriod)).subtract(new BigDecimal(otherPolicyAmount));
//四舍五入取整数
otherPolicyMonthlyRepay = otherPolicyMonthlyRepay.setScale(0, BigDecimal.ROUND_HALF_UP);
otherPolicyInterest = otherPolicyInterest.setScale(0, BigDecimal.ROUND_HALF_UP);
loanPayMoneyAll = loanPayMoneyAll.add(otherPolicyMonthlyRepay);
interstAll = interstAll.add(otherPolicyInterest);
yueAll = yueAll.add(otherPolicyMonthlyRepay.multiply(new BigDecimal(otherPolicyPeriod)));
calculateVo.setOtherPolicyInterest(otherPolicyInterest.toString());
calculateVo.setOtherPolicyMonthlyRepay(otherPolicyMonthlyRepay.toString());
} else {
otherPolicyPeriod = "0";
}
/************************计算融资首付********************************/
calculateVo.setLoanDownPay(loanDownPay.setScale(0, BigDecimal.ROUND_HALF_UP).toString());
//实际首付比例 = (融资首付/融资项目总额)x100
downPayAmountsRatio = loanDownPay.divide(loanTotal, 4, BigDecimal.ROUND_CEILING).multiply(new BigDecimal("100"));
downPayAmountsRatio = downPayAmountsRatio.setScale(0, BigDecimal.ROUND_HALF_UP);
calculateVo.setDownPayAmountsRatio(downPayAmountsRatio.toString());
//总贷款金额
calculateVo.setLoanAmountTotal(loanAmountTotal.setScale(0, BigDecimal.ROUND_HALF_UP).toString());
//期数
//期数 = 其它融期数拼接剩余期数(6/18)
int i = Integer.valueOf(loanPeriod) - Integer.valueOf(otherPolicyPeriod);
String period = otherPolicyPeriod + "/" + i;
calculateVo.setPeriod(period);
//月还金额
//月还金额 = 总月还/贷款月还
loanPayMoneyAll = loanPayMoneyAll.setScale(0, BigDecimal.ROUND_HALF_UP);
String monthlyRepay = "";
if (loanPeriod.equals(otherPolicyPeriod)) {
monthlyRepay = loanPayMoneyAll.toString() + "/-";
} else {
monthlyRepay = loanPayMoneyAll.toString() + "/" + calculateVo.getLoanPayMoney();
}
//方案汇总月还金额
calculateVo.setMonthlyRepay(monthlyRepay);
//利息总额
calculateVo.setInterest(interstAll.setScale(0, BigDecimal.ROUND_HALF_UP).toString());
calculateVo.setDownPayAmounts(calculateVo.getLoanDownPay());
//代收费用合计计算
BigDecimal proxyTotal = BigDecimal.ZERO;
if (StringUtils.isNotBlank(query.getProxyPremium())) {
proxyTotal = proxyTotal.add(new BigDecimal(query.getProxyPremium()));
}
if (StringUtils.isNotBlank(query.getProxyPurchasetax())) {
proxyTotal = proxyTotal.add(new BigDecimal(query.getProxyPurchasetax()));
}
calculateVo.setProxyTotal(proxyTotal.toString());
//应收合计 = 融资首付+贷款保证金+保险保证金+落户保证金+服务费+代收意外险+补车价+上牌费+运管费+其它费用
BigDecimal receivableTotal = new BigDecimal(BigInteger.ZERO);
receivableTotal = receivableTotal.add(new BigDecimal(calculateVo.getDownPayAmounts()));
//贷款保证金
if (StringUtils.isNotBlank(query.getBondAmount())) {
receivableTotal = receivableTotal.add(new BigDecimal(query.getBondAmount()));
}
//保险保证金
String depositPremium = query.getDepositPremium();
if (StringUtils.isNotBlank(depositPremium)) {
receivableTotal = receivableTotal.add(new BigDecimal(depositPremium));
}
//落户保证金
String depositSettle = query.getDepositSettle();
if (StringUtils.isNotBlank(depositSettle)) {
receivableTotal = receivableTotal.add(new BigDecimal(depositSettle));
}
//服务费
String serviceAmount = query.getServiceAmount();
if (StringUtils.isNotBlank(serviceAmount)) {
receivableTotal = receivableTotal.add(new BigDecimal(serviceAmount));
vehTotalPrice = vehTotalPrice.add(new BigDecimal(serviceAmount));
}
//代收意外险
String proxyAccidentPremium = query.getProxyAccidentPremium();
if (StringUtils.isNotBlank(proxyAccidentPremium)) {
receivableTotal = receivableTotal.add(new BigDecimal(proxyAccidentPremium));
vehTotalPrice = vehTotalPrice.add(new BigDecimal(proxyAccidentPremium));
}
//上牌费
String registerAmount = query.getRegisterAmount();
if (StringUtils.isNotBlank(registerAmount)) {
receivableTotal = receivableTotal.add(new BigDecimal(registerAmount));
vehTotalPrice = vehTotalPrice.add(new BigDecimal(registerAmount));
}
//运管费
String operationAmount = query.getOperationAmount();
if (StringUtils.isNotBlank(operationAmount)) {
receivableTotal = receivableTotal.add(new BigDecimal(operationAmount));
vehTotalPrice = vehTotalPrice.add(new BigDecimal(operationAmount));
}
//补车价
String vehOtherPrice = query.getVehOtherPrice();
if (StringUtils.isNotBlank(vehOtherPrice)) {
receivableTotal = receivableTotal.add(new BigDecimal(vehOtherPrice));
vehTotalPrice = vehTotalPrice.add(new BigDecimal(vehOtherPrice));
}
//其它费用
String otherAmount = query.getOtherAmount();
if (StringUtils.isNotBlank(otherAmount)) {
receivableTotal = receivableTotal.add(new BigDecimal(otherAmount));
vehTotalPrice = vehTotalPrice.add(new BigDecimal(otherAmount));
}
receivableTotal = receivableTotal.add(new BigDecimal(calculateVo.getProxyTotal()));
calculateVo.setReceivableTotal(receivableTotal.toString());
//抵顶费用合计 = 抵顶首年保险费+抵顶购置税
BigDecimal offsetTotal = new BigDecimal(BigInteger.ZERO);
//抵顶首年保险费
String offsetPremium = query.getOffsetPremium();
if (StringUtils.isNotBlank(offsetPremium)) {
offsetTotal = offsetTotal.add(new BigDecimal(offsetPremium));
}
//抵顶购置税
String offsetPurchasetax = query.getOffsetPurchasetax();
if (StringUtils.isNotBlank(offsetPurchasetax)) {
offsetTotal = offsetTotal.add(new BigDecimal(offsetPurchasetax));
}
calculateVo.setOffsetTotal(offsetTotal.toString());
//实收合计 = 应收合计-抵顶合计
BigDecimal realTotal = receivableTotal.subtract(offsetTotal);
calculateVo.setRealTotal(realTotal.toString());
vehTotalPrice = vehTotalPrice.add(yueAll).add(new BigDecimal(calculateVo.getDownPayAmounts()));
calculateVo.setVehTotalPrice(vehTotalPrice.toString());
return rb.success().setData(calculateVo);
}
@ -1135,7 +1310,6 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
double v = (1 + (rate / 12));
double t = (-(nper / nper) * nper);
double result = (pv * (rate / 12)) / (1 - Math.pow(v, t));
// result = Math.round(result);
return new BigDecimal(result);
}
@ -1204,6 +1378,14 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
return rate;
}
public ResultBean save2(SolutionsDto dto) {
SolutionDetailsDto solutionDetailsDto = new SolutionDetailsDto();
BeanUtil.copyProperties(dto, solutionDetailsDto);
solutionDetailsDto.setBusSid(dto.getSaleOrderSid());
ResultBean resultBean = saveDtoss(solutionDetailsDto);
return resultBean;
}
/* @Autowired
private LoanSolutionsTopService loanSolutionsTopService;
@Autowired

3
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loantemplate/LoanTemplateService.java

@ -15,6 +15,7 @@ import com.yxt.anrui.flowable.api.flow.UpdateFlowFieldVo;
import com.yxt.anrui.flowable.api.flowtask.FlowTaskFeign;
import com.yxt.anrui.flowable.api.flowtask.FlowTaskVo;
import com.yxt.anrui.flowable.api.flowtask.LatestTaskVo;
import com.yxt.anrui.flowable.api.utils.ProcDefEnum;
import com.yxt.anrui.flowable.sqloperationsymbol.BusinessVariables;
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign;
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo;
@ -268,7 +269,7 @@ public class LoanTemplateService extends MybatisBaseService<LoanTemplateMapper,
bv.setFormVariables(variables);
if (r == 1) {
//ToDo:流程定义id
bv.setModelId("");
bv.setModelId(ProcDefEnum.LOANTEMPLATEAPPLY.getProDefId());
ResultBean<UpdateFlowFieldVo> voResultBean = flowableFeign.startProcess(bv);
if (!voResultBean.getSuccess()) {
return rb.setMsg(voResultBean.getMsg());

Loading…
Cancel
Save