|
|
@ -934,7 +934,8 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getType())) { |
|
|
|
String type = pagerQuery.getType(); |
|
|
|
if (type.equals("0")) { |
|
|
|
qw.eq("h.paymentStateKey", "001").or().eq("h.paymentStateKey", "002"); |
|
|
|
// qw.eq("h.paymentStateKey", "001").or().eq("h.paymentStateKey", "002");
|
|
|
|
qw.apply("(h.paymentStateKey = '001' OR h.paymentStateKey = '002')"); |
|
|
|
} else if (type.equals("1")) { |
|
|
|
qw.eq("h.paymentStateKey", "003"); |
|
|
|
} |
|
|
@ -975,6 +976,7 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
|
qw.apply(StringUtils.isNotEmpty(prepareStartDate), "date_format (h.prepareDate,'%Y-%m-%d') >= date_format('" + prepareStartDate + "','%Y-%m-%d')"). |
|
|
|
apply(StringUtils.isNotEmpty(prepareEndDate), "date_format (h.prepareDate,'%Y-%m-%d') <= date_format('" + prepareEndDate + "','%Y-%m-%d')" |
|
|
|
); |
|
|
|
qw.apply("(b.reAdvances = '1' OR IFNULL(p.paymentMoney,0) <= 0)"); |
|
|
|
IPage<TransferPaymentVo> pagging = baseMapper.transferPaymentList(page, qw); |
|
|
|
PagerVo<TransferPaymentVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
|
return p; |
|
|
|