ziwen před 2 roky
rodič
revize
557fd1dd53
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      services/crm/company_seller.go

+ 2 - 2
services/crm/company_seller.go

@@ -66,9 +66,9 @@ func GetSellerDepartmentListWithGroupAndTeam() (sellerList []*crm.SellerAdminWit
 // GetSellerTeamGroupMap 获取销售组别对应的大组信息
 func GetSellerTeamGroupMap() (teamGroupMap map[int]*crm.SysGroup, err error) {
 	teamGroupMap = make(map[int]*crm.SysGroup)
-	groupCond := `department_id = ?`
+	groupCond := `department_id IN (?)`
 	groupPars := make([]interface{}, 0)
-	groupPars = append(groupPars, crm.SellerDepartmentId)
+	groupPars = append(groupPars, crm.SellerDepartmentId, crm.RaiSellerDepartmentId)
 	groupOB := new(crm.SysGroup)
 	groupList, e := groupOB.List(groupCond, groupPars)
 	if e != nil {