wangkaiyue 6 months ago
parent
commit
98892829b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/jfw/modules/bigmember/src/entity/followEnterprise.go

+ 1 - 1
src/jfw/modules/bigmember/src/entity/followEnterprise.go

@@ -792,7 +792,7 @@ func (this *EntFollow) DelLabelGroup(groupId string) error {
 			needMoveDefault []string
 			needMoveDefault []string
 		)
 		)
 		//查询当前分组内所有数据
 		//查询当前分组内所有数据
-		rData := db.Base.Query("SELECT r.s_entId,GROUP_CONCAT(g.id SEPARATOR ',') as gs  FROM  follow_ent_monitor_relationship r inner join  follow_ent_monitor_group g  on ( r.s_groupId = g.id ) WHERE g.s_userid ='?' GROUP BY r.s_entId  HAVING FIND_IN_SET('?', gs) > 0;", this.UserId, groupId)
+		rData := db.Base.Query("SELECT r.s_entId,GROUP_CONCAT(g.id SEPARATOR ',') as gs  FROM  follow_ent_monitor_relationship r inner join  follow_ent_monitor_group g  on ( r.s_groupId = g.id ) WHERE g.s_userid =? GROUP BY r.s_entId  HAVING FIND_IN_SET(?, gs) > 0;", this.UserId, groupId)
 		if rData != nil && len(*rData) > 0 {
 		if rData != nil && len(*rData) > 0 {
 			for _, m := range *rData {
 			for _, m := range *rData {
 				var (
 				var (