梁彦春 6 年 前
コミット
b11a658efe
共有1 個のファイルを変更した3 個の追加2 個の削除を含む
  1. 3
    2
      src/main/resources/mapper/TaGoodsOrdersMapper.xml

+ 3
- 2
src/main/resources/mapper/TaGoodsOrdersMapper.xml ファイルの表示

@@ -14,12 +14,13 @@
14 14
                 and user_id = #{userId}
15 15
             </if>
16 16
             <if test="ordersNo !=null and ordersNo !=''">
17
-                and orders_no LIKE = #{ordersNo}
17
+                and orders_no = #{ordersNo}
18 18
             </if>
19 19
             <if test="customerId !=null and customerId !=''">
20
-                and customer_id LIKE = #{customerId}
20
+                and customer_id = #{customerId}
21 21
             </if>
22 22
         </where>
23
+        order by create_date desc
23 24
     </select>
24 25
     <select id="getRecentOrder" resultType="com.huiju.welcome.model.TaGoodsOrders">
25 26
         SELECT