解决 bug

This commit is contained in:
2025-07-12 19:05:23 +08:00
parent 9113dab102
commit 1462018682
10 changed files with 47 additions and 26 deletions

View File

@ -266,7 +266,7 @@ func (s *sStore) DeleteIP(ctx context.Context, in *model.IPDeleteIn) (*model.IPD
}
func (s *sStore) Detail(ctx context.Context, in *model.StoreDetailIn) (out *model.StoreDetailOut, err error) {
one, err := dao.Stores.Ctx(ctx).Where(do.Stores{NetbarAccount: in.NetbarAccount}).One()
one, err := dao.Stores.Ctx(ctx).Where(do.Stores{Id: in.StoreId}).One()
if err != nil {
return nil, ecode.Fail.Sub("查询门店出现异常")
}
@ -274,7 +274,8 @@ func (s *sStore) Detail(ctx context.Context, in *model.StoreDetailIn) (out *mode
return nil, ecode.Params.Sub("门店不存在")
}
return &model.StoreDetailOut{
Id: one[dao.Stores.Columns().Id].Int64(),
Id: one[dao.Stores.Columns().Id].Int64(),
NetbarAccount: one[dao.Stores.Columns().NetbarAccount].String(),
}, nil
}