
72 changed files with 2286 additions and 502 deletions
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.anrui.base.api.basevehicleout; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2023/8/15 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class BaseSolutionListVo implements Vo { |
||||
|
private static final long serialVersionUID = -8839895532609865401L; |
||||
|
|
||||
|
@ApiModelProperty(value = "内容") |
||||
|
private String value; |
||||
|
|
||||
|
@ApiModelProperty(value = "单元格大小") |
||||
|
private Integer spanSize; |
||||
|
|
||||
|
@ApiModelProperty("类型:0 最普通的 1 标题的 2是 加上划线的") |
||||
|
private Integer type; |
||||
|
@ApiModelProperty("是否加粗,true是,false否") |
||||
|
private boolean bold; |
||||
|
} |
@ -0,0 +1,372 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<div class="tab-header webtop"> |
||||
|
<div>{{ viewTitle }}</div> |
||||
|
<div> |
||||
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handlePrint()">打印</el-button> |
||||
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="listconadd"> |
||||
|
<el-form ref="form_obj" :model="formobj" class="formaddcopy02"> |
||||
|
<el-row style="border-top: 1px solid #E0E3EB"> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">销售部门</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.saleDeptName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">销售专员</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.staffName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">贷款合同编号</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.loanContractNo }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<div class="title">客户信息</div> |
||||
|
<el-row> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">贷款人名称</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.loanBorrName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">车架号</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.vinNo }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">电话</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.mobile }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<el-row> |
||||
|
<el-col :span="16"> |
||||
|
<div class="span-sty">地址</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.address }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">挂靠公司</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.affiliatedCompany }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<div class="title">车型及价格</div> |
||||
|
<el-row> |
||||
|
<el-col :span="16"> |
||||
|
<div class="span-sty">车型</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">数量</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.num }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<el-row> |
||||
|
<el-col :span="16"> |
||||
|
<div class="span-sty">挂车1车型</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.gcOneModel }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">采购单位</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.gcOnePurUnit }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<el-row> |
||||
|
<el-col :span="16"> |
||||
|
<div class="span-sty">挂车2车型</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.gcTwoModel }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">采购单位</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.gcTwoPurUnit }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<el-row> |
||||
|
<el-col :span="16"> |
||||
|
<div class="span-sty">上装1名称</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.szOneName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">采购单位</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.szOnePurUnit }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<el-row> |
||||
|
<el-col :span="16"> |
||||
|
<div class="span-sty">上装2名称</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.szTwoName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">采购单位</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.szTwoPurUnit }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<el-row> |
||||
|
<el-col :span="24"> |
||||
|
<div class="span-sty">备注</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<financialschemeInfo ref="divJR"/> |
||||
|
</el-form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { selectQuotation, createjrbjdPdf } from '@/api/chukuguanli/chukubanli' |
||||
|
import financialschemeInfo from '@/components/publicPage/financialschemeInfo' |
||||
|
import { getStorage } from '@/utils/auth' |
||||
|
export default { |
||||
|
name: '', |
||||
|
components: { |
||||
|
financialschemeInfo |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
viewTitle: '', |
||||
|
viewState: 1, |
||||
|
submitdisabled: false, |
||||
|
printSid: '', |
||||
|
formobj: { |
||||
|
saleDeptName: '', |
||||
|
staffName: '', |
||||
|
loanContractNo: '', |
||||
|
loanBorrName: '', |
||||
|
vinNo: '', |
||||
|
mobile: '', |
||||
|
address: '', |
||||
|
affiliatedCompany: '', |
||||
|
modelName: '', |
||||
|
num: '', |
||||
|
gcOneModel: '', |
||||
|
gcOnePurUnit: '', |
||||
|
gcTwoModel: '', |
||||
|
gcTwoPurUnit: '', |
||||
|
szOneName: '', |
||||
|
szOnePurUnit: '', |
||||
|
szTwoName: '', |
||||
|
szTwoPurUnit: '', |
||||
|
remarks: '', |
||||
|
baseJRFAVo: { |
||||
|
accessoriesAmount: '', |
||||
|
accessoriesAmountCb: false, |
||||
|
bondAmount: '', |
||||
|
bondAmounts: '', |
||||
|
bondRatio: '', |
||||
|
dealWay: '', |
||||
|
dealWayKey: '', |
||||
|
depositPremium: '', |
||||
|
depositSettle: '', |
||||
|
discountCar: '', |
||||
|
downPayAmount: '', |
||||
|
downPayAmounts: '', |
||||
|
downPayAmountsRatio: '', |
||||
|
downPayRatio: '', |
||||
|
factoryDiscount: '', |
||||
|
factoryDiscountUse: '', |
||||
|
factoryDiscountUseKey: '', |
||||
|
interest: '', |
||||
|
isPack: '', |
||||
|
isShowMore: false, |
||||
|
loanAmount: '', |
||||
|
loanAmountTotal: '', |
||||
|
loanDownPay: '', |
||||
|
loanInterest: '', |
||||
|
loanPayMoney: '', |
||||
|
loanPeriod: '', |
||||
|
loanTotal: '', |
||||
|
mainVehicleAmount: '', |
||||
|
monthlyRepay: '', |
||||
|
nominalPrice: '', |
||||
|
offsetPremium: '', |
||||
|
offsetPurchasetax: '', |
||||
|
offsetTotal: '', |
||||
|
operationAmount: '', |
||||
|
otherAmount: '', |
||||
|
otherAmountRemark: '', |
||||
|
otherPolicyAmount: '', |
||||
|
otherPolicyInterest: '', |
||||
|
otherPolicyMonthlyRepay: '', |
||||
|
otherPolicyName: '', |
||||
|
otherPolicyPeriod: '', |
||||
|
otherPolicySid: '', |
||||
|
otherPolicyState: false, |
||||
|
otherPolicyYearRatio: '', |
||||
|
period: '', |
||||
|
policyName: '', |
||||
|
policySid: '', |
||||
|
policyYearRatio: '', |
||||
|
premium: '', |
||||
|
premiumCb: false, |
||||
|
proxyAccidentPremium: '', |
||||
|
proxyPremium: '', |
||||
|
proxyPurchasetax: '', |
||||
|
proxyTotal: '', |
||||
|
purchaseTax: '', |
||||
|
purchaseTaxCb: false, |
||||
|
realTotal: '', |
||||
|
receivableTotal: '', |
||||
|
registerAmount: '', |
||||
|
returnTime: '', |
||||
|
salesOrderSid: '', |
||||
|
serviceAmount: '', |
||||
|
serviceChargeTypeKey: '', |
||||
|
serviceChargeTypeValue: '', |
||||
|
trailerAmount: '', |
||||
|
trailerAmountCb: false, |
||||
|
vehOtherPrice: '', |
||||
|
vehTotalPrice: '' |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
showInfo(row) { |
||||
|
this.viewTitle = '金融报价单' |
||||
|
this.printSid = row.sid |
||||
|
selectQuotation({sid: row.sid}).then((res) => { |
||||
|
if (res.success) { |
||||
|
this.formobj = res.data |
||||
|
this.$refs['divJR'].showInfo(this.formobj.baseJRFAVo, 'kehu') |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
handlePrint() { |
||||
|
this.submitdisabled = true |
||||
|
createjrbjdPdf({ sid: this.printSid }).then((resp) => { |
||||
|
if (resp.success && resp.data !== null) { |
||||
|
var xhr = new XMLHttpRequest() |
||||
|
xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + resp.data.pdfPath + '&outFileName=' + '金融报价单', true) |
||||
|
xhr.setRequestHeader('token', getStorage()) |
||||
|
xhr.responseType = 'blob' |
||||
|
xhr.onload = function(e) { |
||||
|
// 如果请求执行成功 |
||||
|
var blob = this.response |
||||
|
var filename = '金融报价单.pdf' |
||||
|
var a = document.createElement('a') |
||||
|
// blob.type="application/octet-stream"; |
||||
|
// 创键临时url对象 |
||||
|
var url = URL.createObjectURL(blob) |
||||
|
a.href = url |
||||
|
a.download = filename |
||||
|
a.click() |
||||
|
// 释放之前创建的URL对象 |
||||
|
window.URL.revokeObjectURL(url) |
||||
|
} |
||||
|
// 发送请求 |
||||
|
xhr.send() |
||||
|
this.submitdisabled = false |
||||
|
} else { |
||||
|
this.submitdisabled = false |
||||
|
} |
||||
|
}).catch(() => { |
||||
|
this.submitdisabled = false |
||||
|
}) |
||||
|
}, |
||||
|
handleReturn() { |
||||
|
this.formobj = { |
||||
|
saleDeptName: '', |
||||
|
staffName: '', |
||||
|
loanContractNo: '', |
||||
|
loanBorrName: '', |
||||
|
vinNo: '', |
||||
|
mobile: '', |
||||
|
address: '', |
||||
|
affiliatedCompany: '', |
||||
|
modelName: '', |
||||
|
num: '', |
||||
|
gcOneModel: '', |
||||
|
gcOnePurUnit: '', |
||||
|
gcTwoModel: '', |
||||
|
gcTwoPurUnit: '', |
||||
|
szOneName: '', |
||||
|
szOnePurUnit: '', |
||||
|
szTwoName: '', |
||||
|
szTwoPurUnit: '', |
||||
|
remarks: '', |
||||
|
baseJRFAVo: { |
||||
|
accessoriesAmount: '', |
||||
|
accessoriesAmountCb: false, |
||||
|
bondAmount: '', |
||||
|
bondAmounts: '', |
||||
|
bondRatio: '', |
||||
|
dealWay: '', |
||||
|
dealWayKey: '', |
||||
|
depositPremium: '', |
||||
|
depositSettle: '', |
||||
|
discountCar: '', |
||||
|
downPayAmount: '', |
||||
|
downPayAmounts: '', |
||||
|
downPayAmountsRatio: '', |
||||
|
downPayRatio: '', |
||||
|
factoryDiscount: '', |
||||
|
factoryDiscountUse: '', |
||||
|
factoryDiscountUseKey: '', |
||||
|
interest: '', |
||||
|
isPack: '', |
||||
|
isShowMore: false, |
||||
|
loanAmount: '', |
||||
|
loanAmountTotal: '', |
||||
|
loanDownPay: '', |
||||
|
loanInterest: '', |
||||
|
loanPayMoney: '', |
||||
|
loanPeriod: '', |
||||
|
loanTotal: '', |
||||
|
mainVehicleAmount: '', |
||||
|
monthlyRepay: '', |
||||
|
nominalPrice: '', |
||||
|
offsetPremium: '', |
||||
|
offsetPurchasetax: '', |
||||
|
offsetTotal: '', |
||||
|
operationAmount: '', |
||||
|
otherAmount: '', |
||||
|
otherAmountRemark: '', |
||||
|
otherPolicyAmount: '', |
||||
|
otherPolicyInterest: '', |
||||
|
otherPolicyMonthlyRepay: '', |
||||
|
otherPolicyName: '', |
||||
|
otherPolicyPeriod: '', |
||||
|
otherPolicySid: '', |
||||
|
otherPolicyState: false, |
||||
|
otherPolicyYearRatio: '', |
||||
|
period: '', |
||||
|
policyName: '', |
||||
|
policySid: '', |
||||
|
policyYearRatio: '', |
||||
|
premium: '', |
||||
|
premiumCb: false, |
||||
|
proxyAccidentPremium: '', |
||||
|
proxyPremium: '', |
||||
|
proxyPurchasetax: '', |
||||
|
proxyTotal: '', |
||||
|
purchaseTax: '', |
||||
|
purchaseTaxCb: false, |
||||
|
realTotal: '', |
||||
|
receivableTotal: '', |
||||
|
registerAmount: '', |
||||
|
returnTime: '', |
||||
|
salesOrderSid: '', |
||||
|
serviceAmount: '', |
||||
|
serviceChargeTypeKey: '', |
||||
|
serviceChargeTypeValue: '', |
||||
|
trailerAmount: '', |
||||
|
trailerAmountCb: false, |
||||
|
vehOtherPrice: '', |
||||
|
vehTotalPrice: '' |
||||
|
} |
||||
|
} |
||||
|
this.printSid = '' |
||||
|
this.submitdisabled = false |
||||
|
this.$emit('doback') |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
.span-sty { |
||||
|
width: 140px !important; |
||||
|
} |
||||
|
.addinputInfo { |
||||
|
margin-left: 130px !important; |
||||
|
} |
||||
|
</style> |
@ -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,29 @@ |
|||||
|
package com.yxt.anrui.terminal.api.autoservice.saleOrders; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2023/9/13 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class LoanPreloansQuery implements Query { |
||||
|
private static final long serialVersionUID = 4677306476460284056L; |
||||
|
|
||||
|
@ApiModelProperty("姓名") |
||||
|
private String custName; |
||||
|
@ApiModelProperty("身份证号码") |
||||
|
private String idCard; |
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String phone; |
||||
|
@ApiModelProperty("用户sid,即销售专员的用户sid") |
||||
|
private String userSid; |
||||
|
|
||||
|
@ApiModelProperty("移动端:姓名、身份证、手机号") |
||||
|
private String name; |
||||
|
@ApiModelProperty("销售订单sid") |
||||
|
private String orderSid; |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
package com.yxt.anrui.terminal.api.autoservice.saleOrders; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.base.common.CarModelVo; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2023/9/13 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class LoanPreloansVo implements Vo { |
||||
|
private static final long serialVersionUID = -6577382635622047300L; |
||||
|
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String custSid; |
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String custName; |
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String phone; |
||||
|
|
||||
|
@ApiModelProperty("公司风控结果") |
||||
|
private String gsfkjg; |
||||
|
@ApiModelProperty("资方名称") |
||||
|
private String capitalName; |
||||
|
@ApiModelProperty("资方风控结果") |
||||
|
private String zffkjg; |
||||
|
@ApiModelProperty("担保人") |
||||
|
private String peoName; |
||||
|
@ApiModelProperty("申请日期") |
||||
|
private String createTime; |
||||
|
|
||||
|
private String sid; |
||||
|
|
||||
|
@ApiModelProperty("页面地址") |
||||
|
private CarModelVo pluginPage; |
||||
|
|
||||
|
} |
@ -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