作者 tangxvhui

调整sql,数据排序

@@ -573,7 +573,7 @@ func (d *TaskDao) ListTaskByHrbpV2(param ListTaskCondition) ([]ListTask, error) @@ -573,7 +573,7 @@ func (d *TaskDao) ListTaskByHrbpV2(param ListTaskCondition) ([]ListTask, error)
573 )select * 573 )select *
574 from t_task_1 574 from t_task_1
575 order by t_task_1.status, 575 order by t_task_1.status,
576 - t_task_1.warn_flag, 576 + t_task_1.warn_flag desc,
577 t_task_1.sort_by_1, 577 t_task_1.sort_by_1,
578 t_task_1.anomaly desc, 578 t_task_1.anomaly desc,
579 t_task_1.sort_by,t_task_1."created_at" 579 t_task_1.sort_by,t_task_1."created_at"
@@ -658,7 +658,7 @@ func (d *TaskDao) ListTaskNotHrbpV2(param ListTaskCondition) ([]ListTask, error) @@ -658,7 +658,7 @@ func (d *TaskDao) ListTaskNotHrbpV2(param ListTaskCondition) ([]ListTask, error)
658 )select * 658 )select *
659 from tt_task_1 659 from tt_task_1
660 order by tt_task_1.status, 660 order by tt_task_1.status,
661 - tt_task_1.warn_flag, 661 + tt_task_1.warn_flag desc,
662 tt_task_1.sort_by_1, 662 tt_task_1.sort_by_1,
663 tt_task_1.anomaly desc, 663 tt_task_1.anomaly desc,
664 tt_task_1.sort_by,tt_task_1."created_at" 664 tt_task_1.sort_by,tt_task_1."created_at"