xiaoyong931011
2021-09-22 b4ee04b14d289262fc303967412a56202b6e002f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cc.mrbird.febs.mall.mapper.MallGoodsSkuMapper">
 
 
    <select id="selectSkuInfoById" resultType="cc.mrbird.febs.mall.entity.MallGoodsSku">
        select
            a.*,
            b.name styleName,
            c.goods_name goodsName
        from mall_goods_sku a
                 inner join mall_goods_style b on a.style_id=b.ID
                 inner join mall_goods c on a.goods_id= c.ID
        where a.id=#{id}
    </select>
 
    <delete  id="deleteByGoodsId">
        delete from mall_goods_sku where goods_id = #{id}
    </delete>
 
 
    <select id="selectByGoodId" resultType="cc.mrbird.febs.mall.vo.AdminMailGoodsSkuDetailVo">
        select * from mall_goods_sku where goods_id = #{id}
    </select>
 
 
</mapper>