Browse Source

Merge remote-tracking branch 'origin/master'

master
dimengzhe 1 year ago
parent
commit
3196364028
  1. 31
      anrui-riskcenter-ui/src/views/alsotransfer/alsotransfer.vue
  2. 33
      anrui-riskcenter-ui/src/views/alsotransfer/pendingtransfer.vue
  3. 16
      anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue
  4. 2
      anrui-riskcenter-ui/src/views/customerrepayment/customerrepaymentdetails.vue
  5. 26
      anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue
  6. 3
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanbuckleapply/LoanBuckleApplyQuery.java
  7. 5
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanbuckleapply/LoanBuckleApplyVo.java
  8. 1
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanfile/LoanFileEnum.java
  9. 2
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanrepaymenthistory/LoanRepaymentHistoryFeign.java
  10. 2
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanrepaymenthistory/TransferPaymentQuery.java
  11. 3
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loantransferpaymentapply/LoanTransferPaymentApply.java
  12. 3
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loantransferpaymentapply/LoanTransferPaymentApplyQuery.java
  13. 5
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loantransferpaymentapply/LoanTransferPaymentApplyVo.java
  14. 78
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApply.java
  15. 90
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyDetailsVo.java
  16. 88
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyDto.java
  17. 78
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyFeign.java
  18. 72
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyFeignFallback.java
  19. 71
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyQuery.java
  20. 78
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyVo.java
  21. 51
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceFileVo.java
  22. 84
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVeh.java
  23. 90
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehDetailsVo.java
  24. 85
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehDto.java
  25. 78
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehFeign.java
  26. 72
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehFeignFallback.java
  27. 52
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehFile.java
  28. 83
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehQuery.java
  29. 85
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehVo.java
  30. 3
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanbuckleapply/LoanBuckleApplyMapper.xml
  31. 12
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanbuckleapply/LoanBuckleApplyService.java
  32. 2
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymenthistory/LoanRepaymentHistoryMapper.java
  33. 1
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymenthistory/LoanRepaymentHistoryMapper.xml
  34. 84
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymenthistory/LoanRepaymentHistoryService.java
  35. 3
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loantransferpaymentapply/LoanTransferPaymentApplyMapper.xml
  36. 8
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loantransferpaymentapply/LoanTransferPaymentApplyService.java
  37. 67
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceapply/LoanVehClearanceApplyMapper.java
  38. 21
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceapply/LoanVehClearanceApplyMapper.xml
  39. 100
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceapply/LoanVehClearanceApplyRest.java
  40. 319
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceapply/LoanVehClearanceApplyService.java
  41. 73
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehMapper.java
  42. 13
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehMapper.xml
  43. 100
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehRest.java
  44. 118
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehService.java
  45. BIN
      anrui-riskcenter/anrui-riskcenter-biz/src/main/resources/static/还款导入模板.xls
  46. 2
      anrui-terminal/anrui-terminal-api/src/main/java/com/yxt/anrui/terminal/api/risk/becollection/AppMonRepayDetails.java
  47. 13
      anrui-terminal/anrui-terminal-biz/src/main/java/com/yxt/anrui/terminal/biz/risk/becollection/BeCollectionService.java

31
anrui-riskcenter-ui/src/views/alsotransfer/alsotransfer.vue

