瀏覽代碼

spec order

梁彦春 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