|
@@ -125,7 +125,8 @@ PUBLIC
|
|
|
O.SALES_ADDRESS_INFO, O.SALES_ADDRESS_NAME,
|
|
|
O.SALES_USER_REMARK, O.SALES_POST_NUM, O.SALES_POST_FIRM,
|
|
|
O.SALES_SEND_DATE, O.SALES_ADDRESS_POSTNUM,
|
|
|
- O.SALES_ADDRESS_TEL , 45*60-TIMESTAMPDIFF(SECOND,O.SALES_CREATE_DATE,NOW()) SALES_ADMIN_REMARK
|
|
|
+ O.SALES_ADDRESS_TEL , 45*60-TIMESTAMPDIFF(SECOND,O.SALES_CREATE_DATE,NOW()) SALES_ADMIN_REMARK,
|
|
|
+ O.sales_is_spell_order salesIsSpellOrder,O.sales_spell_order_id salesSpellOrderId
|
|
|
FROM
|
|
|
TB_IAMBERRY_SHOP_SALES_ORDER O LEFT JOIN TB_IAMBERRY_SHOP_ORDER_ITEM I
|
|
|
ON O.SALES_ORDERID = I.ITEM_SALES_ORDERID
|
|
@@ -162,6 +163,8 @@ PUBLIC
|
|
|
<result column="SALES_ADMIN_REMARK" property="salesAdminRemark"/>
|
|
|
<result column="SALES_ADDRESS_POSTNUM" property="salesAddressPostnum"/>
|
|
|
<result column="SALES_ADDRESS_TEL" property="salesAddressTel"/>
|
|
|
+ <result column="sales_is_spell_order" property="salesIsSpellOrder"/>
|
|
|
+ <result column="sales_spell_order_id" property="salesSpellOrderId"/>
|
|
|
<collection property="orderItemList" column="SALES_ORDERID" ofType="OrderItem" select="getOrderItemByOrderId"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -179,7 +182,7 @@ PUBLIC
|
|
|
LEFT JOIN TB_IAMBERRY_PRODUCT_COLOR c ON i.ITEM_COLOR_ID = c.COLOR_ID
|
|
|
WHERE
|
|
|
I.ITEM_SALES_ORDERID = #{itemSalesOrderid}
|
|
|
- ORDER BY I.ITEM_ID DESC
|
|
|
+ ORDER BY I.ITEM_ID
|
|
|
</select>
|
|
|
|
|
|
<!-- 根据openid查询订单数量 -->
|
|
@@ -210,9 +213,9 @@ PUBLIC
|
|
|
O.SALES_USER_REMARK salesUserRemark, O.SALES_POST_NUM salesPostNum, O.SALES_POST_FIRM salesPostFirm,
|
|
|
O.SALES_SEND_DATE salesSendDate, O.SALES_ADDRESS_POSTNUM salesAddressPostnum,O.SALES_ADDRESS_TEL salesAddressTel,
|
|
|
O.SALES_LOCK_TYPE salesLockType,O.SALES_COUPON_RECEIVE_ID salesCouponReceiveId,
|
|
|
- O.SALES_BALANCE_AMOUNT balancePayAmount
|
|
|
+ O.SALES_BALANCE_AMOUNT balancePayAmount,O.sales_is_spell_order salesIsSpellOrder,O.sales_spell_order_id salesSpellOrderId
|
|
|
FROM
|
|
|
- TB_IAMBERRY_SHOP_SALES_ORDER O
|
|
|
+ TB_IAMBERRY_SHOP_SALES_ORDER O
|
|
|
WHERE
|
|
|
O.SALES_ORDERID = #{0}
|
|
|
AND
|
|
@@ -256,7 +259,7 @@ PUBLIC
|
|
|
C.CART_ID cartId, G.PRODUCT_ID cartProductId, pc.COLOR_ID cartColorId, G.PRODUCT_STATUS productStatus,
|
|
|
C.CART_NUM cartNum, G.PRODUCT_NAME productName, pc.COLOR_DISCOUNT productPrice,
|
|
|
G.PRODUCT_INTRODUCE_IMG productIntroduceImg, pc.COLOR_PRICE productDiscount, PC.COLOR_69CODE productRemark,
|
|
|
- pc.COLOR_NAME productColor, G.PRODUCT_TYPE productType ,G.product_color_des,PC.color_img AS colorImg
|
|
|
+ pc.COLOR_NAME productColor, G.PRODUCT_TYPE productType ,G.product_color_des,PC.color_img AS colorImg,G.product_is_spell AS productIsSpell,PC.color_spell_amount AS colorSpellAmount
|
|
|
FROM
|
|
|
TB_IAMBERRY_SHOP_CART C
|
|
|
LEFT JOIN TB_IAMBERRY_PRODUCT_INFO G ON C.CART_PRODUCT_ID = G.PRODUCT_ID
|
|
@@ -291,12 +294,12 @@ PUBLIC
|
|
|
</foreach>
|
|
|
)
|
|
|
</delete>
|
|
|
-
|
|
|
+
|
|
|
<!-- 根据orderId修改订单状态 -->
|
|
|
<update id="updateOrderByOrderId" parameterType="Order">
|
|
|
UPDATE
|
|
|
TB_IAMBERRY_SHOP_SALES_ORDER
|
|
|
- SET
|
|
|
+ SET
|
|
|
SALES_STATUS = #{salesStatus},
|
|
|
SALES_RETURN_DATE = NOW()
|
|
|
<if test="couponId!=null and couponId!=''" >
|