Browse Source

确权修改

xuefy 3 năm trước cách đây
mục cha
commit
68d2a83486

+ 4 - 11
sc-service/src/main/java/com/huyi/service/credit/controller/CreditHandleController.java

@@ -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);
             //利率