傅行帆 5 년 전
부모
커밋
a48584908d
1개의 변경된 파일29개의 추가작업 그리고 0개의 파일을 삭제
  1. 29
    0
      src/main/resources/mapper/Activity.xml

+ 29
- 0
src/main/resources/mapper/Activity.xml 파일 보기

@@ -72,6 +72,35 @@
72 72
         WHERE
73 73
             t.org_id = #{orgId}
74 74
             AND t.person_id = #{personId}
75
+      UNION ALL
76
+        SELECT
77
+            t.record_id AS id,
78
+            t.group_activity_id AS activityId,
79
+            t.create_time AS createDate,
80
+        CASE
81
+            WHEN t.STATUS = 1 THEN
82
+            "进行中"
83
+            WHEN t.STATUS = 0
84
+            AND t.verification_status = 1 THEN
85
+            "成功已核销"
86
+        WHEN t.STATUS = 0
87
+        AND t.verification_status != 1 THEN
88
+        "成功未核销"
89
+        WHEN t.STATUS = 2 THEN
90
+        "失败"
91
+        END `joinStatus`,
92
+            d.list_img AS mainImg,
93
+            d.activity_name AS title,
94
+            d.status,
95
+            d.start_time AS startDate,
96
+            d.end_time AS endDate,
97
+            'group' AS type
98
+        FROM
99
+            ta_share_child_record t
100
+            LEFT JOIN ta_share_activity d ON t.group_activity_id = d.group_activity_id
101
+        WHERE
102
+            t.org_id = #{orgId}
103
+            AND t.person_id = #{personId}
75 104
       UNION ALL
76 105
         SELECT
77 106
             t.help_record_initiate_id AS id,