2 次代码提交 8bd7bb6a61 ... 4845f47fdf

作者 SHA1 备注 提交日期
  Yi 4845f47fdf system: userDepth update 6 天之前
  Yi 8bd7bb6a61 system: userDepth update 6 天之前
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      module/backend/enum_options.go

+ 1 - 1
module/backend/enum_options.go

@@ -155,7 +155,7 @@ func (s *StoreEntry) SystemUserOptions(ctx context.Context, depId int) (*pasture
 
 	systemUserList := make([]*model.SystemUser, 0)
 	pref := s.DB.Table(new(model.SystemUser).TableName()).
-		Where("FIND_IN_SET('?',pasture_ids) > ?", userModel.AppPasture.Id).
+		Where("FIND_IN_SET('?',pasture_ids) > ?", userModel.AppPasture.Id, 0).
 		Where("is_delete = ?", pasturePb.IsShow_Ok).
 		Where("is_show =? ", pasturePb.IsShow_Ok)
 	if depId != -1 && depId > 0 {