Ver código fonte

fix:客户管理客户导入时添加判断

ly 9 meses atrás
pai
commit
cb4629ef18

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

@@ -159,10 +159,12 @@ public class BizCompanyServiceImpl  extends ServiceImpl<BizCompanyMapper, BizCom
                             default:
                                 break;
                         }
-                        this.save(company);
                     } else {
-                        this.save(company);
+                        failureNum++;
+                        failureMsg.append("<br/>").append(failureNum).append("、").append(company.getName()).append(":来源错误");
+                        continue;
                     }
+                    this.save(company);
 //                    else {
 //                        failureNum++;
 //                        failureMsg.append("<br/>" + failureNum + "、客户 " + company.getName() + " 未输入来源或来源输入错误");