作者 tangxvhui

更新

1 -- 数据修复 1 -- 数据修复
  2 +-- 修复node_task表数据
2 WITH t_node_task AS ( 3 WITH t_node_task AS (
3 SELECT 4 SELECT
4 * 5 *
@@ -27,6 +28,7 @@ WHERE @@ -27,6 +28,7 @@ WHERE
27 FROM 28 FROM
28 t_node_task); 29 t_node_task);
29 30
  31 +-- 修复staff_assess 数据
30 WITH t_staff_assess AS ( 32 WITH t_staff_assess AS (
31 SELECT 33 SELECT
32 row_number() OVER (PARTITION BY evaluation_project_id, 34 row_number() OVER (PARTITION BY evaluation_project_id,
@@ -65,6 +67,7 @@ WHERE @@ -65,6 +67,7 @@ WHERE
65 FROM 67 FROM
66 t_staff_assess_2); 68 t_staff_assess_2);
67 69
  70 +-- 修复staff_assess_task 数据
68 UPDATE 71 UPDATE
69 staff_assess_task 72 staff_assess_task
70 SET 73 SET
@@ -72,3 +75,13 @@ SET @@ -72,3 +75,13 @@ SET
72 WHERE 75 WHERE
73 1 = 1 76 1 = 1
74 AND cycle_id = 1653724699349225472 77 AND cycle_id = 1653724699349225472
  78 + AND begin_day = '2023-05-03';
  79 +
  80 +UPDATE
  81 + staff_assess_task
  82 +SET
  83 + step_list = '[{"sortBy":1,"endTime":"2023-05-05T08:30:00+08:00","beginTime":"2023-05-04T00:00:00+08:00","linkNodeId":1653723396699066369,"linkNodeName":"填写自评反馈","linkNodeType":1},{"sortBy":2,"endTime":"2023-05-05T08:30:00+08:00","beginTime":"2023-05-04T00:00:00+08:00","linkNodeId":1653723396699066370,"linkNodeName":"360°邀请","linkNodeType":2},{"sortBy":3,"endTime":"2023-05-05T08:30:00+08:00","beginTime":"2023-05-04T00:00:00+08:00","linkNodeId":1653723396699066371,"linkNodeName":"360°评估","linkNodeType":3},{"sortBy":4,"endTime":"2023-05-05T08:30:00+08:00","beginTime":"2023-05-04T00:00:00+08:00","linkNodeId":1653723396699066372,"linkNodeName":"上级评估","linkNodeType":4},{"sortBy":5,"endTime":"2023-05-05T08:30:00+08:00","beginTime":"2023-05-04T00:00:00+08:00","linkNodeId":1653723396699066373,"linkNodeName":"绩效结果查看","linkNodeType":5}]'
  84 +WHERE
  85 + 1 = 1
  86 + AND cycle_id = 1653724699349225472
  87 + AND begin_day = '2023-05-04'