1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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.IntegralWaresMapper">
- <!--返回结果-->
- <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.IntegralWares">
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="wares_type" jdbcType="VARCHAR" property="waresType" />
- <result column="wares_name" jdbcType="VARCHAR" property="waresName" />
- <result column="sale_integral" jdbcType="DECIMAL" property="saleIntegral" />
- <result column="wares_pic" jdbcType="VARCHAR" property="waresPic" />
- <result column="wares_detail" jdbcType="VARCHAR" property="waresDetail" />
- <result column="wares_status" jdbcType="VARCHAR" property="waresStatus" />
- <result column="create_time" jdbcType="DATE" property="createTime" />
- <result column="create_by" jdbcType="VARCHAR" property="createBy" />
- <result column="create_name" jdbcType="VARCHAR" property="createName" />
- <result column="update_time" jdbcType="DATE" property="updateTime" />
- <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
- <result column="update_name" jdbcType="VARCHAR" property="updateName" />
- <!-- <result column="station_id" jdbcType="INTEGER" property="stationId" />-->
- </resultMap>
- <!--查询列-->
- <sql id="Base_Column_List">
- id, union_id, wares_type, wares_name, sale_integral, wares_pic, wares_detail, wares_status, create_time,
- create_by, create_name, update_time, update_by, update_name
- </sql>
- <!--查询油站商品信息-->
- <select id="getIntegralWaresInfoList" resultMap="BaseResultMap" parameterType="com.platform.yijia.pojo.IntegralWares">
- SELECT
- <include refid="Base_Column_List" />
- FROM integral_wares
- <where>
- <if test="stationId !=null and stationId !=''">
- station_id = #{stationId}
- </if>
- </where>
- </select>
- </mapper>
|