Browse Source

金融政策备案通过后修改有其他融的改完已备案

master
fanzongzhe 2 years ago
parent
commit
c7e1256343
  1. 36
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanfinpolicyrecordapply/LoanFinPolicyRecordApplyService.java

36
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanfinpolicyrecordapply/LoanFinPolicyRecordApplyService.java

@ -345,6 +345,14 @@ public class LoanFinPolicyRecordApplyService extends MybatisBaseService<LoanFinP
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(policySid); LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(policySid);
loanFinPolicy.setFilingState(2); loanFinPolicy.setFilingState(2);
loanFinPolicyService.updateById(loanFinPolicy); loanFinPolicyService.updateById(loanFinPolicy);
List<LoanFinOtherPolicy> otherPolicyList = loanFinOtherPolicyService.fetchByMainSid(policySid);
otherPolicyList.removeAll(Collections.singleton(null));
if (!otherPolicyList.isEmpty()) {
for (LoanFinOtherPolicy loanFinOtherPolicy : otherPolicyList) {
loanFinOtherPolicy.setFilingState(2);
loanFinOtherPolicyService.updateById(loanFinOtherPolicy);
}
}
} }
} }
//==================================添加线程 //==================================添加线程
@ -422,6 +430,14 @@ public class LoanFinPolicyRecordApplyService extends MybatisBaseService<LoanFinP
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(pSid); LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(pSid);
loanFinPolicy.setFilingState(1); loanFinPolicy.setFilingState(1);
loanFinPolicyService.updateById(loanFinPolicy); loanFinPolicyService.updateById(loanFinPolicy);
List<LoanFinOtherPolicy> otherPolicyList = loanFinOtherPolicyService.fetchByMainSid(policySid);
otherPolicyList.removeAll(Collections.singleton(null));
if (!otherPolicyList.isEmpty()) {
for (LoanFinOtherPolicy loanFinOtherPolicy : otherPolicyList) {
loanFinOtherPolicy.setFilingState(1);
loanFinOtherPolicyService.updateById(loanFinOtherPolicy);
}
}
} }
entity.setClosingDate(new Date()); entity.setClosingDate(new Date());
//办结日期 //办结日期
@ -546,7 +562,7 @@ public class LoanFinPolicyRecordApplyService extends MybatisBaseService<LoanFinP
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData()); Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData());
updateFlowFiled(map); updateFlowFiled(map);
//终止任务后经销商备案状态改完未备案 //终止任务后备案状态改完未备案
LoanFinPolicyRecordApply loanFinPolicyRecordApply = fetchBySid(query.getBusinessSid()); LoanFinPolicyRecordApply loanFinPolicyRecordApply = fetchBySid(query.getBusinessSid());
if (loanFinPolicyRecordApply.getNodeState().equals("终止")) { if (loanFinPolicyRecordApply.getNodeState().equals("终止")) {
String policySids = loanFinPolicyRecordApply.getPolicySid(); String policySids = loanFinPolicyRecordApply.getPolicySid();
@ -556,6 +572,14 @@ public class LoanFinPolicyRecordApplyService extends MybatisBaseService<LoanFinP
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(sid); LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(sid);
loanFinPolicy.setFilingState(0); loanFinPolicy.setFilingState(0);
loanFinPolicyService.updateById(loanFinPolicy); loanFinPolicyService.updateById(loanFinPolicy);
List<LoanFinOtherPolicy> otherPolicyList = loanFinOtherPolicyService.fetchByMainSid(sid);
otherPolicyList.removeAll(Collections.singleton(null));
if (!otherPolicyList.isEmpty()) {
for (LoanFinOtherPolicy loanFinOtherPolicy : otherPolicyList) {
loanFinOtherPolicy.setFilingState(0);
loanFinOtherPolicyService.updateById(loanFinOtherPolicy);
}
}
} }
} }
} }
@ -571,7 +595,7 @@ public class LoanFinPolicyRecordApplyService extends MybatisBaseService<LoanFinP
} }
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData()); Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData());
updateFlowFiled(map); updateFlowFiled(map);
//终止任务后经销商备案状态改完未备案 //终止任务后备案状态改完未备案
LoanFinPolicyRecordApply loanFinPolicyRecordApply = fetchBySid(query.getBusinessSid()); LoanFinPolicyRecordApply loanFinPolicyRecordApply = fetchBySid(query.getBusinessSid());
if (loanFinPolicyRecordApply.getNodeState().equals("终止")) { if (loanFinPolicyRecordApply.getNodeState().equals("终止")) {
String policySids = loanFinPolicyRecordApply.getPolicySid(); String policySids = loanFinPolicyRecordApply.getPolicySid();
@ -581,6 +605,14 @@ public class LoanFinPolicyRecordApplyService extends MybatisBaseService<LoanFinP
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(sid); LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(sid);
loanFinPolicy.setFilingState(0); loanFinPolicy.setFilingState(0);
loanFinPolicyService.updateById(loanFinPolicy); loanFinPolicyService.updateById(loanFinPolicy);
List<LoanFinOtherPolicy> otherPolicyList = loanFinOtherPolicyService.fetchByMainSid(sid);
otherPolicyList.removeAll(Collections.singleton(null));
if (!otherPolicyList.isEmpty()) {
for (LoanFinOtherPolicy loanFinOtherPolicy : otherPolicyList) {
loanFinOtherPolicy.setFilingState(0);
loanFinOtherPolicyService.updateById(loanFinOtherPolicy);
}
}
} }
} }
} }

Loading…
Cancel
Save