...
|
...
|
@@ -21,7 +21,7 @@ func (ptr *PgBatchAddOrgService) BatchAddOrg(optUser *domain.OperateInfo, orgLis |
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
_, orgs, err := orgRepository.Find(map[string]interface{}{"companyId": optUser.CompanyId})
|
|
|
_, orgs, err := orgRepository.Find(map[string]interface{}{"companyId": optUser.CompanyId, "limit": 10000})
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
...
|
...
|
@@ -52,7 +52,7 @@ func (ptr *PgBatchAddOrgService) BatchAddOrg(optUser *domain.OperateInfo, orgLis |
|
|
|
|
|
orgItem, err = createOrgService.CreateOrg(optUser, orgItem)
|
|
|
if err != nil {
|
|
|
return err
|
|
|
return fmt.Errorf("%v %v", item.OrgName, err.Error())
|
|
|
}
|
|
|
if _, ok := mapOrg[orgItem.OrgCode]; !ok {
|
|
|
mapOrg[orgItem.OrgCode] = orgItem
|
...
|
...
|
|