Explorar el Código

律所导入增加手机号

qxy hace 1 semana
padre
commit
8c367ae19b

+ 2 - 2
alien-entity/src/main/java/shop/alien/entity/store/excelVo/LawFirmExcelVo.java

@@ -65,7 +65,7 @@ public class LawFirmExcelVo {
     @ApiModelProperty(value = "详细地址")
     private String address;
 
-//    @ExcelHeader("联系电话")
+    @ExcelHeader("联系电话")
     @ApiModelProperty(value = "联系电话")
     private String phone;
 
@@ -121,7 +121,7 @@ public class LawFirmExcelVo {
     @ApiModelProperty(value = "律师事务所收款账号(必须是16位或19位,每行只能填写一个账号,不允许逗号分隔)")
     private String paymentAccount;
 
-    @ExcelHeader("平台佣金比例")
+//    @ExcelHeader("平台佣金比例")
     @ApiModelProperty(value = "平台佣金比例(百分比)")
     private String platformCommissionRatio;
 

+ 0 - 27
alien-lawyer/src/main/java/shop/alien/lawyer/service/impl/LawFirmServiceImpl.java

@@ -763,17 +763,6 @@ public class LawFirmServiceImpl extends ServiceImpl<LawFirmMapper, LawFirm> impl
                     if (!StringUtils.hasText(lawFirm.getDirectorPhone()) && StringUtils.hasText(otherVo.getDirectorPhone())) {
                         lawFirm.setDirectorPhone(otherVo.getDirectorPhone());
                     }
-                    // 补充平台佣金比例(只支持纯数字格式,不支持百分号)
-                    if (lawFirm.getPlatformCommissionRatio() == null && StringUtils.hasText(otherVo.getPlatformCommissionRatio())) {
-                        try {
-                            String ratioStr = otherVo.getPlatformCommissionRatio().trim();
-                            // 解析为整数(必须是纯数字)
-                            Integer ratio = Integer.parseInt(ratioStr);
-                            lawFirm.setPlatformCommissionRatio(ratio);
-                        } catch (Exception e) {
-                            log.warn("解析佣金比例失败:{},必须是纯数字格式", otherVo.getPlatformCommissionRatio(), e);
-                        }
-                    }
                 }
 
                 // 检查统一社会信用代码是否已存在
@@ -797,10 +786,6 @@ public class LawFirmServiceImpl extends ServiceImpl<LawFirmMapper, LawFirm> impl
                     if (lawFirm.getStatus() == null) {
                         lawFirm.setStatus(existingLawFirm.getStatus());
                     }
-                    // 如果新数据没有提供平台佣金比例,保留原有值
-                    if (lawFirm.getPlatformCommissionRatio() == null) {
-                        lawFirm.setPlatformCommissionRatio(existingLawFirm.getPlatformCommissionRatio());
-                    }
                 } else {
                     // 设置默认值(新增时)
                 if (lawFirm.getStatus() == null) {
@@ -1215,18 +1200,6 @@ public class LawFirmServiceImpl extends ServiceImpl<LawFirmMapper, LawFirm> impl
             }
         }
 
-        // 解析佣金比例(只支持纯数字格式,不支持百分号)
-        if (StringUtils.hasText(excelVo.getPlatformCommissionRatio())) {
-            try {
-                String ratioStr = excelVo.getPlatformCommissionRatio().trim();
-                // 解析为整数(必须是纯数字)
-                Integer ratio = Integer.parseInt(ratioStr);
-                lawFirm.setPlatformCommissionRatio(ratio);
-            } catch (Exception e) {
-                log.warn("解析佣金比例失败:{},必须是纯数字格式", excelVo.getPlatformCommissionRatio(), e);
-            }
-        }
-
         return lawFirm;
     }