@ -12,24 +12,21 @@
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="贷款合同编号">
<el-input v-model="listQuery.params.loanContractNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="车架号">
<el-input v-model="listQuery.params.vinNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方">
<el-input v-model="listQuery.params.bankName" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方合同号">
<el-form-item label="资方合同号">
<el-input v-model="listQuery.params.bankContractNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="期数">
<el-input v-model="listQuery.params.period" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="转付账户类型">
<el-select v-model="listQuery.params.accountTypekey" clearable placeholder="请选择">
<el-option v-for="item in accountType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="应还日期">
<el-date-picker v-model="listQuery.params.dueStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
<span style="padding: 0 8px"></span>
@ -54,25 +51,24 @@
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;">
<el-table-column width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column prop="vinNo" label="车架号" align="center" width="120" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" />
<el-table-column prop="vinNo" label="车架号" align="center" width="120" />
<el-table-column prop="bankName" label="资方" align="center" width="120" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="150" />
<el-table-column prop="customer" label="客户名称" align="center" width="120" />
<el-table-column prop="borrowerName" label="贷款人" align="center" min-width="120" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="dueDate" label="应还日期" align="center" width="100" />
<el-table-column prop="dueMoney" label="本期应还" align="center" width="100" />
<el-table-column prop="dueMoney" label="应还金额" align="center" width="100" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="100" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="100" />
<el-table-column prop="prepareDate" label="预转付日期" align="center" width="100" />
<el-table-column prop="transferDate" label="实际转付日期" align="center" width="100" />
<el-table-column prop="spread" label="息差" align="center" width="100" />
<el-table-column prop="transferPrincipal" label="转付本金" align="center" width="100" />
<el-table-column prop="defaultInterest" label="转付罚息" align="center" width="100" />
<el-table-column prop="accountType" label="转付账户类型" align="center" width="100" />
<el-table-column prop="account" label="转付账户" align="center" width="100" />
<el-table-column prop="accountNumber" label="转付账号" align="center" width="100" />
<el-table-column prop="transferPrincipal" label="转付资方月还" align="center" width="100" />
<el-table-column prop="defaultInterest" label="转付资方逾期利息" align="center" width="100" />
<el-table-column prop="account" label="收款账户名称" align="center" width="100" />
<el-table-column prop="accountNumber" label="收款账号" align="center" width="100" />
</el-table>
</div>
<div class="pages">
@ -90,7 +86,6 @@ import req from '@/api/agentbusiness/agentbusiness'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import { typeValues } from '@/api/Common/dictcommons'
export default {
name: 'AlsoTransfer',
@ -117,7 +112,6 @@ export default {
// -----------
tableKey: 0,
list: [],
accountType_list: [],
listLoading: false,
listQuery: {
params: {
@ -184,11 +178,6 @@ export default {
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
typeValues({ type: 'accountType' }).then((resp) => {
if (resp.success) {
this.accountType_list = resp.data
}
})
} else {
this.list = []
this.listQuery.total = 0

33
anrui-riskcenter-ui/src/views/alsotransfer/pendingtransfer.vue

@ -12,13 +12,16 @@
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="贷款合同编号">
<el-input v-model="listQuery.params.loanContractNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="车架号">
<el-input v-model="listQuery.params.vinNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方">
<el-input v-model="listQuery.params.bankName" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方合同号">
<el-form-item label="资方合同号">
<el-input v-model="listQuery.params.bankContractNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="应还日期">
@ -31,6 +34,12 @@
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.prepareEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
<el-form-item label="逾期状态">
<el-select v-model="listQuery.params.overdue" clearable placeholder="请选择">
<el-option v-for="item in overdue_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey">
</el-option>
</el-select>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
@ -46,16 +55,16 @@
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column fixed width="50" type="selection" align="center"/>
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column prop="paymentState" label="状态" align="center" width="80" />
<el-table-column prop="vinNo" label="车架号" align="center" width="120" />
<el-table-column prop="paymentState" label="转付状态" align="center" width="100" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" />
<el-table-column prop="vinNo" label="车架号" align="center" width="120" />
<el-table-column prop="bankName" label="资方" align="center" width="150" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="120" />
<el-table-column prop="customer" label="客户名称" align="center" min-width="120" />
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="dueDate" label="应还日期" align="center" width="100" />
<el-table-column prop="dueMoney" label="本期应还" align="center" width="100" />
<el-table-column prop="dueMoney" label="应还金额" align="center" width="100" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="100" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="100" />
<el-table-column prop="prepareDate" label="预转付日期" align="center" width="100" />
@ -118,6 +127,16 @@ export default {
tableKey: 0,
list: [],
sids: [],
overdue_list: [
{
dictKey: '0',
dictValue: '是'
},
{
dictKey: '1',
dictValue: '否'
}
],
listLoading: false,
listQuery: {
params: {
@ -134,7 +153,8 @@ export default {
type: '0',
bankContractNo: '',
bankName: '',
period: ''
period: '',
overdue: ''
},
current: 1,
size: 10,
@ -236,7 +256,8 @@ export default {
type: '0',
bankContractNo: '',
bankName: '',
period: ''
period: '',
overdue: ''
},
current: 1,
size: 10,

16
anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue

@ -79,15 +79,15 @@
<!--Start 主页面主要部分 -->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column prop="useOrgName" label="分公司" width="100" align="center" />
<el-table-column prop="dept" label="销售部门" width="100" align="center" />
<el-table-column prop="staffName" label="销售专员" width="100" align="center" />
<el-table-column prop="vinNo" label="车架号" width="100" align="center" />
<el-table-column prop="loanContractNo" label="贷款合同号" width="100" align="center" />
<el-table-column fixed type="selection" align="center" width="50"/>
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column fixed prop="useOrgName" label="分公司" width="100" align="center" />
<el-table-column fixed prop="dept" label="销售部门" width="100" align="center" />
<el-table-column fixed prop="staffName" label="销售专员" width="100" align="center" />
<el-table-column fixed prop="loanContractNo" label="贷款合同编号" width="100" align="center" />
<el-table-column fixed prop="vinNo" label="车架号" width="100" align="center" />
<el-table-column prop="bankName" label="资方" width="100" align="center" />
<el-table-column prop="bankContractNo" label="资方合同号" width="100" align="center" />
<el-table-column prop="bankContractNo" label="资方合同号" width="100" align="center" />
<el-table-column prop="customer" label="客户名称" width="100" align="center" />
<el-table-column prop="borrowerName" label="贷款人" width="100" align="center" />
<el-table-column prop="period" label="期数" min-width="100" align="center" />

2
anrui-riskcenter-ui/src/views/customerrepayment/customerrepaymentdetails.vue

@ -105,7 +105,7 @@
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" />
<el-table-column prop="vinNo" label="车架号" align="center" width="100" />
<el-table-column prop="bankName" label="资方" align="center" width="100" />
<el-table-column prop="bankContractNo" label="资方合同号" align="center" width="100" />
<el-table-column prop="bankContractNo" label="资方合同号" align="center" width="100" />
<el-table-column prop="customer" label="客户名称" align="center" width="100" />
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100" />
<el-table-column prop="period" label="期数" align="center" min-width="100" />

26
anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue

@ -122,8 +122,8 @@
:data="uploadData"
:headers="headers"
>
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<el-button style="margin-left: 10px;" size="small" type="primary" @click="downLoad">下载模板</el-button>
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传</el-button>
</el-upload>
</div>
@ -446,17 +446,25 @@ export default {
},
//
toDeduct() {
this.viewState = 3
this.$refs['divDeduct'].showAdd()
if (this.list.length > 0) {
this.viewState = 3
this.$refs['divDeduct'].showAdd()
} else {
this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表数据为空,无需执行划扣操作' })
}
},
//
toUpdate() {
req.updateState({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '更新成功' })
this.getList()
}
})
if (this.list.length > 0) {
req.updateState({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '更新成功' })
this.getList()
}
})
} else {
this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表数据为空,无需执行更新操作' })
}
},
//
doDel() {

3
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanbuckleapply/LoanBuckleApplyQuery.java

@ -27,5 +27,6 @@ public class LoanBuckleApplyQuery implements Query {
private String billNo;
private String applyStartDate;
private String applyEndDate;
private String closingStartDate;
private String closingEndDate;
}

5
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanbuckleapply/LoanBuckleApplyVo.java

@ -4,6 +4,8 @@ import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* @author Administrator
* @description
@ -31,6 +33,7 @@ public class LoanBuckleApplyVo implements Vo {
private String procInstId; // 流程实例的sid
@ApiModelProperty("备注")
private String remarks; // 备注
@ApiModelProperty("办结日期")
private Date closingDate;
}

1
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanfile/LoanFileEnum.java

@ -27,6 +27,7 @@ public enum LoanFileEnum {
BECOLLECTIONRECORD("018", "逾期催收附件"),
BECOLLECTIONAPPLY("019", "催收措施附件"),
BECOLLECTIONVEHHKXY("020", "催收措施车辆还款协议附件"),
VEHCLEARANCE("021", "车辆远程解控附件"),
;

2
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanrepaymenthistory/LoanRepaymentHistoryFeign.java

@ -31,7 +31,7 @@ import java.util.List;
fallback = LoanRepaymentHistoryFeignFallback.class)
public interface LoanRepaymentHistoryFeign {
@ApiOperation("当月还款记录列表")
@ApiOperation("资方划扣还款明细列表")
@PostMapping("/monthListPage")
public ResultBean<PagerVo<LoanRepaymentHistoryVo>> monthListPage(@RequestBody PagerQuery<LoanRepaymentHistoryQuery> pq);

2
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanrepaymenthistory/TransferPaymentQuery.java

@ -22,6 +22,8 @@ public class TransferPaymentQuery implements Query {
private String accountTypeKey; //转付账户类型key
private String prepareStartDate; //预转付开始日期
private String prepareEndDate; //预转付结束日期
private String loanContractNo; //消贷合同编号
private String overdue; // 是否逾期 0是 1否
@ApiModelProperty("组织全路径")
private String orgPath;
@ApiModelProperty("菜单sid")

3
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loantransferpaymentapply/LoanTransferPaymentApply.java

@ -51,5 +51,6 @@ public class LoanTransferPaymentApply extends BaseEntity {
private String payFormKey;
@ApiModelProperty("打款时需要备注内容")
private String payRemarks;
@ApiModelProperty("办结日期")
private Date closingDate;
}

3
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loantransferpaymentapply/LoanTransferPaymentApplyQuery.java

@ -27,5 +27,6 @@ public class LoanTransferPaymentApplyQuery implements Query {
private String billNo;
private String applyStartDate;
private String applyEndDate;
private String closingStartDate;
private String closingEndDate;
}

5
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loantransferpaymentapply/LoanTransferPaymentApplyVo.java

@ -4,6 +4,8 @@ import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* @author Administrator
* @description
@ -31,7 +33,8 @@ public class LoanTransferPaymentApplyVo implements Vo {
private String procInstId; // 流程实例的sid
@ApiModelProperty("备注")
private String remarks; // 备注
@ApiModelProperty("办结日期")
private Date closingDate;
}

78
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApply.java

@ -0,0 +1,78 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply;
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: LoanVehClearanceApply.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApply <br/>
* Description: 车辆远程解控申请. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:56 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "车辆远程解控申请", description = "车辆远程解控申请")
@TableName("loan_veh_clearance_apply")
public class LoanVehClearanceApply extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty("创建人")
private String createByName; // 创建人
@ApiModelProperty("申请编号")
private String billNo; // 申请编号
@ApiModelProperty("申请部门sid")
private String deptSid; // 申请部门sid
@ApiModelProperty("申请部门名称")
private String deptName; // 申请部门名称
@ApiModelProperty("分公司sid")
private String useOrgSid; // 分公司sid
@ApiModelProperty("分公司名称")
private String useOrgName; // 分公司名称
@ApiModelProperty("组织全路径")
private String orgPath; // 组织全路径
@ApiModelProperty("流程定义的id")
private String procDefId; // 流程定义的id
@ApiModelProperty("环节定义的sid")
private String nodeSid; // 环节定义的sid
@ApiModelProperty("流程实例的sid")
private String procInstSid; // 流程实例的sid
@ApiModelProperty("流程状态")
private String nodeState; // 流程状态
@ApiModelProperty("任务id")
private String taskId; // 任务id
}

90
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyDetailsVo.java

@ -0,0 +1,90 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply;
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionFileVo;
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehDetailsVo;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceApplyVo.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo <br/>
* Description: 车辆远程解控申请 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "车辆远程解控申请 视图数据详情", description = "车辆远程解控申请 视图数据详情")
public class LoanVehClearanceApplyDetailsVo implements Vo {
private String sid; // sid
@ApiModelProperty("申请日期")
private String createTime;
@ApiModelProperty("创建人")
private String createByName; // 创建人
@ApiModelProperty("申请编号")
private String billNo; // 申请编号
@ApiModelProperty("申请部门sid")
private String deptSid; // 申请部门sid
@ApiModelProperty("申请部门名称")
private String deptName; // 申请部门名称
@ApiModelProperty("分公司sid")
private String useOrgSid; // 分公司sid
@ApiModelProperty("分公司名称")
private String useOrgName; // 分公司名称
@ApiModelProperty("组织全路径")
private String orgPath; // 组织全路径
@ApiModelProperty("流程定义的id")
private String procDefId; // 流程定义的id
@ApiModelProperty("环节定义的sid")
private String nodeSid; // 环节定义的sid
@ApiModelProperty("流程实例的sid")
private String procInstSid; // 流程实例的sid
@ApiModelProperty("流程状态")
private String nodeState; // 流程状态
@ApiModelProperty("任务id")
private String taskId; // 任务id
@ApiModelProperty("附件")
private List<LoanVehClearanceFileVo> files = new ArrayList<>();
@ApiModelProperty("逾期车辆列表")
private List<LoanVehClearanceVehDetailsVo> loanVehClearanceVehDetailsVoList;
}

88
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyDto.java

@ -0,0 +1,88 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply;
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionFileVo;
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehDto;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto;
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: LoanVehClearanceApplyDto.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyDto <br/>
* Description: 车辆远程解控申请 数据传输对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:56 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "车辆远程解控申请 数据传输对象", description = "车辆远程解控申请 数据传输对象")
public class LoanVehClearanceApplyDto implements Dto {
private String sid; // sid
@ApiModelProperty("创建人")
private String createByName; // 创建人
@ApiModelProperty("申请编号")
private String billNo; // 申请编号
@ApiModelProperty("申请部门sid")
private String deptSid; // 申请部门sid
@ApiModelProperty("申请部门名称")
private String deptName; // 申请部门名称
@ApiModelProperty("分公司sid")
private String useOrgSid; // 分公司sid
@ApiModelProperty("分公司名称")
private String useOrgName; // 分公司名称
@ApiModelProperty("组织全路径")
private String orgPath; // 组织全路径
@ApiModelProperty("流程定义的id")
private String procDefId; // 流程定义的id
@ApiModelProperty("环节定义的sid")
private String nodeSid; // 环节定义的sid
@ApiModelProperty("流程实例的sid")
private String procInstSid; // 流程实例的sid
@ApiModelProperty("流程状态")
private String nodeState; // 流程状态
@ApiModelProperty("任务id")
private String taskId; // 任务id
@ApiModelProperty("附件")
private List<LoanVehClearanceFileVo> files = new ArrayList<>();
@ApiModelProperty("逾期车辆列表")
private List<LoanVehClearanceVehDto> loanVehClearanceVehDtoList;
}

78
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyFeign.java

@ -0,0 +1,78 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply;
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: LoanVehClearanceApplyFeign.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyFeign <br/>
* Description: 车辆远程解控申请. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:56 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Api(tags = "车辆远程解控申请")
@FeignClient(
contextId = "anrui-riskcenter-LoanVehClearanceApply",
name = "anrui-riskcenter",
path = "v1/loanvehclearanceapply",
fallback = LoanVehClearanceApplyFeignFallback.class)
public interface LoanVehClearanceApplyFeign {
@ApiOperation("根据条件分页查询数据的列表")
@PostMapping("/listPage")
@ResponseBody
public ResultBean<PagerVo<LoanVehClearanceApplyVo>> listPage(@RequestBody PagerQuery<LoanVehClearanceApplyQuery> pq);
@ApiOperation("新增或修改")
@PostMapping("/save")
@ResponseBody
public ResultBean save(@RequestBody LoanVehClearanceApplyDto dto);
@ApiOperation("根据sid删除记录")
@DeleteMapping("/delBySids")
@ResponseBody
public ResultBean delBySids(@RequestBody String[] sids);
@ApiOperation("根据SID获取一条记录")
@GetMapping("/fetchDetailsBySid/{sid}")
@ResponseBody
public ResultBean<LoanVehClearanceApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid);
}

