42 changed files with 1527 additions and 77 deletions
@ -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; |
|||
} |
|||
} |
@ -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; // 附件类型
|
|||
|
|||
} |
@ -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<>(); |
|||
} |
@ -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; // 附件类型
|
|||
|
|||
} |
@ -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; // 附件类型
|
|||
|
|||
} |
@ -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); |
|||
} |
@ -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无法访问"); |
|||
} |
|||
} |
@ -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; // 附件类型
|
|||
|
|||
} |
@ -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; // 附件类型
|
|||
|
|||
} |
@ -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> |
@ -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(); |
|||
} |
@ -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> |
@ -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); |
|||
} |
|||
} |
@ -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(); |
|||
} |
|||
} |
Loading…
Reference in new issue