Переглянути джерело

feat(合同):合同制作

liutao 8 місяців тому
батько
коміт
69ccd55f95

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

@@ -639,9 +639,9 @@ public class ProjectAuditServiceImpl extends ServiceImpl<ProjectAuditMapper, Pro
                 BigDecimal zhixingAmount = jsonObject.getBigDecimal("zhixingAmount");
                 projectOwnerScore.setZhiXingAmount(zhixingAmount);
                 BigDecimal zhiXingAmountScore = BigDecimal.ZERO;
-                if(zhixingAmount.compareTo(new BigDecimal(enterprise.getRegisteredCapital().replace("万元人民币","")).multiply(new BigDecimal("10000")).multiply(new BigDecimal("0.02"))) < 1){
+                if(zhixingAmount.compareTo(new BigDecimal(enterprise.getRegisteredCapital().replace("万元人民币","")).multiply(new BigDecimal("0.02"))) < 1){
                     zhiXingAmountScore = ProjectScoringModel.ENTERPRISE_RATIO.multiply(ProjectScoringModel.ZHI_XING_STANDARD_ONE);
-                }else if(zhixingAmount.compareTo(new BigDecimal(enterprise.getRegisteredCapital().replace("万元人民币","")).multiply(new BigDecimal("10000")).multiply(new BigDecimal("0.02"))) == 1){
+                }else if(zhixingAmount.compareTo(new BigDecimal(enterprise.getRegisteredCapital().replace("万元人民币","")).multiply(new BigDecimal("0.02"))) == 1){
                     admitted = ProjectScoringModel.NOT_ADMITTED;
                     errors.add("当前被执行金额不准入!");
                 }

+ 2 - 2
src/main/java/com/sunxung/factoring/service/project/impl/ProjectCoreEnterpriseAuditServiceImpl.java

@@ -535,9 +535,9 @@ public class ProjectCoreEnterpriseAuditServiceImpl extends ServiceImpl<ProjectCo
             BigDecimal zhixingAmount = jsonObject.getBigDecimal("zhixingAmount");
             projectCoreEnterpriseScore.setZhiXingAmount(zhixingAmount);
             BigDecimal zhiXingAmountScore = BigDecimal.ZERO;
-            if (zhixingAmount.compareTo(new BigDecimal(enterprise.getRegisteredCapital().replace("万元人民币", "")).multiply(new BigDecimal("10000")).multiply(new BigDecimal("0.02"))) < 1) {
+            if (zhixingAmount.compareTo(new BigDecimal(enterprise.getRegisteredCapital().replace("万元人民币", "")).multiply(new BigDecimal("0.02"))) < 1) {
                 zhiXingAmountScore = ProjectCoreEnterpriseScoringModel.ENTERPRISE_RATIO.multiply(ProjectCoreEnterpriseScoringModel.ZHI_XING_STANDARD_ONE);
-            }else if(zhixingAmount.compareTo(new BigDecimal(enterprise.getRegisteredCapital().replace("万元人民币", "")).multiply(new BigDecimal("10000")).multiply(new BigDecimal("0.02"))) == 1){
+            }else if(zhixingAmount.compareTo(new BigDecimal(enterprise.getRegisteredCapital().replace("万元人民币", "")).multiply(new BigDecimal("0.02"))) == 1){
                 admitted = ProjectCoreEnterpriseScoringModel.NOT_ADMITTED;
                 errors.add("当前被执行金额不准入!");
             }

+ 21 - 0
src/main/resources/data/update/v1.0/20231117liutao.sql

@@ -1422,3 +1422,24 @@ INSERT INTO `t_permission`( `parentId`, `type`, `cname`, `ename`, `gradation`, `
 VALUES ( null, 'menu', '联系我们', 'ContactUSHome', 3, NULL, '', '1', NULL, NULL, now(), now());
 INSERT INTO `t_permission`( `parentId`, `type`, `cname`, `ename`, `gradation`, `moduleName`, `url`, `icon`, `user_create`, `user_modified`, `gmt_create`, `gmt_modified`)
 VALUES ( (select t.id from t_permission t where t.ename = 'ContactUSHome'), 'button', '查看', 'viewContactUSHome', 0, '联系我们', '/ContactUSHome/viewContactUSHome', NULL, NULL, NULL, now(), now());
+
+
+alter table supplier_approval_second modify `revenue_rating` varchar(50) default NULL COMMENT '收入评级';
+alter table supplier_approval_second modify `admitted` varchar(50) default NULL COMMENT '是否准入';
+alter table supplier_approval_second modify `score` decimal(17,4) default NULL COMMENT '得分';
+alter table supplier_approval_second modify `credit_limit` decimal(17,4) default NULL COMMENT '授信额度';
+alter table supplier_approval_second modify `approval_conclusion` varchar(50) default NULL COMMENT '审批结论';
+alter table supplier_approval_second modify `shareholder_score` decimal(17,4) default NULL COMMENT '股东得分';
+alter table supplier_approval_second modify `establishment_period_score` decimal(17,4) default NULL COMMENT '成立年限得分';
+alter table supplier_approval_second modify `registered_capital_score` decimal(17,4) default NULL COMMENT '注册资本得分';
+alter table supplier_approval_second modify `registered_address_score` decimal(17,4) default NULL COMMENT '注册地址得分';
+alter table supplier_approval_second modify `business_address_score` decimal(17,4) default NULL COMMENT '经营地址得分';
+alter table supplier_approval_second modify `industry_score` decimal(17,4) default NULL COMMENT '所属行业得分';
+alter table supplier_approval_second modify `business_scope_score` decimal(17,4) default NULL COMMENT '经营范围得分';
+alter table supplier_approval_second modify `basic_change_score` decimal(17,4) default NULL COMMENT '基本变动信息得分';
+alter table supplier_approval_second modify `main_business_income` decimal(17,4) default NULL COMMENT '主营业务收入';
+alter table supplier_approval_second modify `main_business_income_score` decimal(17,4) default NULL COMMENT '主营业务收入得分';
+alter table supplier_approval_second modify `main_business_cost` decimal(17,4) default NULL COMMENT '主营业务成本';
+alter table supplier_approval_second modify `main_business_profit` decimal(17,4) default NULL COMMENT '毛利率';
+alter table supplier_approval_second modify `main_business_profit_score` decimal(17,4) default NULL COMMENT '毛利率得分';
+alter table supplier_approval_second modify `business_address` varchar(500) default NULL COMMENT '经营地址';