|
@@ -50,6 +50,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="educationName" column="education_name"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+ <resultMap type="com.zhongzheng.modules.exam.domain.ExamNumber" id="ExamNumberResult">
|
|
|
+ <result property="examNumberId" column="exam_number_id"/>
|
|
|
+ <result property="code" column="code"/>
|
|
|
+ <result property="examNumber" column="exam_number"/>
|
|
|
+ <result property="doNumber" column="do_number"/>
|
|
|
+ <result property="status" column="status"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
+ <result property="goodsType" column="goods_type"/>
|
|
|
+ <result property="educationTypeId" column="education_type_id"/>
|
|
|
+ <result property="businessId" column="business_id"/>
|
|
|
+ <result property="projectId" column="project_id"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
<select id="listUserExam" parameterType="com.zhongzheng.modules.user.bo.UserExamGoodsQueryBo" resultMap="UserExamGoodsVo">
|
|
|
SELECT
|
|
|
*,
|
|
@@ -95,13 +109,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND ueg.goods_id = #{goodsId}
|
|
|
</select>
|
|
|
|
|
|
- <select id="queryExamGoodsVo" parameterType="map" resultMap="UserExamGoodsVo">
|
|
|
+ <select id="queryExamGoodsVo" parameterType="map" resultMap="ExamNumberResult">
|
|
|
SELECT
|
|
|
en.*
|
|
|
FROM
|
|
|
exam_number en
|
|
|
LEFT JOIN exam_number_goods eng on eng.exam_number_id = en.exam_number_id
|
|
|
where 1=1
|
|
|
- AND ueg.goods_id = #{goodsId}
|
|
|
+ AND eng.goods_id = #{goodsId}
|
|
|
</select>
|
|
|
</mapper>
|