add: update export table task

This commit is contained in:
2024-09-06 14:58:02 +08:00
parent 83cd5fbd58
commit 13b322a038
5 changed files with 16 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ import (
"os"
"time"
"be.ems/lib/core/datasource"
"be.ems/lib/dborm"
"be.ems/lib/log"
"be.ems/src/framework/cron"
)
@@ -103,7 +103,7 @@ func (s *BarProcessor) Execute(data any) (any, error) {
}
func (s *BarProcessor) exportData(query, filePath string) (int64, error) {
rows, err := datasource.DefaultDB().DB().Query(query)
rows, err := dborm.XCoreDB().Query(query)
if err != nil {
return 0, err
}