소스 검색

fix:客户导入修改

ly 9 달 전
부모
커밋
53c4070c29

+ 1 - 1
src/main/java/cn/ezhizao/project/business/company/domain/BizCompany.java

@@ -111,7 +111,7 @@ public class BizCompany extends BaseEntity
     private Long typeId;
 
     /** 社会信用代码 */
-    @Excel(name = "社会统一信用代码")
+    @Excel(name = "税号")
     @ApiModelProperty(value = "社会统一信用代码")
     @Pattern(regexp = "^$|^. {18}$", message = "社会统一信用代码必须为18位")
     private String socialCreditCode;

+ 4 - 4
src/main/java/cn/ezhizao/project/business/company/service/impl/BizCompanyServiceImpl.java

@@ -153,7 +153,7 @@ public class BizCompanyServiceImpl  extends ServiceImpl<BizCompanyMapper, BizCom
                                 BizCompany sourceCompany = bizCompanyMapper.selectOne(companyWrapper);
                                 if(sourceCompany == null){
                                     failureNum++;
-                                    failureMsg.append("<br/>").append(failureNum).append("、").append(company.getName()).append(":来源名称未填写");
+                                    failureMsg.append("<br/>").append(failureNum).append("、").append(company.getName()).append(":来源名称错误");
                                     continue;
                                 }
                                 company.setSourceId(sourceCompany.getId());
@@ -162,7 +162,7 @@ public class BizCompanyServiceImpl  extends ServiceImpl<BizCompanyMapper, BizCom
                                 SysUser sourceUser = sysUserMapper.selectUserByUserName(sourceName);
                                 if(sourceUser == null){
                                     failureNum++;
-                                    failureMsg.append("<br/>").append(failureNum).append("、").append(company.getName()).append(":来源名称未填写");
+                                    failureMsg.append("<br/>").append(failureNum).append("、").append(company.getName()).append(":来源名称错误");
                                     continue;
                                 }
                                 company.setSourceId(sourceUser.getId());
@@ -174,7 +174,7 @@ public class BizCompanyServiceImpl  extends ServiceImpl<BizCompanyMapper, BizCom
                                 BizChannel sourceChannel = bizChannelMapper.selectOne(channelWrapper);
                                 if(sourceChannel == null){
                                     failureNum++;
-                                    failureMsg.append("<br/>").append(failureNum).append("、").append(company.getName()).append(":来源名称未填写");
+                                    failureMsg.append("<br/>").append(failureNum).append("、").append(company.getName()).append(":来源名称错误");
                                     continue;
                                 }
                                 company.setSourceId(sourceChannel.getId());
@@ -184,7 +184,7 @@ public class BizCompanyServiceImpl  extends ServiceImpl<BizCompanyMapper, BizCom
                         }
                     } else {
                         failureNum++;
-                        failureMsg.append("<br/>").append(failureNum).append("、").append(company.getName()).append(":来源错误");
+                        failureMsg.append("<br/>").append(failureNum).append("、").append(company.getName()).append(":来源类型错误");
                         continue;
                     }
                     this.save(company);