|
|
@ -713,12 +713,6 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
|
qw.ne("h.buckleKey", "002"); |
|
|
|
qw.ne("h.buckleKey", "003"); |
|
|
|
qw.eq("h.updateState", "0"); |
|
|
|
List<String> monthHeadAndLast = getMonthHeadAndLast(new Date()); |
|
|
|
String head = monthHeadAndLast.get(0); |
|
|
|
String last = monthHeadAndLast.get(1); |
|
|
|
qw.apply(StringUtils.isNotEmpty(head), "date_format (h.actualDate,'%Y-%m-%d') >= date_format('" + head + "','%Y-%m-%d')"). |
|
|
|
apply(StringUtils.isNotEmpty(last), "date_format (h.actualDate,'%Y-%m-%d') <= date_format('" + last + "','%Y-%m-%d')" |
|
|
|
); |
|
|
|
List<String> histories = baseMapper.selUpdateStateList(qw); |
|
|
|
if (!histories.isEmpty()) { |
|
|
|
for (String historySid : histories) { |
|
|
@ -753,12 +747,7 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
|
qw.like("p.orgSidPath", orgSidPath); |
|
|
|
qw.ne("h.buckleKey", "002"); |
|
|
|
qw.ne("h.buckleKey", "003"); |
|
|
|
List<String> monthHeadAndLast = getMonthHeadAndLast(new Date()); |
|
|
|
String head = monthHeadAndLast.get(0); |
|
|
|
String last = monthHeadAndLast.get(1); |
|
|
|
qw.apply(StringUtils.isNotEmpty(head), "date_format (h.actualDate,'%Y-%m-%d') >= date_format('" + head + "','%Y-%m-%d')"). |
|
|
|
apply(StringUtils.isNotEmpty(last), "date_format (h.actualDate,'%Y-%m-%d') <= date_format('" + last + "','%Y-%m-%d')" |
|
|
|
); |
|
|
|
qw.eq("h.updateState","1"); |
|
|
|
List<LoanRepaymentHistoryVo> histories = baseMapper.selbuckleNewInitList(qw); |
|
|
|
Set<String> planSids = new HashSet<>(); |
|
|
|
if (!histories.isEmpty()) { |
|
|
|