<?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.platform.yijia.dao.IntegralShopPicMapper">
  <!--积分规则返回结果-->
  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.IntegralShopPic">
<!--      <id     column="id"                     jdbcType="INTEGER" property="id" />-->
<!--      <result column="name"                   jdbcType="VARCHAR" property="name" />-->
<!--      <result column="url"                    jdbcType="VARCHAR" property="url" />-->
<!--      <result column="img_status"             jdbcType="VARCHAR" property="imgStatus" />-->
<!--      <result column="station_name"           jdbcType="VARCHAR" property="stationName" />-->
      <result column="station_id"             jdbcType="INTEGER" property="stationId" />
      <result column="image1"                 jdbcType="VARCHAR" property="image1" />
      <result column="image2"                 jdbcType="VARCHAR" property="image2" />
      <result column="image3"                 jdbcType="VARCHAR" property="image3" />
      <result column="image4"                 jdbcType="VARCHAR" property="image4" />
      <result column="image5"                 jdbcType="VARCHAR" property="image5" />
  </resultMap>

  <!--查询油站积分商城图片信息-->
  <select id="getIntegralShopPicList" resultMap="BaseResultMap" parameterType="com.platform.yijia.pojo.IntegralShopPic">
    SELECT
          image1,
          image2,
          image3,
          image4,
          image5
    FROM
        integral_rule
    <where>
      <if test="stationId !=null and stationId !=''">
         AND station_id = #{stationId}
      </if>
    </where>
  </select>


</mapper>
