2 Achegas 8bd7bb6a61 ... 4845f47fdf

Autor SHA1 Mensaxe Data
  Yi 4845f47fdf system: userDepth update hai 2 meses
  Yi 8bd7bb6a61 system: userDepth update hai 2 meses
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 	systemUserList := make([]*model.SystemUser, 0)
 	pref := s.DB.Table(new(model.SystemUser).TableName()).
 	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_delete = ?", pasturePb.IsShow_Ok).
 		Where("is_show =? ", pasturePb.IsShow_Ok)
 		Where("is_show =? ", pasturePb.IsShow_Ok)
 	if depId != -1 && depId > 0 {
 	if depId != -1 && depId > 0 {