72
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyFeignFallback.java

@ -0,0 +1,72 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply;
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: LoanVehClearanceApplyFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyFeignFallback <br/>
* Description: 车辆远程解控申请. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:56 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Component
public class LoanVehClearanceApplyFeignFallback implements LoanVehClearanceApplyFeign {
@Override
public ResultBean<PagerVo<LoanVehClearanceApplyVo>> listPage(PagerQuery<LoanVehClearanceApplyQuery> pq){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loanvehclearanceapply/listPage无法访问");
}
@Override
public ResultBean save(LoanVehClearanceApplyDto dto){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanvehclearanceapply/save无法访问");
}
@Override
public ResultBean delBySids( String[] sids){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanvehclearanceapply/delBySids无法访问");
}
@Override
public ResultBean<LoanVehClearanceApplyDetailsVo> fetchDetailsBySid(String sid){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loanvehclearanceapply/fetchDetailsBySid无法访问");
}
}

71
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyQuery.java

@ -0,0 +1,71 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply;
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: LoanVehClearanceApplyQuery.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyQuery <br/>
* Description: 车辆远程解控申请 查询条件. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:56 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "车辆远程解控申请 查询条件", description = "车辆远程解控申请 查询条件")
public class LoanVehClearanceApplyQuery implements Query {
@ApiModelProperty("分公司名称")
private String useOrgName;
@ApiModelProperty("申请部门名称")
private String deptName;
@ApiModelProperty("创建人")
private String createByName;
@ApiModelProperty("申请开始时间")
private String createStartTime;
@ApiModelProperty("申请结束时间")
private String createEndTime;
@ApiModelProperty("办结开始时间")
private String modifyStartTime;
@ApiModelProperty("办结结束时间")
private String modifyEndTime;
private String userSid;
private String orgPath;
private String menuUrl;
private String menuSid;
}

78
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceApplyVo.java

@ -0,0 +1,78 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceApplyVo.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo <br/>
* Description: 车辆远程解控申请 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:56 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "车辆远程解控申请 视图数据对象", description = "车辆远程解控申请 视图数据对象")
public class LoanVehClearanceApplyVo implements Vo {
private String sid; // sid
@ApiModelProperty("流程状态")
private String nodeState;
@ApiModelProperty("分公司名称")
private String useOrgName;
@ApiModelProperty("申请部门名称")
private String deptName;
@ApiModelProperty("创建人")
private String createByName;
@ApiModelProperty("申请日期")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date createTime;
@ApiModelProperty("办结日期")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date modifyTime;
@ApiModelProperty("备注")
private String remarks;
@ApiModelProperty("流程定义的id")
private String procDefId;
@ApiModelProperty("流程实例的sid")
private String procInstSid;
}

51
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceapply/LoanVehClearanceFileVo.java

@ -0,0 +1,51 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* Project: anrui-riskcenter(催收措施申请) <br/>
* File: LoanBeCollectionApplyVo.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionApplyVo <br/>
* Description: 逾期催收申请 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-12 16:06:20 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "逾期催收申请 视图数据对象", description = "逾期催收申请 视图数据对象")
public class LoanVehClearanceFileVo implements Vo {
private String url;
}

84
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVeh.java

@ -0,0 +1,84 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh;
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: LoanVehClearanceVeh.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVeh <br/>
* Description: 车辆远程解控车辆. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "车辆远程解控车辆", description = "车辆远程解控车辆")
@TableName("loan_veh_clearance_veh")
public class LoanVehClearanceVeh extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty("贷款合同编号")
private String loanContractNo; // 贷款合同编号
@ApiModelProperty("车架号")
private String vinNo; // 车架号
@ApiModelProperty("车牌号")
private String carNum; // 车牌号
@ApiModelProperty("资方")
private String bankName; // 资方
@ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号
@ApiModelProperty("客户姓名")
private String customerName; // 客户姓名
@ApiModelProperty("贷款人姓名")
private String borrowerName; // 贷款人姓名
@ApiModelProperty("首次逾期日期")
private String firstBeDate; // 首次逾期日期
@ApiModelProperty("逾期期数")
private String beOverduePeriod; // 逾期期数
@ApiModelProperty("逾期金额")
private String beOverdueMoney; // 逾期金额
@ApiModelProperty("逾期金额换算期数")
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
@ApiModelProperty("远程控制费用")
private String lockCarMoney; // 远程控制费用
@ApiModelProperty("远程控制费实收")
private String lockCarRealityMoney; // 远程控制费实收
@ApiModelProperty("销售订单车辆sid")
private String saleVehSid; // 销售订单车辆sid
@ApiModelProperty("远程控制申请sid")
private String mainSid; // 远程控制申请sid
}

90
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehDetailsVo.java

@ -0,0 +1,90 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh;
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehFile;
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: LoanVehClearanceVehVo.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo <br/>
* Description: 车辆远程解控车辆 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "车辆远程解控车辆 视图数据详情", description = "车辆远程解控车辆 视图数据详情")
public class LoanVehClearanceVehDetailsVo implements Vo {
private String sid; // sid
@ApiModelProperty("贷款合同编号")
private String loanContractNo; // 贷款合同编号
@ApiModelProperty("车架号")
private String vinNo; // 车架号
@ApiModelProperty("车牌号")
private String carNum; // 车牌号
@ApiModelProperty("资方")
private String bankName; // 资方
@ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号
@ApiModelProperty("客户姓名")
private String customerName; // 客户姓名
@ApiModelProperty("贷款人姓名")
private String borrowerName; // 贷款人姓名
@ApiModelProperty("首次逾期日期")
private String firstBeDate; // 首次逾期日期
@ApiModelProperty("逾期期数")
private String beOverduePeriod; // 逾期期数
@ApiModelProperty("逾期金额")
private String beOverdueMoney; // 逾期金额
@ApiModelProperty("逾期金额换算期数")
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
@ApiModelProperty("远程控制费用")
private String lockCarMoney; // 远程控制费用
@ApiModelProperty("远程控制费实收")
private String lockCarRealityMoney; // 远程控制费实收
@ApiModelProperty("销售订单车辆sid")
private String saleVehSid; // 销售订单车辆sid
@ApiModelProperty("远程控制申请sid")
private String mainSid; // 远程控制申请sid
@ApiModelProperty
private List<LoanVehClearanceVehFile> sids;
}

85
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehDto.java

@ -0,0 +1,85 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh;
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: LoanVehClearanceVehDto.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto <br/>
* Description: 车辆远程解控车辆 数据传输对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "车辆远程解控车辆 数据传输对象", description = "车辆远程解控车辆 数据传输对象")
public class LoanVehClearanceVehDto implements Dto {
private String sid; // sid
@ApiModelProperty("贷款合同编号")
private String loanContractNo; // 贷款合同编号
@ApiModelProperty("车架号")
private String vinNo; // 车架号
@ApiModelProperty("车牌号")
private String carNum; // 车牌号
@ApiModelProperty("资方")
private String bankName; // 资方
@ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号
@ApiModelProperty("客户姓名")
private String customerName; // 客户姓名
@ApiModelProperty("贷款人姓名")
private String borrowerName; // 贷款人姓名
@ApiModelProperty("首次逾期日期")
private String firstBeDate; // 首次逾期日期
@ApiModelProperty("逾期期数")
private String beOverduePeriod; // 逾期期数
@ApiModelProperty("逾期金额")
private String beOverdueMoney; // 逾期金额
@ApiModelProperty("逾期金额换算期数")
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
@ApiModelProperty("远程控制费用")
private String lockCarMoney; // 远程控制费用
@ApiModelProperty("远程控制费实收")
private String lockCarRealityMoney; // 远程控制费实收
@ApiModelProperty("销售订单车辆sid")
private String saleVehSid; // 销售订单车辆sid
@ApiModelProperty("远程控制申请sid")
private String mainSid; // 远程控制申请sid
}

