From a3d54f0b768aca492e9a9f4689b3a4ec8234381e Mon Sep 17 00:00:00 2001
From: Cui Zhi Feng <7426394+wuxixiaocui@user.noreply.gitee.com>
Date: 星期四, 29 八月 2024 14:30:58 +0800
Subject: [PATCH] Merge branch 'master-v2' of http://47.96.225.205:8888/r/flowerbackend-v2 into master-v2

---
 src/main/resources/mapper/point/PointGoodsMapper.xml |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/point/PointGoodsMapper.xml b/src/main/resources/mapper/point/PointGoodsMapper.xml
new file mode 100644
index 0000000..7e1357a
--- /dev/null
+++ b/src/main/resources/mapper/point/PointGoodsMapper.xml
@@ -0,0 +1,30 @@
+<?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 &gt; #{condition.stockLower}
+        </if>
+        <if test="condition.stockUpper != null">
+            AND p.stock &lt;= #{condition.stockUpper}
+        </if>
+        <if test="condition.pointLower != null">
+            AND p.point &gt; #{condition.pointLower}
+        </if>
+        <if test="condition.pointUpper != null">
+            AND p.point &lt;= #{condition.pointUpper}
+        </if>
+        ORDER BY p.create_time desc
+    </select>
+
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.3