|
@@ -129,14 +129,13 @@ func (s *StoreEntry) CowTransferPenReasonOptions(ctx context.Context) (*pastureP
|
|
|
}
|
|
|
|
|
|
func (s *StoreEntry) SystemUserOptions(ctx context.Context, depId int) (*pasturePb.ConfigOptionsListResponse, error) {
|
|
|
- userModel, err := s.GetUserModel(ctx)
|
|
|
+ _, err := s.GetUserModel(ctx)
|
|
|
if err != nil {
|
|
|
return nil, xerr.WithStack(err)
|
|
|
}
|
|
|
|
|
|
systemUserList := make([]*model.SystemUser, 0)
|
|
|
pref := s.DB.Table(new(model.SystemUser).TableName()).
|
|
|
- Where("pasture_id = ?", userModel.AppPasture.Id).
|
|
|
Where("is_delete = ?", pasturePb.IsShow_Ok).
|
|
|
Where("is_show =? ", pasturePb.IsShow_Ok)
|
|
|
if depId != -1 && depId > 0 {
|