Roc 1 year ago
parent
commit
1d37693f83
2 changed files with 10 additions and 0 deletions
  1. 8 0
      controllers/company_share.go
  2. 2 0
      models/company/company.go

+ 8 - 0
controllers/company_share.go

@@ -591,9 +591,17 @@ func (this *CompanyController) CompanyShareList() {
 	if companyLists == nil {
 	if companyLists == nil {
 		companyLists = make([]*company.CompanyListItem, 0)
 		companyLists = make([]*company.CompanyListItem, 0)
 	}
 	}
+
+	var isShareGroup bool
+	if sysUser.GroupId == groupId {
+		isShareGroup = true
+	}
+
 	page = paging.GetPaging(currentIndex, pageSize, total)
 	page = paging.GetPaging(currentIndex, pageSize, total)
 	resp := new(company.CompanyListResp)
 	resp := new(company.CompanyListResp)
 	resp.List = companyLists
 	resp.List = companyLists
+	resp.IsShareGroup = isShareGroup
+	resp.Status = listParam
 	resp.Paging = page
 	resp.Paging = page
 	br.Ret = 200
 	br.Ret = 200
 	br.Success = true
 	br.Success = true

+ 2 - 0
models/company/company.go

@@ -285,6 +285,8 @@ type CompanyListResp struct {
 	StatusCount   []*CompanyStatus
 	StatusCount   []*CompanyStatus
 	TryStageCount []*CompanyTryStageCount
 	TryStageCount []*CompanyTryStageCount
 	AddCompanyBtn bool
 	AddCompanyBtn bool
+	IsShareGroup  bool `description:"是否咨询组销售"`
+	Status        int  `description:"是否咨询组销售"`
 }
 }
 
 
 func GetCompanyListCount(condition string, pars []interface{}) (count int, err error) {
 func GetCompanyListCount(condition string, pars []interface{}) (count int, err error) {