调整任务列表以及同步任务接口
This commit is contained in:
@ -27,7 +27,7 @@ func (s *sStore) List(ctx context.Context, in *model.StoreListIn) (out *model.St
|
||||
// 1. 初始化返回数据
|
||||
list := make([]model.Store, 0)
|
||||
var total int
|
||||
if err = dao.Stores.Ctx(ctx).Page(in.Page, in.Size).ScanAndCount(&list, &total, false); err != nil {
|
||||
if err = dao.Stores.Ctx(ctx).Page(in.Page, in.Size).Where(do.Stores{MerchantId: in.MerchantId}).ScanAndCount(&list, &total, false); err != nil {
|
||||
return nil, ecode.Fail.Sub("门店列表获取失败")
|
||||
}
|
||||
return &model.StoreListOut{
|
||||
|
||||
Reference in New Issue
Block a user