|
@ -896,18 +896,20 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
vo.setApplyDate(sdf.format(new Date())); |
|
|
vo.setApplyDate(sdf.format(new Date())); |
|
|
List<LoanBuckleHistoryRecord> historyRecords = new ArrayList<>(); |
|
|
List<LoanBuckleHistoryRecord> historyRecords = new ArrayList<>(); |
|
|
QueryWrapper<LoanRepaymentHistory> qw = new QueryWrapper<>(); |
|
|
QueryWrapper<LoanRepaymentHistory> qw = new QueryWrapper<>(); |
|
|
//=======================
|
|
|
String useOrgSid = ""; |
|
|
String orgSidPath = orgPath; |
|
|
ResultBean<String> orgSidByPath = sysStaffOrgFeign.getOrgSidByPath(orgPath); |
|
|
orgSidPath = orgSidPath + "/"; |
|
|
if (orgSidByPath.getSuccess()) { |
|
|
int i1 = orgSidPath.indexOf("/"); |
|
|
useOrgSid = orgSidByPath.getData(); |
|
|
int i2 = orgSidPath.indexOf("/", i1 + 1); |
|
|
} |
|
|
int i3 = orgSidPath.indexOf("/", i2 + 1); |
|
|
List<String> selNotRuleForBuckSids = baseMapper.selNotRuleForBuckSids(useOrgSid); |
|
|
int i4 = orgSidPath.indexOf("/", i3 + 1); |
|
|
if (selNotRuleForBuckSids.isEmpty()) { |
|
|
orgSidPath = orgSidPath.substring(0, i3); |
|
|
selNotRuleForBuckSids = new ArrayList<>(); |
|
|
qw.like("p.orgSidPath", orgSidPath); |
|
|
} |
|
|
|
|
|
qw.eq("p.orgSidPath", useOrgSid); |
|
|
qw.ne("h.buckleKey", "002"); |
|
|
qw.ne("h.buckleKey", "002"); |
|
|
qw.ne("h.buckleKey", "003"); |
|
|
qw.ne("h.buckleKey", "003"); |
|
|
qw.eq("h.updateState", "1"); |
|
|
qw.eq("h.updateState", "1"); |
|
|
|
|
|
qw.notIn("h.sid",selNotRuleForBuckSids); |
|
|
List<RepaymentHistoryVoForBuckle> histories = baseMapper.selbuckleNewInitList(qw); |
|
|
List<RepaymentHistoryVoForBuckle> histories = baseMapper.selbuckleNewInitList(qw); |
|
|
Map<String, BigDecimal> countMoney = new HashMap<>(); |
|
|
Map<String, BigDecimal> countMoney = new HashMap<>(); |
|
|
Map<String, List<String>> sids = new HashMap<>(); |
|
|
Map<String, List<String>> sids = new HashMap<>(); |
|
|