78
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehFeign.java

@ -0,0 +1,78 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh;
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: LoanVehClearanceVehFeign.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeign <br/>
* Description: 车辆远程解控车辆. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Api(tags = "车辆远程解控车辆")
@FeignClient(
contextId = "anrui-riskcenter-LoanVehClearanceVeh",
name = "anrui-riskcenter",
path = "v1/loanvehclearanceveh",
fallback = LoanVehClearanceVehFeignFallback.class)
public interface LoanVehClearanceVehFeign {
@ApiOperation("根据条件分页查询数据的列表")
@PostMapping("/listPage")
@ResponseBody
public ResultBean<PagerVo<LoanVehClearanceVehVo>> listPage(@RequestBody PagerQuery<LoanVehClearanceVehQuery> pq);
@ApiOperation("新增或修改")
@PostMapping("/save")
@ResponseBody
public ResultBean save(@RequestBody LoanVehClearanceVehDto dto);
@ApiOperation("根据sid删除记录")
@DeleteMapping("/delBySids")
@ResponseBody
public ResultBean delBySids(@RequestBody String[] sids);
@ApiOperation("根据SID获取一条记录")
@GetMapping("/fetchDetailsBySid/{sid}")
@ResponseBody
public ResultBean<LoanVehClearanceVehDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid);
}

72
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehFeignFallback.java

@ -0,0 +1,72 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh;
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: LoanVehClearanceVehFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeignFallback <br/>
* Description: 车辆远程解控车辆. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Component
public class LoanVehClearanceVehFeignFallback implements LoanVehClearanceVehFeign {
@Override
public ResultBean<PagerVo<LoanVehClearanceVehVo>> listPage(PagerQuery<LoanVehClearanceVehQuery> pq){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loanvehclearanceveh/listPage无法访问");
}
@Override
public ResultBean save(LoanVehClearanceVehDto dto){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanvehclearanceveh/save无法访问");
}
@Override
public ResultBean delBySids( String[] sids){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanvehclearanceveh/delBySids无法访问");
}
@Override
public ResultBean<LoanVehClearanceVehDetailsVo> fetchDetailsBySid(String sid){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loanvehclearanceveh/fetchDetailsBySid无法访问");
}
}

52
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehFile.java

@ -0,0 +1,52 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* Project: anrui-riskcenter(催收措施申请) <br/>
* File: LoanBeCollectionVehVo.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehVo <br/>
* Description: 逾期催收车辆 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-12 16:06:20 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "逾期催收车辆 视图数据详情", description = "逾期催收车辆 视图数据详情")
public class LoanVehClearanceVehFile implements Vo {
private String name;
private String sid;
}

83
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehQuery.java

@ -0,0 +1,83 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh;
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: LoanVehClearanceVehQuery.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehQuery <br/>
* Description: 车辆远程解控车辆 查询条件. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "车辆远程解控车辆 查询条件", description = "车辆远程解控车辆 查询条件")
public class LoanVehClearanceVehQuery implements Query {
@ApiModelProperty("贷款合同编号")
private String loanContractNo; // 贷款合同编号
@ApiModelProperty("车架号")
private String vinNo; // 车架号
@ApiModelProperty("车牌号")
private String carNum; // 车牌号
@ApiModelProperty("资方")
private String bankName; // 资方
@ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号
@ApiModelProperty("客户姓名")
private String customerName; // 客户姓名
@ApiModelProperty("贷款人姓名")
private String borrowerName; // 贷款人姓名
@ApiModelProperty("首次逾期日期")
private String firstBeDate; // 首次逾期日期
@ApiModelProperty("逾期期数")
private String beOverduePeriod; // 逾期期数
@ApiModelProperty("逾期金额")
private String beOverdueMoney; // 逾期金额
@ApiModelProperty("逾期金额换算期数")
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
@ApiModelProperty("远程控制费用")
private String lockCarMoney; // 远程控制费用
@ApiModelProperty("远程控制费实收")
private String lockCarRealityMoney; // 远程控制费实收
@ApiModelProperty("销售订单车辆sid")
private String saleVehSid; // 销售订单车辆sid
@ApiModelProperty("远程控制申请sid")
private String mainSid; // 远程控制申请sid
}

85
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehVo.java

@ -0,0 +1,85 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh;
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: LoanVehClearanceVehVo.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo <br/>
* Description: 车辆远程解控车辆 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "车辆远程解控车辆 视图数据对象", description = "车辆远程解控车辆 视图数据对象")
public class LoanVehClearanceVehVo implements Vo {
private String sid; // sid
@ApiModelProperty("贷款合同编号")
private String loanContractNo; // 贷款合同编号
@ApiModelProperty("车架号")
private String vinNo; // 车架号
@ApiModelProperty("车牌号")
private String carNum; // 车牌号
@ApiModelProperty("资方")
private String bankName; // 资方
@ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号
@ApiModelProperty("客户姓名")
private String customerName; // 客户姓名
@ApiModelProperty("贷款人姓名")
private String borrowerName; // 贷款人姓名
@ApiModelProperty("首次逾期日期")
private String firstBeDate; // 首次逾期日期
@ApiModelProperty("逾期期数")
private String beOverduePeriod; // 逾期期数
@ApiModelProperty("逾期金额")
private String beOverdueMoney; // 逾期金额
@ApiModelProperty("逾期金额换算期数")
private String beOverdueMoneyAndPeriod; // 逾期金额换算期数
@ApiModelProperty("远程控制费用")
private String lockCarMoney; // 远程控制费用
@ApiModelProperty("远程控制费实收")
private String lockCarRealityMoney; // 远程控制费实收
@ApiModelProperty("销售订单车辆sid")
private String saleVehSid; // 销售订单车辆sid
@ApiModelProperty("远程控制申请sid")
private String mainSid; // 远程控制申请sid
}

3
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanbuckleapply/LoanBuckleApplyMapper.xml

@ -28,7 +28,8 @@
remarks,
billNo,
procDefId,
procInstId
procInstId,
date_format(closingDate, '%Y-%m-%d') as closingDate
FROM loan_buckle_apply
<where>
${ew.sqlSegment}

12
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanbuckleapply/LoanBuckleApplyService.java

