From d9e5ab959b7ff2c578672938c205a7a82765ef9f Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 15 八月 2023 09:15:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 inventory-server/src/main/resources/mapper/RepertoryMapper.xml |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
index b556cba..11d1608 100644
--- a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
+++ b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -14,7 +14,7 @@
         <where>
             and state=1
             <if test="name!=null and name!=''">
-                and name LIKE  CONCAT('%',#{name},'%')
+                and name LIKE CONCAT('%',#{name},'%')
             </if>
             <if test="specifications!=null and specifications!=''">
                 and specifications LIKE CONCAT('%',#{specifications},'%')
@@ -28,6 +28,13 @@
             <if test="checkState!=null and checkState!=''">
                 and check_state=#{checkState}
             </if>
+            order by id desc
         </where>
     </select>
+    <!--鏌ヨ搴撳瓨涓変釜瀛楁缁欐坊鍔犻攢鍞崟-->
+    <select id="getSale" resultType="java.util.Map">
+        select id, name, specifications, unit
+        from mom_ocean.repertory
+        where state = 1
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3