lierqiang 2 年之前
父節點
當前提交
103102024a
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      server/conf_task.py

+ 4 - 1
server/conf_task.py

@@ -227,7 +227,7 @@ def getAllTask():
                 create_task_user=task_info['create_task_user'],
                 create_task_user=task_info['create_task_user'],
                 insert_time=task_info['insert_time'] * 1000,
                 insert_time=task_info['insert_time'] * 1000,
                 update_task_user=task_info['update_task_user'],
                 update_task_user=task_info['update_task_user'],
-                update_time=task_info['update_time']
+                update_time=task_info['update_time'] * 1000
             )
             )
             task_list.append(task_data)
             task_list.append(task_data)
 
 
@@ -278,6 +278,9 @@ def updateTask():
         task_id = data.get('task_id')
         task_id = data.get('task_id')
         task_info = data.get('task_info')
         task_info = data.get('task_info')
         values = ''
         values = ''
+        task_info['min_publish_time'] = task_info['min_publish_time']/1000
+        task_info['next_time'] = task_info['next_time']/1000
+
         for k, v in task_info.items():
         for k, v in task_info.items():
             if isinstance(v, int):
             if isinstance(v, int):
                 values += f'{k}={v},'
                 values += f'{k}={v},'