|
@@ -120,6 +120,8 @@
|
|
|
<result property="sevenClassCopy" column="seven_class_copy"/>
|
|
|
<result property="studyStatus" column="study_status"/>
|
|
|
<result property="mailSign" column="mail_sign"/>
|
|
|
+ <result property="profileStatus" column="profile_status"/>
|
|
|
+ <result property="profileChangeStatus" column="profile_change_status"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectListBybo" parameterType="com.zhongzheng.modules.order.bo.OrderGoodsQueryBo"
|
|
@@ -501,6 +503,8 @@
|
|
|
us.apply_site_exam_time as sub_apply_site_exam_time,
|
|
|
(SELECT COUNT(1) FROM goods_course gc where gc.goods_id = g.goods_id) as course_num,
|
|
|
og.study_count as user_study_count,
|
|
|
+ (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 and order_goods_id = og.order_goods_id limit 1 ) as profile_status,
|
|
|
+ (SELECT change_status from user_profile where user_id = o.user_id and goods_id = g.goods_id and current_status = 1 and type_status = 1 and order_goods_id = og.order_goods_id limit 1 ) as profile_change_status,
|
|
|
(SELECT count(*) from user_study_record usr where usr.user_id = o.user_id and usr.order_goods_id = og.order_goods_id) as study_status
|
|
|
FROM
|
|
|
order_goods og
|