order导出
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 3m11s

This commit is contained in:
Break
2026-06-16 09:38:20 +08:00
parent 6c8594633a
commit 84ab3bad99
6 changed files with 9 additions and 5 deletions

View File

@@ -17,5 +17,6 @@ type ExportParams struct {
Filters map[string]any
ScopeShopIDs []uint
UserType int
CreatorShopID *uint
ResolvedHeaders []string
}

View File

@@ -15,6 +15,7 @@ func ParseExportParams(task *model.ExportTask) ExportParams {
params.ScopeShopIDs = append(params.ScopeShopIDs, task.ScopeShopIDs...)
params.UserType = task.CreatorUserType
params.CreatorShopID = task.CreatorShopID
var raw map[string]any
if len(task.QueryJSON) == 0 {

View File

@@ -30,6 +30,7 @@ func NewDefaultRegistry(db *gorm.DB) *Registry {
return NewRegistry(
NewDeviceDataSource(db),
NewIotCardDataSource(db),
NewOrderDataSource(db),
)
}
@@ -58,7 +59,7 @@ func (r *Registry) Scenes() []string {
// IsSupportedScene 判断是否为受支持的场景。
func IsSupportedScene(scene string) bool {
switch scene {
case constants.ExportTaskSceneDevice, constants.ExportTaskSceneIotCard:
case constants.ExportTaskSceneDevice, constants.ExportTaskSceneIotCard, constants.ExportTaskSceneOrder:
return true
default:
return false