From 35309b932b738d5a8537e53207d28004a8da0f89 Mon Sep 17 00:00:00 2001
From: gongzuming <gongzuming>
Date: 星期五, 20 九月 2024 17:17:04 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/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..e6935ff
--- /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 > #{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>
\ No newline at end of file
--
Gitblit v1.9.3