|
|
@ -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()); |
|
|
|
} |
|
|
|
} |
|
|
|