refactor: 数据同步优化 & 标签树支持双击展开节点 & mysql支持with语句

This commit is contained in:
meilin.huang
2025-01-10 12:05:00 +08:00
parent 1be7a0ec79
commit 8d24c2a4fa
15 changed files with 231 additions and 187 deletions

View File

@@ -112,11 +112,7 @@ func (d *DataSyncTask) Run(rc *req.Ctx) {
func (d *DataSyncTask) Stop(rc *req.Ctx) {
taskId := d.getTaskId(rc)
rc.ReqParam = taskId
task := new(entity.DataSyncTask)
task.Id = taskId
task.RunningState = entity.DataSyncTaskRunStateStop
_ = d.dataSyncTaskApp.UpdateById(rc.MetaCtx, task)
biz.ErrIsNil(d.dataSyncTaskApp.StopTask(rc.MetaCtx, taskId))
}
func (d *DataSyncTask) GetTask(rc *req.Ctx) {