@ -149,6 +149,11 @@ public class LoanBuckleApplyService extends MybatisBaseService<LoanBuckleApplyMa
qw.apply(StringUtils.isNotEmpty(applyStartTime), "date_format (applyDate,'%Y-%m-%d') >= date_format('" + applyStartTime + "','%Y-%m-%d')").
apply(StringUtils.isNotEmpty(applyEndTime), "date_format (applyDate,'%Y-%m-%d') <= date_format('" + applyEndTime + "','%Y-%m-%d')"
);
String closingStartDate = pagerQuery.getClosingStartDate();
String closingEndDate = pagerQuery.getClosingEndDate();
qw.apply(StringUtils.isNotEmpty(closingStartDate), "date_format (closingDate,'%Y-%m-%d') >= date_format('" + closingStartDate + "','%Y-%m-%d')").
apply(StringUtils.isNotEmpty(closingEndDate), "date_format (closingDate,'%Y-%m-%d') <= date_format('" + closingEndDate + "','%Y-%m-%d')"
);
qw.eq("isDelete", 0);
qw.orderByDesc("createTime");
IPage<LoanBuckleApplyVo> pagging = baseMapper.listPage(page, qw);
@ -175,8 +180,6 @@ public class LoanBuckleApplyService extends MybatisBaseService<LoanBuckleApplyMa
}
/**
* 生成申请单单据编号
*
@ -200,6 +203,9 @@ public class LoanBuckleApplyService extends MybatisBaseService<LoanBuckleApplyMa
public ResultBean<String> saveBuckle(LoanBuckleApplyDto dto) {
ResultBean<String> rb = ResultBean.fireFail();
String sid = "";
if (dto.getRecords().isEmpty()) {
return rb.setMsg("当月还款记录列表不能为空");
}
if (StringUtils.isNotBlank(dto.getSid())) {
sid = dto.getSid();
LoanBuckleApply updateEntity = fetchBySid(sid);
@ -378,6 +384,8 @@ public class LoanBuckleApplyService extends MybatisBaseService<LoanBuckleApplyMa
ResultBean<String> resultBean = saveBuckle(dto);
if (resultBean.getSuccess()) {
businessSid = resultBean.getData();
} else {
return rb.setMsg(resultBean.getMsg());
}
LoanBuckleApply entity = fetchBySid(businessSid);
String orgSidPath = "";

2
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymenthistory/LoanRepaymentHistoryMapper.java

@ -42,7 +42,7 @@ public interface LoanRepaymentHistoryMapper extends BaseMapper<LoanRepaymentHist
IPage<TransferPaymentVo> transferPaymentList(IPage<LoanRepaymentHistory> page, @Param(Constants.WRAPPER) QueryWrapper<LoanRepaymentHistory> qw);
IPage<RepaymentStatisticsVo> repaymentStatistics(IPage<LoanRepaymentHistory> page, @Param(Constants.WRAPPER) QueryWrapper<LoanRepaymentHistory> qw);
List<RepaymentStatisticsVo> repaymentStatistics(@Param(Constants.WRAPPER) QueryWrapper<LoanRepaymentHistory> qw);
List<String> selnewUpdateTimeByPlanSid(@Param("sid") String sid);

1
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymenthistory/LoanRepaymentHistoryMapper.xml

@ -100,6 +100,7 @@
select *
from loan_repayment_history
where planDetailSid = #{planSid}
and returnWayKey != '02'
</select>
<select id="selUpdateStateList" resultType="java.lang.String">
SELECT

84
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymenthistory/LoanRepaymentHistoryService.java

@ -137,6 +137,7 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen
private ReturnExcelInfo getSheetVal(Sheet sheet, int[] resultCell) {
ReturnExcelInfo importReturn = new ReturnExcelInfo();
List<RepaymentExcelInfo> importVoList = new ArrayList<>();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
int[] resultIndex = new int[resultCell.length];
Set<String> checkWord = new HashSet<>();
Set<String> checkWord2 = new HashSet<>();
@ -154,6 +155,18 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen
NullPointerException nullPointerException = new NullPointerException();
}
String temp = getCellVal(row.getCell(i)).toString().trim();
Date dateCellValue = null;
String check = new String();
if (i == 2) {
if (StringUtils.isNotBlank(temp)) {
if (temp.contains("-")) {
check = "0";
} else {
dateCellValue = row.getCell(2).getDateCellValue();
check = "1";
}
}
}
for (int j = 0; j < resultCell.length; j++) {
if (i == resultCell[j]) {
switch (i) {
@ -164,7 +177,11 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen
importVo.setPeriod(temp);
break;
case 2:
importVo.setRealReturnTime(temp);
if (check.equals("1")) {
importVo.setRealReturnTime(sdf.format(dateCellValue));
} else if (check.equals("0")) {
importVo.setRealReturnTime(temp);
}
break;
case 3:
importVo.setRealMoney(temp);
@ -204,7 +221,7 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen
importVoList.add(importVo);
}
StringBuffer sbBankCNo = new StringBuffer();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
if (!importVoList.isEmpty()) {
for (RepaymentExcelInfo excelInfo : importVoList) {
if (StringUtils.isBlank(excelInfo.getRealReturnTime()) ||
@ -474,6 +491,7 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen
qw.ne("h.buckleKey", "002");
qw.ne("h.buckleKey", "003");
}
qw.ne("h.returnWayKey","02");
String dueStartDate = pagerQuery.getDueStartDate();
String dueEndDate = pagerQuery.getDueEndDate();
qw.apply(StringUtils.isNotEmpty(dueStartDate), "date_format (p.dueDate,'%Y-%m-%d') >= date_format('" + dueStartDate + "','%Y-%m-%d')").
@ -713,6 +731,8 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen
baseMapper.updateById(repaymentHistory);
}
}
} else {
return rb.setMsg("暂无可更新的还款记录");
}
return rb.success();
}
@ -839,10 +859,19 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen
}
}
qw.eq("h.returnWayKey", "02");
qw.apply("date_format (h.actualDate,'%Y-%m-%d') <= date_format(p.dueDate,'%Y-%m-%d')");
if (StringUtils.isNotBlank(pagerQuery.getOverdue())) {
if ("1".equals(pagerQuery.getOverdue())) {
qw.apply("date_format (h.actualDate,'%Y-%m-%d') <= date_format(p.dueDate,'%Y-%m-%d')");
} else if ("0".equals(pagerQuery.getOverdue())) {
qw.apply("date_format (h.actualDate,'%Y-%m-%d') > date_format(p.dueDate,'%Y-%m-%d')");
}
}
if (StringUtils.isNotBlank(pagerQuery.getVinNo())) {
qw.like("p.vinNo", pagerQuery.getVinNo());
}
if (StringUtils.isNotBlank(pagerQuery.getLoanContractNo())) {
qw.like("p.loanContractNo", pagerQuery.getLoanContractNo());
}
if (StringUtils.isNotBlank(pagerQuery.getPeriod())) {
qw.eq("p.period", pagerQuery.getPeriod());
}
@ -871,7 +900,7 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen
}
public PagerVo<RepaymentStatisticsVo> repaymentStatistics(PagerQuery<RepaymentStatisticsQuery> pq) {
IPage<LoanRepaymentHistory> page = PagerUtil.queryToPage(pq);
PagerVo<RepaymentStatisticsVo> pagerVo = new PagerVo<>();
RepaymentStatisticsQuery pagerQuery = pq.getParams();
QueryWrapper<LoanRepaymentHistory> qw = new QueryWrapper<>();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
@ -958,8 +987,7 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen
.orderBy(true, true, "a.period")
.orderBy(true, true, "a.loanContractNo")
;
IPage<RepaymentStatisticsVo> pagging = baseMapper.repaymentStatistics(page, qw);
List<RepaymentStatisticsVo> records = pagging.getRecords();
List<RepaymentStatisticsVo> records = baseMapper.repaymentStatistics(qw);
records.removeAll(Collections.singleton(null));
if (!records.isEmpty()) {
for (RepaymentStatisticsVo record : records) {
@ -1069,9 +1097,47 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen
}
}).collect(Collectors.toList());
}
pagging.setRecords(records);
PagerVo<RepaymentStatisticsVo> p = PagerUtil.pageToVo(pagging, null);
return p;
if (!records.isEmpty()) {
List<RepaymentStatisticsVo> lastList = this.pageBySubList(records, (int) pq.getSize(), (int) pq.getCurrent());
pagerVo.setRecords(lastList);
pagerVo.setTotal(records.size());
pagerVo.setCurrent(pq.getCurrent());
pagerVo.setSize(pq.getSize());
if (records.size() % pq.getSize() != 0L) {
pagerVo.setPages((records.size() / pq.getSize()) + 1);
} else {
pagerVo.setPages(records.size() / pq.getSize());
}
pagerVo.setMsg("当前共查询到" + records.size() + "条记录");
}
return pagerVo;
}
/**
* 分页方法
*/
public List<RepaymentStatisticsVo> pageBySubList(List<RepaymentStatisticsVo> list, int pagesize, int currentPage) {
int totalcount = list.size();
int pagecount = 0;
List<RepaymentStatisticsVo> subList;
int m = totalcount % pagesize;
if (m > 0) {
pagecount = totalcount / pagesize + 1;
} else {
pagecount = totalcount / pagesize;
}
if (m == 0) {
subList = list.subList((currentPage - 1) * pagesize, pagesize * (currentPage));
} else {
if (currentPage == pagecount) {
subList = list.subList((currentPage - 1) * pagesize, totalcount);
} else {
subList = list.subList((currentPage - 1) * pagesize, pagesize * (currentPage));
}
}
return subList;
}
public PagerVo<RepaymentDetailsListVo> repaymentDetailsList(PagerQuery<RepaymentDetailsListQuery> pq) {

3
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loantransferpaymentapply/LoanTransferPaymentApplyMapper.xml

@ -43,7 +43,8 @@
remarks,
billNo,
procDefId,
procInstId
procInstId,
date_format(closingDate, '%Y-%m-%d') as closingDate
FROM loan_transfer_payment_apply
<where>
${ew.sqlSegment}

8
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loantransferpaymentapply/LoanTransferPaymentApplyService.java

@ -288,6 +288,11 @@ public class LoanTransferPaymentApplyService extends MybatisBaseService<LoanTran
qw.apply(StringUtils.isNotEmpty(applyStartTime), "date_format (applyDate,'%Y-%m-%d') >= date_format('" + applyStartTime + "','%Y-%m-%d')").
apply(StringUtils.isNotEmpty(applyEndTime), "date_format (applyDate,'%Y-%m-%d') <= date_format('" + applyEndTime + "','%Y-%m-%d')"
);
String closingStartDate = pagerQuery.getClosingStartDate();
String closingEndDate = pagerQuery.getClosingEndDate();
qw.apply(StringUtils.isNotEmpty(closingStartDate), "date_format (closingDate,'%Y-%m-%d') >= date_format('" + closingStartDate + "','%Y-%m-%d')").
apply(StringUtils.isNotEmpty(closingEndDate), "date_format (closingDate,'%Y-%m-%d') <= date_format('" + closingEndDate + "','%Y-%m-%d')"
);
qw.eq("isDelete", 0);
qw.orderByDesc("createTime");
IPage<LoanTransferPaymentApplyVo> pagging = baseMapper.listPage(page, qw);
@ -574,6 +579,9 @@ public class LoanTransferPaymentApplyService extends MybatisBaseService<LoanTran
}
int i = updateFlowFiled(BeanUtil.beanToMap(resultBean.getData()));
if ("Event_end".equals(resultBean.getData().getTaskDefKey())) {
LoanTransferPaymentApply apply = fetchBySid(businessSid);
apply.setClosingDate(new DateTime());
baseMapper.updateById(apply);
List<LoanTransferPaymentRecord> loanTransferPaymentRecords = loanTransferPaymentRecordService.selByMainSid(businessSid);
if (!loanTransferPaymentRecords.isEmpty()) {
for (LoanTransferPaymentRecord applyRecord : loanTransferPaymentRecords) {

67
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceapply/LoanVehClearanceApplyMapper.java

@ -0,0 +1,67 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loanvehclearanceapply;
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.loanvehclearanceapply.LoanVehClearanceApply;
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo;
import java.util.List;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceApplyMapper.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceapply.LoanVehClearanceApplyMapper <br/>
* Description: 车辆远程解控申请. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:56 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Mapper
public interface LoanVehClearanceApplyMapper extends BaseMapper<LoanVehClearanceApply> {
//@Update("update loan_veh_clearance_apply set name=#{msg} where id=#{id}")
//IPage<LoanVehClearanceApplyVo> voPage(IPage<LoanVehClearanceApply> page, @Param(Constants.WRAPPER) QueryWrapper<LoanVehClearanceApply> qw);
IPage<LoanVehClearanceApplyVo> selectPageVo(IPage<LoanVehClearanceApply> page, @Param(Constants.WRAPPER) Wrapper<LoanVehClearanceApply> qw);
List<LoanVehClearanceApplyVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanVehClearanceApply> qw);
@Select("select * from loan_veh_clearance_apply")
List<LoanVehClearanceApplyVo> selectListVo();
String selectNum(String billNo);
}

21
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceapply/LoanVehClearanceApplyMapper.xml

@ -0,0 +1,21 @@
<?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.loanvehclearanceapply.LoanVehClearanceApplyMapper">
<!-- <where> ${ew.sqlSegment} </where>-->
<!-- ${ew.customSqlSegment} -->
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo">
SELECT * FROM loan_veh_clearance_apply <where> ${ew.sqlSegment} </where>
</select>
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo">
SELECT * FROM loan_veh_clearance_apply <where> ${ew.sqlSegment} </where>
</select>
<select id="selectNum" resultType="java.lang.String">
select RIGHT (billNo, 4)
from loan_veh_clearance_apply
where billNo LIKE concat(#{billNo}, '%')
order by billNo desc
limit 1
</select>
</mapper>

100
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceapply/LoanVehClearanceApplyRest.java

@ -0,0 +1,100 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loanvehclearanceapply;
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;
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApply;
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyQuery;
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyVo;
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyDetailsVo;
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyDto;
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyFeign;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceApplyFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceapply.LoanVehClearanceApplyRest <br/>
* Description: 车辆远程解控申请. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:56 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Api(tags = "车辆远程解控申请")
@RestController("com.yxt.anrui.riskcenter.biz.loanvehclearanceapply.LoanVehClearanceApplyRest")
@RequestMapping("v1/loanvehclearanceapply")
public class LoanVehClearanceApplyRest implements LoanVehClearanceApplyFeign {
@Autowired
private LoanVehClearanceApplyService loanVehClearanceApplyService;
@Override
@ApiOperation("根据条件分页查询数据的列表")
@PostMapping("/listPage")
public ResultBean<PagerVo<LoanVehClearanceApplyVo>> listPage(@RequestBody PagerQuery<LoanVehClearanceApplyQuery> pq){
ResultBean rb = ResultBean.fireFail();
PagerVo<LoanVehClearanceApplyVo> pv = loanVehClearanceApplyService.listPageVo(pq);
return rb.success().setData(pv);
}
@Override
@ApiOperation("新增或修改")
@PostMapping("/save")
public ResultBean save(@RequestBody LoanVehClearanceApplyDto dto){
ResultBean rb = ResultBean.fireFail();
loanVehClearanceApplyService.saveOrUpdateDto(dto);
return rb.success();
}
@Override
@ApiOperation("根据sid批量删除")
@DeleteMapping("/delBySids")
public ResultBean delBySids(@RequestBody String[] sids){
ResultBean rb = ResultBean.fireFail();
loanVehClearanceApplyService.delBySids(sids);
return rb.success();
}
@Override
@ApiOperation("根据SID获取一条记录")
@GetMapping("/fetchDetailsBySid/{sid}")
public ResultBean<LoanVehClearanceApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){
ResultBean rb = ResultBean.fireFail();
LoanVehClearanceApplyDetailsVo vo = loanVehClearanceApplyService.fetchDetailsVoBySid(sid);
return rb.success().setData(vo);
}
}

319
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceapply/LoanVehClearanceApplyService.java

@ -0,0 +1,319 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loanvehclearanceapply;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yxt.anrui.base.common.utils.Rule;
import com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrder;
import com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrderFeign;
import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusSalesOrderVehicle;
import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusSalesOrderVehicleFeign;
import com.yxt.anrui.fin.api.finvehicleinvoice.FinVehicleInvoice;
import com.yxt.anrui.fin.api.finvehicleinvoice.FinVehicleInvoiceFeign;
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign;
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo;
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery;
import com.yxt.anrui.portal.api.sysuser.SysUserFeign;
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionApply;
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionApplyDetailsVo;
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionApplyVo;
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionFileVo;
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehDetailsVo;
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehDto;
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehFile;
import com.yxt.anrui.riskcenter.api.loanfile.LoanFile;
import com.yxt.anrui.riskcenter.api.loanfile.LoanFileEnum;
import com.yxt.anrui.riskcenter.api.loansolutions.LoanSolutions;
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.*;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFile;
import com.yxt.anrui.riskcenter.biz.loanfile.LoanFileService;
import com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigate.LoanHomevisitInvestigateService;
import com.yxt.anrui.riskcenter.biz.loansolutions.LoanSolutionsService;
import com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehService;
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 javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceApplyService.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceapply.LoanVehClearanceApplyService <br/>
* Description: 车辆远程解控申请 业务逻辑. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:56 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Service
public class LoanVehClearanceApplyService extends MybatisBaseService<LoanVehClearanceApplyMapper, LoanVehClearanceApply> {
@Autowired
private SysUserFeign sysUserFeign;
@Resource
private SysOrganizationFeign sysOrganizationFeign;
@Autowired
private FileUploadComponent fileUploadComponent;
@Autowired
private LoanFileService loanFileService;
@Autowired
private LoanVehClearanceVehService loanVehClearanceVehService;
@Autowired
private BusSalesOrderVehicleFeign busSalesOrderVehicleFeign;
@Autowired
private BusSalesOrderFeign busSalesOrderFeign;
@Autowired
private LoanSolutionsService loanSolutionsService;
@Autowired
private FinVehicleInvoiceFeign finVehicleInvoiceFeign;
@Autowired
private LoanHomevisitInvestigateService loanHomevisitInvestigateService;
public PagerVo<LoanVehClearanceApplyVo> listPageVo(PagerQuery<LoanVehClearanceApplyQuery> pq) {
LoanVehClearanceApplyQuery query = pq.getParams();
QueryWrapper<LoanVehClearanceApply> qw = new QueryWrapper<>();
//========================================数据授权开始
if (StringUtils.isNotBlank(query.getMenuUrl())) {
PrivilegeQuery privilegeQuery = new PrivilegeQuery();
privilegeQuery.setOrgPath(query.getOrgPath());
privilegeQuery.setMenuUrl(query.getMenuUrl());
privilegeQuery.setMenuSid(query.getMenuSid());
privilegeQuery.setUserSid(query.getUserSid());
ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery);
if (StringUtils.isNotBlank(defaultIdReltBean.getData())) {
//数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
String orgSidPath = query.getOrgPath();
orgSidPath = orgSidPath + "/";
int i1 = orgSidPath.indexOf("/");
int i2 = orgSidPath.indexOf("/", i1 + 1);
int i3 = orgSidPath.indexOf("/", i2 + 1);
int i4 = orgSidPath.indexOf("/", i3 + 1);
String orgLevelKey = defaultIdReltBean.getData();
if ("1".equals(orgLevelKey)) {
orgSidPath = orgSidPath.substring(0, i1);
qw.like("orgPath", orgSidPath);
} else if ("2".equals(orgLevelKey)) {
orgSidPath = orgSidPath.substring(0, i2);
qw.like("orgPath", orgSidPath);
} else if ("3".equals(orgLevelKey)) {
orgSidPath = orgSidPath.substring(0, i3);
qw.like("orgPath", orgSidPath);
} else if ("4".equals(orgLevelKey)) {
orgSidPath = orgSidPath.substring(0, i4);
qw.like("orgPath", orgSidPath);
} else if ("5".equals(orgLevelKey)) {
qw.eq("createBySid", query.getUserSid());
} else {
PagerVo<LoanVehClearanceApplyVo> p = new PagerVo<>();
return p;
}
} else {
PagerVo<LoanVehClearanceApplyVo> p = new PagerVo<>();
return p;
}
}
if (StringUtils.isNotBlank(query.getUseOrgName())) {
qw.like("useOrgName", query.getUseOrgName());
}
if (StringUtils.isNotBlank(query.getDeptName())) {
qw.like("deptName", query.getDeptName());
}
if (StringUtils.isNotBlank(query.getCreateByName())) {
qw.like("createByName", query.getCreateByName());
}
qw.apply(StringUtils.isNotBlank(query.getCreateStartTime()), "date_format (createTime,'%Y-%m-%d') >= date_format('" + query.getCreateStartTime() + "','%Y-%m-%d')").
apply(StringUtils.isNotBlank(query.getCreateEndTime()), "date_format (createTime,'%Y-%m-%d') <= date_format('" + query.getCreateEndTime() + "','%Y-%m-%d')"
);
qw.apply(StringUtils.isNotBlank(query.getModifyStartTime()), "date_format (modifyTime,'%Y-%m-%d') >= date_format('" + query.getModifyStartTime() + "','%Y-%m-%d')").
apply(StringUtils.isNotBlank(query.getModifyEndTime()), "date_format (modifyTime,'%Y-%m-%d') <= date_format('" + query.getModifyEndTime() + "','%Y-%m-%d')"
);
qw.orderByDesc("createTime");
IPage<LoanVehClearanceApply> page = PagerUtil.queryToPage(pq);
IPage<LoanVehClearanceApplyVo> pagging = baseMapper.selectPageVo(page, qw);
PagerVo<LoanVehClearanceApplyVo> p = PagerUtil.pageToVo(pagging, null);
return p;
}
public String saveOrUpdateDto(LoanVehClearanceApplyDto dto){
String dtoSid = dto.getSid();
List<LoanVehClearanceVehDto> loanVehClearanceVehDtoList = dto.getLoanVehClearanceVehDtoList();
List<LoanVehClearanceFileVo> files = dto.getFiles();
if (StringUtils.isBlank(dtoSid)) {
//生成单据编号
String billNo = "";
String date = DateUtil.format(DateUtil.date(), "yyyyMM");
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.fetchBySid(dto.getUseOrgSid()).getData();
billNo = "CLYCJK" + sysOrganizationVo.getOrgCode() + date;
String i = baseMapper.selectNum(billNo);
if (StringUtils.isNotBlank(i)) {
billNo = Rule.getBillNo(billNo, Integer.valueOf(i).intValue());
} else {
billNo = Rule.getBillNo(billNo, 0);
}
dto.setBillNo(billNo);
String sid = this.insertByDto(dto);
if (files != null && files.size() > 0){
for (LoanVehClearanceFileVo file : files) {
LoanFile loanFile = new LoanFile();
loanFile.setLinkSid(sid);
loanFile.setAttachType(LoanFileEnum.VEHCLEARANCE.getAttachType());
String filePath = file.getUrl();
if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanFile.setFilePath(filePath);
loanFileService.save(loanFile);
}
}
for (LoanVehClearanceVehDto loanVehClearanceVehDto : loanVehClearanceVehDtoList) {
loanVehClearanceVehDto.setMainSid(sid);
loanVehClearanceVehService.saveOrUpdateDto(loanVehClearanceVehDto);
}
return sid;
}
this.updateByDto(dto);
loanFileService.delByLinkSidOrType(dtoSid,LoanFileEnum.VEHCLEARANCE.getAttachType());
if (files != null && files.size() > 0){
for (LoanVehClearanceFileVo file : files) {
LoanFile loanFile = new LoanFile();
loanFile.setLinkSid(dtoSid);
loanFile.setAttachType(LoanFileEnum.VEHCLEARANCE.getAttachType());
String filePath = file.getUrl();
if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), "");
}
loanFile.setFilePath(filePath);
loanFileService.save(loanFile);
}
}
loanVehClearanceVehService.delByMainSid(dtoSid);
for (LoanVehClearanceVehDto loanVehClearanceVehDto : loanVehClearanceVehDtoList) {
loanVehClearanceVehDto.setMainSid(dtoSid);
loanVehClearanceVehDto.setSid("");
loanVehClearanceVehService.saveOrUpdateDto(loanVehClearanceVehDto);
}
return dtoSid;
}
public String insertByDto(LoanVehClearanceApplyDto dto){
LoanVehClearanceApply entity = new LoanVehClearanceApply();
BeanUtil.copyProperties(dto, entity, "id", "sid");
entity.setNodeState("待提交");
baseMapper.insert(entity);
return entity.getSid();
}
public void updateByDto(LoanVehClearanceApplyDto dto){
String dtoSid = dto.getSid();
if (StringUtils.isBlank(dtoSid)) {
return;
}
LoanVehClearanceApply entity = fetchBySid(dtoSid);
BeanUtil.copyProperties(dto, entity, "id", "sid");
baseMapper.updateById(entity);
}
public LoanVehClearanceApplyDetailsVo fetchDetailsVoBySid(String sid){
LoanVehClearanceApply entity = fetchBySid(sid);
LoanVehClearanceApplyDetailsVo vo = new LoanVehClearanceApplyDetailsVo();
BeanUtil.copyProperties(entity, vo);
vo.setCreateTime(DateUtil.formatDate(entity.getCreateTime()));
List<LoanFile> loanFiles = loanFileService.selectByLinkSid(sid, LoanFileEnum.VEHCLEARANCE.getAttachType());
List<LoanVehClearanceFileVo> loanVehClearanceFileVos = new ArrayList<>();
if (loanFiles != null && loanFiles.size() > 0){
for (LoanFile loanFile : loanFiles) {
LoanVehClearanceFileVo loanVehClearanceFileVo = new LoanVehClearanceFileVo();
String filePath = loanFile.getFilePath();
String urlPrefix = fileUploadComponent.getUrlPrefix();
filePath = urlPrefix + filePath;
loanVehClearanceFileVo.setUrl(filePath);
loanVehClearanceFileVos.add(loanVehClearanceFileVo);
}
}
vo.setFiles(loanVehClearanceFileVos);
List<LoanVehClearanceVehDetailsVo> loanVehClearanceVehDetailsVoList = loanVehClearanceVehService.selByMainSid(sid);
for (LoanVehClearanceVehDetailsVo loanVehClearanceVehDetailsVo : loanVehClearanceVehDetailsVoList) {
List<LoanVehClearanceVehFile> loanVehClearanceVehFiles = new ArrayList<>();
BusSalesOrderVehicle busSalesOrderVehicle1 = busSalesOrderVehicleFeign.details(loanVehClearanceVehDetailsVo.getSaleVehSid()).getData();
BusSalesOrder busSalesOrder = busSalesOrderFeign.fetchBySid(busSalesOrderVehicle1.getSalesOrderSid()).getData();
//催收记录sid
LoanVehClearanceVehFile loanVehClearanceVehFile1 = new LoanVehClearanceVehFile();
loanVehClearanceVehFile1.setName("催收记录");
loanVehClearanceVehFile1.setSid(loanVehClearanceVehDetailsVo.getSaleVehSid());
loanVehClearanceVehFiles.add(loanVehClearanceVehFile1);
//开票管理sid
FinVehicleInvoice finVehicleInvoice = finVehicleInvoiceFeign.selectByVinAndContractNo(busSalesOrderVehicle1.getLinkSid(), busSalesOrder.getContractNo()).getData();
LoanVehClearanceVehFile loanVehClearanceVehFile2 = new LoanVehClearanceVehFile();
loanVehClearanceVehFile2.setName("开票信息");
loanVehClearanceVehFile2.setSid(finVehicleInvoice.getSid());
loanVehClearanceVehFiles.add(loanVehClearanceVehFile2);
//月还明细sid
LoanVehClearanceVehFile loanVehClearanceVehFile3 = new LoanVehClearanceVehFile();
loanVehClearanceVehFile3.setName("月还明细");
loanVehClearanceVehFile3.setSid(loanVehClearanceVehDetailsVo.getSaleVehSid());
loanVehClearanceVehFiles.add(loanVehClearanceVehFile3);
//金融方案sid
LoanSolutions loanSolutions = loanSolutionsService.selectBySaleOrderSid(busSalesOrder.getSid());
LoanVehClearanceVehFile loanVehClearanceVehFile4 = new LoanVehClearanceVehFile();
loanVehClearanceVehFile4.setName("金融方案");
loanVehClearanceVehFile4.setSid(loanSolutions.getSid());
loanVehClearanceVehFiles.add(loanVehClearanceVehFile4);
//家访考察报告sid
String jfkcSid = loanHomevisitInvestigateService.selectByBorrSid(busSalesOrderVehicle1.getBorrowerSid());
LoanVehClearanceVehFile loanVehClearanceVehFile5 = new LoanVehClearanceVehFile();
loanVehClearanceVehFile5.setName("家访考察报告");
loanVehClearanceVehFile5.setSid(jfkcSid);
loanVehClearanceVehFiles.add(loanVehClearanceVehFile5);
//家访考察资料sid
LoanVehClearanceVehFile loanVehClearanceVehFile6 = new LoanVehClearanceVehFile();
loanVehClearanceVehFile6.setName("家访考察资料");
loanVehClearanceVehFile6.setSid(jfkcSid);
loanVehClearanceVehFiles.add(loanVehClearanceVehFile6);
loanVehClearanceVehDetailsVo.setSids(loanVehClearanceVehFiles);
}
vo.setLoanVehClearanceVehDetailsVoList(loanVehClearanceVehDetailsVoList);
return vo;
}
}

