新增管理员用户删除,修改反馈,任务列表
This commit is contained in:
@ -328,6 +328,15 @@ func (s *sRewardType) List(ctx context.Context, in *model.RewardTypeListIn) (out
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if in.OperatorRole == consts.AdminRoleCode {
|
||||
orm = orm.LeftJoin(dao.Stores.Table(), fmt.Sprintf(
|
||||
"%s.%s = %s.%s",
|
||||
dao.RewardTypes.Table(), dao.RewardTypes.Columns().StoreId,
|
||||
dao.Stores.Table(), dao.Stores.Columns().Id),
|
||||
).Fields(fmt.Sprintf("%s.*, %s.%s %s",
|
||||
dao.RewardTypes.Table(), dao.Stores.Table(), dao.Stores.Columns().Name, "storeName"))
|
||||
}
|
||||
|
||||
// 查询分页数据
|
||||
err = orm.Page(in.Page, in.Size).
|
||||
OrderAsc(fmt.Sprintf("%s.%s", dao.RewardTypes.Table(), dao.RewardTypes.Columns().Source)).
|
||||
|
||||
Reference in New Issue
Block a user