|
|
@ -44,6 +44,7 @@ import com.yxt.anrui.riskcenter.api.loantemplate.LoanTemplateQuery; |
|
|
|
import com.yxt.anrui.riskcenter.api.loantemplate.LoanTemplateVo; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loancreditappealapply.LoanCreditAppealApplyService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loanfinpolicy.LoanFinPolicyService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loanparameter.LoanParameterService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loanpreloancreditpeo.LoanPreloanCreditPeoService; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
|
@ -80,6 +81,8 @@ public class LoanPreloanCreditApplyService extends MybatisBaseService<LoanPreloa |
|
|
|
@Autowired |
|
|
|
private LoanFinPolicyService loanFinPolicyService; |
|
|
|
@Autowired |
|
|
|
private LoanParameterService loanParameterService; |
|
|
|
@Autowired |
|
|
|
private CrmCustomerTempFeign crmCustomerTempFeign; |
|
|
|
|
|
|
|
public PagerVo<LoanPreloanCreditApplyVo> listPageVo(PagerQuery<LoanPreloanCreditApplyQuery> pq) { |
|
|
@ -417,15 +420,15 @@ public class LoanPreloanCreditApplyService extends MybatisBaseService<LoanPreloa |
|
|
|
|
|
|
|
public ResultBean submitSave(LoanPreloanCreditApplyDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
if (StringUtils.isNotBlank(dto.getIdCard())){ |
|
|
|
crmCustomerTempFeign.updateIdBySid(dto.getIdCard(),dto.getCustSid()); |
|
|
|
if (StringUtils.isNotBlank(dto.getIdCard())) { |
|
|
|
crmCustomerTempFeign.updateIdBySid(dto.getIdCard(), dto.getCustSid()); |
|
|
|
} |
|
|
|
ResultBean<String> stringResultBean = saveOrUpdateDto(dto); |
|
|
|
if (!stringResultBean.getSuccess()) { |
|
|
|
return rb.setMsg("保存失败"); |
|
|
|
} |
|
|
|
String sid = stringResultBean.getData(); |
|
|
|
baseMapper.updateStateBySid(sid, 0); |
|
|
|
baseMapper.updateStateBySid(sid, 0, ""); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
@ -560,7 +563,8 @@ public class LoanPreloanCreditApplyService extends MybatisBaseService<LoanPreloa |
|
|
|
return rb.setMsg("保存失败"); |
|
|
|
} |
|
|
|
String sid = stringResultBean.getData(); |
|
|
|
baseMapper.updateStateBySid(sid, 2); |
|
|
|
String dqxyshyxq = loanParameterService.fetchByParNo("DQXYSHYXQ").getData(); |
|
|
|
baseMapper.updateStateBySid(sid, 2, dqxyshyxq); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
@ -597,11 +601,11 @@ public class LoanPreloanCreditApplyService extends MybatisBaseService<LoanPreloa |
|
|
|
} |
|
|
|
//根据销售订单sid查询资方
|
|
|
|
LoanSolutions loanSolutions = loanSolutionsService.selectByApplySid(query.getOrderSid()); |
|
|
|
if(loanSolutions != null){ |
|
|
|
if (loanSolutions != null) { |
|
|
|
//根据产品政策查询
|
|
|
|
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(loanSolutions.getPolicySid()); |
|
|
|
if(loanFinPolicy != null){ |
|
|
|
qw.eq("la.capitalSid",loanFinPolicy.getBankSid()); |
|
|
|
if (loanFinPolicy != null) { |
|
|
|
qw.eq("la.capitalSid", loanFinPolicy.getBankSid()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|