From 00a8e2f76d02cfc17ca9ff156aa97f85bae5897d Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Mon, 09 Aug 2021 16:50:55 +0800 Subject: [PATCH] Merge branch 'score-shop' of http://120.27.238.55:7000/r/xzx into score-shop --- gc-shop/src/main/resources/mapper/shop/ScoreGoodsSkuMapper.xml | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/gc-shop/src/main/resources/mapper/shop/ScoreGoodsSkuMapper.xml b/gc-shop/src/main/resources/mapper/shop/ScoreGoodsSkuMapper.xml index 1fb0ce5..3d8e29c 100644 --- a/gc-shop/src/main/resources/mapper/shop/ScoreGoodsSkuMapper.xml +++ b/gc-shop/src/main/resources/mapper/shop/ScoreGoodsSkuMapper.xml @@ -20,4 +20,13 @@ where id=#{id} </update> + <select id="selectScoreGoodsSkuMapperByGoodId" resultType="java.lang.Integer"> + SELECT + ifnull(sum(a.stock),0) stock + FROM + xzx_score_goods_sku a + WHERE 1 = 1 + and a.goods_id = #{id} + </select> + </mapper> -- Gitblit v1.9.1