|
@@ -115,18 +115,11 @@ public class CreditHandleController extends BaseController {
|
|
|
if("0".equals(zfiCreateType)){
|
|
|
//获取授信额度
|
|
|
//供应商企业授信额度
|
|
|
- String zfiSupplierQuotaId = CommonUtil.objToString(map.get("zfiSupplierQuotaId"));
|
|
|
- if(!CommonUtil.isEmpty(zfiSupplierQuotaId)){
|
|
|
- financeInf.setZfiSupplierQuotaId(zfiSupplierQuotaId);
|
|
|
- //获取供应商对应的核心授信额度
|
|
|
- ZcFinanceSupplierQuota supplierQuota = financeSupplierQuotaService.getById(zfiSupplierQuotaId);
|
|
|
- if(supplierQuota == null){
|
|
|
- throw new Exception("获取供应商授信额度失败");
|
|
|
- }
|
|
|
- String zfsqCoreQuotaId = supplierQuota.getZfsqCoreQuotaId();
|
|
|
- //核心授信额度
|
|
|
- financeInf.setZfiCoreQuotaId(zfsqCoreQuotaId);
|
|
|
+ String zfiCoreQuotaId = CommonUtil.objToString(map.get("zfiCoreQuotaId"));
|
|
|
+ if(CommonUtil.isEmpty(zfiCoreQuotaId)){
|
|
|
+ throw new Exception("请选择授信额度");
|
|
|
}
|
|
|
+ financeInf.setZfiCoreQuotaId(zfiCoreQuotaId);
|
|
|
//产品
|
|
|
financeInf.setZfiProductId(zfpId);
|
|
|
//利率
|