Helius
2021-08-09 00a8e2f76d02cfc17ca9ff156aa97f85bae5897d
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>