|
@@ -179,6 +179,7 @@
|
|
<result property="subApplySiteStartTime" column="sub_apply_site_start_time"/>
|
|
<result property="subApplySiteStartTime" column="sub_apply_site_start_time"/>
|
|
<result property="subApplySiteEndTime" column="sub_apply_site_end_time"/>
|
|
<result property="subApplySiteEndTime" column="sub_apply_site_end_time"/>
|
|
<result property="subApplySiteExamTime" column="sub_apply_site_exam_time"/>
|
|
<result property="subApplySiteExamTime" column="sub_apply_site_exam_time"/>
|
|
|
|
+ <result property="gradeId" column="grade_id"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.zhongzheng.modules.grade.vo.ClassGradeVo" id="ClassGradeVoResult">
|
|
<resultMap type="com.zhongzheng.modules.grade.vo.ClassGradeVo" id="ClassGradeVoResult">
|
|
@@ -453,6 +454,7 @@
|
|
o.user_id,
|
|
o.user_id,
|
|
og.study_count as order_study_count,
|
|
og.study_count as order_study_count,
|
|
og.order_goods_id,
|
|
og.order_goods_id,
|
|
|
|
+ og.grade_id,
|
|
(SELECT cet.education_name FROM course_education_type cet where cet.id = g.education_type_id) as education_name,
|
|
(SELECT cet.education_name FROM course_education_type cet where cet.id = g.education_type_id) as education_name,
|
|
(SELECT cet.project_name FROM course_project_type cet where cet.id = g.project_id) as project_name,
|
|
(SELECT cet.project_name FROM course_project_type cet where cet.id = g.project_id) as project_name,
|
|
(SELECT cet.business_name FROM course_business cet where cet.id = g.business_id) as business_name,
|
|
(SELECT cet.business_name FROM course_business cet where cet.id = g.business_id) as business_name,
|
|
@@ -526,7 +528,9 @@
|
|
LEFT JOIN class_grade_goods cgg on cg.grade_id = cgg.grade_id
|
|
LEFT JOIN class_grade_goods cgg on cg.grade_id = cgg.grade_id
|
|
WHERE
|
|
WHERE
|
|
1=1
|
|
1=1
|
|
-
|
|
|
|
|
|
+ <if test="gradeId != null and gradeId != ''">
|
|
|
|
+ and cg.grade_id = #{gradeId}
|
|
|
|
+ </if>
|
|
and cg.`status` =1 and cgg.goods_id = #{goodsId} and cgu.change_grade = 0 and cgu.user_id=#{userId}
|
|
and cg.`status` =1 and cgg.goods_id = #{goodsId} and cgu.change_grade = 0 and cgu.user_id=#{userId}
|
|
order by cg.create_time desc LIMIT 1
|
|
order by cg.create_time desc LIMIT 1
|
|
</select>
|
|
</select>
|