<!-- 查询全部秒杀商品 -->
<select id="selectAllSecondKillList" parameterType="Nmr_Secondkill" resultMap="nmr_SecondKillDTO">
select k.goods_id,k.goods_name,k.skill_price,k.skill_number,k.skill_time,
k.skill_state,i.goods_image,g.goods_price oldPrice from nmr_secondkill k,nmr_goods_images i,
nmr_goods g,nmr_store s where k.goods_id = g.goods_id and i.goods_id = g.goods_id
and i.is_default = 1 and g.goods_state !=0 and g.is_del=0
and s.store_state=1 and g.store_id = s.store_id and k.skill_state = 1
and to_days(from_unixtime(k.skill_time/1000))=to_days(now())
</select>
<select id="selectAllSecondKillList" parameterType="Nmr_Secondkill" resultMap="nmr_SecondKillDTO">
select k.goods_id,k.goods_name,k.skill_price,k.skill_number,k.skill_time,
k.skill_state,i.goods_image,g.goods_price oldPrice from nmr_secondkill k,nmr_goods_images i,
nmr_goods g,nmr_store s where k.goods_id = g.goods_id and i.goods_id = g.goods_id
and i.is_default = 1 and g.goods_state !=0 and g.is_del=0
and s.store_state=1 and g.store_id = s.store_id and k.skill_state = 1
and to_days(from_unixtime(k.skill_time/1000))=to_days(now())
</select>