73
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehMapper.java

@ -0,0 +1,73 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loanvehclearanceveh;
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 com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVeh;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo;
import java.util.List;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceVehMapper.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehMapper <br/>
* Description: 车辆远程解控车辆. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Mapper
public interface LoanVehClearanceVehMapper extends BaseMapper<LoanVehClearanceVeh> {
//@Update("update loan_veh_clearance_veh set name=#{msg} where id=#{id}")
//IPage<LoanVehClearanceVehVo> voPage(IPage<LoanVehClearanceVeh> page, @Param(Constants.WRAPPER) QueryWrapper<LoanVehClearanceVeh> qw);
IPage<LoanVehClearanceVehVo> selectPageVo(IPage<LoanVehClearanceVeh> page, @Param(Constants.WRAPPER) Wrapper<LoanVehClearanceVeh> qw);
List<LoanVehClearanceVehVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanVehClearanceVeh> qw);
@Select("select * from loan_veh_clearance_veh")
List<LoanVehClearanceVehVo> selectListVo();
@Delete("delete from loan_veh_clearance_veh where mainSid = #{dtoSid}")
void delByMainSid(String dtoSid);
@Select("select * from loan_veh_clearance_veh where mainSid = #{sid}")
List<LoanVehClearanceVehDetailsVo> selByMainSid(String sid);
}

