Ver código fonte

fix(项目):授信额度修改

liutao 5 meses atrás
pai
commit
0941825ba3

+ 1 - 1
build.gradle

@@ -9,7 +9,7 @@ targetCompatibility = 1.8
 
 jar {
     baseName = 'factoring-trade-prod'
-    version = '1.0.34'
+    version = '1.0.35'
 }
 
 springBoot {

+ 3 - 0
src/main/java/com/sunxung/factoring/service/project/impl/ProjectAuditServiceImpl.java

@@ -1022,6 +1022,9 @@ public class ProjectAuditServiceImpl extends ServiceImpl<ProjectAuditMapper, Pro
         if(admitted.equals(ProjectCoreEnterpriseScoringModel.NOT_ADMITTED)){
             totalScore = BigDecimal.ZERO;
             creditLimit = BigDecimal.ZERO;
+        }else {
+            creditLimit = creditLimit.compareTo(projectInformation.getCooperationAmount()) == 1? projectInformation.getCooperationAmount() : creditLimit;
+            creditLimit = creditLimit.compareTo(projectInformation.getHighPeakUsage()) == 1? projectInformation.getHighPeakUsage() : creditLimit;
         }
         ProjectOwnerComprehensiveEvaluation projectOwnerComprehensiveEvaluation = new ProjectOwnerComprehensiveEvaluation();
         projectOwnerComprehensiveEvaluation.setErrors(errors);