
22 changed files with 918 additions and 19 deletions
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanfileexamine; |
|||
|
|||
|
|||
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: LoanFileexamineDto.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineDto <br/> |
|||
* Description: 放款资料审核 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "放款资料审核 数据传输对象", description = "放款资料审核 数据传输对象") |
|||
public class LoanFileDto implements Dto { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("银行卡") |
|||
private List<String> yhkImages = new ArrayList<>(); |
|||
@ApiModelProperty("购置税发票") |
|||
private List<String> gzsfpImages = new ArrayList<>(); |
|||
@ApiModelProperty("保险发票") |
|||
private List<String> bxfpImages = new ArrayList<>(); |
|||
@ApiModelProperty("保单") |
|||
private List<String> bdImages = new ArrayList<>(); |
|||
} |
@ -0,0 +1,73 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineVo <br/> |
|||
* Description: 放款资料审核 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "放款资料审核 视图数据详情", description = "放款资料审核 视图数据详情") |
|||
public class FileexamineDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("消贷合同编号") |
|||
private String loanContractNo; |
|||
@ApiModelProperty("台数") |
|||
private Integer num; |
|||
@ApiModelProperty("贷款人名称") |
|||
private String borrowerName; |
|||
@ApiModelProperty("销售专员名称") |
|||
private String staffName; |
|||
@ApiModelProperty("车架号拼接") |
|||
private String vinNo; |
|||
@ApiModelProperty("银行卡") |
|||
private List<String> yhkImages; |
|||
@ApiModelProperty("购置税发票") |
|||
private List<String> gzsfpImages; |
|||
@ApiModelProperty("保险发票") |
|||
private List<String> bxfpImages; |
|||
@ApiModelProperty("保单") |
|||
private List<String> bdImages; |
|||
} |
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
|
|||
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: LoanFileexamineDto.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineDto <br/> |
|||
* Description: 放款资料审核 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "放款资料审核 数据传输对象", description = "放款资料审核 数据传输对象") |
|||
public class FileexamineDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("银行卡") |
|||
private List<String> yhkImages = new ArrayList<>(); |
|||
@ApiModelProperty("购置税发票") |
|||
private List<String> gzsfpImages = new ArrayList<>(); |
|||
@ApiModelProperty("保险发票") |
|||
private List<String> bxfpImages = new ArrayList<>(); |
|||
@ApiModelProperty("保单") |
|||
private List<String> bdImages = new ArrayList<>(); |
|||
} |
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
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.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineFeign.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineFeign <br/> |
|||
* Description: 放款资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "放款资料审核") |
|||
@FeignClient( |
|||
contextId = "terminal-Fileexamine", |
|||
name = "anrui-terminal", |
|||
path = "v1/loanfileexamine", |
|||
fallback = FileexamineFeignFallback.class) |
|||
public interface FileexamineFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<FileexamineVo>> listPage(@RequestBody PagerQuery<FileexamineQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody FileexamineDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<FileexamineDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
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; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineFeignFallback <br/> |
|||
* Description: 放款资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class FileexamineFeignFallback implements FileexamineFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FileexamineVo>> listPage(PagerQuery<FileexamineQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-riskcenter/loanfileexamine/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(FileexamineDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanfileexamine/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanfileexamine/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FileexamineDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-riskcenter/loanfileexamine/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,58 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
|
|||
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: LoanFileexamineQuery.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineQuery <br/> |
|||
* Description: 放款资料审核 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "放款资料审核 查询条件", description = "放款资料审核 查询条件") |
|||
public class FileexamineQuery implements Query { |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty("组织全路径") |
|||
private String orgPath; |
|||
private String menuSid; |
|||
private String type; |
|||
private String names; |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
|
|||
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: LoanFileexamineVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineVo <br/> |
|||
* Description: 放款资料审核 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "放款资料审核 视图数据对象", description = "放款资料审核 视图数据对象") |
|||
public class FileexamineVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("消贷合同编号") |
|||
private String loanContractNo; |
|||
@ApiModelProperty("贷款人名称") |
|||
private String borrowerName; |
|||
@ApiModelProperty("台数") |
|||
private String num; |
|||
@ApiModelProperty("销售专员名称") |
|||
private String staffName; |
|||
@ApiModelProperty("资料状态") |
|||
private String zlState; |
|||
@ApiModelProperty("是否上传") |
|||
private Boolean isUpload = false; |
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.fileexamine; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanfileexamine.*; |
|||
import com.yxt.anrui.terminal.api.risk.fileexamine.*; |
|||
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.*; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loanfileexamine.LoanFileexamineRest <br/> |
|||
* Description: 放款资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "放款资料审核") |
|||
@RestController |
|||
@RequestMapping("v1/loanfileexamine") |
|||
public class FileexamineRest implements FileexamineFeign { |
|||
|
|||
@Autowired |
|||
private FileexamineService fileexamineService; |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FileexamineVo>> listPage(PagerQuery<FileexamineQuery> pq) { |
|||
return fileexamineService.listPage(pq); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(FileexamineDto dto) { |
|||
return fileexamineService.save(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids(String[] sids) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FileexamineDetailsVo> fetchDetailsBySid(String sid) { |
|||
return fileexamineService.fetchDetailsBySid(sid); |
|||
} |
|||
} |
@ -0,0 +1,107 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.fileexamine; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanfileexamine.*; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanAttachTypeEnum; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileDto; |
|||
import com.yxt.anrui.terminal.api.risk.fileexamine.FileexamineDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.fileexamine.FileexamineDto; |
|||
import com.yxt.anrui.terminal.api.risk.fileexamine.FileexamineQuery; |
|||
import com.yxt.anrui.terminal.api.risk.fileexamine.FileexamineVo; |
|||
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.ArrayList; |
|||
import java.util.List; |
|||
|
|||
@Service |
|||
public class FileexamineService { |
|||
|
|||
@Autowired |
|||
private LoanFileexamineFeign loanFileexamineFeign; |
|||
|
|||
public ResultBean<PagerVo<FileexamineVo>> listPage(PagerQuery<FileexamineQuery> pagerQuery) { |
|||
ResultBean<PagerVo<FileexamineVo>> rb = ResultBean.fireFail(); |
|||
PagerQuery<LoanFileexamineQuery> pq = new PagerQuery<>(); |
|||
FileexamineQuery params = pagerQuery.getParams(); |
|||
LoanFileexamineQuery params1 = new LoanFileexamineQuery(); |
|||
params1.setOrgSidPath(params.getOrgPath()); |
|||
params1.setUserSid(params.getUserSid()); |
|||
params1.setNames(params.getNames()); |
|||
params1.setType(params.getType()); |
|||
pq.setParams(params1); |
|||
ResultBean<PagerVo<LoanFileexamineVo>> resultBean = loanFileexamineFeign.listPage(pq); |
|||
List<FileexamineVo> fileexamineVos = new ArrayList<>(); |
|||
PagerVo<FileexamineVo> v = new PagerVo<>(); |
|||
List<LoanFileexamineVo> records = resultBean.getData().getRecords(); |
|||
for (LoanFileexamineVo record : records) { |
|||
FileexamineVo fileexamineVo = new FileexamineVo(); |
|||
fileexamineVo.setSid(record.getSid()); |
|||
fileexamineVo.setLoanContractNo(record.getLoanContractNo()); |
|||
fileexamineVo.setZlState(record.getZlState()); |
|||
fileexamineVo.setBorrowerName(record.getBorrowerName()); |
|||
fileexamineVo.setNum(record.getNum()); |
|||
fileexamineVo.setStaffName(record.getUseOrgName() + "-" + record.getOrgName() + "-" + record.getStaffName()); |
|||
if ("未齐全".equals(record.getZlState())) { |
|||
fileexamineVo.setIsUpload(true); |
|||
} |
|||
fileexamineVos.add(fileexamineVo); |
|||
} |
|||
v.setRecords(fileexamineVos); |
|||
return rb.success().setData(v); |
|||
} |
|||
|
|||
public ResultBean<FileexamineDetailsVo> fetchDetailsBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FileexamineDetailsVo fileexamineDetailsVo = new FileexamineDetailsVo(); |
|||
LoanFileexamineDetailsVo data = loanFileexamineFeign.fetchDetailsBySid(sid).getData(); |
|||
fileexamineDetailsVo.setLoanContractNo(data.getLoanContractNo()); |
|||
fileexamineDetailsVo.setNum(data.getNum()); |
|||
fileexamineDetailsVo.setStaffName(data.getStaffName()); |
|||
fileexamineDetailsVo.setVinNo(data.getVinNo()); |
|||
fileexamineDetailsVo.setYhkImages(data.getYhkImages()); |
|||
fileexamineDetailsVo.setGzsfpImages(data.getGzsfpImages()); |
|||
fileexamineDetailsVo.setBxfpImages(data.getBxfpImages()); |
|||
fileexamineDetailsVo.setBdImages(data.getBdImages()); |
|||
return rb.success().setData(fileexamineDetailsVo); |
|||
} |
|||
|
|||
public ResultBean save(FileexamineDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanFileDto loanFileDto = new LoanFileDto(); |
|||
loanFileDto.setSid(dto.getSid()); |
|||
loanFileDto.setYhkImages(dto.getYhkImages()); |
|||
loanFileDto.setGzsfpImages(dto.getGzsfpImages()); |
|||
loanFileDto.setBxfpImages(dto.getBxfpImages()); |
|||
loanFileDto.setBdImages(dto.getBdImages()); |
|||
loanFileexamineFeign.uploadFile(loanFileDto); |
|||
return rb.success(); |
|||
} |
|||
} |
Loading…
Reference in new issue