13
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehMapper.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehMapper">
<!-- <where> ${ew.sqlSegment} </where>-->
<!-- ${ew.customSqlSegment} -->
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo">
SELECT * FROM loan_veh_clearance_veh <where> ${ew.sqlSegment} </where>
</select>
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo">
SELECT * FROM loan_veh_clearance_veh <where> ${ew.sqlSegment} </where>
</select>
</mapper>

100
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehRest.java

@ -0,0 +1,100 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loanvehclearanceveh;
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;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVeh;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehQuery;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeign;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceVehFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehRest <br/>
* Description: 车辆远程解控车辆. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Api(tags = "车辆远程解控车辆")
@RestController("com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehRest")
@RequestMapping("v1/loanvehclearanceveh")
public class LoanVehClearanceVehRest implements LoanVehClearanceVehFeign {
@Autowired
private LoanVehClearanceVehService loanVehClearanceVehService;
@Override
@ApiOperation("根据条件分页查询数据的列表")
@PostMapping("/listPage")
public ResultBean<PagerVo<LoanVehClearanceVehVo>> listPage(@RequestBody PagerQuery<LoanVehClearanceVehQuery> pq){
ResultBean rb = ResultBean.fireFail();
PagerVo<LoanVehClearanceVehVo> pv = loanVehClearanceVehService.listPageVo(pq);
return rb.success().setData(pv);
}
@Override
@ApiOperation("新增或修改")
@PostMapping("/save")
public ResultBean save(@RequestBody LoanVehClearanceVehDto dto){
ResultBean rb = ResultBean.fireFail();
loanVehClearanceVehService.saveOrUpdateDto(dto);
return rb.success();
}
@Override
@ApiOperation("根据sid批量删除")
@PostMapping("/delBySids")
public ResultBean delBySids(@RequestBody String[] sids){
ResultBean rb = ResultBean.fireFail();
loanVehClearanceVehService.delBySids(sids);
return rb.success();
}
@Override
@ApiOperation("根据SID获取一条记录")
@GetMapping("/fetchDetailsBySid/{sid}")
public ResultBean<LoanVehClearanceVehDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){
ResultBean rb = ResultBean.fireFail();
LoanVehClearanceVehDetailsVo vo = loanVehClearanceVehService.fetchDetailsVoBySid(sid);
return rb.success().setData(vo);
}
}

