From c6d30e55157e59fe7bb45f9eeaec904a8cf88ec4 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Mon, 02 Sep 2024 11:00:46 +0800 Subject: [PATCH] test和数据库连接 --- src/main/resources/mapper/modules/MallOrderItemMapper.xml | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/MallOrderItemMapper.xml b/src/main/resources/mapper/modules/MallOrderItemMapper.xml index 7cf7252..79a5ec9 100644 --- a/src/main/resources/mapper/modules/MallOrderItemMapper.xml +++ b/src/main/resources/mapper/modules/MallOrderItemMapper.xml @@ -8,11 +8,22 @@ where a.goods_id=#{goodsId} and b.member_id=#{memberId} </select> + <select id="selectItemBySkuIdUnCancel" resultType="cc.mrbird.febs.mall.entity.MallOrderItem"> + select a.* from mall_order_item a + inner join mall_order_info b on a.order_id=b.ID and b.status in (1,2,3,4) + where a.sku_id = #{skuId} and b.member_id = #{memberId} + </select> + <select id="selectListByNotInStateAndOrderId" resultType="cc.mrbird.febs.mall.entity.MallOrderItem"> select a.* from mall_order_item a where a.state != #{state} and a.order_id=#{orderId} </select> + <select id="selectListByStateAndOrderId" resultType="cc.mrbird.febs.mall.entity.MallOrderItem"> + select a.* from mall_order_item a + where a.state = #{state} and a.order_id=#{orderId} + </select> + <update id="updateStateByOrderId"> update mall_order_item set state = #{state} -- Gitblit v1.9.1