限时购接口添加
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.macro.mall.dao.SmsFlashPromotionProductRelationDao">
|
||||
<resultMap id="flashProductMap" type="com.macro.mall.dto.SmsFlashPromotionProduct" extends="com.macro.mall.mapper.SmsFlashPromotionProductRelationMapper.BaseResultMap">
|
||||
<association property="product" resultMap="com.macro.mall.mapper.PmsProductMapper.BaseResultMap" columnPrefix="p_"/>
|
||||
</resultMap>
|
||||
<select id="getList" resultMap="flashProductMap">
|
||||
SELECT
|
||||
r.id,
|
||||
r.flash_promotion_price,
|
||||
r.flash_promotion_count,
|
||||
r.flash_promotion_limit,
|
||||
r.sort,
|
||||
p.id p_id,
|
||||
p.`name` p_name,
|
||||
p.product_sn p_product_sn,
|
||||
p.price p_price,
|
||||
p.stock p_stock
|
||||
FROM
|
||||
sms_flash_promotion_product_relation r
|
||||
LEFT JOIN pms_product p ON r.product_id = p.id
|
||||
WHERE
|
||||
r.flash_promotion_id = #{flashPromotionId}
|
||||
AND r.flash_promotion_session_id = #{flashPromotionSessionId}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user