118
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehService.java

@ -0,0 +1,118 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.biz.loanvehclearanceveh;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
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 com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVeh;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehQuery;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeign;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceVehService.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehService <br/>
* Description: 车辆远程解控车辆 业务逻辑. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Service
public class LoanVehClearanceVehService extends MybatisBaseService<LoanVehClearanceVehMapper, LoanVehClearanceVeh> {
private QueryWrapper<LoanVehClearanceVeh> createQueryWrapper(LoanVehClearanceVehQuery query) {
// todo: 这里根据具体业务调整查询条件
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
QueryWrapper<LoanVehClearanceVeh> qw = new QueryWrapper<>();
return qw;
}
public PagerVo<LoanVehClearanceVehVo> listPageVo(PagerQuery<LoanVehClearanceVehQuery> pq) {
LoanVehClearanceVehQuery query = pq.getParams();
QueryWrapper<LoanVehClearanceVeh> qw = createQueryWrapper(query);
IPage<LoanVehClearanceVeh> page = PagerUtil.queryToPage(pq);
IPage<LoanVehClearanceVehVo> pagging = baseMapper.selectPageVo(page, qw);
PagerVo<LoanVehClearanceVehVo> p = PagerUtil.pageToVo(pagging, null);
return p;
}
public void saveOrUpdateDto(LoanVehClearanceVehDto dto){
String dtoSid = dto.getSid();
if (StringUtils.isBlank(dtoSid)) {
this.insertByDto(dto);
return;
}
this.updateByDto(dto);
}
public void insertByDto(LoanVehClearanceVehDto dto){
LoanVehClearanceVeh entity = new LoanVehClearanceVeh();
BeanUtil.copyProperties(dto, entity, "id", "sid");
baseMapper.insert(entity);
}
public void updateByDto(LoanVehClearanceVehDto dto){
String dtoSid = dto.getSid();
if (StringUtils.isBlank(dtoSid)) {
return;
}
LoanVehClearanceVeh entity = fetchBySid(dtoSid);
BeanUtil.copyProperties(dto, entity, "id", "sid");
baseMapper.updateById(entity);
}
public LoanVehClearanceVehDetailsVo fetchDetailsVoBySid(String sid){
LoanVehClearanceVeh entity = fetchBySid(sid);
LoanVehClearanceVehDetailsVo vo = new LoanVehClearanceVehDetailsVo();
BeanUtil.copyProperties(entity, vo);
return vo;
}
public void delByMainSid(String dtoSid) {
baseMapper.delByMainSid(dtoSid);
}
public List<LoanVehClearanceVehDetailsVo> selByMainSid(String sid) {
return baseMapper.selByMainSid(sid);
}
}

BIN
anrui-riskcenter/anrui-riskcenter-biz/src/main/resources/static/还款导入模板.xls

Binary file not shown.

2
anrui-terminal/anrui-terminal-api/src/main/java/com/yxt/anrui/terminal/api/risk/becollection/AppMonRepayDetails.java

@ -33,5 +33,5 @@ public class AppMonRepayDetails extends BaseEntity {
@ApiModelProperty("借款人名称")
private String borrowerName;
@ApiModelProperty("期数明细")
private List<AppMonRepayPeriodDetails> appMonRepayPeriodDetailsList;
private List<String> appMonRepayPeriodDetailsList;
}

13
anrui-terminal/anrui-terminal-biz/src/main/java/com/yxt/anrui/terminal/biz/risk/becollection/BeCollectionService.java

@ -592,11 +592,16 @@ public class BeCollectionService {
MonRepayDetails monRepayDetails = loanRepaymentPlanDetailsFeign.details(saleVehSid).getData();
BeanUtil.copyProperties(monRepayDetails,appMonRepayDetails);
List<MonRepayPeriodDetails> monRepayPeriodDetailsList = monRepayDetails.getMonRepayPeriodDetailsList();
List<AppMonRepayPeriodDetails> appMonRepayPeriodDetailsList = new ArrayList<>();
List<String> appMonRepayPeriodDetailsList = new ArrayList<>();
appMonRepayPeriodDetailsList.add("期数");
appMonRepayPeriodDetailsList.add("应还金额");
appMonRepayPeriodDetailsList.add("实还金额");
appMonRepayPeriodDetailsList.add("未还金额");
for (MonRepayPeriodDetails monRepayPeriodDetails : monRepayPeriodDetailsList) {
AppMonRepayPeriodDetails appMonRepayPeriodDetails = new AppMonRepayPeriodDetails();
BeanUtil.copyProperties(monRepayPeriodDetails,appMonRepayPeriodDetails);
appMonRepayPeriodDetailsList.add(appMonRepayPeriodDetails);
appMonRepayPeriodDetailsList.add(monRepayPeriodDetails.getPeriod());
appMonRepayPeriodDetailsList.add(monRepayPeriodDetails.getDueMoney().toString());
appMonRepayPeriodDetailsList.add(monRepayPeriodDetails.getReceiptMoney().toString());
appMonRepayPeriodDetailsList.add(monRepayPeriodDetails.getNotRepaidMoney().toString());
}
appMonRepayDetails.setAppMonRepayPeriodDetailsList(appMonRepayPeriodDetailsList);
return rb.success().setData(appMonRepayDetails);

Loading…
Cancel
Save