|
|
@@ -16,6 +16,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="goodsName" column="goods_name"/>
|
|
|
<result property="code" column="code"/>
|
|
|
<result property="goodsId" column="goods_id"/>
|
|
|
+ <result property="applyId" column="apply_id"/>
|
|
|
+ <result property="applyName" column="apply_name"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="listGoods" parameterType="com.zhongzheng.modules.exam.bo.ExamApplyGoodsQueryBo" resultMap="ExamApplyGoodsVoResult">
|
|
|
@@ -46,4 +48,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND g.stand_price = #{standPrice}
|
|
|
</if>
|
|
|
</select>
|
|
|
+ <select id="listByGoodsId" parameterType="java.lang.Long" resultType="com.zhongzheng.modules.exam.vo.ExamApplyGoodsVo">
|
|
|
+ SELECT
|
|
|
+ eag.apply_id,
|
|
|
+ eag.goods_id,
|
|
|
+ ea.apply_name
|
|
|
+ FROM exam_apply_goods eag
|
|
|
+ LEFT JOIN exam_apply ea ON eag.apply_id = ea.apply_id
|
|
|
+ WHERE
|
|
|
+ goods_id = #{goodsId}
|
|
|
+ ORDER BY ea.apply_start_time
|
|
|
+ </select>
|
|
|
</mapper>
|