|
@@ -101,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="sectionNum" column="section_num"/>
|
|
<result property="sectionNum" column="section_num"/>
|
|
|
<result property="serviceTimeType" column="service_time_type"/>
|
|
<result property="serviceTimeType" column="service_time_type"/>
|
|
|
<result property="serviceTimeNum" column="service_time_num"/>
|
|
<result property="serviceTimeNum" column="service_time_num"/>
|
|
|
|
|
+ <result property="gradeNum" column="grade_num"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap type="com.zhongzheng.modules.exam.vo.ExamNumberGoodsVo" id="ExamNumberGoodsVoResult">
|
|
<resultMap type="com.zhongzheng.modules.exam.vo.ExamNumberGoodsVo" id="ExamNumberGoodsVoResult">
|
|
@@ -135,6 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
</if>
|
|
|
<if test="goodsType ==1">
|
|
<if test="goodsType ==1">
|
|
|
, (SELECT count(*) FROM goods_course where goods_id =g.goods_id ) as course_num
|
|
, (SELECT count(*) FROM goods_course where goods_id =g.goods_id ) as course_num
|
|
|
|
|
+ , (SELECT count(*) FROM class_grade_goods where goods_id =g.goods_id ) as grade_num
|
|
|
</if>
|
|
</if>
|
|
|
FROM
|
|
FROM
|
|
|
goods g
|
|
goods g
|