|
@@ -97,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="makeGoodsCode" column="make_goods_code"/>
|
|
<result property="makeGoodsCode" column="make_goods_code"/>
|
|
|
<result property="courseNum" column="course_num"/>
|
|
<result property="courseNum" column="course_num"/>
|
|
|
<result property="sectionNum" column="section_num"/>
|
|
<result property="sectionNum" column="section_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">
|
|
@@ -131,6 +132,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
|