1234567891011121314151617181920212223242526272829303132333435 |
- <?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="io.platform.store.biz.mapper.StoreRewardMapper">
- <select id="selectStoreRewords" resultType="io.platform.base.vo.StoreScanRewordVO"
- parameterType="io.platform.base.dto.StoreScanRewordDTO">
- SELECT
- BONUS money,
- TIRE_MODEL tireModel,
- REWARD_TYPE getWay,
- TIRENUMBER tyreNum,
- CREATE_TIME createTime
- FROM
- "APP_STORE_REWARD"
- <where>
- STORE_ID = #{storeScanRewordDTO.storeId}
- <if test=" ''!= storeScanRewordDTO.brandCode and null != storeScanRewordDTO.brandCode">
- and TIRE_BRAND = #{storeScanRewordDTO.brandCode}
- </if>
- <if test=" null != storeScanRewordDTO.searchKey and '' != storeScanRewordDTO.searchKey">
- and KEYWORD LIKE #{storeScanRewordDTO.searchKey}
- </if>
- <if test="null != storeScanRewordDTO.startTime">
- and CREATE_TIME > #{storeScanRewordDTO.startTime}
- </if>
- <if test="null != storeScanRewordDTO.endTime">
- and CREATE_TIME < #{storeScanRewordDTO.endTime}
- </if>
- </where>
- ORDER BY CREATE_TIME DESC
- </select>
- </mapper>
|