Browse Source

金融政策、其他融备案终止后,修改备案状态

master
fanzongzhe 2 years ago
parent
commit
78b9401d01
  1. 26
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanfinotherpolicyrecordapply/LoanFinOtherPolicyRecordApplyService.java
  2. 32
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanfinpolicyrecordapply/LoanFinPolicyRecordApplyService.java

26
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanfinotherpolicyrecordapply/LoanFinOtherPolicyRecordApplyService.java

@ -578,6 +578,19 @@ public class LoanFinOtherPolicyRecordApplyService extends MybatisBaseService<Loa
}
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData());
updateFlowFiled(map);
//终止任务后备案状态改完未备案
LoanFinOtherPolicyRecordApply loanFinOtherPolicyRecordApply = fetchBySid(query.getBusinessSid());
if (loanFinOtherPolicyRecordApply.getNodeState().equals("终止")) {
String policySids = loanFinOtherPolicyRecordApply.getOtherPolicySid();
List<String> strings = Arrays.asList(policySids.split(","));
if (!strings.isEmpty()) {
for (String sid : strings) {
LoanFinOtherPolicy loanFinOtherPolicy = loanFinOtherPolicyService.fetchBySid(sid);
loanFinOtherPolicy.setFilingState(0);
loanFinOtherPolicyService.updateById(loanFinOtherPolicy);
}
}
}
return rb.success().setData(resultBean.getData());
} else {
if (businessTaskId.equals(query.getTaskId())) {
@ -589,6 +602,19 @@ public class LoanFinOtherPolicyRecordApplyService extends MybatisBaseService<Loa
}
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData());
updateFlowFiled(map);
//终止任务后备案状态改完未备案
LoanFinOtherPolicyRecordApply loanFinOtherPolicyRecordApply = fetchBySid(query.getBusinessSid());
if (loanFinOtherPolicyRecordApply.getNodeState().equals("终止")) {
String policySids = loanFinOtherPolicyRecordApply.getOtherPolicySid();
List<String> strings = Arrays.asList(policySids.split(","));
if (!strings.isEmpty()) {
for (String sid : strings) {
LoanFinOtherPolicy loanFinOtherPolicy = loanFinOtherPolicyService.fetchBySid(sid);
loanFinOtherPolicy.setFilingState(0);
loanFinOtherPolicyService.updateById(loanFinOtherPolicy);
}
}
}
return rb.success().setData(resultBean.getData());
}
}

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

@ -5,6 +5,8 @@ import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import com.yxt.anrui.base.api.basedistributor.BaseDistributor;
import com.yxt.anrui.base.api.basedistributorapply.BaseDistributorApply;
import com.yxt.anrui.flowable.api.flow.FlowProcessMapQuery;
import com.yxt.anrui.flowable.api.flow.FlowableFeign;
import com.yxt.anrui.flowable.api.flow.UpdateFlowFieldVo;
@ -237,7 +239,7 @@ public class LoanFinPolicyRecordApplyService extends MybatisBaseService<LoanFinP
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(psid);
BeanUtil.copyProperties(loanFinPolicy, initVo);
initVo.setPolicySid(psid);
// List<LoanFinOtherPolicy> otherPolicy = loanFinOtherPolicyService.getOtherPolicyByMainSid(psid);
// List<LoanFinOtherPolicy> otherPolicy = loanFinOtherPolicyService.getOtherPolicyByMainSid(psid);
List<LoanFinOtherPolicy> otherPolicy = loanFinOtherPolicyService.fetchByMainSid(psid);
otherPolicy.removeAll(Collections.singleton(null));
initVo.setShowOtherPolicy(!otherPolicy.isEmpty());
@ -545,6 +547,21 @@ public class LoanFinPolicyRecordApplyService extends MybatisBaseService<LoanFinP
}
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData());
updateFlowFiled(map);
//终止任务后经销商备案状态改完未备案
LoanFinPolicyRecordApply loanFinPolicyRecordApply = fetchBySid(query.getBusinessSid());
if (loanFinPolicyRecordApply.getNodeState().equals("终止")) {
String policySids = loanFinPolicyRecordApply.getPolicySid();
List<String> strings = Arrays.asList(policySids.split(","));
if (!strings.isEmpty()) {
for (String sid : strings) {
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(sid);
loanFinPolicy.setFilingState(0);
loanFinPolicyService.updateById(loanFinPolicy);
}
}
}
return rb.success().setData(resultBean.getData());
} else {
if (businessTaskId.equals(query.getTaskId())) {
@ -556,6 +573,19 @@ public class LoanFinPolicyRecordApplyService extends MybatisBaseService<LoanFinP
}
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData());
updateFlowFiled(map);
//终止任务后经销商备案状态改完未备案
LoanFinPolicyRecordApply loanFinPolicyRecordApply = fetchBySid(query.getBusinessSid());
if (loanFinPolicyRecordApply.getNodeState().equals("终止")) {
String policySids = loanFinPolicyRecordApply.getPolicySid();
List<String> strings = Arrays.asList(policySids.split(","));
if (!strings.isEmpty()) {
for (String sid : strings) {
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(sid);
loanFinPolicy.setFilingState(0);
loanFinPolicyService.updateById(loanFinPolicy);
}
}
}
return rb.success().setData(resultBean.getData());
}
}

Loading…
Cancel
Save