|
|
@@ -172,6 +172,13 @@
|
|
|
<result property="orderGoodsId" column="order_goods_id"/>
|
|
|
<result property="profileStatus" column="profile_status"/>
|
|
|
<result property="profileTpStatus" column="profile_tp_status"/>
|
|
|
+
|
|
|
+ <result property="subExamStatus" column="sub_exam_status"/>
|
|
|
+ <result property="subPerformance" column="sub_performance"/>
|
|
|
+ <result property="subResult" column="sub_result"/>
|
|
|
+ <result property="subApplySiteStartTime" column="sub_apply_site_start_time"/>
|
|
|
+ <result property="subApplySiteEndTime" column="sub_apply_site_end_time"/>
|
|
|
+ <result property="subApplySiteExamTime" column="sub_apply_site_exam_time"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.zhongzheng.modules.grade.vo.ClassGradeVo" id="ClassGradeVoResult">
|
|
|
@@ -452,6 +459,15 @@
|
|
|
(SELECT eb.before_name FROM exam_before_goods ebg LEFT JOIN exam_before eb on ebg.before_id = eb.before_id where ebg.goods_id = g.goods_id and eb.`status` = 1 and unix_timestamp(now()) BETWEEN eb.before_start_time and eb.before_end_time) as before_name,
|
|
|
(SELECT `status` from user_profile where user_id = o.user_id and goods_id = g.goods_id and current_status = 1 and type_status = 1 limit 1 ) as profile_status,
|
|
|
(case WHEN(SELECT COUNT(1) from profile_tp where `status`=1 and FIND_IN_SET(g.goods_id,goods_ids) ) >0 then 1 ELSE 0 end) as profile_tp_status
|
|
|
+ <if test="userId != null and userId != ''">
|
|
|
+ ,
|
|
|
+ (SELECT exam_status from user_subscribe where user_id = 18 and goods_id = g.goods_id and subscribe_status = 1 ORDER BY subscribe_id desc limit 1)as sub_exam_status,
|
|
|
+ (SELECT performance from user_subscribe where user_id = 18 and goods_id = g.goods_id and subscribe_status = 1 ORDER BY subscribe_id desc limit 1)as sub_performance,
|
|
|
+ (SELECT `result` from user_subscribe where user_id = 18 and goods_id = g.goods_id and subscribe_status = 1 ORDER BY subscribe_id desc limit 1)as sub_result,
|
|
|
+ (SELECT apply_site_start_time from user_subscribe where user_id = 18 and goods_id = g.goods_id and subscribe_status = 1 ORDER BY subscribe_id desc limit 1)as sub_apply_site_start_time,
|
|
|
+ (SELECT apply_site_end_time from user_subscribe where user_id = 18 and goods_id = g.goods_id and subscribe_status = 1 ORDER BY subscribe_id desc limit 1)as sub_apply_site_end_time,
|
|
|
+ (SELECT apply_site_exam_time from user_subscribe where user_id = 18 and goods_id = g.goods_id and subscribe_status = 1 ORDER BY subscribe_id desc limit 1)as sub_apply_site_exam_time
|
|
|
+ </if>
|
|
|
FROM
|
|
|
`order` o
|
|
|
LEFT JOIN order_goods og ON og.order_sn = o.order_sn
|