| 对比新文件 |
| | |
| | | <?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.mzl.flower.mapper.point.PointGoodsMapper"> |
| | | |
| | | <select id="selectGoodsList" resultType="com.mzl.flower.dto.response.point.PointGoodsListDTO"> |
| | | SELECT p.* |
| | | FROM t_point_goods p |
| | | WHERE p.deleted = 0 |
| | | <if test="condition.name != null and condition.name != ''"> |
| | | AND p.name LIKE concat('%', #{condition.name},'%') |
| | | </if> |
| | | <if test="condition.status != null and condition.status != ''"> |
| | | AND p.status = #{condition.status} |
| | | </if> |
| | | <if test="condition.stockLower != null"> |
| | | AND p.stock > #{condition.stockLower} |
| | | </if> |
| | | <if test="condition.stockUpper != null"> |
| | | AND p.stock <= #{condition.stockUpper} |
| | | </if> |
| | | <if test="condition.pointLower != null"> |
| | | AND p.point >= #{condition.pointLower} |
| | | </if> |
| | | <if test="condition.pointUpper != null"> |
| | | AND p.point <= #{condition.pointUpper} |
| | | </if> |
| | | ORDER BY p.create_time desc |
| | | </select> |
| | | |
| | | </mapper> |