Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
financial-tools
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
financial-tools
Commits
5312e991
Commit
5312e991
authored
Dec 05, 2016
by
Java-刘 彧阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据库连接用户
parent
6111da1c
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
4490 additions
and
187 deletions
+4490
-187
DifCheckOutAPP.java
src/main/java/cn/gq/financial/app/DifCheckOutAPP.java
+86
-0
PatchFuck.java
src/main/java/cn/gq/financial/app/PatchFuck.java
+122
-0
RepayFinancialAPP.java
src/main/java/cn/gq/financial/app/RepayFinancialAPP.java
+17
-17
TestAA.java
src/main/java/cn/gq/financial/app/TestAA.java
+42
-0
DifCheckOutHandler.java
.../java/cn/gq/financial/app/handler/DifCheckOutHandler.java
+78
-0
RepayHandler.java
src/main/java/cn/gq/financial/app/handler/RepayHandler.java
+32
-19
RepayHandlerAsync.java
...n/java/cn/gq/financial/app/handler/RepayHandlerAsync.java
+4
-3
RepayDetailFinancialEntityMapper.java
...ancial/db/local/dao/RepayDetailFinancialEntityMapper.java
+30
-0
RepayDetailFinancialEntityMapper.xml
...ial/db/local/mapping/RepayDetailFinancialEntityMapper.xml
+719
-0
RepayDetailFinancialEntity.java
.../financial/db/local/model/RepayDetailFinancialEntity.java
+376
-0
RepayDetailFinancialEntityExample.java
...ial/db/local/model/RepayDetailFinancialEntityExample.java
+2582
-0
ExportExcelMapper.java
...n/java/cn/gq/financial/db/xyqb/dao/ExportExcelMapper.java
+7
-1
ExportExcelMapper.xml
...ava/cn/gq/financial/db/xyqb/mapping/ExportExcelMapper.xml
+106
-1
Bill.java
src/main/java/cn/gq/financial/model/bill/Bill.java
+13
-0
WXBill.java
src/main/java/cn/gq/financial/model/bill/WXBill.java
+15
-2
YeepayBill.java
src/main/java/cn/gq/financial/model/bill/YeepayBill.java
+10
-0
BaitiaoOfflineDetailService.java
.../cn/gq/financial/service/BaitiaoOfflineDetailService.java
+91
-87
BaitiaoOnlineDetailService.java
...a/cn/gq/financial/service/BaitiaoOnlineDetailService.java
+50
-13
XYQBDetailService.java
src/main/java/cn/gq/financial/service/XYQBDetailService.java
+55
-4
BillParsers.java
src/main/java/cn/gq/financial/utils/BillParsers.java
+50
-31
applicationContext.properties
src/main/resources/applicationContext.properties
+3
-8
mybatis-local-repayment-config.xml
src/main/resources/mybatis-local-repayment-config.xml
+2
-1
No files found.
src/main/java/cn/gq/financial/app/DifCheckOutAPP.java
0 → 100644
View file @
5312e991
package
cn
.
gq
.
financial
.
app
;
import
cn.gq.financial.app.handler.DifCheckOutHandler
;
import
cn.gq.financial.app.handler.RepayHandler
;
import
cn.gq.financial.bills.PayType
;
import
cn.gq.financial.model.bill.Bill
;
import
cn.gq.financial.model.bill.UMPayBill
;
import
cn.gq.financial.model.bill.WXBill
;
import
cn.gq.financial.model.bill.YeepayBill
;
import
cn.gq.financial.service.FinancialRepayDetailService
;
import
cn.gq.financial.utils.BillParsers
;
import
cn.gq.financial.utils.Constants
;
import
cn.gq.financial.utils.FileUtils
;
import
org.springframework.context.support.ClassPathXmlApplicationContext
;
import
java.io.File
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* Created by ocean on 2016/11/4.
*/
public
class
DifCheckOutAPP
{
static
final
String
CONFIG_LOCAL
=
"applicationContext.xml"
;
private
static
ClassPathXmlApplicationContext
context
=
null
;
private
static
List
<
String
>
lostOrder
=
new
ArrayList
<>();
static
{
String
[]
lost
=
{
"1476879442402"
,
"1476879519371"
,
"1476879520479"
,
"1476879597863"
};
Collections
.
addAll
(
lostOrder
,
lost
);
}
public
static
void
main
(
String
[]
args
)
throws
Exception
{
try
{
File
file
=
new
File
(
"E:\\financial-system-data\\weichat\\baitiao"
);
File
[]
files
=
file
.
listFiles
();
List
<
WXBill
>
bills
=
new
ArrayList
<>();
for
(
File
f
:
files
)
{
List
<
WXBill
>
wxBills
=
BillParsers
.
parseBillFromInputStream
(
f
,
WXBill
.
class
);
bills
.
addAll
(
wxBills
);
}
// List<WXBill> lostBills = bills.stream().filter(bill->{
// return lostOrder.contains(bill.getOrderId());
// }).collect(Collectors.toList());
//
// List<String> collect = lostBills.stream().map(WXBill::getSrcStr).collect(Collectors.toList());
// FileUtils.writeOutStrsToFile(collect,"E:\\work\\balance\\10\\微信丢失的.txt");
// BigDecimal totalRepay = bills.stream().map(YeepayBill::getIncome).reduce(BigDecimal.ZERO,BigDecimal::add);
// BigDecimal totalPoundage = bills.stream().map(YeepayBill::getPoundage).reduce(BigDecimal.ZERO,BigDecimal::add);
// System.out.println(totalRepay);
// System.out.println(totalPoundage);
getSpringContext
().
getBean
(
DifCheckOutHandler
.
class
).
checkDif
(
bills
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
finally
{
if
(
null
!=
context
)
context
.
close
();
}
}
public
static
ClassPathXmlApplicationContext
getSpringContext
()
{
if
(
null
==
context
)
{
context
=
new
ClassPathXmlApplicationContext
(
CONFIG_LOCAL
);
}
return
context
;
}
}
src/main/java/cn/gq/financial/app/PatchFuck.java
0 → 100644
View file @
5312e991
package
cn
.
gq
.
financial
.
app
;
import
cn.gq.financial.app.handler.RepayHandler
;
import
cn.gq.financial.bills.PayType
;
import
cn.gq.financial.model.bill.Bill
;
import
cn.gq.financial.model.bill.UMPayBill
;
import
cn.gq.financial.model.bill.WXBill
;
import
cn.gq.financial.model.bill.YeepayBill
;
import
cn.gq.financial.service.FinancialRepayDetailService
;
import
cn.gq.financial.utils.BillParsers
;
import
cn.gq.financial.utils.Constants
;
import
cn.gq.financial.utils.FileUtils
;
import
com.google.common.base.Joiner
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.context.support.ClassPathXmlApplicationContext
;
import
java.io.File
;
import
java.io.IOException
;
import
java.nio.file.Files
;
import
java.nio.file.Paths
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* Created by ocean on 2016/11/4.
*/
public
class
PatchFuck
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
PatchFuck
.
class
);
static
final
String
CONFIG_LOCAL
=
"applicationContext.xml"
;
private
static
ClassPathXmlApplicationContext
context
=
null
;
private
static
List
<
String
>
lostOrder
=
new
ArrayList
<>();
static
{
String
[]
lost
=
{
"1479723803867"
,
"1479723705451"
,
"1479723756822"
,
"1479723960441"
,
"1479723715103"
,
"1479723644338"
,
"1479723901873"
,
"1479468897498"
,
"1479723640540"
,
"1479723772020"
,
"1479715791006"
,
"1479723894931"
,
"1479723945809"
,
"1479723886848"
,
"1479723749299"
,
"1479723728097"
,
"1479723682621"
,
"1479723926731"
,
"1479723721258"
,
"1479723696263"
,
"1479723586168"
,
"1479723810786"
,
"1479723761490"
,
"1479723645846"
,
"1479723873449"
,
"1479723712002"
};
Collections
.
addAll
(
lostOrder
,
lost
);
}
public
static
void
main
(
String
[]
args
)
{
try
{
LOGGER
.
info
(
"======开始处理丢失的的还款账单======"
);
long
begin
=
System
.
currentTimeMillis
();
File
file
=
new
File
(
"E:\\financial-system-data\\yeepay\\baitiao"
);
File
[]
files
=
file
.
listFiles
();
List
<
YeepayBill
>
bills
=
new
ArrayList
<>();
for
(
File
f
:
files
)
{
List
<
YeepayBill
>
wxBills
=
BillParsers
.
parseBillFromInputStream
(
f
,
YeepayBill
.
class
);
bills
.
addAll
(
wxBills
);
}
List
<
YeepayBill
>
lost
=
bills
.
stream
().
filter
(
bill
->
lostOrder
.
contains
(
bill
.
getOrderId
())).
collect
(
Collectors
.
toList
());
FileUtils
.
writeOutStrsToFile
(
lost
.
stream
().
map
(
YeepayBill:
:
getSrcStr
).
collect
(
Collectors
.
toList
()),
"E:\\LOST_11.txt"
);
// for (Bill bill : bills) {
// bill.setPayAccount(PayType.YeePay_BaiTiao.getChannelAccount());
// bill.setMonth(11);
// }
// List<YeepayBill> lostBills = bills.stream().filter(bill->{
// return lostOrder.contains(bill.getOrderId());
// }).collect(Collectors.toList());
//
// RepayHandler handler = getSpringContext().getBean(RepayHandler.class);
// //按照参数,对账
// handler.repayBillDetailHandler(YeepayBill.class,lostBills);
// FinancialRepayDetailService repayDetailService = getSpringContext().getBean(FinancialRepayDetailService.class);
// if (Constants.result.size() != 0) {
// repayDetailService.saveDetails(Constants.result);
// }
// LOGGER.info("总还款明细数量-->{}", Constants.result.size());
// LOGGER.info("======结束处理还款账单======");
// LOGGER.info("总计耗时--->{}mm", (System.currentTimeMillis() - begin));
}
catch
(
Exception
ex
)
{
ex
.
printStackTrace
();
}
finally
{
if
(
null
!=
context
)
context
.
close
();
}
}
public
static
ClassPathXmlApplicationContext
getSpringContext
()
{
if
(
null
==
context
)
{
context
=
new
ClassPathXmlApplicationContext
(
CONFIG_LOCAL
);
}
return
context
;
}
}
src/main/java/cn/gq/financial/app/RepayFinancialAPP.java
View file @
5312e991
package
cn
.
gq
.
financial
.
app
;
package
cn
.
gq
.
financial
.
app
;
import
cn.gq.financial.app.handler.RepayHandler
;
import
cn.gq.financial.bills.AbstractBills
;
import
cn.gq.financial.bills.AbstractBills
;
import
cn.gq.financial.bills.PayType
;
import
cn.gq.financial.bills.UMPayBills
;
import
cn.gq.financial.bills.UMPayBills
;
import
cn.gq.financial.bills.WeichatBills
;
import
cn.gq.financial.bills.WeichatBills
;
import
cn.gq.financial.bills.PayType
;
import
cn.gq.financial.model.bill.Bill
;
import
cn.gq.financial.model.bill.UMPayBill
;
import
cn.gq.financial.model.bill.WXBill
;
import
cn.gq.financial.model.bill.YeepayBill
;
import
cn.gq.financial.service.FinancialRepayDetailService
;
import
cn.gq.financial.service.FinancialRepayDetailService
;
import
cn.gq.financial.utils.Constants
;
import
cn.gq.financial.utils.Constants
;
import
com.google.common.base.Joiner
;
import
com.google.common.base.Joiner
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FileUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
org.springframework.context.support.ClassPathXmlApplicationContext
;
import
org.springframework.context.support.ClassPathXmlApplicationContext
;
import
cn.gq.financial.app.handler.RepayHandler
;
import
cn.gq.financial.model.bill.Bill
;
import
cn.gq.financial.model.bill.UMPayBill
;
import
cn.gq.financial.model.bill.WXBill
;
import
cn.gq.financial.model.bill.YeepayBill
;
import
java.io.File
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.nio.file.Paths
;
import
java.nio.file.Paths
;
...
@@ -33,9 +31,9 @@ public class RepayFinancialAPP {
...
@@ -33,9 +31,9 @@ public class RepayFinancialAPP {
* Tip: 对帐单时 只需修改currentMonth和payType
* Tip: 对帐单时 只需修改currentMonth和payType
* currentMonth 当前是几月就输入几 无须减1 后续代码里面已经处理
* currentMonth 当前是几月就输入几 无须减1 后续代码里面已经处理
*/
*/
static
Integer
currentMonth
=
7
;
static
Integer
currentMonth
=
11
;
static
PayType
payType
=
PayType
.
UMPay_BaiTiao
;
static
PayType
payType
=
PayType
.
WeiChat_Xjd
;
static
AbstractBills
bill
;
static
AbstractBills
bill
;
...
@@ -60,15 +58,17 @@ public class RepayFinancialAPP {
...
@@ -60,15 +58,17 @@ public class RepayFinancialAPP {
clazz
=
UMPayBill
.
class
;
clazz
=
UMPayBill
.
class
;
break
;
break
;
}
}
// 拉取帐单前先清理目录
if
(!
payType
.
getChannelName
().
equals
(
"易宝"
))
{
//易宝的不删了,易宝是手工准备的数据啊
if
(
Paths
.
get
(
path
).
toFile
().
exists
())
{
// 拉取帐单前先清理目录
try
{
if
(
Paths
.
get
(
path
).
toFile
().
exists
())
{
FileUtils
.
cleanDirectory
(
Paths
.
get
(
path
).
toFile
());
try
{
}
catch
(
IOException
e
)
{
FileUtils
.
cleanDirectory
(
Paths
.
get
(
path
).
toFile
());
e
.
printStackTrace
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
}
bill
.
pullBills
(
payType
);
}
}
bill
.
pullBills
(
payType
);
}
}
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
...
...
src/main/java/cn/gq/financial/app/TestAA.java
0 → 100644
View file @
5312e991
package
cn
.
gq
.
financial
.
app
;
import
cn.gq.financial.utils.FileUtils
;
import
org.apache.commons.lang3.time.DateFormatUtils
;
import
java.nio.file.Files
;
import
java.nio.file.Paths
;
import
java.time.LocalDate
;
import
java.time.Month
;
import
java.time.Period
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.List
;
/**
* Created by ocean on 2016/11/2.
*/
public
class
TestAA
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
List
<
String
>
loanIds
=
Files
.
readAllLines
(
Paths
.
get
(
"E:\\lost_order_id.txt"
));
List
<
String
>
handl
=
new
ArrayList
<>();
loanIds
.
stream
().
forEach
(
l
->
handl
.
add
(
"'"
.
concat
(
l
).
concat
(
"',"
)));
FileUtils
.
writeOutStrsToFile
(
handl
,
"E:\\lost_order_id_d.txt"
);
/*List<Integer> list= new ArrayList<>();
for (int i =0 ;i<10;i++){
list.add(new Integer(i+1));
}
System.out.println(list.contains(new Integer(5)));*/
// Calendar cal = Calendar.getInstance();
// cal.setTime(new Date());
// cal.set(Calendar.HOUR_OF_DAY, 0);
// cal.set(Calendar.MINUTE,0);
// cal.set(Calendar.SECOND, 0);
// System.out.println(DateFormatUtils.ISO_DATETIME_FORMAT.format(cal.getTime()));
// System.out.println(cal.getTimeInMillis());
// System.out.println(cal.getTime().getTime());
}
}
src/main/java/cn/gq/financial/app/handler/DifCheckOutHandler.java
0 → 100644
View file @
5312e991
package
cn
.
gq
.
financial
.
app
.
handler
;
import
cn.gq.financial.db.local.dao.RepayDetailFinancialEntityMapper
;
import
cn.gq.financial.db.local.model.RepayDetailFinancialEntity
;
import
cn.gq.financial.db.local.model.RepayDetailFinancialEntityExample
;
import
cn.gq.financial.model.bill.Bill
;
import
cn.gq.financial.model.bill.WXBill
;
import
cn.gq.financial.model.bill.YeepayBill
;
import
cn.gq.financial.utils.FileUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.time.DateFormatUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* Created by ocean on 2016/11/4.
*/
@Component
public
class
DifCheckOutHandler
{
static
int
item_size
=
1000
;
@Autowired
RepayDetailFinancialEntityMapper
repayDetailFinancialEntityMapper
;
public
void
checkDif
(
List
<?
extends
Bill
>
bills
)
throws
Exception
{
List
<
String
>
wrong
=
new
ArrayList
<>();
if
(
bills
.
size
()<
item_size
){
wrong
.
addAll
(
checkOut
(
bills
));
}
else
{
int
group
=
bills
.
size
()/
item_size
;
int
i
;
for
(
i
=
0
;
i
<
group
;
i
++){
wrong
.
addAll
(
checkOut
(
bills
.
subList
((
i
*
item_size
),
((
i
+
1
)
*
item_size
))));
}
if
(
bills
.
size
()%
item_size
!=
0
){
wrong
.
addAll
(
checkOut
(
bills
.
subList
((
i
*
item_size
),
bills
.
size
())));
}
}
FileUtils
.
writeOutStrsToFile
(
wrong
,
"E:\\work\\balance\\10\\微信-白条丢失的.txt"
);
}
private
Collection
<?
extends
String
>
checkOut
(
List
<?
extends
Bill
>
bills
)
{
List
<
String
>
res
=
new
ArrayList
<>();
List
<
String
>
collect
=
bills
.
stream
().
map
(
Bill:
:
getOrderId
).
collect
(
Collectors
.
toList
());
RepayDetailFinancialEntityExample
example
=
new
RepayDetailFinancialEntityExample
();
example
.
createCriteria
().
andOrderIdIn
(
collect
);
List
<
RepayDetailFinancialEntity
>
details
=
repayDetailFinancialEntityMapper
.
selectByExample
(
example
);
Map
<
String
,
List
<
RepayDetailFinancialEntity
>>
listMap
=
details
.
stream
().
collect
(
Collectors
.
groupingBy
(
RepayDetailFinancialEntity:
:
getOrderId
));
bills
.
stream
().
forEach
(
bill
->
{
List
<
RepayDetailFinancialEntity
>
list
=
listMap
.
get
(
bill
.
getOrderId
());
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
BigDecimal
totalRepay
=
list
.
stream
().
map
(
RepayDetailFinancialEntity:
:
getCurrentRepayment
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
BigDecimal
totalPoundage
=
list
.
stream
().
map
(
RepayDetailFinancialEntity:
:
getPayApproachPoundage
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
if
(
bill
.
getIncome
().
compareTo
(
totalRepay
)
!=
0
)
{
res
.
add
(
"订单-->"
.
concat
(
bill
.
getOrderId
()).
concat
(
" 的还款金额有误差,交易时间-->"
).
concat
(
DateFormatUtils
.
ISO_DATE_FORMAT
.
format
(
bill
.
getTrandingDate
())));
}
if
(
bill
.
getPoundage
().
compareTo
(
totalPoundage
)
!=
0
)
{
res
.
add
(
"订单-->"
.
concat
(
bill
.
getOrderId
()).
concat
(
" 的手续费用有误差,交易时间-->"
).
concat
(
DateFormatUtils
.
ISO_DATE_FORMAT
.
format
(
bill
.
getTrandingDate
())));
}
}
else
{
// res.add("订单-->".concat(bill.getOrderId()).concat(" 详细丢失了,交易时间-->").concat(DateFormatUtils.ISO_DATE_FORMAT.format(bill.getTrandingDate())));
res
.
add
(((
WXBill
)
bill
).
getSrcStr
());
}
});
return
res
;
}
}
src/main/java/cn/gq/financial/app/handler/RepayHandler.java
View file @
5312e991
package
cn
.
gq
.
financial
.
app
.
handler
;
package
cn
.
gq
.
financial
.
app
.
handler
;
import
java.io.File
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.concurrent.CountDownLatch
;
import
cn.gq.financial.db.local.dao.FinancialRepayDetailMapper
;
import
cn.gq.financial.db.local.dao.FinancialRepayDetailMapper
;
import
cn.gq.financial.model.bill.
Yeepay
Bill
;
import
cn.gq.financial.model.bill.Bill
;
import
cn.gq.financial.
model.db.RepayDetailFinancial
;
import
cn.gq.financial.
service.BizRepayDetailService
;
import
cn.gq.financial.service.FinancialRepayDetailService
;
import
cn.gq.financial.service.FinancialRepayDetailService
;
import
cn.gq.financial.service.PaycenterService
;
import
cn.gq.financial.utils.BillParsers
;
import
cn.gq.financial.utils.Constants
;
import
cn.gq.financial.utils.Constants
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
cn.gq.financial.model.bill.Bill
;
import
java.io.File
;
import
cn.gq.financial.model.bill.WXBill
;
import
java.util.ArrayList
;
import
cn.gq.financial.service.BizRepayDetailService
;
import
java.util.List
;
import
cn.gq.financial.service.PaycenterService
;
import
java.util.concurrent.CountDownLatch
;
import
cn.gq.financial.utils.BillParsers
;
@Component
@Component
public
class
RepayHandler
{
public
class
RepayHandler
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
RepayHandler
.
class
);
static
int
ITEM_SIZE
=
30000
;
static
int
ITEM_SIZE
=
30000
;
@Autowired
@Autowired
...
@@ -34,6 +33,9 @@ public class RepayHandler {
...
@@ -34,6 +33,9 @@ public class RepayHandler {
@Autowired
@Autowired
private
BizRepayDetailService
bizRepayDetailService
;
private
BizRepayDetailService
bizRepayDetailService
;
@Autowired
private
FinancialRepayDetailService
repayDetailService
;
@Autowired
@Autowired
private
FinancialRepayDetailMapper
repayDetailMapper
;
private
FinancialRepayDetailMapper
repayDetailMapper
;
...
@@ -53,9 +55,19 @@ public class RepayHandler {
...
@@ -53,9 +55,19 @@ public class RepayHandler {
}
}
}
}
public
void
repayBillDetailHandler
(
final
Class
<?
extends
Bill
>
clazz
,
List
<?
extends
Bill
>
bills
)
throws
Exception
{
if
(!
CollectionUtils
.
isEmpty
(
bills
)){
asyncHandlerRepayData
(
clazz
,
bills
);
count
.
await
();
//等待所有线程结束
}
else
{
throw
new
RuntimeException
(
"没有读入任何账单"
);
}
}
p
rivate
void
asyncHandlerRepayData
(
final
Class
<?
extends
Bill
>
clazz
,
p
ublic
void
asyncHandlerRepayData
(
final
Class
<?
extends
Bill
>
clazz
,
List
<
Bill
>
bills
)
{
List
<
?
extends
Bill
>
bills
)
{
if
(
bills
.
size
()<
ITEM_SIZE
)
{
if
(
bills
.
size
()<
ITEM_SIZE
)
{
count
=
new
CountDownLatch
(
1
);
count
=
new
CountDownLatch
(
1
);
threadPoolTaskExecutor
.
execute
(
new
RepayHandlerAsync
(
bills
,
clazz
,
paycenterService
,
bizRepayDetailService
,
count
));
threadPoolTaskExecutor
.
execute
(
new
RepayHandlerAsync
(
bills
,
clazz
,
paycenterService
,
bizRepayDetailService
,
count
));
...
@@ -66,13 +78,13 @@ public class RepayHandler {
...
@@ -66,13 +78,13 @@ public class RepayHandler {
cnt
+=
1
;
cnt
+=
1
;
}
}
count
=
new
CountDownLatch
(
cnt
);
count
=
new
CountDownLatch
(
cnt
);
int
i
=
0
;
int
i
;
for
(
i
=
0
;
i
<
group
;
i
++)
{
for
(
i
=
0
;
i
<
group
;
i
++)
{
List
<
Bill
>
subList
=
bills
.
subList
(
i
*
ITEM_SIZE
,
(
i
+
1
)*
ITEM_SIZE
);
List
<
?
extends
Bill
>
subList
=
bills
.
subList
(
i
*
ITEM_SIZE
,
(
i
+
1
)*
ITEM_SIZE
);
threadPoolTaskExecutor
.
execute
(
new
RepayHandlerAsync
(
subList
,
clazz
,
paycenterService
,
bizRepayDetailService
,
count
));
threadPoolTaskExecutor
.
execute
(
new
RepayHandlerAsync
(
subList
,
clazz
,
paycenterService
,
bizRepayDetailService
,
count
));
}
}
if
(
bills
.
size
()%
ITEM_SIZE
!=
0
){
if
(
bills
.
size
()%
ITEM_SIZE
!=
0
){
List
<
Bill
>
subList
=
bills
.
subList
(
i
*
ITEM_SIZE
,
bills
.
size
());
List
<
?
extends
Bill
>
subList
=
bills
.
subList
(
i
*
ITEM_SIZE
,
bills
.
size
());
threadPoolTaskExecutor
.
execute
(
new
RepayHandlerAsync
(
subList
,
clazz
,
paycenterService
,
bizRepayDetailService
,
count
));
threadPoolTaskExecutor
.
execute
(
new
RepayHandlerAsync
(
subList
,
clazz
,
paycenterService
,
bizRepayDetailService
,
count
));
}
}
}
}
...
@@ -82,6 +94,7 @@ public class RepayHandler {
...
@@ -82,6 +94,7 @@ public class RepayHandler {
File
[]
billFiles
=
getFiles
(
srcPath
);
File
[]
billFiles
=
getFiles
(
srcPath
);
List
<
Bill
>
bills
=
new
ArrayList
<
Bill
>();
List
<
Bill
>
bills
=
new
ArrayList
<
Bill
>();
for
(
int
i
=
0
;
i
<
billFiles
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
billFiles
.
length
;
i
++)
{
LOGGER
.
info
(
"解析账单文件-->file:{},账单类型-->{}"
,
billFiles
[
i
].
getAbsolutePath
(),
clazz
.
getName
());
List
<?
extends
Bill
>
billAday
=
BillParsers
.
parseBillFromInputStream
(
billFiles
[
i
],
clazz
);
List
<?
extends
Bill
>
billAday
=
BillParsers
.
parseBillFromInputStream
(
billFiles
[
i
],
clazz
);
bills
.
addAll
(
billAday
);
bills
.
addAll
(
billAday
);
}
}
...
...
src/main/java/cn/gq/financial/app/handler/RepayHandlerAsync.java
View file @
5312e991
...
@@ -28,7 +28,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -28,7 +28,7 @@ import org.springframework.beans.factory.annotation.Autowired;
public
class
RepayHandlerAsync
implements
Runnable
{
public
class
RepayHandlerAsync
implements
Runnable
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
RepayHandlerAsync
.
class
);
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
RepayHandlerAsync
.
class
);
private
List
<
Bill
>
bills
;
private
List
<
?
extends
Bill
>
bills
;
private
Class
<?
extends
Bill
>
clazz
;
private
Class
<?
extends
Bill
>
clazz
;
private
PaycenterService
paycenterService
;
private
PaycenterService
paycenterService
;
...
@@ -36,7 +36,7 @@ public class RepayHandlerAsync implements Runnable {
...
@@ -36,7 +36,7 @@ public class RepayHandlerAsync implements Runnable {
private
CountDownLatch
count
;
private
CountDownLatch
count
;
public
RepayHandlerAsync
(
List
<
Bill
>
bills
,
Class
<?
extends
Bill
>
clazz
,
PaycenterService
paycenterService
,
BizRepayDetailService
bizRepayDetailService
,
public
RepayHandlerAsync
(
List
<
?
extends
Bill
>
bills
,
Class
<?
extends
Bill
>
clazz
,
PaycenterService
paycenterService
,
BizRepayDetailService
bizRepayDetailService
,
CountDownLatch
count
)
{
CountDownLatch
count
)
{
super
();
super
();
this
.
bills
=
bills
;
this
.
bills
=
bills
;
...
@@ -59,6 +59,7 @@ public class RepayHandlerAsync implements Runnable {
...
@@ -59,6 +59,7 @@ public class RepayHandlerAsync implements Runnable {
LOGGER
.
info
(
"##Thread-->{}处理账单异常了##"
,
Thread
.
currentThread
().
getName
());
LOGGER
.
info
(
"##Thread-->{}处理账单异常了##"
,
Thread
.
currentThread
().
getName
());
LOGGER
.
error
(
"异常信息:"
,
e
);
LOGGER
.
error
(
"异常信息:"
,
e
);
}
finally
{
}
finally
{
if
(
null
!=
count
)
count
.
countDown
();
count
.
countDown
();
}
}
}
}
...
@@ -68,7 +69,7 @@ public class RepayHandlerAsync implements Runnable {
...
@@ -68,7 +69,7 @@ public class RepayHandlerAsync implements Runnable {
Constants
.
result
.
addAll
(
all
);
Constants
.
result
.
addAll
(
all
);
}
}
private
void
balanceBillAndDetail
(
List
<
Bill
>
bills
,
List
<
RepayDetailFinancial
>
all
)
{
private
void
balanceBillAndDetail
(
List
<
?
extends
Bill
>
bills
,
List
<
RepayDetailFinancial
>
all
)
{
Map
<
String
,
Bill
>
billMap
=
new
HashMap
<
String
,
Bill
>();
Map
<
String
,
Bill
>
billMap
=
new
HashMap
<
String
,
Bill
>();
Map
<
String
,
List
<
RepayDetailFinancial
>>
detailMap
=
new
HashMap
<
String
,
List
<
RepayDetailFinancial
>>();
Map
<
String
,
List
<
RepayDetailFinancial
>>
detailMap
=
new
HashMap
<
String
,
List
<
RepayDetailFinancial
>>();
for
(
Bill
bill
:
bills
)
{
for
(
Bill
bill
:
bills
)
{
...
...
src/main/java/cn/gq/financial/db/local/dao/RepayDetailFinancialEntityMapper.java
0 → 100644
View file @
5312e991
package
cn
.
gq
.
financial
.
db
.
local
.
dao
;
import
cn.gq.financial.db.local.model.RepayDetailFinancialEntity
;
import
cn.gq.financial.db.local.model.RepayDetailFinancialEntityExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
RepayDetailFinancialEntityMapper
{
int
countByExample
(
RepayDetailFinancialEntityExample
example
);
int
deleteByExample
(
RepayDetailFinancialEntityExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
RepayDetailFinancialEntity
record
);
int
insertSelective
(
RepayDetailFinancialEntity
record
);
List
<
RepayDetailFinancialEntity
>
selectByExample
(
RepayDetailFinancialEntityExample
example
);
RepayDetailFinancialEntity
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
RepayDetailFinancialEntity
record
,
@Param
(
"example"
)
RepayDetailFinancialEntityExample
example
);
int
updateByExample
(
@Param
(
"record"
)
RepayDetailFinancialEntity
record
,
@Param
(
"example"
)
RepayDetailFinancialEntityExample
example
);
int
updateByPrimaryKeySelective
(
RepayDetailFinancialEntity
record
);
int
updateByPrimaryKey
(
RepayDetailFinancialEntity
record
);
}
\ No newline at end of file
src/main/java/cn/gq/financial/db/local/mapping/RepayDetailFinancialEntityMapper.xml
0 → 100644
View file @
5312e991
<?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=
"cn.gq.financial.db.local.dao.RepayDetailFinancialEntityMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.gq.financial.db.local.model.RepayDetailFinancialEntity"
>
<id
column=
"id"
property=
"id"
jdbcType=
"BIGINT"
/>
<result
column=
"biz_type"
property=
"bizType"
jdbcType=
"VARCHAR"
/>
<result
column=
"pay_account"
property=
"payAccount"
jdbcType=
"VARCHAR"
/>
<result
column=
"month"
property=
"month"
jdbcType=
"TINYINT"
/>
<result
column=
"repayment_plan_id"
property=
"repaymentPlanId"
jdbcType=
"BIGINT"
/>
<result
column=
"order_id"
property=
"orderId"
jdbcType=
"VARCHAR"
/>
<result
column=
"lhp_seria_no"
property=
"lhpSeriaNo"
jdbcType=
"VARCHAR"
/>
<result
column=
"customer_from"
property=
"customerFrom"
jdbcType=
"VARCHAR"
/>
<result
column=
"funding_corp_name"
property=
"fundingCorpName"
jdbcType=
"VARCHAR"
/>
<result
column=
"contract_no"
property=
"contractNo"
jdbcType=
"VARCHAR"
/>
<result
column=
"user_name"
property=
"userName"
jdbcType=
"VARCHAR"
/>
<result
column=
"user_id_no"
property=
"userIdNo"
jdbcType=
"VARCHAR"
/>
<result
column=
"user_phone"
property=
"userPhone"
jdbcType=
"VARCHAR"
/>
<result
column=
"loan_paid_time"
property=
"loanPaidTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"should_loan_amount"
property=
"shouldLoanAmount"
jdbcType=
"DECIMAL"
/>
<result
column=
"real_loan_amount"
property=
"realLoanAmount"
jdbcType=
"DECIMAL"
/>
<result
column=
"contract_term"
property=
"contractTerm"
jdbcType=
"TINYINT"
/>
<result
column=
"term_no"
property=
"termNo"
jdbcType=
"TINYINT"
/>
<result
column=
"deadline"
property=
"deadline"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"required_repayment"
property=
"requiredRepayment"
jdbcType=
"DECIMAL"
/>
<result
column=
"repaid_time"
property=
"repaidTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"principal_amount"
property=
"principalAmount"
jdbcType=
"DECIMAL"
/>
<result
column=
"interest"
property=
"interest"
jdbcType=
"DECIMAL"
/>
<result
column=
"overdue_fee"
property=
"overdueFee"
jdbcType=
"DECIMAL"
/>
<result
column=
"self_mangemet_fee"
property=
"selfMangemetFee"
jdbcType=
"DECIMAL"
/>
<result
column=
"activity_relief"
property=
"activityRelief"
jdbcType=
"DECIMAL"
/>
<result
column=
"collection_relief"
property=
"collectionRelief"
jdbcType=
"DECIMAL"
/>
<result
column=
"current_repayment"
property=
"currentRepayment"
jdbcType=
"DECIMAL"
/>
<result
column=
"pay_approach_poundage"
property=
"payApproachPoundage"
jdbcType=
"DECIMAL"
/>
<result
column=
"financial_merchant"
property=
"financialMerchant"
jdbcType=
"VARCHAR"
/>
<result
column=
"actual_funding_corp"
property=
"actualFundingCorp"
jdbcType=
"VARCHAR"
/>
<result
column=
"pay_center_orderNo"
property=
"payCenterOrderno"
jdbcType=
"VARCHAR"
/>
<result
column=
"loan_history_id"
property=
"loanHistoryId"
jdbcType=
"BIGINT"
/>
<result
column=
"contract_create_time"
property=
"contractCreateTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"remark"
property=
"remark"
jdbcType=
"VARCHAR"
/>
<result
column=
"phone_merchant"
property=
"phoneMerchant"
jdbcType=
"VARCHAR"
/>
<result
column=
"product_name3C"
property=
"productName3c"
jdbcType=
"VARCHAR"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where
>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
suffix=
")"
prefixOverrides=
"and"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose
>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
collection=
"criterion.value"
item=
"listItem"
open=
"("
close=
")"
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where
>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
suffix=
")"
prefixOverrides=
"and"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose
>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
collection=
"criterion.value"
item=
"listItem"
open=
"("
close=
")"
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, biz_type, pay_account, month, repayment_plan_id, order_id, lhp_seria_no, customer_from,
funding_corp_name, contract_no, user_name, user_id_no, user_phone, loan_paid_time,
should_loan_amount, real_loan_amount, contract_term, term_no, deadline, required_repayment,
repaid_time, principal_amount, interest, overdue_fee, self_mangemet_fee, activity_relief,
collection_relief, current_repayment, pay_approach_poundage, financial_merchant,
actual_funding_corp, pay_center_orderNo, loan_history_id, contract_create_time, remark,
phone_merchant, product_name3C
</sql>
<select
id=
"selectByExample"
resultMap=
"BaseResultMap"
parameterType=
"cn.gq.financial.db.local.model.RepayDetailFinancialEntityExample"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from repay_detail_financial
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Long"
>
select
<include
refid=
"Base_Column_List"
/>
from repay_detail_financial
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from repay_detail_financial
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"cn.gq.financial.db.local.model.RepayDetailFinancialEntityExample"
>
delete from repay_detail_financial
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"cn.gq.financial.db.local.model.RepayDetailFinancialEntity"
>
insert into repay_detail_financial (id, biz_type, pay_account,
month, repayment_plan_id, order_id,
lhp_seria_no, customer_from, funding_corp_name,
contract_no, user_name, user_id_no,
user_phone, loan_paid_time, should_loan_amount,
real_loan_amount, contract_term, term_no,
deadline, required_repayment, repaid_time,
principal_amount, interest, overdue_fee,
self_mangemet_fee, activity_relief, collection_relief,
current_repayment, pay_approach_poundage,
financial_merchant, actual_funding_corp, pay_center_orderNo,
loan_history_id, contract_create_time, remark,
phone_merchant, product_name3C)
values (#{id,jdbcType=BIGINT}, #{bizType,jdbcType=VARCHAR}, #{payAccount,jdbcType=VARCHAR},
#{month,jdbcType=TINYINT}, #{repaymentPlanId,jdbcType=BIGINT}, #{orderId,jdbcType=VARCHAR},
#{lhpSeriaNo,jdbcType=VARCHAR}, #{customerFrom,jdbcType=VARCHAR}, #{fundingCorpName,jdbcType=VARCHAR},
#{contractNo,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{userIdNo,jdbcType=VARCHAR},
#{userPhone,jdbcType=VARCHAR}, #{loanPaidTime,jdbcType=TIMESTAMP}, #{shouldLoanAmount,jdbcType=DECIMAL},
#{realLoanAmount,jdbcType=DECIMAL}, #{contractTerm,jdbcType=TINYINT}, #{termNo,jdbcType=TINYINT},
#{deadline,jdbcType=TIMESTAMP}, #{requiredRepayment,jdbcType=DECIMAL}, #{repaidTime,jdbcType=TIMESTAMP},
#{principalAmount,jdbcType=DECIMAL}, #{interest,jdbcType=DECIMAL}, #{overdueFee,jdbcType=DECIMAL},
#{selfMangemetFee,jdbcType=DECIMAL}, #{activityRelief,jdbcType=DECIMAL}, #{collectionRelief,jdbcType=DECIMAL},
#{currentRepayment,jdbcType=DECIMAL}, #{payApproachPoundage,jdbcType=DECIMAL},
#{financialMerchant,jdbcType=VARCHAR}, #{actualFundingCorp,jdbcType=VARCHAR}, #{payCenterOrderno,jdbcType=VARCHAR},
#{loanHistoryId,jdbcType=BIGINT}, #{contractCreateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR},
#{phoneMerchant,jdbcType=VARCHAR}, #{productName3c,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"cn.gq.financial.db.local.model.RepayDetailFinancialEntity"
>
insert into repay_detail_financial
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"bizType != null"
>
biz_type,
</if>
<if
test=
"payAccount != null"
>
pay_account,
</if>
<if
test=
"month != null"
>
month,
</if>
<if
test=
"repaymentPlanId != null"
>
repayment_plan_id,
</if>
<if
test=
"orderId != null"
>
order_id,
</if>
<if
test=
"lhpSeriaNo != null"
>
lhp_seria_no,
</if>
<if
test=
"customerFrom != null"
>
customer_from,
</if>
<if
test=
"fundingCorpName != null"
>
funding_corp_name,
</if>
<if
test=
"contractNo != null"
>
contract_no,
</if>
<if
test=
"userName != null"
>
user_name,
</if>
<if
test=
"userIdNo != null"
>
user_id_no,
</if>
<if
test=
"userPhone != null"
>
user_phone,
</if>
<if
test=
"loanPaidTime != null"
>
loan_paid_time,
</if>
<if
test=
"shouldLoanAmount != null"
>
should_loan_amount,
</if>
<if
test=
"realLoanAmount != null"
>
real_loan_amount,
</if>
<if
test=
"contractTerm != null"
>
contract_term,
</if>
<if
test=
"termNo != null"
>
term_no,
</if>
<if
test=
"deadline != null"
>
deadline,
</if>
<if
test=
"requiredRepayment != null"
>
required_repayment,
</if>
<if
test=
"repaidTime != null"
>
repaid_time,
</if>
<if
test=
"principalAmount != null"
>
principal_amount,
</if>
<if
test=
"interest != null"
>
interest,
</if>
<if
test=
"overdueFee != null"
>
overdue_fee,
</if>
<if
test=
"selfMangemetFee != null"
>
self_mangemet_fee,
</if>
<if
test=
"activityRelief != null"
>
activity_relief,
</if>
<if
test=
"collectionRelief != null"
>
collection_relief,
</if>
<if
test=
"currentRepayment != null"
>
current_repayment,
</if>
<if
test=
"payApproachPoundage != null"
>
pay_approach_poundage,
</if>
<if
test=
"financialMerchant != null"
>
financial_merchant,
</if>
<if
test=
"actualFundingCorp != null"
>
actual_funding_corp,
</if>
<if
test=
"payCenterOrderno != null"
>
pay_center_orderNo,
</if>
<if
test=
"loanHistoryId != null"
>
loan_history_id,
</if>
<if
test=
"contractCreateTime != null"
>
contract_create_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"phoneMerchant != null"
>
phone_merchant,
</if>
<if
test=
"productName3c != null"
>
product_name3C,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=BIGINT},
</if>
<if
test=
"bizType != null"
>
#{bizType,jdbcType=VARCHAR},
</if>
<if
test=
"payAccount != null"
>
#{payAccount,jdbcType=VARCHAR},
</if>
<if
test=
"month != null"
>
#{month,jdbcType=TINYINT},
</if>
<if
test=
"repaymentPlanId != null"
>
#{repaymentPlanId,jdbcType=BIGINT},
</if>
<if
test=
"orderId != null"
>
#{orderId,jdbcType=VARCHAR},
</if>
<if
test=
"lhpSeriaNo != null"
>
#{lhpSeriaNo,jdbcType=VARCHAR},
</if>
<if
test=
"customerFrom != null"
>
#{customerFrom,jdbcType=VARCHAR},
</if>
<if
test=
"fundingCorpName != null"
>
#{fundingCorpName,jdbcType=VARCHAR},
</if>
<if
test=
"contractNo != null"
>
#{contractNo,jdbcType=VARCHAR},
</if>
<if
test=
"userName != null"
>
#{userName,jdbcType=VARCHAR},
</if>
<if
test=
"userIdNo != null"
>
#{userIdNo,jdbcType=VARCHAR},
</if>
<if
test=
"userPhone != null"
>
#{userPhone,jdbcType=VARCHAR},
</if>
<if
test=
"loanPaidTime != null"
>
#{loanPaidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"shouldLoanAmount != null"
>
#{shouldLoanAmount,jdbcType=DECIMAL},
</if>
<if
test=
"realLoanAmount != null"
>
#{realLoanAmount,jdbcType=DECIMAL},
</if>
<if
test=
"contractTerm != null"
>
#{contractTerm,jdbcType=TINYINT},
</if>
<if
test=
"termNo != null"
>
#{termNo,jdbcType=TINYINT},
</if>
<if
test=
"deadline != null"
>
#{deadline,jdbcType=TIMESTAMP},
</if>
<if
test=
"requiredRepayment != null"
>
#{requiredRepayment,jdbcType=DECIMAL},
</if>
<if
test=
"repaidTime != null"
>
#{repaidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"principalAmount != null"
>
#{principalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"interest != null"
>
#{interest,jdbcType=DECIMAL},
</if>
<if
test=
"overdueFee != null"
>
#{overdueFee,jdbcType=DECIMAL},
</if>
<if
test=
"selfMangemetFee != null"
>
#{selfMangemetFee,jdbcType=DECIMAL},
</if>
<if
test=
"activityRelief != null"
>
#{activityRelief,jdbcType=DECIMAL},
</if>
<if
test=
"collectionRelief != null"
>
#{collectionRelief,jdbcType=DECIMAL},
</if>
<if
test=
"currentRepayment != null"
>
#{currentRepayment,jdbcType=DECIMAL},
</if>
<if
test=
"payApproachPoundage != null"
>
#{payApproachPoundage,jdbcType=DECIMAL},
</if>
<if
test=
"financialMerchant != null"
>
#{financialMerchant,jdbcType=VARCHAR},
</if>
<if
test=
"actualFundingCorp != null"
>
#{actualFundingCorp,jdbcType=VARCHAR},
</if>
<if
test=
"payCenterOrderno != null"
>
#{payCenterOrderno,jdbcType=VARCHAR},
</if>
<if
test=
"loanHistoryId != null"
>
#{loanHistoryId,jdbcType=BIGINT},
</if>
<if
test=
"contractCreateTime != null"
>
#{contractCreateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
<if
test=
"phoneMerchant != null"
>
#{phoneMerchant,jdbcType=VARCHAR},
</if>
<if
test=
"productName3c != null"
>
#{productName3c,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.gq.financial.db.local.model.RepayDetailFinancialEntityExample"
resultType=
"java.lang.Integer"
>
select count(*) from repay_detail_financial
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update repay_detail_financial
<set
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.bizType != null"
>
biz_type = #{record.bizType,jdbcType=VARCHAR},
</if>
<if
test=
"record.payAccount != null"
>
pay_account = #{record.payAccount,jdbcType=VARCHAR},
</if>
<if
test=
"record.month != null"
>
month = #{record.month,jdbcType=TINYINT},
</if>
<if
test=
"record.repaymentPlanId != null"
>
repayment_plan_id = #{record.repaymentPlanId,jdbcType=BIGINT},
</if>
<if
test=
"record.orderId != null"
>
order_id = #{record.orderId,jdbcType=VARCHAR},
</if>
<if
test=
"record.lhpSeriaNo != null"
>
lhp_seria_no = #{record.lhpSeriaNo,jdbcType=VARCHAR},
</if>
<if
test=
"record.customerFrom != null"
>
customer_from = #{record.customerFrom,jdbcType=VARCHAR},
</if>
<if
test=
"record.fundingCorpName != null"
>
funding_corp_name = #{record.fundingCorpName,jdbcType=VARCHAR},
</if>
<if
test=
"record.contractNo != null"
>
contract_no = #{record.contractNo,jdbcType=VARCHAR},
</if>
<if
test=
"record.userName != null"
>
user_name = #{record.userName,jdbcType=VARCHAR},
</if>
<if
test=
"record.userIdNo != null"
>
user_id_no = #{record.userIdNo,jdbcType=VARCHAR},
</if>
<if
test=
"record.userPhone != null"
>
user_phone = #{record.userPhone,jdbcType=VARCHAR},
</if>
<if
test=
"record.loanPaidTime != null"
>
loan_paid_time = #{record.loanPaidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.shouldLoanAmount != null"
>
should_loan_amount = #{record.shouldLoanAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.realLoanAmount != null"
>
real_loan_amount = #{record.realLoanAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.contractTerm != null"
>
contract_term = #{record.contractTerm,jdbcType=TINYINT},
</if>
<if
test=
"record.termNo != null"
>
term_no = #{record.termNo,jdbcType=TINYINT},
</if>
<if
test=
"record.deadline != null"
>
deadline = #{record.deadline,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.requiredRepayment != null"
>
required_repayment = #{record.requiredRepayment,jdbcType=DECIMAL},
</if>
<if
test=
"record.repaidTime != null"
>
repaid_time = #{record.repaidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.principalAmount != null"
>
principal_amount = #{record.principalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.interest != null"
>
interest = #{record.interest,jdbcType=DECIMAL},
</if>
<if
test=
"record.overdueFee != null"
>
overdue_fee = #{record.overdueFee,jdbcType=DECIMAL},
</if>
<if
test=
"record.selfMangemetFee != null"
>
self_mangemet_fee = #{record.selfMangemetFee,jdbcType=DECIMAL},
</if>
<if
test=
"record.activityRelief != null"
>
activity_relief = #{record.activityRelief,jdbcType=DECIMAL},
</if>
<if
test=
"record.collectionRelief != null"
>
collection_relief = #{record.collectionRelief,jdbcType=DECIMAL},
</if>
<if
test=
"record.currentRepayment != null"
>
current_repayment = #{record.currentRepayment,jdbcType=DECIMAL},
</if>
<if
test=
"record.payApproachPoundage != null"
>
pay_approach_poundage = #{record.payApproachPoundage,jdbcType=DECIMAL},
</if>
<if
test=
"record.financialMerchant != null"
>
financial_merchant = #{record.financialMerchant,jdbcType=VARCHAR},
</if>
<if
test=
"record.actualFundingCorp != null"
>
actual_funding_corp = #{record.actualFundingCorp,jdbcType=VARCHAR},
</if>
<if
test=
"record.payCenterOrderno != null"
>
pay_center_orderNo = #{record.payCenterOrderno,jdbcType=VARCHAR},
</if>
<if
test=
"record.loanHistoryId != null"
>
loan_history_id = #{record.loanHistoryId,jdbcType=BIGINT},
</if>
<if
test=
"record.contractCreateTime != null"
>
contract_create_time = #{record.contractCreateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.remark != null"
>
remark = #{record.remark,jdbcType=VARCHAR},
</if>
<if
test=
"record.phoneMerchant != null"
>
phone_merchant = #{record.phoneMerchant,jdbcType=VARCHAR},
</if>
<if
test=
"record.productName3c != null"
>
product_name3C = #{record.productName3c,jdbcType=VARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update repay_detail_financial
set id = #{record.id,jdbcType=BIGINT},
biz_type = #{record.bizType,jdbcType=VARCHAR},
pay_account = #{record.payAccount,jdbcType=VARCHAR},
month = #{record.month,jdbcType=TINYINT},
repayment_plan_id = #{record.repaymentPlanId,jdbcType=BIGINT},
order_id = #{record.orderId,jdbcType=VARCHAR},
lhp_seria_no = #{record.lhpSeriaNo,jdbcType=VARCHAR},
customer_from = #{record.customerFrom,jdbcType=VARCHAR},
funding_corp_name = #{record.fundingCorpName,jdbcType=VARCHAR},
contract_no = #{record.contractNo,jdbcType=VARCHAR},
user_name = #{record.userName,jdbcType=VARCHAR},
user_id_no = #{record.userIdNo,jdbcType=VARCHAR},
user_phone = #{record.userPhone,jdbcType=VARCHAR},
loan_paid_time = #{record.loanPaidTime,jdbcType=TIMESTAMP},
should_loan_amount = #{record.shouldLoanAmount,jdbcType=DECIMAL},
real_loan_amount = #{record.realLoanAmount,jdbcType=DECIMAL},
contract_term = #{record.contractTerm,jdbcType=TINYINT},
term_no = #{record.termNo,jdbcType=TINYINT},
deadline = #{record.deadline,jdbcType=TIMESTAMP},
required_repayment = #{record.requiredRepayment,jdbcType=DECIMAL},
repaid_time = #{record.repaidTime,jdbcType=TIMESTAMP},
principal_amount = #{record.principalAmount,jdbcType=DECIMAL},
interest = #{record.interest,jdbcType=DECIMAL},
overdue_fee = #{record.overdueFee,jdbcType=DECIMAL},
self_mangemet_fee = #{record.selfMangemetFee,jdbcType=DECIMAL},
activity_relief = #{record.activityRelief,jdbcType=DECIMAL},
collection_relief = #{record.collectionRelief,jdbcType=DECIMAL},
current_repayment = #{record.currentRepayment,jdbcType=DECIMAL},
pay_approach_poundage = #{record.payApproachPoundage,jdbcType=DECIMAL},
financial_merchant = #{record.financialMerchant,jdbcType=VARCHAR},
actual_funding_corp = #{record.actualFundingCorp,jdbcType=VARCHAR},
pay_center_orderNo = #{record.payCenterOrderno,jdbcType=VARCHAR},
loan_history_id = #{record.loanHistoryId,jdbcType=BIGINT},
contract_create_time = #{record.contractCreateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
phone_merchant = #{record.phoneMerchant,jdbcType=VARCHAR},
product_name3C = #{record.productName3c,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"cn.gq.financial.db.local.model.RepayDetailFinancialEntity"
>
update repay_detail_financial
<set
>
<if
test=
"bizType != null"
>
biz_type = #{bizType,jdbcType=VARCHAR},
</if>
<if
test=
"payAccount != null"
>
pay_account = #{payAccount,jdbcType=VARCHAR},
</if>
<if
test=
"month != null"
>
month = #{month,jdbcType=TINYINT},
</if>
<if
test=
"repaymentPlanId != null"
>
repayment_plan_id = #{repaymentPlanId,jdbcType=BIGINT},
</if>
<if
test=
"orderId != null"
>
order_id = #{orderId,jdbcType=VARCHAR},
</if>
<if
test=
"lhpSeriaNo != null"
>
lhp_seria_no = #{lhpSeriaNo,jdbcType=VARCHAR},
</if>
<if
test=
"customerFrom != null"
>
customer_from = #{customerFrom,jdbcType=VARCHAR},
</if>
<if
test=
"fundingCorpName != null"
>
funding_corp_name = #{fundingCorpName,jdbcType=VARCHAR},
</if>
<if
test=
"contractNo != null"
>
contract_no = #{contractNo,jdbcType=VARCHAR},
</if>
<if
test=
"userName != null"
>
user_name = #{userName,jdbcType=VARCHAR},
</if>
<if
test=
"userIdNo != null"
>
user_id_no = #{userIdNo,jdbcType=VARCHAR},
</if>
<if
test=
"userPhone != null"
>
user_phone = #{userPhone,jdbcType=VARCHAR},
</if>
<if
test=
"loanPaidTime != null"
>
loan_paid_time = #{loanPaidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"shouldLoanAmount != null"
>
should_loan_amount = #{shouldLoanAmount,jdbcType=DECIMAL},
</if>
<if
test=
"realLoanAmount != null"
>
real_loan_amount = #{realLoanAmount,jdbcType=DECIMAL},
</if>
<if
test=
"contractTerm != null"
>
contract_term = #{contractTerm,jdbcType=TINYINT},
</if>
<if
test=
"termNo != null"
>
term_no = #{termNo,jdbcType=TINYINT},
</if>
<if
test=
"deadline != null"
>
deadline = #{deadline,jdbcType=TIMESTAMP},
</if>
<if
test=
"requiredRepayment != null"
>
required_repayment = #{requiredRepayment,jdbcType=DECIMAL},
</if>
<if
test=
"repaidTime != null"
>
repaid_time = #{repaidTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"principalAmount != null"
>
principal_amount = #{principalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"interest != null"
>
interest = #{interest,jdbcType=DECIMAL},
</if>
<if
test=
"overdueFee != null"
>
overdue_fee = #{overdueFee,jdbcType=DECIMAL},
</if>
<if
test=
"selfMangemetFee != null"
>
self_mangemet_fee = #{selfMangemetFee,jdbcType=DECIMAL},
</if>
<if
test=
"activityRelief != null"
>
activity_relief = #{activityRelief,jdbcType=DECIMAL},
</if>
<if
test=
"collectionRelief != null"
>
collection_relief = #{collectionRelief,jdbcType=DECIMAL},
</if>
<if
test=
"currentRepayment != null"
>
current_repayment = #{currentRepayment,jdbcType=DECIMAL},
</if>
<if
test=
"payApproachPoundage != null"
>
pay_approach_poundage = #{payApproachPoundage,jdbcType=DECIMAL},
</if>
<if
test=
"financialMerchant != null"
>
financial_merchant = #{financialMerchant,jdbcType=VARCHAR},
</if>
<if
test=
"actualFundingCorp != null"
>
actual_funding_corp = #{actualFundingCorp,jdbcType=VARCHAR},
</if>
<if
test=
"payCenterOrderno != null"
>
pay_center_orderNo = #{payCenterOrderno,jdbcType=VARCHAR},
</if>
<if
test=
"loanHistoryId != null"
>
loan_history_id = #{loanHistoryId,jdbcType=BIGINT},
</if>
<if
test=
"contractCreateTime != null"
>
contract_create_time = #{contractCreateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
<if
test=
"phoneMerchant != null"
>
phone_merchant = #{phoneMerchant,jdbcType=VARCHAR},
</if>
<if
test=
"productName3c != null"
>
product_name3C = #{productName3c,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.gq.financial.db.local.model.RepayDetailFinancialEntity"
>
update repay_detail_financial
set biz_type = #{bizType,jdbcType=VARCHAR},
pay_account = #{payAccount,jdbcType=VARCHAR},
month = #{month,jdbcType=TINYINT},
repayment_plan_id = #{repaymentPlanId,jdbcType=BIGINT},
order_id = #{orderId,jdbcType=VARCHAR},
lhp_seria_no = #{lhpSeriaNo,jdbcType=VARCHAR},
customer_from = #{customerFrom,jdbcType=VARCHAR},
funding_corp_name = #{fundingCorpName,jdbcType=VARCHAR},
contract_no = #{contractNo,jdbcType=VARCHAR},
user_name = #{userName,jdbcType=VARCHAR},
user_id_no = #{userIdNo,jdbcType=VARCHAR},
user_phone = #{userPhone,jdbcType=VARCHAR},
loan_paid_time = #{loanPaidTime,jdbcType=TIMESTAMP},
should_loan_amount = #{shouldLoanAmount,jdbcType=DECIMAL},
real_loan_amount = #{realLoanAmount,jdbcType=DECIMAL},
contract_term = #{contractTerm,jdbcType=TINYINT},
term_no = #{termNo,jdbcType=TINYINT},
deadline = #{deadline,jdbcType=TIMESTAMP},
required_repayment = #{requiredRepayment,jdbcType=DECIMAL},
repaid_time = #{repaidTime,jdbcType=TIMESTAMP},
principal_amount = #{principalAmount,jdbcType=DECIMAL},
interest = #{interest,jdbcType=DECIMAL},
overdue_fee = #{overdueFee,jdbcType=DECIMAL},
self_mangemet_fee = #{selfMangemetFee,jdbcType=DECIMAL},
activity_relief = #{activityRelief,jdbcType=DECIMAL},
collection_relief = #{collectionRelief,jdbcType=DECIMAL},
current_repayment = #{currentRepayment,jdbcType=DECIMAL},
pay_approach_poundage = #{payApproachPoundage,jdbcType=DECIMAL},
financial_merchant = #{financialMerchant,jdbcType=VARCHAR},
actual_funding_corp = #{actualFundingCorp,jdbcType=VARCHAR},
pay_center_orderNo = #{payCenterOrderno,jdbcType=VARCHAR},
loan_history_id = #{loanHistoryId,jdbcType=BIGINT},
contract_create_time = #{contractCreateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
phone_merchant = #{phoneMerchant,jdbcType=VARCHAR},
product_name3C = #{productName3c,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
src/main/java/cn/gq/financial/db/local/model/RepayDetailFinancialEntity.java
0 → 100644
View file @
5312e991
package
cn
.
gq
.
financial
.
db
.
local
.
model
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
RepayDetailFinancialEntity
{
private
Long
id
;
private
String
bizType
;
private
String
payAccount
;
private
Byte
month
;
private
Long
repaymentPlanId
;
private
String
orderId
;
private
String
lhpSeriaNo
;
private
String
customerFrom
;
private
String
fundingCorpName
;
private
String
contractNo
;
private
String
userName
;
private
String
userIdNo
;
private
String
userPhone
;
private
Date
loanPaidTime
;
private
BigDecimal
shouldLoanAmount
;
private
BigDecimal
realLoanAmount
;
private
Byte
contractTerm
;
private
Byte
termNo
;
private
Date
deadline
;
private
BigDecimal
requiredRepayment
;
private
Date
repaidTime
;
private
BigDecimal
principalAmount
;
private
BigDecimal
interest
;
private
BigDecimal
overdueFee
;
private
BigDecimal
selfMangemetFee
;
private
BigDecimal
activityRelief
;
private
BigDecimal
collectionRelief
;
private
BigDecimal
currentRepayment
;
private
BigDecimal
payApproachPoundage
;
private
String
financialMerchant
;
private
String
actualFundingCorp
;
private
String
payCenterOrderno
;
private
Long
loanHistoryId
;
private
Date
contractCreateTime
;
private
String
remark
;
private
String
phoneMerchant
;
private
String
productName3c
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getBizType
()
{
return
bizType
;
}
public
void
setBizType
(
String
bizType
)
{
this
.
bizType
=
bizType
==
null
?
null
:
bizType
.
trim
();
}
public
String
getPayAccount
()
{
return
payAccount
;
}
public
void
setPayAccount
(
String
payAccount
)
{
this
.
payAccount
=
payAccount
==
null
?
null
:
payAccount
.
trim
();
}
public
Byte
getMonth
()
{
return
month
;
}
public
void
setMonth
(
Byte
month
)
{
this
.
month
=
month
;
}
public
Long
getRepaymentPlanId
()
{
return
repaymentPlanId
;
}
public
void
setRepaymentPlanId
(
Long
repaymentPlanId
)
{
this
.
repaymentPlanId
=
repaymentPlanId
;
}
public
String
getOrderId
()
{
return
orderId
;
}
public
void
setOrderId
(
String
orderId
)
{
this
.
orderId
=
orderId
==
null
?
null
:
orderId
.
trim
();
}
public
String
getLhpSeriaNo
()
{
return
lhpSeriaNo
;
}
public
void
setLhpSeriaNo
(
String
lhpSeriaNo
)
{
this
.
lhpSeriaNo
=
lhpSeriaNo
==
null
?
null
:
lhpSeriaNo
.
trim
();
}
public
String
getCustomerFrom
()
{
return
customerFrom
;
}
public
void
setCustomerFrom
(
String
customerFrom
)
{
this
.
customerFrom
=
customerFrom
==
null
?
null
:
customerFrom
.
trim
();
}
public
String
getFundingCorpName
()
{
return
fundingCorpName
;
}
public
void
setFundingCorpName
(
String
fundingCorpName
)
{
this
.
fundingCorpName
=
fundingCorpName
==
null
?
null
:
fundingCorpName
.
trim
();
}
public
String
getContractNo
()
{
return
contractNo
;
}
public
void
setContractNo
(
String
contractNo
)
{
this
.
contractNo
=
contractNo
==
null
?
null
:
contractNo
.
trim
();
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
==
null
?
null
:
userName
.
trim
();
}
public
String
getUserIdNo
()
{
return
userIdNo
;
}
public
void
setUserIdNo
(
String
userIdNo
)
{
this
.
userIdNo
=
userIdNo
==
null
?
null
:
userIdNo
.
trim
();
}
public
String
getUserPhone
()
{
return
userPhone
;
}
public
void
setUserPhone
(
String
userPhone
)
{
this
.
userPhone
=
userPhone
==
null
?
null
:
userPhone
.
trim
();
}
public
Date
getLoanPaidTime
()
{
return
loanPaidTime
;
}
public
void
setLoanPaidTime
(
Date
loanPaidTime
)
{
this
.
loanPaidTime
=
loanPaidTime
;
}
public
BigDecimal
getShouldLoanAmount
()
{
return
shouldLoanAmount
;
}
public
void
setShouldLoanAmount
(
BigDecimal
shouldLoanAmount
)
{
this
.
shouldLoanAmount
=
shouldLoanAmount
;
}
public
BigDecimal
getRealLoanAmount
()
{
return
realLoanAmount
;
}
public
void
setRealLoanAmount
(
BigDecimal
realLoanAmount
)
{
this
.
realLoanAmount
=
realLoanAmount
;
}
public
Byte
getContractTerm
()
{
return
contractTerm
;
}
public
void
setContractTerm
(
Byte
contractTerm
)
{
this
.
contractTerm
=
contractTerm
;
}
public
Byte
getTermNo
()
{
return
termNo
;
}
public
void
setTermNo
(
Byte
termNo
)
{
this
.
termNo
=
termNo
;
}
public
Date
getDeadline
()
{
return
deadline
;
}
public
void
setDeadline
(
Date
deadline
)
{
this
.
deadline
=
deadline
;
}
public
BigDecimal
getRequiredRepayment
()
{
return
requiredRepayment
;
}
public
void
setRequiredRepayment
(
BigDecimal
requiredRepayment
)
{
this
.
requiredRepayment
=
requiredRepayment
;
}
public
Date
getRepaidTime
()
{
return
repaidTime
;
}
public
void
setRepaidTime
(
Date
repaidTime
)
{
this
.
repaidTime
=
repaidTime
;
}
public
BigDecimal
getPrincipalAmount
()
{
return
principalAmount
;
}
public
void
setPrincipalAmount
(
BigDecimal
principalAmount
)
{
this
.
principalAmount
=
principalAmount
;
}
public
BigDecimal
getInterest
()
{
return
interest
;
}
public
void
setInterest
(
BigDecimal
interest
)
{
this
.
interest
=
interest
;
}
public
BigDecimal
getOverdueFee
()
{
return
overdueFee
;
}
public
void
setOverdueFee
(
BigDecimal
overdueFee
)
{
this
.
overdueFee
=
overdueFee
;
}
public
BigDecimal
getSelfMangemetFee
()
{
return
selfMangemetFee
;
}
public
void
setSelfMangemetFee
(
BigDecimal
selfMangemetFee
)
{
this
.
selfMangemetFee
=
selfMangemetFee
;
}
public
BigDecimal
getActivityRelief
()
{
return
activityRelief
;
}
public
void
setActivityRelief
(
BigDecimal
activityRelief
)
{
this
.
activityRelief
=
activityRelief
;
}
public
BigDecimal
getCollectionRelief
()
{
return
collectionRelief
;
}
public
void
setCollectionRelief
(
BigDecimal
collectionRelief
)
{
this
.
collectionRelief
=
collectionRelief
;
}
public
BigDecimal
getCurrentRepayment
()
{
return
currentRepayment
;
}
public
void
setCurrentRepayment
(
BigDecimal
currentRepayment
)
{
this
.
currentRepayment
=
currentRepayment
;
}
public
BigDecimal
getPayApproachPoundage
()
{
return
payApproachPoundage
;
}
public
void
setPayApproachPoundage
(
BigDecimal
payApproachPoundage
)
{
this
.
payApproachPoundage
=
payApproachPoundage
;
}
public
String
getFinancialMerchant
()
{
return
financialMerchant
;
}
public
void
setFinancialMerchant
(
String
financialMerchant
)
{
this
.
financialMerchant
=
financialMerchant
==
null
?
null
:
financialMerchant
.
trim
();
}
public
String
getActualFundingCorp
()
{
return
actualFundingCorp
;
}
public
void
setActualFundingCorp
(
String
actualFundingCorp
)
{
this
.
actualFundingCorp
=
actualFundingCorp
==
null
?
null
:
actualFundingCorp
.
trim
();
}
public
String
getPayCenterOrderno
()
{
return
payCenterOrderno
;
}
public
void
setPayCenterOrderno
(
String
payCenterOrderno
)
{
this
.
payCenterOrderno
=
payCenterOrderno
==
null
?
null
:
payCenterOrderno
.
trim
();
}
public
Long
getLoanHistoryId
()
{
return
loanHistoryId
;
}
public
void
setLoanHistoryId
(
Long
loanHistoryId
)
{
this
.
loanHistoryId
=
loanHistoryId
;
}
public
Date
getContractCreateTime
()
{
return
contractCreateTime
;
}
public
void
setContractCreateTime
(
Date
contractCreateTime
)
{
this
.
contractCreateTime
=
contractCreateTime
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
==
null
?
null
:
remark
.
trim
();
}
public
String
getPhoneMerchant
()
{
return
phoneMerchant
;
}
public
void
setPhoneMerchant
(
String
phoneMerchant
)
{
this
.
phoneMerchant
=
phoneMerchant
==
null
?
null
:
phoneMerchant
.
trim
();
}
public
String
getProductName3c
()
{
return
productName3c
;
}
public
void
setProductName3c
(
String
productName3c
)
{
this
.
productName3c
=
productName3c
==
null
?
null
:
productName3c
.
trim
();
}
}
\ No newline at end of file
src/main/java/cn/gq/financial/db/local/model/RepayDetailFinancialEntityExample.java
0 → 100644
View file @
5312e991
package
cn
.
gq
.
financial
.
db
.
local
.
model
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
RepayDetailFinancialEntityExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
RepayDetailFinancialEntityExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
public
String
getOrderByClause
()
{
return
orderByClause
;
}
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
public
boolean
isDistinct
()
{
return
distinct
;
}
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
();
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeIsNull
()
{
addCriterion
(
"biz_type is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeIsNotNull
()
{
addCriterion
(
"biz_type is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeEqualTo
(
String
value
)
{
addCriterion
(
"biz_type ="
,
value
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeNotEqualTo
(
String
value
)
{
addCriterion
(
"biz_type <>"
,
value
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeGreaterThan
(
String
value
)
{
addCriterion
(
"biz_type >"
,
value
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"biz_type >="
,
value
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeLessThan
(
String
value
)
{
addCriterion
(
"biz_type <"
,
value
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"biz_type <="
,
value
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeLike
(
String
value
)
{
addCriterion
(
"biz_type like"
,
value
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeNotLike
(
String
value
)
{
addCriterion
(
"biz_type not like"
,
value
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeIn
(
List
<
String
>
values
)
{
addCriterion
(
"biz_type in"
,
values
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"biz_type not in"
,
values
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"biz_type between"
,
value1
,
value2
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBizTypeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"biz_type not between"
,
value1
,
value2
,
"bizType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountIsNull
()
{
addCriterion
(
"pay_account is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountIsNotNull
()
{
addCriterion
(
"pay_account is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountEqualTo
(
String
value
)
{
addCriterion
(
"pay_account ="
,
value
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountNotEqualTo
(
String
value
)
{
addCriterion
(
"pay_account <>"
,
value
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountGreaterThan
(
String
value
)
{
addCriterion
(
"pay_account >"
,
value
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"pay_account >="
,
value
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountLessThan
(
String
value
)
{
addCriterion
(
"pay_account <"
,
value
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"pay_account <="
,
value
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountLike
(
String
value
)
{
addCriterion
(
"pay_account like"
,
value
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountNotLike
(
String
value
)
{
addCriterion
(
"pay_account not like"
,
value
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountIn
(
List
<
String
>
values
)
{
addCriterion
(
"pay_account in"
,
values
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"pay_account not in"
,
values
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"pay_account between"
,
value1
,
value2
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayAccountNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"pay_account not between"
,
value1
,
value2
,
"payAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthIsNull
()
{
addCriterion
(
"month is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthIsNotNull
()
{
addCriterion
(
"month is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthEqualTo
(
Byte
value
)
{
addCriterion
(
"month ="
,
value
,
"month"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthNotEqualTo
(
Byte
value
)
{
addCriterion
(
"month <>"
,
value
,
"month"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthGreaterThan
(
Byte
value
)
{
addCriterion
(
"month >"
,
value
,
"month"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthGreaterThanOrEqualTo
(
Byte
value
)
{
addCriterion
(
"month >="
,
value
,
"month"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthLessThan
(
Byte
value
)
{
addCriterion
(
"month <"
,
value
,
"month"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthLessThanOrEqualTo
(
Byte
value
)
{
addCriterion
(
"month <="
,
value
,
"month"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthIn
(
List
<
Byte
>
values
)
{
addCriterion
(
"month in"
,
values
,
"month"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthNotIn
(
List
<
Byte
>
values
)
{
addCriterion
(
"month not in"
,
values
,
"month"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthBetween
(
Byte
value1
,
Byte
value2
)
{
addCriterion
(
"month between"
,
value1
,
value2
,
"month"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMonthNotBetween
(
Byte
value1
,
Byte
value2
)
{
addCriterion
(
"month not between"
,
value1
,
value2
,
"month"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdIsNull
()
{
addCriterion
(
"repayment_plan_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdIsNotNull
()
{
addCriterion
(
"repayment_plan_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdEqualTo
(
Long
value
)
{
addCriterion
(
"repayment_plan_id ="
,
value
,
"repaymentPlanId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"repayment_plan_id <>"
,
value
,
"repaymentPlanId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdGreaterThan
(
Long
value
)
{
addCriterion
(
"repayment_plan_id >"
,
value
,
"repaymentPlanId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"repayment_plan_id >="
,
value
,
"repaymentPlanId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdLessThan
(
Long
value
)
{
addCriterion
(
"repayment_plan_id <"
,
value
,
"repaymentPlanId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"repayment_plan_id <="
,
value
,
"repaymentPlanId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"repayment_plan_id in"
,
values
,
"repaymentPlanId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"repayment_plan_id not in"
,
values
,
"repaymentPlanId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"repayment_plan_id between"
,
value1
,
value2
,
"repaymentPlanId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaymentPlanIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"repayment_plan_id not between"
,
value1
,
value2
,
"repaymentPlanId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdIsNull
()
{
addCriterion
(
"order_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdIsNotNull
()
{
addCriterion
(
"order_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdEqualTo
(
String
value
)
{
addCriterion
(
"order_id ="
,
value
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdNotEqualTo
(
String
value
)
{
addCriterion
(
"order_id <>"
,
value
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdGreaterThan
(
String
value
)
{
addCriterion
(
"order_id >"
,
value
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"order_id >="
,
value
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdLessThan
(
String
value
)
{
addCriterion
(
"order_id <"
,
value
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"order_id <="
,
value
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdLike
(
String
value
)
{
addCriterion
(
"order_id like"
,
value
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdNotLike
(
String
value
)
{
addCriterion
(
"order_id not like"
,
value
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"order_id in"
,
values
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"order_id not in"
,
values
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"order_id between"
,
value1
,
value2
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"order_id not between"
,
value1
,
value2
,
"orderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoIsNull
()
{
addCriterion
(
"lhp_seria_no is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoIsNotNull
()
{
addCriterion
(
"lhp_seria_no is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoEqualTo
(
String
value
)
{
addCriterion
(
"lhp_seria_no ="
,
value
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoNotEqualTo
(
String
value
)
{
addCriterion
(
"lhp_seria_no <>"
,
value
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoGreaterThan
(
String
value
)
{
addCriterion
(
"lhp_seria_no >"
,
value
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"lhp_seria_no >="
,
value
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoLessThan
(
String
value
)
{
addCriterion
(
"lhp_seria_no <"
,
value
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"lhp_seria_no <="
,
value
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoLike
(
String
value
)
{
addCriterion
(
"lhp_seria_no like"
,
value
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoNotLike
(
String
value
)
{
addCriterion
(
"lhp_seria_no not like"
,
value
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoIn
(
List
<
String
>
values
)
{
addCriterion
(
"lhp_seria_no in"
,
values
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"lhp_seria_no not in"
,
values
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"lhp_seria_no between"
,
value1
,
value2
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLhpSeriaNoNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"lhp_seria_no not between"
,
value1
,
value2
,
"lhpSeriaNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromIsNull
()
{
addCriterion
(
"customer_from is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromIsNotNull
()
{
addCriterion
(
"customer_from is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromEqualTo
(
String
value
)
{
addCriterion
(
"customer_from ="
,
value
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromNotEqualTo
(
String
value
)
{
addCriterion
(
"customer_from <>"
,
value
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromGreaterThan
(
String
value
)
{
addCriterion
(
"customer_from >"
,
value
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"customer_from >="
,
value
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromLessThan
(
String
value
)
{
addCriterion
(
"customer_from <"
,
value
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"customer_from <="
,
value
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromLike
(
String
value
)
{
addCriterion
(
"customer_from like"
,
value
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromNotLike
(
String
value
)
{
addCriterion
(
"customer_from not like"
,
value
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromIn
(
List
<
String
>
values
)
{
addCriterion
(
"customer_from in"
,
values
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"customer_from not in"
,
values
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"customer_from between"
,
value1
,
value2
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCustomerFromNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"customer_from not between"
,
value1
,
value2
,
"customerFrom"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameIsNull
()
{
addCriterion
(
"funding_corp_name is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameIsNotNull
()
{
addCriterion
(
"funding_corp_name is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameEqualTo
(
String
value
)
{
addCriterion
(
"funding_corp_name ="
,
value
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameNotEqualTo
(
String
value
)
{
addCriterion
(
"funding_corp_name <>"
,
value
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameGreaterThan
(
String
value
)
{
addCriterion
(
"funding_corp_name >"
,
value
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"funding_corp_name >="
,
value
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameLessThan
(
String
value
)
{
addCriterion
(
"funding_corp_name <"
,
value
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"funding_corp_name <="
,
value
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameLike
(
String
value
)
{
addCriterion
(
"funding_corp_name like"
,
value
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameNotLike
(
String
value
)
{
addCriterion
(
"funding_corp_name not like"
,
value
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"funding_corp_name in"
,
values
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"funding_corp_name not in"
,
values
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"funding_corp_name between"
,
value1
,
value2
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFundingCorpNameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"funding_corp_name not between"
,
value1
,
value2
,
"fundingCorpName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoIsNull
()
{
addCriterion
(
"contract_no is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoIsNotNull
()
{
addCriterion
(
"contract_no is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoEqualTo
(
String
value
)
{
addCriterion
(
"contract_no ="
,
value
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoNotEqualTo
(
String
value
)
{
addCriterion
(
"contract_no <>"
,
value
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoGreaterThan
(
String
value
)
{
addCriterion
(
"contract_no >"
,
value
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"contract_no >="
,
value
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoLessThan
(
String
value
)
{
addCriterion
(
"contract_no <"
,
value
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"contract_no <="
,
value
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoLike
(
String
value
)
{
addCriterion
(
"contract_no like"
,
value
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoNotLike
(
String
value
)
{
addCriterion
(
"contract_no not like"
,
value
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoIn
(
List
<
String
>
values
)
{
addCriterion
(
"contract_no in"
,
values
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"contract_no not in"
,
values
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"contract_no between"
,
value1
,
value2
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractNoNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"contract_no not between"
,
value1
,
value2
,
"contractNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameIsNull
()
{
addCriterion
(
"user_name is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameIsNotNull
()
{
addCriterion
(
"user_name is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameEqualTo
(
String
value
)
{
addCriterion
(
"user_name ="
,
value
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameNotEqualTo
(
String
value
)
{
addCriterion
(
"user_name <>"
,
value
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameGreaterThan
(
String
value
)
{
addCriterion
(
"user_name >"
,
value
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_name >="
,
value
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameLessThan
(
String
value
)
{
addCriterion
(
"user_name <"
,
value
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_name <="
,
value
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameLike
(
String
value
)
{
addCriterion
(
"user_name like"
,
value
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameNotLike
(
String
value
)
{
addCriterion
(
"user_name not like"
,
value
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_name in"
,
values
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_name not in"
,
values
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_name between"
,
value1
,
value2
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserNameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_name not between"
,
value1
,
value2
,
"userName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoIsNull
()
{
addCriterion
(
"user_id_no is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoIsNotNull
()
{
addCriterion
(
"user_id_no is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoEqualTo
(
String
value
)
{
addCriterion
(
"user_id_no ="
,
value
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoNotEqualTo
(
String
value
)
{
addCriterion
(
"user_id_no <>"
,
value
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoGreaterThan
(
String
value
)
{
addCriterion
(
"user_id_no >"
,
value
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_id_no >="
,
value
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoLessThan
(
String
value
)
{
addCriterion
(
"user_id_no <"
,
value
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_id_no <="
,
value
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoLike
(
String
value
)
{
addCriterion
(
"user_id_no like"
,
value
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoNotLike
(
String
value
)
{
addCriterion
(
"user_id_no not like"
,
value
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_id_no in"
,
values
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_id_no not in"
,
values
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_id_no between"
,
value1
,
value2
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserIdNoNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_id_no not between"
,
value1
,
value2
,
"userIdNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneIsNull
()
{
addCriterion
(
"user_phone is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneIsNotNull
()
{
addCriterion
(
"user_phone is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneEqualTo
(
String
value
)
{
addCriterion
(
"user_phone ="
,
value
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneNotEqualTo
(
String
value
)
{
addCriterion
(
"user_phone <>"
,
value
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneGreaterThan
(
String
value
)
{
addCriterion
(
"user_phone >"
,
value
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_phone >="
,
value
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneLessThan
(
String
value
)
{
addCriterion
(
"user_phone <"
,
value
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"user_phone <="
,
value
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneLike
(
String
value
)
{
addCriterion
(
"user_phone like"
,
value
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneNotLike
(
String
value
)
{
addCriterion
(
"user_phone not like"
,
value
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_phone in"
,
values
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"user_phone not in"
,
values
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_phone between"
,
value1
,
value2
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUserPhoneNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"user_phone not between"
,
value1
,
value2
,
"userPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeIsNull
()
{
addCriterion
(
"loan_paid_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeIsNotNull
()
{
addCriterion
(
"loan_paid_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeEqualTo
(
Date
value
)
{
addCriterion
(
"loan_paid_time ="
,
value
,
"loanPaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"loan_paid_time <>"
,
value
,
"loanPaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"loan_paid_time >"
,
value
,
"loanPaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"loan_paid_time >="
,
value
,
"loanPaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeLessThan
(
Date
value
)
{
addCriterion
(
"loan_paid_time <"
,
value
,
"loanPaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"loan_paid_time <="
,
value
,
"loanPaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"loan_paid_time in"
,
values
,
"loanPaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"loan_paid_time not in"
,
values
,
"loanPaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"loan_paid_time between"
,
value1
,
value2
,
"loanPaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanPaidTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"loan_paid_time not between"
,
value1
,
value2
,
"loanPaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountIsNull
()
{
addCriterion
(
"should_loan_amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountIsNotNull
()
{
addCriterion
(
"should_loan_amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"should_loan_amount ="
,
value
,
"shouldLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"should_loan_amount <>"
,
value
,
"shouldLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"should_loan_amount >"
,
value
,
"shouldLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"should_loan_amount >="
,
value
,
"shouldLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountLessThan
(
BigDecimal
value
)
{
addCriterion
(
"should_loan_amount <"
,
value
,
"shouldLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"should_loan_amount <="
,
value
,
"shouldLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"should_loan_amount in"
,
values
,
"shouldLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"should_loan_amount not in"
,
values
,
"shouldLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"should_loan_amount between"
,
value1
,
value2
,
"shouldLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andShouldLoanAmountNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"should_loan_amount not between"
,
value1
,
value2
,
"shouldLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountIsNull
()
{
addCriterion
(
"real_loan_amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountIsNotNull
()
{
addCriterion
(
"real_loan_amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"real_loan_amount ="
,
value
,
"realLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"real_loan_amount <>"
,
value
,
"realLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"real_loan_amount >"
,
value
,
"realLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"real_loan_amount >="
,
value
,
"realLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountLessThan
(
BigDecimal
value
)
{
addCriterion
(
"real_loan_amount <"
,
value
,
"realLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"real_loan_amount <="
,
value
,
"realLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"real_loan_amount in"
,
values
,
"realLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"real_loan_amount not in"
,
values
,
"realLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"real_loan_amount between"
,
value1
,
value2
,
"realLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRealLoanAmountNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"real_loan_amount not between"
,
value1
,
value2
,
"realLoanAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermIsNull
()
{
addCriterion
(
"contract_term is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermIsNotNull
()
{
addCriterion
(
"contract_term is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermEqualTo
(
Byte
value
)
{
addCriterion
(
"contract_term ="
,
value
,
"contractTerm"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermNotEqualTo
(
Byte
value
)
{
addCriterion
(
"contract_term <>"
,
value
,
"contractTerm"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermGreaterThan
(
Byte
value
)
{
addCriterion
(
"contract_term >"
,
value
,
"contractTerm"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermGreaterThanOrEqualTo
(
Byte
value
)
{
addCriterion
(
"contract_term >="
,
value
,
"contractTerm"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermLessThan
(
Byte
value
)
{
addCriterion
(
"contract_term <"
,
value
,
"contractTerm"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermLessThanOrEqualTo
(
Byte
value
)
{
addCriterion
(
"contract_term <="
,
value
,
"contractTerm"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermIn
(
List
<
Byte
>
values
)
{
addCriterion
(
"contract_term in"
,
values
,
"contractTerm"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermNotIn
(
List
<
Byte
>
values
)
{
addCriterion
(
"contract_term not in"
,
values
,
"contractTerm"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermBetween
(
Byte
value1
,
Byte
value2
)
{
addCriterion
(
"contract_term between"
,
value1
,
value2
,
"contractTerm"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractTermNotBetween
(
Byte
value1
,
Byte
value2
)
{
addCriterion
(
"contract_term not between"
,
value1
,
value2
,
"contractTerm"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoIsNull
()
{
addCriterion
(
"term_no is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoIsNotNull
()
{
addCriterion
(
"term_no is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoEqualTo
(
Byte
value
)
{
addCriterion
(
"term_no ="
,
value
,
"termNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoNotEqualTo
(
Byte
value
)
{
addCriterion
(
"term_no <>"
,
value
,
"termNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoGreaterThan
(
Byte
value
)
{
addCriterion
(
"term_no >"
,
value
,
"termNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoGreaterThanOrEqualTo
(
Byte
value
)
{
addCriterion
(
"term_no >="
,
value
,
"termNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoLessThan
(
Byte
value
)
{
addCriterion
(
"term_no <"
,
value
,
"termNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoLessThanOrEqualTo
(
Byte
value
)
{
addCriterion
(
"term_no <="
,
value
,
"termNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoIn
(
List
<
Byte
>
values
)
{
addCriterion
(
"term_no in"
,
values
,
"termNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoNotIn
(
List
<
Byte
>
values
)
{
addCriterion
(
"term_no not in"
,
values
,
"termNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoBetween
(
Byte
value1
,
Byte
value2
)
{
addCriterion
(
"term_no between"
,
value1
,
value2
,
"termNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTermNoNotBetween
(
Byte
value1
,
Byte
value2
)
{
addCriterion
(
"term_no not between"
,
value1
,
value2
,
"termNo"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineIsNull
()
{
addCriterion
(
"deadline is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineIsNotNull
()
{
addCriterion
(
"deadline is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineEqualTo
(
Date
value
)
{
addCriterion
(
"deadline ="
,
value
,
"deadline"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineNotEqualTo
(
Date
value
)
{
addCriterion
(
"deadline <>"
,
value
,
"deadline"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineGreaterThan
(
Date
value
)
{
addCriterion
(
"deadline >"
,
value
,
"deadline"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"deadline >="
,
value
,
"deadline"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineLessThan
(
Date
value
)
{
addCriterion
(
"deadline <"
,
value
,
"deadline"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"deadline <="
,
value
,
"deadline"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineIn
(
List
<
Date
>
values
)
{
addCriterion
(
"deadline in"
,
values
,
"deadline"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"deadline not in"
,
values
,
"deadline"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"deadline between"
,
value1
,
value2
,
"deadline"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeadlineNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"deadline not between"
,
value1
,
value2
,
"deadline"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentIsNull
()
{
addCriterion
(
"required_repayment is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentIsNotNull
()
{
addCriterion
(
"required_repayment is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"required_repayment ="
,
value
,
"requiredRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"required_repayment <>"
,
value
,
"requiredRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"required_repayment >"
,
value
,
"requiredRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"required_repayment >="
,
value
,
"requiredRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentLessThan
(
BigDecimal
value
)
{
addCriterion
(
"required_repayment <"
,
value
,
"requiredRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"required_repayment <="
,
value
,
"requiredRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"required_repayment in"
,
values
,
"requiredRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"required_repayment not in"
,
values
,
"requiredRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"required_repayment between"
,
value1
,
value2
,
"requiredRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRequiredRepaymentNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"required_repayment not between"
,
value1
,
value2
,
"requiredRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeIsNull
()
{
addCriterion
(
"repaid_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeIsNotNull
()
{
addCriterion
(
"repaid_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeEqualTo
(
Date
value
)
{
addCriterion
(
"repaid_time ="
,
value
,
"repaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"repaid_time <>"
,
value
,
"repaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"repaid_time >"
,
value
,
"repaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"repaid_time >="
,
value
,
"repaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeLessThan
(
Date
value
)
{
addCriterion
(
"repaid_time <"
,
value
,
"repaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"repaid_time <="
,
value
,
"repaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"repaid_time in"
,
values
,
"repaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"repaid_time not in"
,
values
,
"repaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"repaid_time between"
,
value1
,
value2
,
"repaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRepaidTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"repaid_time not between"
,
value1
,
value2
,
"repaidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountIsNull
()
{
addCriterion
(
"principal_amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountIsNotNull
()
{
addCriterion
(
"principal_amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"principal_amount ="
,
value
,
"principalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"principal_amount <>"
,
value
,
"principalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"principal_amount >"
,
value
,
"principalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"principal_amount >="
,
value
,
"principalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountLessThan
(
BigDecimal
value
)
{
addCriterion
(
"principal_amount <"
,
value
,
"principalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"principal_amount <="
,
value
,
"principalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"principal_amount in"
,
values
,
"principalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"principal_amount not in"
,
values
,
"principalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"principal_amount between"
,
value1
,
value2
,
"principalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPrincipalAmountNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"principal_amount not between"
,
value1
,
value2
,
"principalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestIsNull
()
{
addCriterion
(
"interest is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestIsNotNull
()
{
addCriterion
(
"interest is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"interest ="
,
value
,
"interest"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"interest <>"
,
value
,
"interest"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"interest >"
,
value
,
"interest"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"interest >="
,
value
,
"interest"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestLessThan
(
BigDecimal
value
)
{
addCriterion
(
"interest <"
,
value
,
"interest"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"interest <="
,
value
,
"interest"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"interest in"
,
values
,
"interest"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"interest not in"
,
values
,
"interest"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"interest between"
,
value1
,
value2
,
"interest"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInterestNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"interest not between"
,
value1
,
value2
,
"interest"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeIsNull
()
{
addCriterion
(
"overdue_fee is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeIsNotNull
()
{
addCriterion
(
"overdue_fee is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"overdue_fee ="
,
value
,
"overdueFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"overdue_fee <>"
,
value
,
"overdueFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"overdue_fee >"
,
value
,
"overdueFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"overdue_fee >="
,
value
,
"overdueFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeLessThan
(
BigDecimal
value
)
{
addCriterion
(
"overdue_fee <"
,
value
,
"overdueFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"overdue_fee <="
,
value
,
"overdueFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"overdue_fee in"
,
values
,
"overdueFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"overdue_fee not in"
,
values
,
"overdueFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"overdue_fee between"
,
value1
,
value2
,
"overdueFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOverdueFeeNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"overdue_fee not between"
,
value1
,
value2
,
"overdueFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeIsNull
()
{
addCriterion
(
"self_mangemet_fee is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeIsNotNull
()
{
addCriterion
(
"self_mangemet_fee is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"self_mangemet_fee ="
,
value
,
"selfMangemetFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"self_mangemet_fee <>"
,
value
,
"selfMangemetFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"self_mangemet_fee >"
,
value
,
"selfMangemetFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"self_mangemet_fee >="
,
value
,
"selfMangemetFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeLessThan
(
BigDecimal
value
)
{
addCriterion
(
"self_mangemet_fee <"
,
value
,
"selfMangemetFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"self_mangemet_fee <="
,
value
,
"selfMangemetFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"self_mangemet_fee in"
,
values
,
"selfMangemetFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"self_mangemet_fee not in"
,
values
,
"selfMangemetFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"self_mangemet_fee between"
,
value1
,
value2
,
"selfMangemetFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSelfMangemetFeeNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"self_mangemet_fee not between"
,
value1
,
value2
,
"selfMangemetFee"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefIsNull
()
{
addCriterion
(
"activity_relief is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefIsNotNull
()
{
addCriterion
(
"activity_relief is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"activity_relief ="
,
value
,
"activityRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"activity_relief <>"
,
value
,
"activityRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"activity_relief >"
,
value
,
"activityRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"activity_relief >="
,
value
,
"activityRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefLessThan
(
BigDecimal
value
)
{
addCriterion
(
"activity_relief <"
,
value
,
"activityRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"activity_relief <="
,
value
,
"activityRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"activity_relief in"
,
values
,
"activityRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"activity_relief not in"
,
values
,
"activityRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"activity_relief between"
,
value1
,
value2
,
"activityRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActivityReliefNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"activity_relief not between"
,
value1
,
value2
,
"activityRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefIsNull
()
{
addCriterion
(
"collection_relief is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefIsNotNull
()
{
addCriterion
(
"collection_relief is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"collection_relief ="
,
value
,
"collectionRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"collection_relief <>"
,
value
,
"collectionRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"collection_relief >"
,
value
,
"collectionRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"collection_relief >="
,
value
,
"collectionRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefLessThan
(
BigDecimal
value
)
{
addCriterion
(
"collection_relief <"
,
value
,
"collectionRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"collection_relief <="
,
value
,
"collectionRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"collection_relief in"
,
values
,
"collectionRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"collection_relief not in"
,
values
,
"collectionRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"collection_relief between"
,
value1
,
value2
,
"collectionRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCollectionReliefNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"collection_relief not between"
,
value1
,
value2
,
"collectionRelief"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentIsNull
()
{
addCriterion
(
"current_repayment is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentIsNotNull
()
{
addCriterion
(
"current_repayment is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"current_repayment ="
,
value
,
"currentRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"current_repayment <>"
,
value
,
"currentRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"current_repayment >"
,
value
,
"currentRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"current_repayment >="
,
value
,
"currentRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentLessThan
(
BigDecimal
value
)
{
addCriterion
(
"current_repayment <"
,
value
,
"currentRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"current_repayment <="
,
value
,
"currentRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"current_repayment in"
,
values
,
"currentRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"current_repayment not in"
,
values
,
"currentRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"current_repayment between"
,
value1
,
value2
,
"currentRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCurrentRepaymentNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"current_repayment not between"
,
value1
,
value2
,
"currentRepayment"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageIsNull
()
{
addCriterion
(
"pay_approach_poundage is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageIsNotNull
()
{
addCriterion
(
"pay_approach_poundage is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"pay_approach_poundage ="
,
value
,
"payApproachPoundage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"pay_approach_poundage <>"
,
value
,
"payApproachPoundage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"pay_approach_poundage >"
,
value
,
"payApproachPoundage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"pay_approach_poundage >="
,
value
,
"payApproachPoundage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageLessThan
(
BigDecimal
value
)
{
addCriterion
(
"pay_approach_poundage <"
,
value
,
"payApproachPoundage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"pay_approach_poundage <="
,
value
,
"payApproachPoundage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"pay_approach_poundage in"
,
values
,
"payApproachPoundage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"pay_approach_poundage not in"
,
values
,
"payApproachPoundage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"pay_approach_poundage between"
,
value1
,
value2
,
"payApproachPoundage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayApproachPoundageNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"pay_approach_poundage not between"
,
value1
,
value2
,
"payApproachPoundage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantIsNull
()
{
addCriterion
(
"financial_merchant is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantIsNotNull
()
{
addCriterion
(
"financial_merchant is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantEqualTo
(
String
value
)
{
addCriterion
(
"financial_merchant ="
,
value
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantNotEqualTo
(
String
value
)
{
addCriterion
(
"financial_merchant <>"
,
value
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantGreaterThan
(
String
value
)
{
addCriterion
(
"financial_merchant >"
,
value
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"financial_merchant >="
,
value
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantLessThan
(
String
value
)
{
addCriterion
(
"financial_merchant <"
,
value
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"financial_merchant <="
,
value
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantLike
(
String
value
)
{
addCriterion
(
"financial_merchant like"
,
value
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantNotLike
(
String
value
)
{
addCriterion
(
"financial_merchant not like"
,
value
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantIn
(
List
<
String
>
values
)
{
addCriterion
(
"financial_merchant in"
,
values
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"financial_merchant not in"
,
values
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"financial_merchant between"
,
value1
,
value2
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFinancialMerchantNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"financial_merchant not between"
,
value1
,
value2
,
"financialMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpIsNull
()
{
addCriterion
(
"actual_funding_corp is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpIsNotNull
()
{
addCriterion
(
"actual_funding_corp is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpEqualTo
(
String
value
)
{
addCriterion
(
"actual_funding_corp ="
,
value
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpNotEqualTo
(
String
value
)
{
addCriterion
(
"actual_funding_corp <>"
,
value
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpGreaterThan
(
String
value
)
{
addCriterion
(
"actual_funding_corp >"
,
value
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"actual_funding_corp >="
,
value
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpLessThan
(
String
value
)
{
addCriterion
(
"actual_funding_corp <"
,
value
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"actual_funding_corp <="
,
value
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpLike
(
String
value
)
{
addCriterion
(
"actual_funding_corp like"
,
value
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpNotLike
(
String
value
)
{
addCriterion
(
"actual_funding_corp not like"
,
value
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpIn
(
List
<
String
>
values
)
{
addCriterion
(
"actual_funding_corp in"
,
values
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"actual_funding_corp not in"
,
values
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"actual_funding_corp between"
,
value1
,
value2
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andActualFundingCorpNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"actual_funding_corp not between"
,
value1
,
value2
,
"actualFundingCorp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoIsNull
()
{
addCriterion
(
"pay_center_orderNo is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoIsNotNull
()
{
addCriterion
(
"pay_center_orderNo is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoEqualTo
(
String
value
)
{
addCriterion
(
"pay_center_orderNo ="
,
value
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoNotEqualTo
(
String
value
)
{
addCriterion
(
"pay_center_orderNo <>"
,
value
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoGreaterThan
(
String
value
)
{
addCriterion
(
"pay_center_orderNo >"
,
value
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"pay_center_orderNo >="
,
value
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoLessThan
(
String
value
)
{
addCriterion
(
"pay_center_orderNo <"
,
value
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"pay_center_orderNo <="
,
value
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoLike
(
String
value
)
{
addCriterion
(
"pay_center_orderNo like"
,
value
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoNotLike
(
String
value
)
{
addCriterion
(
"pay_center_orderNo not like"
,
value
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoIn
(
List
<
String
>
values
)
{
addCriterion
(
"pay_center_orderNo in"
,
values
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"pay_center_orderNo not in"
,
values
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"pay_center_orderNo between"
,
value1
,
value2
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPayCenterOrdernoNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"pay_center_orderNo not between"
,
value1
,
value2
,
"payCenterOrderno"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdIsNull
()
{
addCriterion
(
"loan_history_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdIsNotNull
()
{
addCriterion
(
"loan_history_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdEqualTo
(
Long
value
)
{
addCriterion
(
"loan_history_id ="
,
value
,
"loanHistoryId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"loan_history_id <>"
,
value
,
"loanHistoryId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdGreaterThan
(
Long
value
)
{
addCriterion
(
"loan_history_id >"
,
value
,
"loanHistoryId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"loan_history_id >="
,
value
,
"loanHistoryId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdLessThan
(
Long
value
)
{
addCriterion
(
"loan_history_id <"
,
value
,
"loanHistoryId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"loan_history_id <="
,
value
,
"loanHistoryId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"loan_history_id in"
,
values
,
"loanHistoryId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"loan_history_id not in"
,
values
,
"loanHistoryId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"loan_history_id between"
,
value1
,
value2
,
"loanHistoryId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoanHistoryIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"loan_history_id not between"
,
value1
,
value2
,
"loanHistoryId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeIsNull
()
{
addCriterion
(
"contract_create_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeIsNotNull
()
{
addCriterion
(
"contract_create_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"contract_create_time ="
,
value
,
"contractCreateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"contract_create_time <>"
,
value
,
"contractCreateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"contract_create_time >"
,
value
,
"contractCreateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"contract_create_time >="
,
value
,
"contractCreateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"contract_create_time <"
,
value
,
"contractCreateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"contract_create_time <="
,
value
,
"contractCreateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"contract_create_time in"
,
values
,
"contractCreateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"contract_create_time not in"
,
values
,
"contractCreateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"contract_create_time between"
,
value1
,
value2
,
"contractCreateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andContractCreateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"contract_create_time not between"
,
value1
,
value2
,
"contractCreateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkIsNull
()
{
addCriterion
(
"remark is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkIsNotNull
()
{
addCriterion
(
"remark is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkEqualTo
(
String
value
)
{
addCriterion
(
"remark ="
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkNotEqualTo
(
String
value
)
{
addCriterion
(
"remark <>"
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkGreaterThan
(
String
value
)
{
addCriterion
(
"remark >"
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"remark >="
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkLessThan
(
String
value
)
{
addCriterion
(
"remark <"
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"remark <="
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkLike
(
String
value
)
{
addCriterion
(
"remark like"
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkNotLike
(
String
value
)
{
addCriterion
(
"remark not like"
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkIn
(
List
<
String
>
values
)
{
addCriterion
(
"remark in"
,
values
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"remark not in"
,
values
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"remark between"
,
value1
,
value2
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"remark not between"
,
value1
,
value2
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantIsNull
()
{
addCriterion
(
"phone_merchant is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantIsNotNull
()
{
addCriterion
(
"phone_merchant is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantEqualTo
(
String
value
)
{
addCriterion
(
"phone_merchant ="
,
value
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantNotEqualTo
(
String
value
)
{
addCriterion
(
"phone_merchant <>"
,
value
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantGreaterThan
(
String
value
)
{
addCriterion
(
"phone_merchant >"
,
value
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"phone_merchant >="
,
value
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantLessThan
(
String
value
)
{
addCriterion
(
"phone_merchant <"
,
value
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"phone_merchant <="
,
value
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantLike
(
String
value
)
{
addCriterion
(
"phone_merchant like"
,
value
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantNotLike
(
String
value
)
{
addCriterion
(
"phone_merchant not like"
,
value
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantIn
(
List
<
String
>
values
)
{
addCriterion
(
"phone_merchant in"
,
values
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"phone_merchant not in"
,
values
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"phone_merchant between"
,
value1
,
value2
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPhoneMerchantNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"phone_merchant not between"
,
value1
,
value2
,
"phoneMerchant"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cIsNull
()
{
addCriterion
(
"product_name3C is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cIsNotNull
()
{
addCriterion
(
"product_name3C is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cEqualTo
(
String
value
)
{
addCriterion
(
"product_name3C ="
,
value
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cNotEqualTo
(
String
value
)
{
addCriterion
(
"product_name3C <>"
,
value
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cGreaterThan
(
String
value
)
{
addCriterion
(
"product_name3C >"
,
value
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_name3C >="
,
value
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cLessThan
(
String
value
)
{
addCriterion
(
"product_name3C <"
,
value
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_name3C <="
,
value
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cLike
(
String
value
)
{
addCriterion
(
"product_name3C like"
,
value
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cNotLike
(
String
value
)
{
addCriterion
(
"product_name3C not like"
,
value
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_name3C in"
,
values
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_name3C not in"
,
values
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_name3C between"
,
value1
,
value2
,
"productName3c"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductName3cNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_name3C not between"
,
value1
,
value2
,
"productName3c"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
protected
Criteria
()
{
super
();
}
}
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
src/main/java/cn/gq/financial/db/xyqb/dao/ExportExcelMapper.java
View file @
5312e991
package
cn
.
gq
.
financial
.
db
.
xyqb
.
dao
;
package
cn
.
gq
.
financial
.
db
.
xyqb
.
dao
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -15,6 +16,7 @@ import cn.gq.financial.model.db.RepayCollectionEntity;
...
@@ -15,6 +16,7 @@ import cn.gq.financial.model.db.RepayCollectionEntity;
public
interface
ExportExcelMapper
{
public
interface
ExportExcelMapper
{
public
List
<
ExportExcelEntity
>
getInfoByOrderIds
(
@Param
(
"payCenterNoList"
)
List
<
String
>
orderNos
);
public
List
<
ExportExcelEntity
>
getInfoByOrderIds
(
@Param
(
"payCenterNoList"
)
List
<
String
>
orderNos
);
public
List
<
ExportPayInfoEntity
>
getExportPayInfoEntity
(
@Param
(
"list"
)
List
<
Long
>
subList
);
public
List
<
ExportPayInfoEntity
>
getExportPayInfoEntity
(
@Param
(
"list"
)
List
<
Long
>
subList
);
public
List
<
RepayCollectionEntity
>
getRepayCollections
(
@Param
(
"list"
)
List
<
String
>
orderNos
);
public
List
<
RepayCollectionEntity
>
getRepayCollections
(
@Param
(
"list"
)
List
<
String
>
orderNos
);
...
@@ -25,5 +27,9 @@ public interface ExportExcelMapper {
...
@@ -25,5 +27,9 @@ public interface ExportExcelMapper {
public
List
<
LoanExpEntity
>
exportYeepay
(
@Param
(
"list"
)
List
<
Long
>
loanIds
);
public
List
<
LoanExpEntity
>
exportYeepay
(
@Param
(
"list"
)
List
<
Long
>
loanIds
);
public
List
<
BaitiaoExpEntity
>
baitiaoRepayExport
(
@Param
(
"list"
)
List
<
Long
>
list
);
public
List
<
BaitiaoExpEntity
>
baitiaoRepayExport
(
@Param
(
"list"
)
List
<
String
>
list
);
public
List
<
BaitiaoExpEntity
>
baitiaoRepayExport1
(
@Param
(
"list"
)
List
<
Long
>
ids
);
public
List
<
ExportExcelEntity
>
getInfoByOrderIds1
(
@Param
(
"list"
)
List
<
Long
>
repaymentPlanIds
);
}
}
src/main/java/cn/gq/financial/db/xyqb/mapping/ExportExcelMapper.xml
View file @
5312e991
...
@@ -88,6 +88,59 @@
...
@@ -88,6 +88,59 @@
#{listItem}
#{listItem}
</foreach>
</foreach>
</select>
</select>
<select
id =
"getInfoByOrderIds1"
resultMap=
"BaseResultMap"
>
SELECT
t1.id AS repayment_plan_id,
(SELECT '' FROM dual) AS lhp_seria_no,
t1.repayment_status AS repayment_status,
t7.name AS customer_from,
t3.name AS funding_corp_name,
t8.contract_no AS contract_no,
t4.name AS user_name,
t4.id_no AS user_id_no ,
t4.phone_no AS user_phone,
t2.loan_paid_at AS loan_paid_at,
t2.real_loan_amount AS should_loan_amount,
t2.real_loan_amount AS real_loan_amount,
t2.contract_term AS contract_term ,
t1.term_no AS term_no,
t1.deadline AS deadline ,
t1.required_repayment AS required_repayment ,
(SELECT '易宝账户' FROM DUAL) AS receive_account,
t1.repaid_at AS repaid_at ,
t5.principal_amount AS principal_amount,
t5.interest AS interest ,
t5.overdue_fee AS overdue_fee,
(SELECT 0.0 FROM DUAL) AS term_poundage,
(SELECT 0.0 FROM DUAL) AS fundcorp_admin_fee,
t5.self_manexpense AS self_manexpense,
(SELECT 0.0 FROM DUAL) AS overdue_fee_pl,
(SELECT 0.0 FROM DUAL) AS overdue_fee_lhp,
t5.activity_relief AS activity_relief,
t5.collection_relief AS collection_relief ,
t1.current_repayment AS current_repayment ,
t3.name AS financial_merchant,
t3.name AS actually_funding_corp,
t1.pay_center_order_no AS pay_center_order_no,
t1.loan_application_history_id AS loan_application_history_id,
t8.created_at AS contract_create_at
FROM
repayment_plan t1
LEFT JOIN loan_application_manifest_history t2 ON t1.loan_application_manifest_history_id = t2.id
LEFT JOIN funding_corp t3 ON t3.id = t2.funding_corp_id
LEFT JOIN user_detail t4 ON t1.user_id = t4.user_id
LEFT JOIN repayment_plan_detail t5 ON t4.id= t5.repayment_plan_id
LEFT JOIN loan_application_history t6 ON t6.id = t1.loan_application_history_id
LEFT JOIN channel t7 ON t7.id = t6.created_from
LEFT JOIN contract t8 ON t8.loan_application_manifest_history_id = t1.loan_application_manifest_history_id and t8.signed=1
WHERE
t1.id IN
<foreach
collection=
"list"
item=
"listItem"
open=
"("
close=
")"
separator=
","
>
#{listItem}
</foreach>
</select>
<resultMap
id=
"payInfo"
type=
"cn.gq.financial.model.db.ExportPayInfoEntity"
>
<resultMap
id=
"payInfo"
type=
"cn.gq.financial.model.db.ExportPayInfoEntity"
>
<result
column=
"loan_id"
property=
"loanId"
jdbcType=
"BIGINT"
/>
<result
column=
"loan_id"
property=
"loanId"
jdbcType=
"BIGINT"
/>
...
@@ -369,9 +422,61 @@
...
@@ -369,9 +422,61 @@
AND bm.id=bo.`merchant_id`
AND bm.id=bo.`merchant_id`
AND ud.`user_id` = brp.`user_id`
AND ud.`user_id` = brp.`user_id`
WHERE
WHERE
brp.`id` IN
brp.pay_center_order_no IN
<foreach
collection=
"list"
item=
"listItem"
open=
"("
close=
")"
separator=
","
>
#{listItem}
</foreach>
<!--
brp.`id` IN
<foreach collection="list" item="listItem" open="(" close=")" separator="," >
<foreach collection="list" item="listItem" open="(" close=")" separator="," >
#{listItem}
#{listItem}
</foreach>
</foreach>
-->
</select>
</select>
<select
id=
"baitiaoRepayExport1"
resultMap=
"baitiaoRepayExpResultMap"
>
SELECT
brp.id AS repayment_plan_id,
bm.`remark` AS merchant_name,
bm.id AS merchant_id,
bo.`order_no` AS order_no,
ud.`name` AS user_name,
ud.`id_no` AS id_no,
ud.`phone_no` AS phone_no,
bo.`created_at` AS order_time,
bo.`order_amount` AS order_amount,
CASE bo.repay_term
WHEN 0 THEN 1
WHEN 1 THEN 3
WHEN 2 THEN 6
WHEN 3 THEN 9
WHEN 4 THEN 12
END AS contract_term,
brp.`term_no` AS curr_term_no,
brp.`deadline` AS deadline,
brp.`repaid_at` AS repaid_at,
brp.`required_repayment` AS required_repayment,
brp.`origin_amount` AS principal_amount,
brp.`interest_amount` AS interest_amount,
brp.`overstay_amount` AS overdue_fee,
brp.`reduce_amount` AS reduce_amount,
brp.`current_repayment` AS current_repayment,
brp.pay_center_order_no AS pay_center_order_no
FROM baitiao_repayment_plan brp
JOIN baitiao_order bo
JOIN baitiao_merchant bm
JOIN user_detail ud
ON bo.id= brp.`order_id`
AND bm.id=bo.`merchant_id`
AND ud.`user_id` = brp.`user_id`
WHERE
brp.`id` IN
<foreach
collection=
"list"
item=
"listItem"
open=
"("
close=
")"
separator=
","
>
#{listItem}
</foreach>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/java/cn/gq/financial/model/bill/Bill.java
View file @
5312e991
...
@@ -79,4 +79,17 @@ public abstract class Bill {
...
@@ -79,4 +79,17 @@ public abstract class Bill {
public
void
setTrandingDate
(
Date
trandingDate
)
{
public
void
setTrandingDate
(
Date
trandingDate
)
{
this
.
trandingDate
=
trandingDate
;
this
.
trandingDate
=
trandingDate
;
}
}
@Override
public
String
toString
()
{
return
"Bill{"
+
"month="
+
month
+
", trandingDate="
+
trandingDate
+
", payAccount='"
+
payAccount
+
'\''
+
", orderId='"
+
orderId
+
'\''
+
", income="
+
income
+
", cost="
+
cost
+
", poundage="
+
poundage
+
'}'
;
}
}
}
src/main/java/cn/gq/financial/model/bill/WXBill.java
View file @
5312e991
...
@@ -18,6 +18,16 @@ public class WXBill extends Bill {
...
@@ -18,6 +18,16 @@ public class WXBill extends Bill {
private
BigDecimal
rate
=
BigDecimal
.
ZERO
;
private
BigDecimal
rate
=
BigDecimal
.
ZERO
;
private
String
srcStr
;
public
String
getSrcStr
()
{
return
srcStr
;
}
public
void
setSrcStr
(
String
srcStr
)
{
this
.
srcStr
=
srcStr
;
}
public
BigDecimal
getRate
()
{
public
BigDecimal
getRate
()
{
return
rate
;
return
rate
;
}
}
...
@@ -49,6 +59,9 @@ public class WXBill extends Bill {
...
@@ -49,6 +59,9 @@ public class WXBill extends Bill {
public
void
setWxBizAccount
(
String
wxBizAccount
)
{
public
void
setWxBizAccount
(
String
wxBizAccount
)
{
this
.
wxBizAccount
=
wxBizAccount
;
this
.
wxBizAccount
=
wxBizAccount
;
}
}
@Override
public
String
toString
()
{
return
super
.
toString
();
}
}
}
src/main/java/cn/gq/financial/model/bill/YeepayBill.java
View file @
5312e991
...
@@ -18,6 +18,16 @@ public class YeepayBill extends Bill {
...
@@ -18,6 +18,16 @@ public class YeepayBill extends Bill {
private
String
remak
;
//备注信息
private
String
remak
;
//备注信息
private
String
srcStr
;
public
String
getSrcStr
()
{
return
srcStr
;
}
public
void
setSrcStr
(
String
srcStr
)
{
this
.
srcStr
=
srcStr
;
}
public
String
getAccountType
()
{
public
String
getAccountType
()
{
return
accountType
;
return
accountType
;
}
}
...
...
src/main/java/cn/gq/financial/service/BaitiaoOfflineDetailService.java
View file @
5312e991
...
@@ -31,10 +31,10 @@ import com.google.gson.reflect.TypeToken;
...
@@ -31,10 +31,10 @@ import com.google.gson.reflect.TypeToken;
@Component
(
"BaitiaoOfflineDetailService"
)
@Component
(
"BaitiaoOfflineDetailService"
)
public
class
BaitiaoOfflineDetailService
implements
DetailService
{
public
class
BaitiaoOfflineDetailService
implements
DetailService
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
BaitiaoOfflineDetailService
.
class
);
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
BaitiaoOfflineDetailService
.
class
);
static
final
String
baitiao_url
=
"http://offapi.xyqb.com/ex/financial/get_repay_plan"
;
static
final
String
baitiao_url
=
"http://offapi.xyqb.com/ex/financial/get_repay_plan"
;
static
Gson
GSON
=
new
Gson
();
static
Gson
GSON
=
new
Gson
();
@Autowired
@Autowired
...
@@ -48,68 +48,72 @@ public class BaitiaoOfflineDetailService implements DetailService {
...
@@ -48,68 +48,72 @@ public class BaitiaoOfflineDetailService implements DetailService {
@Override
@Override
public
List
<
RepayDetailFinancial
>
getDetailByPayCenterRepayOrder
(
List
<
RepayOrderEntity
>
repayOrderEntity
)
{
public
List
<
RepayDetailFinancial
>
getDetailByPayCenterRepayOrder
(
List
<
RepayOrderEntity
>
repayOrderEntity
)
{
List
<
RepayDetailFinancial
>
baitiaoAllDetail
=
new
ArrayList
<
RepayDetailFinancial
>();
List
<
RepayDetailFinancial
>
baitiaoAllDetail
=
new
ArrayList
<
RepayDetailFinancial
>();
if
(
CollectionUtils
.
isNotEmpty
(
repayOrderEntity
))
{
if
(
CollectionUtils
.
isNotEmpty
(
repayOrderEntity
))
{
for
(
RepayOrderEntity
entity
:
repayOrderEntity
)
{
for
(
RepayOrderEntity
entity
:
repayOrderEntity
)
{
/**
/**
* 放款信息
* 放款信息
*/
*/
OfflineOrderEntityExample
orderExample
=
new
OfflineOrderEntityExample
();
try
{
orderExample
.
createCriteria
().
andIdEqualTo
(
Long
.
valueOf
(
entity
.
getMerchantOrderNo
()));
OfflineOrderEntityExample
orderExample
=
new
OfflineOrderEntityExample
();
//.andIsActiveEqualTo(Boolean.FALSE);
orderExample
.
createCriteria
().
andIdEqualTo
(
Long
.
valueOf
(
entity
.
getMerchantOrderNo
()));
OfflineOrderEntity
offlineOrder
=
offlineOrderEntityMapper
.
selectByExample
(
orderExample
).
get
(
0
);
//.andIsActiveEqualTo(Boolean.FALSE);
OfflineOrderEntity
offlineOrder
=
offlineOrderEntityMapper
.
selectByExample
(
orderExample
).
get
(
0
);
OfflineUserDetailEntityExample
userExample
=
new
OfflineUserDetailEntityExample
();
userExample
.
createCriteria
().
andUserIdEqualTo
(
Long
.
valueOf
(
offlineOrder
.
getUserId
()));
OfflineUserDetailEntityExample
userExample
=
new
OfflineUserDetailEntityExample
();
OfflineUserDetailEntity
userDetail
=
offlineUserDetailEntityMapper
.
selectByExample
(
userExample
).
get
(
0
);
userExample
.
createCriteria
().
andUserIdEqualTo
(
Long
.
valueOf
(
offlineOrder
.
getUserId
()));
OfflineUserDetailEntity
userDetail
=
offlineUserDetailEntityMapper
.
selectByExample
(
userExample
).
get
(
0
);
/**
* 还款计划
/**
*/
* 还款计划
String
payCenterOrderNo
=
entity
.
getMerchantRepayOrderNo
();
*/
List
<
Long
>
ids
=
new
ArrayList
<>();
String
payCenterOrderNo
=
entity
.
getMerchantRepayOrderNo
();
String
[]
split
=
payCenterOrderNo
.
split
(
","
);
List
<
Long
>
ids
=
new
ArrayList
<>();
for
(
String
id:
split
){
String
[]
split
=
payCenterOrderNo
.
split
(
","
);
ids
.
add
(
Long
.
valueOf
(
id
));
for
(
String
id
:
split
)
{
}
ids
.
add
(
Long
.
valueOf
(
id
));
OfflineOrderRepaidRecordEntityExample
repayExample
=
new
OfflineOrderRepaidRecordEntityExample
();
}
repayExample
.
createCriteria
().
andIdIn
(
ids
);
OfflineOrderRepaidRecordEntityExample
repayExample
=
new
OfflineOrderRepaidRecordEntityExample
();
List
<
OfflineOrderRepaidRecordEntity
>
orderRepaidRecords
=
offlineOrderRepaidRecordEntityMapper
.
selectByExample
(
repayExample
);
repayExample
.
createCriteria
().
andIdIn
(
ids
);
for
(
OfflineOrderRepaidRecordEntity
orderRepaidRecord
:
orderRepaidRecords
)
{
List
<
OfflineOrderRepaidRecordEntity
>
orderRepaidRecords
=
offlineOrderRepaidRecordEntityMapper
.
selectByExample
(
repayExample
);
RepayDetailFromXyqbOffline
repayPlanDetail
=
new
RepayDetailFromXyqbOffline
();
for
(
OfflineOrderRepaidRecordEntity
orderRepaidRecord
:
orderRepaidRecords
)
{
//放款金额,订单金额
RepayDetailFromXyqbOffline
repayPlanDetail
=
new
RepayDetailFromXyqbOffline
();
repayPlanDetail
.
setRequiredPayAmount
(
offlineOrder
.
getOrderAmount
().
toString
());
//放款金额,订单金额
//实际还款金额
repayPlanDetail
.
setRequiredPayAmount
(
offlineOrder
.
getOrderAmount
().
toString
());
BigDecimal
overDueAmount
=
orderRepaidRecord
.
getOverdueAmount
();
//实际还款金额
overDueAmount
=
overDueAmount
==
null
?
BigDecimal
.
ZERO
:
overDueAmount
;
BigDecimal
overDueAmount
=
orderRepaidRecord
.
getOverdueAmount
();
String
actualPayAmount
=
orderRepaidRecord
.
getRepaidAmount
().
add
(
overDueAmount
).
toString
();
overDueAmount
=
overDueAmount
==
null
?
BigDecimal
.
ZERO
:
overDueAmount
;
repayPlanDetail
.
setActualPayAmount
(
offlineOrder
.
getOrderAmount
().
toString
());
String
actualPayAmount
=
orderRepaidRecord
.
getRepaidAmount
().
add
(
overDueAmount
).
toString
();
repayPlanDetail
.
setDeadline
(
orderRepaidRecord
.
getRepaidAt
().
getTime
());
repayPlanDetail
.
setActualPayAmount
(
offlineOrder
.
getOrderAmount
().
toString
());
repayPlanDetail
.
setTermNo
(
Instalment
.
values
()[(
int
)
offlineOrder
.
getInstalment
()].
getInstalmentPeriod
());
repayPlanDetail
.
setDeadline
(
orderRepaidRecord
.
getRepaidAt
().
getTime
());
repayPlanDetail
.
setCurrTermNo
(
orderRepaidRecord
.
getTermNo
());
repayPlanDetail
.
setTermNo
(
Instalment
.
values
()[(
int
)
offlineOrder
.
getInstalment
()].
getInstalmentPeriod
());
repayPlanDetail
.
setCurrTermNo
(
orderRepaidRecord
.
getTermNo
());
repayPlanDetail
.
setLoanPaidAt
(
offlineOrder
.
getCreatedAt
().
getTime
());
repayPlanDetail
.
setRequiredRepayment
(
actualPayAmount
);
repayPlanDetail
.
setLoanPaidAt
(
offlineOrder
.
getCreatedAt
().
getTime
());
repayPlanDetail
.
setRequiredRepayment
(
actualPayAmount
);
repayPlanDetail
.
setPrincipal
(
orderRepaidRecord
.
getPrincipal
().
toString
());
repayPlanDetail
.
setInterest
(
orderRepaidRecord
.
getInterest
().
toString
());
repayPlanDetail
.
setPrincipal
(
orderRepaidRecord
.
getPrincipal
().
toString
());
repayPlanDetail
.
setOverdueInterest
(
overDueAmount
.
toString
());
repayPlanDetail
.
setInterest
(
orderRepaidRecord
.
getInterest
().
toString
());
repayPlanDetail
.
setServiceFeePerTerm
(
"0"
);
repayPlanDetail
.
setOverdueInterest
(
overDueAmount
.
toString
());
repayPlanDetail
.
setDiscount
(
"0"
);
repayPlanDetail
.
setServiceFeePerTerm
(
"0"
);
repayPlanDetail
.
setCollectionRelief
(
"0"
);
repayPlanDetail
.
setDiscount
(
"0"
);
repayPlanDetail
.
setFundingCorpId
(-
1L
);
repayPlanDetail
.
setCollectionRelief
(
"0"
);
repayPlanDetail
.
setFundingCorp
(
"保理公司"
);
repayPlanDetail
.
setFundingCorpId
(-
1L
);
repayPlanDetail
.
setDebtFundingCorp
(
"保理公司"
);
repayPlanDetail
.
setFundingCorp
(
"保理公司"
);
repayPlanDetail
.
setDebtFundingCorp
(
"保理公司"
);
repayPlanDetail
.
setUserName
(
userDetail
.
getName
());
repayPlanDetail
.
setPhoneNo
(
userDetail
.
getPhoneNo
());
repayPlanDetail
.
setUserName
(
userDetail
.
getName
());
repayPlanDetail
.
setIdNo
(
userDetail
.
getIdNo
());
repayPlanDetail
.
setPhoneNo
(
userDetail
.
getPhoneNo
());
RepayDetailFinancial
repayDetailFinancial
=
convert2RepayDetailFinancial
(
repayPlanDetail
);
repayPlanDetail
.
setIdNo
(
userDetail
.
getIdNo
());
repayDetailFinancial
.
setOrderId
(
entity
.
getOrderId
());
RepayDetailFinancial
repayDetailFinancial
=
convert2RepayDetailFinancial
(
repayPlanDetail
);
repayDetailFinancial
.
setRepaymentPlanId
(
orderRepaidRecord
.
getId
());
repayDetailFinancial
.
setOrderId
(
entity
.
getOrderId
());
repayDetailFinancial
.
setPayCenterOrderNo
(
entity
.
getMerchantRepayOrderNo
());
repayDetailFinancial
.
setRepaymentPlanId
(
orderRepaidRecord
.
getId
());
repayDetailFinancial
.
setLoanApplicationHistoryId
(
Long
.
valueOf
(
entity
.
getMerchantOrderNo
()));
repayDetailFinancial
.
setPayCenterOrderNo
(
entity
.
getMerchantRepayOrderNo
());
repayDetailFinancial
.
setLoanApplicationHistoryId
(
Long
.
valueOf
(
entity
.
getMerchantOrderNo
()));
baitiaoAllDetail
.
add
(
repayDetailFinancial
);
baitiaoAllDetail
.
add
(
repayDetailFinancial
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
}
}
}
...
@@ -151,32 +155,32 @@ public class BaitiaoOfflineDetailService implements DetailService {
...
@@ -151,32 +155,32 @@ public class BaitiaoOfflineDetailService implements DetailService {
return baitiaoAllDetail;
return baitiaoAllDetail;
}*/
}*/
private
RepayDetailFinancial
convert2RepayDetailFinancial
(
RepayDetailFromXyqbOffline
entity
)
{
private
RepayDetailFinancial
convert2RepayDetailFinancial
(
RepayDetailFromXyqbOffline
entity
)
{
RepayDetailFinancial
detail
=
new
RepayDetailFinancial
();
RepayDetailFinancial
detail
=
new
RepayDetailFinancial
();
detail
.
setBizType
(
DetailService
.
BIZ_TYPE_OFFLINE
);
detail
.
setBizType
(
DetailService
.
BIZ_TYPE_OFFLINE
);
detail
.
setOrderId
(
entity
.
getOrderId
());
detail
.
setOrderId
(
entity
.
getOrderId
());
detail
.
setUserName
(
entity
.
getUserName
());
detail
.
setUserName
(
entity
.
getUserName
());
detail
.
setUserIdNo
(
entity
.
getIdNo
());
detail
.
setUserIdNo
(
entity
.
getIdNo
());
detail
.
setUserPhone
(
entity
.
getPhoneNo
());
detail
.
setUserPhone
(
entity
.
getPhoneNo
());
detail
.
setLoanPaidAt
(
new
Date
(
entity
.
getLoanPaidAt
()));
detail
.
setLoanPaidAt
(
new
Date
(
entity
.
getLoanPaidAt
()));
detail
.
setShouldLoanAmount
(
new
BigDecimal
(
entity
.
getRequiredPayAmount
()));
detail
.
setShouldLoanAmount
(
new
BigDecimal
(
entity
.
getRequiredPayAmount
()));
detail
.
setRealLoanAmount
(
new
BigDecimal
(
entity
.
getActualPayAmount
()));
detail
.
setRealLoanAmount
(
new
BigDecimal
(
entity
.
getActualPayAmount
()));
detail
.
setTermNo
(
entity
.
getCurrTermNo
());
detail
.
setTermNo
(
entity
.
getCurrTermNo
());
detail
.
setContractTerm
(
entity
.
getTermNo
());
detail
.
setContractTerm
(
entity
.
getTermNo
());
detail
.
setDeadline
(
new
Date
(
entity
.
getDeadline
()));
detail
.
setDeadline
(
new
Date
(
entity
.
getDeadline
()));
detail
.
setRequiredRepayment
(
new
BigDecimal
(
entity
.
getRequiredRepayment
()));
detail
.
setRequiredRepayment
(
new
BigDecimal
(
entity
.
getRequiredRepayment
()));
detail
.
setPrincipalAmount
(
new
BigDecimal
(
entity
.
getPrincipal
()));
detail
.
setPrincipalAmount
(
new
BigDecimal
(
entity
.
getPrincipal
()));
detail
.
setInterest
(
new
BigDecimal
(
entity
.
getInterest
()));
detail
.
setInterest
(
new
BigDecimal
(
entity
.
getInterest
()));
detail
.
setOverdueFee
(
new
BigDecimal
(
entity
.
getOverdueInterest
()));
detail
.
setOverdueFee
(
new
BigDecimal
(
entity
.
getOverdueInterest
()));
detail
.
setActivityRelief
(
new
BigDecimal
(
entity
.
getDiscount
()));
detail
.
setActivityRelief
(
new
BigDecimal
(
entity
.
getDiscount
()));
detail
.
setCollectionRelief
(
new
BigDecimal
(
entity
.
getCollectionRelief
()));
detail
.
setCollectionRelief
(
new
BigDecimal
(
entity
.
getCollectionRelief
()));
detail
.
setSelfManexpense
(
new
BigDecimal
(
entity
.
getServiceFeePerTerm
()));
detail
.
setSelfManexpense
(
new
BigDecimal
(
entity
.
getServiceFeePerTerm
()));
detail
.
setFundingCorpName
(
entity
.
getFundingCorp
());
detail
.
setFundingCorpName
(
entity
.
getFundingCorp
());
detail
.
setActuallyFundingCorp
(
entity
.
getDebtFundingCorp
());
detail
.
setActuallyFundingCorp
(
entity
.
getDebtFundingCorp
());
BigDecimal
curr
=
detail
.
getPrincipalAmount
().
add
(
detail
.
getInterest
()).
add
(
detail
.
getOverdueFee
()).
add
(
detail
.
getSelfManexpense
()).
subtract
(
detail
.
getCollectionRelief
()).
subtract
(
detail
.
getActivityRelief
());
BigDecimal
curr
=
detail
.
getPrincipalAmount
().
add
(
detail
.
getInterest
()).
add
(
detail
.
getOverdueFee
()).
add
(
detail
.
getSelfManexpense
()).
subtract
(
detail
.
getCollectionRelief
()).
subtract
(
detail
.
getActivityRelief
());
detail
.
setCurrentRepayment
(
curr
);
detail
.
setCurrentRepayment
(
curr
);
return
detail
;
return
detail
;
}
}
}
}
src/main/java/cn/gq/financial/service/BaitiaoOnlineDetailService.java
View file @
5312e991
...
@@ -44,17 +44,19 @@ public class BaitiaoOnlineDetailService implements DetailService {
...
@@ -44,17 +44,19 @@ public class BaitiaoOnlineDetailService implements DetailService {
public
List
<
RepayDetailFinancial
>
getDetailByPayCenterRepayOrder
(
List
<
RepayOrderEntity
>
repayOrderEntities
)
{
public
List
<
RepayDetailFinancial
>
getDetailByPayCenterRepayOrder
(
List
<
RepayOrderEntity
>
repayOrderEntities
)
{
List
<
RepayDetailFinancial
>
result
=
new
ArrayList
<
RepayDetailFinancial
>();
List
<
RepayDetailFinancial
>
result
=
new
ArrayList
<
RepayDetailFinancial
>();
// 从xyqb库查出白条的还款明细,再从mall查出白条详单
// 从xyqb库查出白条的还款明细,再从mall查出白条详单
Map
<
String
,
RepayOrderEntity
>
map
=
new
HashMap
<
String
,
RepayOrderEntity
>();
Map
<
String
,
RepayOrderEntity
>
map
=
new
HashMap
<>();
Set
<
String
>
merchantRepayOrderNoSet
=
new
HashSet
<
String
>();
Set
<
String
>
merchantRepayOrderNoSet
=
new
HashSet
<>();
Set
<
Long
>
repaymentPlanIds
=
new
HashSet
<>();
for
(
RepayOrderEntity
entity
:
repayOrderEntities
)
{
for
(
RepayOrderEntity
entity
:
repayOrderEntities
)
{
merchantRepayOrderNoSet
.
add
(
entity
.
getMerchantRepayOrderNo
());
merchantRepayOrderNoSet
.
add
(
entity
.
getMerchantRepayOrderNo
());
String
[]
split
=
entity
.
getMerchantRepayOrderNo
().
split
(
"_"
);
String
[]
split
=
entity
.
getMerchantRepayOrderNo
().
split
(
"_"
);
for
(
String
id:
split
){
for
(
String
id:
split
){
map
.
put
(
id
,
entity
);
repaymentPlanIds
.
add
(
Long
.
valueOf
(
id
)
);
}
}
//
map.put(entity.getMerchantRepayOrderNo(), entity);
map
.
put
(
entity
.
getMerchantRepayOrderNo
(),
entity
);
}
}
List
<
BaitiaoExpEntity
>
baitiaoExpEntities
=
getBaiTiaoExp
(
new
ArrayList
<
String
>(
merchantRepayOrderNoSet
));
// List<BaitiaoExpEntity> baitiaoExpEntities = getBaiTiaoExp(new ArrayList<String>(merchantRepayOrderNoSet));
List
<
BaitiaoExpEntity
>
baitiaoExpEntities
=
getBaiTiaoExp1
(
new
ArrayList
<
Long
>(
repaymentPlanIds
));
Set
<
String
>
mallOrder
=
new
HashSet
<>();
Set
<
String
>
mallOrder
=
new
HashSet
<>();
Map
<
String
,
List
<
BaitiaoExpEntity
>>
baitiaoMap
=
new
HashMap
<>();
Map
<
String
,
List
<
BaitiaoExpEntity
>>
baitiaoMap
=
new
HashMap
<>();
for
(
BaitiaoExpEntity
baitiaoExpEntity
:
baitiaoExpEntities
)
{
for
(
BaitiaoExpEntity
baitiaoExpEntity
:
baitiaoExpEntities
)
{
...
@@ -85,20 +87,55 @@ public class BaitiaoOnlineDetailService implements DetailService {
...
@@ -85,20 +87,55 @@ public class BaitiaoOnlineDetailService implements DetailService {
}
}
// 放如量化派流水号
// 放如量化派流水号
for
(
BaitiaoExpEntity
expEntity
:
baitiaoExpEntities
)
{
for
(
BaitiaoExpEntity
expEntity
:
baitiaoExpEntities
)
{
RepayOrderEntity
repayOrderEntity
=
map
.
get
(
expEntity
.
getRepaymentPlanId
().
toString
());
// RepayOrderEntity repayOrderEntity = map.get(expEntity.getPayCenterOrderNo());
RepayOrderEntity
repayOrderEntity
=
null
;
Set
<
String
>
strings
=
map
.
keySet
();
for
(
String
key:
strings
){
if
(
key
.
contains
(
String
.
valueOf
(
expEntity
.
getRepaymentPlanId
()))){
repayOrderEntity
=
map
.
get
(
key
);
}
}
expEntity
.
setLhpNo
(
repayOrderEntity
.
getOrderId
());
expEntity
.
setLhpNo
(
repayOrderEntity
.
getOrderId
());
result
.
add
(
convert2RepayDetailFinancial
(
expEntity
));
result
.
add
(
convert2RepayDetailFinancial
(
expEntity
));
}
}
return
result
;
return
result
;
}
}
private
List
<
BaitiaoExpEntity
>
getBaiTiaoExp1
(
ArrayList
<
Long
>
ids
)
{
int
size
=
ids
.
size
();
List
<
BaitiaoExpEntity
>
baitiaoExpEntities
=
null
;
if
(
size
>
0
)
{
if
(
size
<
item_size
)
{
List
<
BaitiaoExpEntity
>
list
=
exportExcelMapper
.
baitiaoRepayExport1
(
ids
);
return
list
;
}
else
{
baitiaoExpEntities
=
new
ArrayList
<>();
int
group
=
size
/
item_size
;
int
i
;
for
(
i
=
0
;
i
<
group
;
i
++)
{
List
<
Long
>
subList
=
ids
.
subList
(
i
*
item_size
,
(
i
+
1
)
*
item_size
);
List
<
BaitiaoExpEntity
>
list
=
exportExcelMapper
.
baitiaoRepayExport1
(
subList
);
baitiaoExpEntities
.
addAll
(
list
);
}
if
(
0
!=
size
%
item_size
)
{
List
<
Long
>
subList
=
ids
.
subList
(
i
*
item_size
,
ids
.
size
());
List
<
BaitiaoExpEntity
>
list
=
exportExcelMapper
.
baitiaoRepayExport1
(
subList
);
baitiaoExpEntities
.
addAll
(
list
);
}
return
baitiaoExpEntities
;
}
}
return
null
;
}
private
RepayDetailFinancial
convert2RepayDetailFinancial
(
BaitiaoExpEntity
entity
)
{
private
RepayDetailFinancial
convert2RepayDetailFinancial
(
BaitiaoExpEntity
entity
)
{
RepayDetailFinancial
detail
=
new
RepayDetailFinancial
();
RepayDetailFinancial
detail
=
new
RepayDetailFinancial
();
detail
.
setBizType
(
DetailService
.
BIZ_TYPE_BAITIAO
);
detail
.
setBizType
(
DetailService
.
BIZ_TYPE_BAITIAO
);
detail
.
setRepaymentPlanId
(
entity
.
getRepaymentPlanId
());
detail
.
setRepaymentPlanId
(
entity
.
getRepaymentPlanId
());
detail
.
setFundingCorpName
(
entity
.
getMerchantName
());
detail
.
setFundingCorpName
(
entity
.
getMerchantName
());
detail
.
setOrderId
(
entity
.
getLhpNo
());
detail
.
setOrderId
(
entity
.
getLhpNo
());
detail
.
setLhpSeriaNo
(
entity
.
get
Lhp
No
());
detail
.
setLhpSeriaNo
(
entity
.
get
Order
No
());
detail
.
setUserName
(
entity
.
getUserName
());
detail
.
setUserName
(
entity
.
getUserName
());
detail
.
setUserIdNo
(
entity
.
getIdNo
());
detail
.
setUserIdNo
(
entity
.
getIdNo
());
detail
.
setUserPhone
(
entity
.
getPhoneNo
());
detail
.
setUserPhone
(
entity
.
getPhoneNo
());
...
@@ -190,28 +227,28 @@ public class BaitiaoOnlineDetailService implements DetailService {
...
@@ -190,28 +227,28 @@ public class BaitiaoOnlineDetailService implements DetailService {
private
List
<
BaitiaoExpEntity
>
getBaiTiaoExp
(
List
<
String
>
merchantRepayOrderNoList
)
{
private
List
<
BaitiaoExpEntity
>
getBaiTiaoExp
(
List
<
String
>
merchantRepayOrderNoList
)
{
int
size
=
merchantRepayOrderNoList
.
size
();
int
size
=
merchantRepayOrderNoList
.
size
();
List
<
BaitiaoExpEntity
>
baitiaoExpEntities
=
null
;
List
<
BaitiaoExpEntity
>
baitiaoExpEntities
=
null
;
List
<
Long
>
baitiaoOrderIds
=
new
ArrayList
<>();
/*
List<Long> baitiaoOrderIds = new ArrayList<>();
for (String payCenterRepayOrderNo:merchantRepayOrderNoList){
for (String payCenterRepayOrderNo:merchantRepayOrderNoList){
String[] split = payCenterRepayOrderNo.split("_");
String[] split = payCenterRepayOrderNo.split("_");
for (String id:split){
for (String id:split){
baitiaoOrderIds.add(Long.valueOf(id));
baitiaoOrderIds.add(Long.valueOf(id));
}
}
}
}
*/
if
(
size
>
0
)
{
if
(
size
>
0
)
{
if
(
size
<
item_size
)
{
if
(
size
<
item_size
)
{
List
<
BaitiaoExpEntity
>
list
=
exportExcelMapper
.
baitiaoRepayExport
(
baitiaoOrderIds
);
List
<
BaitiaoExpEntity
>
list
=
exportExcelMapper
.
baitiaoRepayExport
(
merchantRepayOrderNoList
);
return
list
;
return
list
;
}
else
{
}
else
{
baitiaoExpEntities
=
new
ArrayList
<
BaitiaoExpEntity
>();
baitiaoExpEntities
=
new
ArrayList
<>();
int
group
=
size
/
item_size
;
int
group
=
size
/
item_size
;
int
i
=
0
;
int
i
=
0
;
for
(
i
=
0
;
i
<
group
;
i
++)
{
for
(
i
=
0
;
i
<
group
;
i
++)
{
List
<
Long
>
subList
=
baitiaoOrderIds
.
subList
(
i
*
item_size
,
(
i
+
1
)
*
item_size
);
List
<
String
>
subList
=
merchantRepayOrderNoList
.
subList
(
i
*
item_size
,
(
i
+
1
)
*
item_size
);
List
<
BaitiaoExpEntity
>
list
=
exportExcelMapper
.
baitiaoRepayExport
(
subList
);
List
<
BaitiaoExpEntity
>
list
=
exportExcelMapper
.
baitiaoRepayExport
(
subList
);
baitiaoExpEntities
.
addAll
(
list
);
baitiaoExpEntities
.
addAll
(
list
);
}
}
if
(
0
!=
size
%
item_size
)
{
if
(
0
!=
size
%
item_size
)
{
List
<
Long
>
subList
=
baitiaoOrderIds
.
subList
(
i
*
item_size
,
baitiaoOrderIds
.
size
());
List
<
String
>
subList
=
merchantRepayOrderNoList
.
subList
(
i
*
item_size
,
merchantRepayOrderNoList
.
size
());
List
<
BaitiaoExpEntity
>
list
=
exportExcelMapper
.
baitiaoRepayExport
(
subList
);
List
<
BaitiaoExpEntity
>
list
=
exportExcelMapper
.
baitiaoRepayExport
(
subList
);
baitiaoExpEntities
.
addAll
(
list
);
baitiaoExpEntities
.
addAll
(
list
);
}
}
...
...
src/main/java/cn/gq/financial/service/XYQBDetailService.java
View file @
5312e991
...
@@ -52,8 +52,16 @@ public class XYQBDetailService implements DetailService {
...
@@ -52,8 +52,16 @@ public class XYQBDetailService implements DetailService {
}
}
List
<
String
>
merchantRepayOrderNoList
=
new
ArrayList
<
String
>(
merchantRepayOrderNoSet
);
List
<
String
>
merchantRepayOrderNoList
=
new
ArrayList
<
String
>(
merchantRepayOrderNoSet
);
LOGGER
.
info
(
"#############################开始查询!#########################"
);
LOGGER
.
info
(
"#############################开始查询!#########################"
);
List
<
ExportExcelEntity
>
exportExcelEntities
=
getExportExcelEntities
(
merchantRepayOrderNoList
);
Set
<
Long
>
repaymentPlanIds
=
new
HashSet
<>();
for
(
String
payCenterNo
:
merchantRepayOrderNoList
){
String
[]
split
=
payCenterNo
.
split
(
"_"
);
for
(
String
s
:
split
){
repaymentPlanIds
.
add
(
Long
.
valueOf
(
s
.
trim
()));
}
}
List
<
ExportExcelEntity
>
exportExcelEntities
=
getExportExcelEntities1
(
new
ArrayList
<>(
repaymentPlanIds
));
// List<ExportExcelEntity> exportExcelEntities = getExportExcelEntities(merchantRepayOrderNoList);
// 找出合同时间是最新的
// 找出合同时间是最新的
Map
<
Long
,
ExportExcelEntity
>
emap
=
new
HashMap
<
Long
,
ExportExcelEntity
>();
Map
<
Long
,
ExportExcelEntity
>
emap
=
new
HashMap
<
Long
,
ExportExcelEntity
>();
...
@@ -76,7 +84,14 @@ public class XYQBDetailService implements DetailService {
...
@@ -76,7 +84,14 @@ public class XYQBDetailService implements DetailService {
// 此处放入量化派流水号,如果是正确的话
// 此处放入量化派流水号,如果是正确的话
for
(
int
i
=
0
;
i
<
exportExcelEntities
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
exportExcelEntities
.
size
();
i
++)
{
ExportExcelEntity
exportExcelEntity
=
exportExcelEntities
.
get
(
i
);
ExportExcelEntity
exportExcelEntity
=
exportExcelEntities
.
get
(
i
);
RepayOrderEntity
repayOrderEntity
=
map
.
get
(
exportExcelEntity
.
getPayCenterOrderNo
());
// RepayOrderEntity repayOrderEntity = map.get(exportExcelEntity.getPayCenterOrderNo());
RepayOrderEntity
repayOrderEntity
=
null
;
Set
<
String
>
keys
=
map
.
keySet
();
for
(
String
key
:
keys
){
if
(
key
.
contains
(
exportExcelEntity
.
getRepaymentPlanId
().
toString
())){
repayOrderEntity
=
map
.
get
(
key
);
}
}
if
(
null
!=
exportExcelEntity
)
{
if
(
null
!=
exportExcelEntity
)
{
exportExcelEntity
.
setLhpSeriaNo
(
repayOrderEntity
.
getyOrderId
());
exportExcelEntity
.
setLhpSeriaNo
(
repayOrderEntity
.
getyOrderId
());
exportExcelEntity
.
setOrderId
(
repayOrderEntity
.
getOrderId
());
exportExcelEntity
.
setOrderId
(
repayOrderEntity
.
getOrderId
());
...
@@ -122,6 +137,33 @@ public class XYQBDetailService implements DetailService {
...
@@ -122,6 +137,33 @@ public class XYQBDetailService implements DetailService {
return
returnValue
;
return
returnValue
;
}
}
private
List
<
ExportExcelEntity
>
getExportExcelEntities1
(
List
<
Long
>
repaymentPlanIds
)
{
int
size
=
repaymentPlanIds
.
size
();
List
<
ExportExcelEntity
>
exportExcelEntities
=
null
;
if
(
size
>
0
)
{
if
(
size
<
item_size
)
{
exportExcelEntities
=
exportExcelMapper
.
getInfoByOrderIds1
(
repaymentPlanIds
);
return
exportExcelEntities
;
}
else
{
exportExcelEntities
=
new
ArrayList
<
ExportExcelEntity
>();
int
group
=
size
/
item_size
;
int
i
=
0
;
for
(
i
=
0
;
i
<
group
;
i
++)
{
List
<
Long
>
subList
=
repaymentPlanIds
.
subList
(
i
*
item_size
,
(
i
+
1
)
*
item_size
);
List
<
ExportExcelEntity
>
list
=
exportExcelMapper
.
getInfoByOrderIds1
(
subList
);
exportExcelEntities
.
addAll
(
list
);
}
if
(
0
!=
size
%
item_size
)
{
List
<
Long
>
subList
=
repaymentPlanIds
.
subList
(
i
*
item_size
,
repaymentPlanIds
.
size
());
List
<
ExportExcelEntity
>
list
=
exportExcelMapper
.
getInfoByOrderIds1
(
subList
);
exportExcelEntities
.
addAll
(
list
);
}
return
exportExcelEntities
;
}
}
return
null
;
}
private
RepayDetailFinancial
convert2RepayDetailFinancial
(
ExportExcelEntity
entity
)
{
private
RepayDetailFinancial
convert2RepayDetailFinancial
(
ExportExcelEntity
entity
)
{
RepayDetailFinancial
detail
=
new
RepayDetailFinancial
();
RepayDetailFinancial
detail
=
new
RepayDetailFinancial
();
BeanUtils
.
copyProperties
(
entity
,
detail
);
BeanUtils
.
copyProperties
(
entity
,
detail
);
...
@@ -212,7 +254,16 @@ public class XYQBDetailService implements DetailService {
...
@@ -212,7 +254,16 @@ public class XYQBDetailService implements DetailService {
long
begin
=
System
.
currentTimeMillis
();
long
begin
=
System
.
currentTimeMillis
();
Long
loanId
=
entity
.
getLoanApplicationHistoryId
();
Long
loanId
=
entity
.
getLoanApplicationHistoryId
();
String
payCenterOrderNo
=
entity
.
getPayCenterOrderNo
();
String
payCenterOrderNo
=
entity
.
getPayCenterOrderNo
();
RepayOrderEntity
orderEntity
=
map
.
get
(
payCenterOrderNo
);
// RepayOrderEntity orderEntity = map.get(payCenterOrderNo);
RepayOrderEntity
orderEntity
=
null
;
Set
<
String
>
keys
=
map
.
keySet
();
for
(
String
key
:
keys
){
if
(
key
.
contains
(
entity
.
getRepaymentPlanId
().
toString
())){
orderEntity
=
map
.
get
(
key
);
payCenterOrderNo
=
key
;
}
}
Long
repaidAt
=
orderEntity
.
getCreatedAt
().
getTime
();
Long
repaidAt
=
orderEntity
.
getCreatedAt
().
getTime
();
String
tmpURL
=
url
+
"?"
+
"merchantOrderNo="
+
loanId
+
"&merchantRepayOrder="
+
payCenterOrderNo
+
"&repaidAt="
+
repaidAt
;
String
tmpURL
=
url
+
"?"
+
"merchantOrderNo="
+
loanId
+
"&merchantRepayOrder="
+
payCenterOrderNo
+
"&repaidAt="
+
repaidAt
;
String
response
=
HttpUtils
.
doGet
(
tmpURL
);
String
response
=
HttpUtils
.
doGet
(
tmpURL
);
...
...
src/main/java/cn/gq/financial/utils/BillParsers.java
View file @
5312e991
...
@@ -9,6 +9,8 @@ import org.apache.poi.ss.usermodel.Cell;
...
@@ -9,6 +9,8 @@ import org.apache.poi.ss.usermodel.Cell;
import
org.apache.poi.ss.usermodel.Row
;
import
org.apache.poi.ss.usermodel.Row
;
import
org.apache.poi.xssf.usermodel.XSSFSheet
;
import
org.apache.poi.xssf.usermodel.XSSFSheet
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.io.*
;
import
java.io.*
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -21,6 +23,9 @@ import java.util.List;
...
@@ -21,6 +23,9 @@ import java.util.List;
public
class
BillParsers
{
public
class
BillParsers
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
BillParsers
.
class
);
static
String
PARSE_PATTERN_1
=
"yyyy-MM-dd HH:mm:ss"
;
static
String
PARSE_PATTERN_1
=
"yyyy-MM-dd HH:mm:ss"
;
static
String
PARSE_PATTERN_2
=
"yyyyMMdd"
;
static
String
PARSE_PATTERN_2
=
"yyyyMMdd"
;
...
@@ -35,7 +40,8 @@ public class BillParsers {
...
@@ -35,7 +40,8 @@ public class BillParsers {
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
public
static
<
T
>
List
<
T
>
parseBillFromInputStream
(
InputStream
inputStream
,
Class
<
T
>
clazz
)
throws
Exception
{
public
static
<
T
>
List
<
T
>
parseBillFromInputStream
(
InputStream
inputStream
,
Class
<
T
>
clazz
)
throws
Exception
{
if
(
clazz
.
equals
(
YeepayBill
.
class
))
{
if
(
clazz
.
equals
(
YeepayBill
.
class
))
{
return
(
List
<
T
>)
parseBillYeepayFromInputStream
(
inputStream
);
return
(
List
<
T
>)
parseBillYeepay
(
inputStream
);
// return (List<T>) parseBillYeepayFromInputStream(inputStream);
}
}
if
(
clazz
.
equals
(
WXBill
.
class
))
{
if
(
clazz
.
equals
(
WXBill
.
class
))
{
return
(
List
<
T
>)
parseBillWXPayFromInputStream
(
inputStream
);
return
(
List
<
T
>)
parseBillWXPayFromInputStream
(
inputStream
);
...
@@ -62,6 +68,7 @@ public class BillParsers {
...
@@ -62,6 +68,7 @@ public class BillParsers {
while
(
StringUtils
.
isNoneBlank
(
line
=
reader
.
readLine
()))
{
while
(
StringUtils
.
isNoneBlank
(
line
=
reader
.
readLine
()))
{
if
(
line
.
startsWith
(
"TRADEDETAIL-END"
))
break
;
if
(
line
.
startsWith
(
"TRADEDETAIL-END"
))
break
;
UMPayBill
bill
=
createUMPayBill
(
line
);
UMPayBill
bill
=
createUMPayBill
(
line
);
LOGGER
.
info
(
"解析账单结果,bill.orderId-->{}"
,
bill
.
getOrderId
());
bills
.
add
(
bill
);
bills
.
add
(
bill
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -110,6 +117,8 @@ public class BillParsers {
...
@@ -110,6 +117,8 @@ public class BillParsers {
String
[]
split
=
line
.
split
(
","
);
String
[]
split
=
line
.
split
(
","
);
if
(
split
.
length
>
9
&&
"SUCCESS"
.
equals
(
split
[
9
]))
{
if
(
split
.
length
>
9
&&
"SUCCESS"
.
equals
(
split
[
9
]))
{
WXBill
bill
=
createWXBill
(
split
);
WXBill
bill
=
createWXBill
(
split
);
bill
.
setSrcStr
(
line
);
LOGGER
.
info
(
"解析账单结果,bill.orderId-->{}"
,
bill
.
getOrderId
());
bills
.
add
(
bill
);
bills
.
add
(
bill
);
}
}
}
}
...
@@ -176,13 +185,16 @@ public class BillParsers {
...
@@ -176,13 +185,16 @@ public class BillParsers {
private
static
List
<
YeepayBill
>
parseBillYeepay
(
InputStream
is
)
throws
Exception
{
private
static
List
<
YeepayBill
>
parseBillYeepay
(
InputStream
is
)
throws
Exception
{
BufferedReader
reader
=
new
BufferedReader
(
new
InputStreamReader
(
is
,
Charset
.
forName
(
"UTF-8"
)));
BufferedReader
reader
=
new
BufferedReader
(
new
InputStreamReader
(
is
,
Charset
.
forName
(
"UTF-8"
)));
String
lineContent
=
reader
.
readLine
()
;
String
lineContent
=
null
;
String
[]
split
;
reader
.
readLine
()
;
List
<
YeepayBill
>
bills
=
new
ArrayList
<>();
List
<
YeepayBill
>
bills
=
new
ArrayList
<>();
while
(
StringUtils
.
isNotBlank
(
reader
.
readLine
()))
{
while
(
StringUtils
.
isNotBlank
(
lineContent
=
reader
.
readLine
()))
{
split
=
StringUtils
.
splitPreserveAllTokens
(
lineContent
,
","
);
String
[]
split
=
StringUtils
.
splitPreserveAllTokens
(
lineContent
,
","
);
YeepayBill
bill
=
setYeePayBillProps
(
split
);
if
(
YeepayBill
.
REPAY
.
equals
(
split
[
3
].
trim
()))
{
bills
.
add
(
bill
);
YeepayBill
bill
=
setYeePayBillProps
(
split
);
bill
.
setSrcStr
(
lineContent
);
bills
.
add
(
bill
);
}
}
}
return
bills
;
return
bills
;
}
}
...
@@ -205,37 +217,44 @@ public class BillParsers {
...
@@ -205,37 +217,44 @@ public class BillParsers {
iterator
.
next
();
//跳过表头
iterator
.
next
();
//跳过表头
while
(
iterator
.
hasNext
())
{
while
(
iterator
.
hasNext
())
{
YeepayBill
bill
=
createYeepayBill
(
iterator
.
next
());
YeepayBill
bill
=
createYeepayBill
(
iterator
.
next
());
bills
.
add
(
bill
);
if
(
null
!=
bill
)
{
LOGGER
.
info
(
"解析账单结果,bill.orderId-->{}"
,
bill
.
getOrderId
());
bills
.
add
(
bill
);
}
}
}
return
bills
;
return
bills
;
}
}
private
static
YeepayBill
createYeepayBill
(
Row
row
)
{
private
static
YeepayBill
createYeepayBill
(
Row
row
)
{
YeepayBill
bill
=
new
YeepayBill
();
Cell
cell0
=
row
.
getCell
(
0
);
bill
.
setTrandingDate
(
row
.
getCell
(
1
).
getDateCellValue
());
if
(
null
!=
cell0
&&
StringUtils
.
isNotBlank
(
cell0
.
getStringCellValue
()))
{
bill
.
setAccountType
(
row
.
getCell
(
2
).
getStringCellValue
());
YeepayBill
bill
=
new
YeepayBill
();
bill
.
setBizType
(
row
.
getCell
(
3
).
getStringCellValue
());
bill
.
setTrandingDate
(
row
.
getCell
(
1
).
getDateCellValue
());
if
(
StringUtils
.
isNotBlank
(
row
.
getCell
(
4
).
getStringCellValue
()))
{
bill
.
setAccountType
(
row
.
getCell
(
2
).
getStringCellValue
());
bill
.
setOrderId
(
row
.
getCell
(
4
).
getStringCellValue
().
trim
());
bill
.
setBizType
(
row
.
getCell
(
3
).
getStringCellValue
());
}
if
(
StringUtils
.
isNotBlank
(
row
.
getCell
(
4
).
getStringCellValue
()))
{
row
.
getCell
(
5
).
setCellType
(
Cell
.
CELL_TYPE_STRING
);
bill
.
setOrderId
(
row
.
getCell
(
4
).
getStringCellValue
().
trim
());
if
(
StringUtils
.
isNotBlank
(
row
.
getCell
(
5
).
getStringCellValue
()))
{
bill
.
setIncome
(
new
BigDecimal
(
row
.
getCell
(
5
).
getStringCellValue
()));
}
row
.
getCell
(
6
).
setCellType
(
Cell
.
CELL_TYPE_STRING
);
if
(
StringUtils
.
isNotBlank
(
row
.
getCell
(
6
).
getStringCellValue
()))
{
bill
.
setCost
(
new
BigDecimal
(
row
.
getCell
(
6
).
getStringCellValue
()));
}
if
(
null
!=
row
.
getCell
(
7
))
{
row
.
getCell
(
7
).
setCellType
(
Cell
.
CELL_TYPE_STRING
);
if
(
StringUtils
.
isNotBlank
(
row
.
getCell
(
7
).
getStringCellValue
()))
{
bill
.
setPoundage
(
new
BigDecimal
(
row
.
getCell
(
7
).
getStringCellValue
()));
}
}
row
.
getCell
(
5
).
setCellType
(
Cell
.
CELL_TYPE_STRING
);
if
(
StringUtils
.
isNotBlank
(
row
.
getCell
(
5
).
getStringCellValue
()))
{
bill
.
setIncome
(
new
BigDecimal
(
row
.
getCell
(
5
).
getStringCellValue
()));
}
row
.
getCell
(
6
).
setCellType
(
Cell
.
CELL_TYPE_STRING
);
if
(
StringUtils
.
isNotBlank
(
row
.
getCell
(
6
).
getStringCellValue
()))
{
bill
.
setCost
(
new
BigDecimal
(
row
.
getCell
(
6
).
getStringCellValue
()));
}
if
(
null
!=
row
.
getCell
(
7
))
{
row
.
getCell
(
7
).
setCellType
(
Cell
.
CELL_TYPE_STRING
);
if
(
StringUtils
.
isNotBlank
(
row
.
getCell
(
7
).
getStringCellValue
()))
{
bill
.
setPoundage
(
new
BigDecimal
(
row
.
getCell
(
7
).
getStringCellValue
()));
}
}
if
(
null
!=
row
.
getCell
(
10
))
{
bill
.
setRemak
(
row
.
getCell
(
10
).
getStringCellValue
());
}
return
bill
;
}
}
if
(
null
!=
row
.
getCell
(
10
))
{
return
null
;
bill
.
setRemak
(
row
.
getCell
(
10
).
getStringCellValue
());
}
return
bill
;
}
}
...
...
src/main/resources/applicationContext.properties
View file @
5312e991
...
@@ -11,11 +11,6 @@ xyqb.jdbc.username=xyqb_query
...
@@ -11,11 +11,6 @@ xyqb.jdbc.username=xyqb_query
xyqb.jdbc.password
=
Uiwb@o^fR&nHOa5t
xyqb.jdbc.password
=
Uiwb@o^fR&nHOa5t
#local
local.jdbc.url
=
jdbc:mysql://127.0.0.1:3306/financial?useUnicode=true&characterEncoding=UTF8
local.jdbc.username
=
root
local.jdbc.password
=
root
#mall
#mall
mall.jdbc.url
=
jdbc:mysql://172.16.1.7:3306/mall?useUnicode=true&characterEncoding=UTF8
mall.jdbc.url
=
jdbc:mysql://172.16.1.7:3306/mall?useUnicode=true&characterEncoding=UTF8
mall.jdbc.username
=
xyqb_query
mall.jdbc.username
=
xyqb_query
...
@@ -27,9 +22,9 @@ financial.jdbc.username=xyqb_query
...
@@ -27,9 +22,9 @@ financial.jdbc.username=xyqb_query
financial.jdbc.password
=
Uiwb@o^fR&nHOa5t
financial.jdbc.password
=
Uiwb@o^fR&nHOa5t
#lkbadmin
#lkbadmin
lkbadmin.jdbc.url
=
jdbc:mysql://10.0.44.12:3306/lkbadmin?useUnicode=true&characterEncoding=utf8
#
lkbadmin.jdbc.url=jdbc:mysql://10.0.44.12:3306/lkbadmin?useUnicode=true&characterEncoding=utf8
lkbadmin.jdbc.username
=
lkbadmin_w
#
lkbadmin.jdbc.username=lkbadmin_w
lkbadmin.jdbc.password
=
wj0msj8J8/v2Ee6Xl75ZDizrJBdEDOAQGlxTGKbRFng=
#
lkbadmin.jdbc.password=wj0msj8J8/v2Ee6Xl75ZDizrJBdEDOAQGlxTGKbRFng=
#localDB
#localDB
local.repayment.jdbc.url
=
jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8
local.repayment.jdbc.url
=
jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8
...
...
src/main/resources/mybatis-local-repayment-config.xml
View file @
5312e991
...
@@ -5,5 +5,6 @@
...
@@ -5,5 +5,6 @@
<configuration>
<configuration>
<mappers>
<mappers>
<mapper
resource=
"cn/gq/financial/db/local/mapping/LocalDataSourceMapper.xml"
/>
<mapper
resource=
"cn/gq/financial/db/local/mapping/LocalDataSourceMapper.xml"
/>
</mappers>
<mapper
resource=
"cn/gq/financial/db/local/mapping/RepayDetailFinancialEntityMapper.xml"
/>
</mappers>
</configuration>
</configuration>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment