xiangpei
2025-06-24 4f89ece90fca89b667a244376605f9190a234b80
视频商品购买数据结构调整
5个文件已修改
1个文件已删除
49 ■■■■■ 已修改文件
framework/src/main/java/cn/lili/modules/lmk/domain/entity/VideoGoods.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/cn/lili/modules/lmk/domain/vo/VideoGoodsDetailVO.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/cn/lili/modules/lmk/domain/vo/VideoGoodsPublishVO.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/cn/lili/modules/lmk/domain/vo/VideoGoodsVO.java 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/resources/mapper/lmk/VideoMapper.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/cn/lili/modules/lmk/domain/entity/VideoGoods.java
@@ -31,6 +31,10 @@
    /** 商品id */
    private String goodsId;
    @TableField("goods_sku_id")
    /** 商品sku id */
    private String goodsSkuId;
    @TableField("order_num")
    /** 排序 */
    private Integer orderNum;
framework/src/main/java/cn/lili/modules/lmk/domain/vo/VideoGoodsDetailVO.java
@@ -16,6 +16,9 @@
    @ApiModelProperty("商品id")
    private String goodsId;
    @ApiModelProperty("商品skuid")
    private String id;
    @ApiModelProperty("商品名称")
    private String goodsName;
framework/src/main/java/cn/lili/modules/lmk/domain/vo/VideoGoodsPublishVO.java
@@ -15,6 +15,9 @@
    @ApiModelProperty("商品id")
    private String goodsId;
    @ApiModelProperty("sku")
    private String goodsSkuId;
    @ApiModelProperty("商品数量")
    private Integer goodsNum;
framework/src/main/java/cn/lili/modules/lmk/domain/vo/VideoGoodsVO.java
File was deleted
framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoServiceImpl.java
@@ -197,6 +197,7 @@
                VideoGoods e = new VideoGoods();
                e.setVideoId(video.getId());
                e.setGoodsId(form.getGoodsList().get(i).getGoodsId());
                e.setGoodsSkuId(form.getGoodsList().get(i).getGoodsSkuId());
                e.setGoodsNum(form.getGoodsList().get(i).getGoodsNum());
                e.setOrderNum(i);
                videoGoods.add(e);
@@ -260,6 +261,7 @@
                VideoGoods e = new VideoGoods();
                e.setVideoId(video.getId());
                e.setGoodsId(form.getGoodsList().get(i).getGoodsId());
                e.setGoodsSkuId(form.getGoodsList().get(i).getGoodsSkuId());
                e.setGoodsNum(form.getGoodsList().get(i).getGoodsNum());
                e.setOrderNum(i);
                videoGoods.add(e);
framework/src/main/resources/mapper/lmk/VideoMapper.xml
@@ -28,6 +28,7 @@
    <resultMap id="VideoGoodsMap" type="cn.lili.modules.lmk.domain.vo.VideoGoodsDetailVO">
        <result column="goods_id" property="goodsId"/>
        <result column="goods_sku_id" property="id"/>
        <result column="goods_num" property="goodsNum"/>
        <result column="goods_name" property="goodsName"/>
        <result column="thumbnail" property="thumbnail"/>
@@ -37,6 +38,7 @@
    <select id="getVideoGoods" parameterType="string" resultMap="VideoGoodsMap">
        SELECT
               LVG.goods_id,
               LVG.goods_sku_id,
               LVG.goods_num,
               LVG.order_num,
               LG.goods_name,
@@ -219,6 +221,7 @@
            LV.weight,
            LV.audit_pass_time,
            LV.update_time,
            LV.create_time,
            LV.video_content_type,
            LV.video_type,
            LV.video_imgs,
@@ -230,6 +233,8 @@
            LEFT JOIN li_member LM ON LV.author_id = LM.id
        WHERE
            LV.delete_flag = 0 AND LV.status = '1' AND LV.video_type = #{query.videoType}
        ORDER BY
            LV.create_time DESC
    </select>
    <select id="recommendHealthVideo" resultMap="WxResultMap">
        SELECT