From fe287c15f5a284d5752765cead2e045beb6e7529 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 12 十一月 2020 18:38:40 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/goods/StoreOrderCartServiceDaoImplMapper.xml | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/goods/StoreOrderCartServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/goods/StoreOrderCartServiceDaoImplMapper.xml
index 4f7ff79..96ab4b7 100644
--- a/java110-db/src/main/resources/mapper/goods/StoreOrderCartServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/goods/StoreOrderCartServiceDaoImplMapper.xml
@@ -73,18 +73,14 @@
<!-- 淇敼璁㈠崟璐墿杞︿俊鎭� add by wuxw 2018-07-03 -->
<update id="updateStoreOrderCartInfo" parameterType="Map">
update store_order_cart t set t.status_cd = #{statusCd}
- <if test="newBId != null and newBId != ''">
- ,t.b_id = #{newBId}
- </if>
+
<if test="valueId !=null and valueId != ''">
, t.value_id= #{valueId}
</if>
<if test="productId !=null and productId != ''">
, t.product_id= #{productId}
</if>
- <if test="orderId !=null and orderId != ''">
- , t.order_id= #{orderId}
- </if>
+
<if test="remark !=null and remark != ''">
, t.remark= #{remark}
</if>
@@ -113,6 +109,9 @@
<if test="cartId !=null and cartId != ''">
and t.cart_id= #{cartId}
</if>
+ <if test="orderId !=null and orderId != ''">
+ and t.order_id= #{orderId}
+ </if>
</update>
--
Gitblit v1.8.0