|
@@ -40,7 +40,7 @@
|
|
|
<select id="getMyPage" parameterType="com.xjrsoft.module.activity.dto.ActivityInfoPageDto" resultType="com.xjrsoft.module.activity.vo.ActivityInfoPageVo">
|
|
|
SELECT t1.id,t1.name,t1.place,t1.start_date,t1.end_date,
|
|
|
t1.type, t4.name AS org_name, t1.enroll_end_time, t1.cover_file_id,
|
|
|
- t1.status,t1.content,t1.category,t5.status AS enroll_status FROM activity_info t1
|
|
|
+ t1.status,t1.content,t1.category,t5.status AS enroll_status,t2.name as type_cn FROM activity_info t1
|
|
|
LEFT JOIN xjr_dictionary_detail t2 ON t1.type = t2.code
|
|
|
LEFT JOIN company_coop t3 ON t1.enterprise_id = t3.id
|
|
|
LEFT JOIN xjr_department t4 ON t1.org_id = t4.id
|
|
@@ -57,14 +57,14 @@
|
|
|
a1.club_activities_content AS content,
|
|
|
a1.activity_location AS place,a1.start_time AS start_date
|
|
|
,a1.end_time AS end_date, NULL AS cover_file_id,a1.activity_type AS category,NULL AS org_name
|
|
|
- ,NULL AS enroll_end_time, 1 AS STATUS,NULL AS TYPE
|
|
|
+ ,NULL AS enroll_end_time, 1 AS STATUS,NULL AS TYPE,null as type_cn
|
|
|
FROM club_activities a1 WHERE a1.delete_mark = 0 AND a1.student_id = #{dto.loginUserId}
|
|
|
UNION
|
|
|
SELECT a2.id, a2.moral_event_name AS NAME, 1 AS enroll_status,
|
|
|
a2.event_content AS content,
|
|
|
a2.event_address AS place,a2.event_start_time AS start_date
|
|
|
,a2.event_end_time AS end_date, NULL AS cover_file_id,a2.event_type AS category,NULL AS org_name
|
|
|
- ,NULL AS enroll_end_time, 1 AS STATUS,NULL AS TYPE
|
|
|
+ ,NULL AS enroll_end_time, 1 AS STATUS,NULL AS TYPE,null as type_cn
|
|
|
FROM moral_event a2 WHERE a2.delete_mark = 0 AND
|
|
|
(a2.attend_teacher = #{dto.loginUserId} OR a2.attend_class IN (
|
|
|
SELECT class_id FROM base_student_school_roll WHERE user_id = #{dto.loginUserId}
|