zwxi 11 months ago
parent
commit
7228b88fae
2 changed files with 6 additions and 3 deletions
  1. 2 1
      controllers/company.go
  2. 4 2
      controllers/company_share.go

+ 2 - 1
controllers/company.go

@@ -1758,9 +1758,10 @@ func (this *CompanyController) List() {
 					}
 					shareSeller := adminMap[shareSellerId]
 					if shareSeller != nil {
-						companyList.ShareSeller += shareSeller.RealName + "(" + shareSeller.GroupName + ")"
+						companyList.ShareSeller += shareSeller.RealName + "(" + shareSeller.GroupName + ")" + "/"
 					}
 				}
+				companyList.ShareSeller = strings.TrimRight(companyList.ShareSeller, "/")
 			}
 			companyLists = append(companyLists, companyList)
 		}

+ 4 - 2
controllers/company_share.go

@@ -659,9 +659,10 @@ func (this *CompanyController) CompanyShareList() {
 					}
 					shareSeller := adminMap[shareSellerId]
 					if shareSeller != nil {
-						companyList.ShareSeller += shareSeller.RealName + "(" + shareSeller.GroupName + ")"
+						companyList.ShareSeller += shareSeller.RealName + "(" + shareSeller.GroupName + ")" + "/"
 					}
 				}
+				companyList.ShareSeller = strings.TrimRight(companyList.ShareSeller, "/")
 			}
 			companyLists = append(companyLists, companyList)
 		}
@@ -1133,9 +1134,10 @@ func (this *CompanyController) CompanyShareListByCity() {
 					}
 					shareSeller := adminMap[shareSellerId]
 					if shareSeller != nil {
-						companyList.ShareSeller += shareSeller.RealName + "(" + shareSeller.GroupName + ")"
+						companyList.ShareSeller += shareSeller.RealName + "(" + shareSeller.GroupName + ")" + "/"
 					}
 				}
+				companyList.ShareSeller = strings.TrimRight(companyList.ShareSeller, "/")
 			}
 			companyLists = append(companyLists, companyList)
 		}