Explorar o código

商品每日销量汇总表

yubin hai 4 semanas
pai
achega
81a5f65d50

+ 669 - 0
mall-api/src/main/java/com/txz/mall/dto/DailySalesSummaryOfProductsDTO.java

@@ -0,0 +1,669 @@
+/*
+*
+* DailySalesSummaryOfProductsDTO.java
+* Copyright(C) 2017-2020 fendo公司
+* @date 2025-10-20
+*/
+package com.txz.mall.dto;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class DailySalesSummaryOfProductsDTO implements Serializable {
+    /**
+     * 商品id
+     */
+    private Long id;
+
+    /**
+     * 商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)
+     */
+    private Byte merId;
+
+    /**
+     * 商品图片(主图)
+     */
+    private String image;
+
+    /**
+     * 商品名称
+     */
+    private String storeName;
+
+    /**
+     * 商品简介
+     */
+    private String storeInfo;
+
+    /**
+     * 关键字(副标题)
+     */
+    private String keyword;
+
+    /**
+     * 分类id
+     */
+    private String cateId;
+
+    /**
+     * 商品价格
+     */
+    private BigDecimal price;
+
+    /**
+     * 会员价格
+     */
+    private BigDecimal vipPrice;
+
+    /**
+     * 市场价
+     */
+    private BigDecimal otPrice;
+
+    /**
+     * 邮费
+     */
+    private BigDecimal postage;
+
+    /**
+     * 单位名
+     */
+    private String unitName;
+
+    /**
+     * 每日销量快照
+     */
+    private Integer sales;
+
+    /**
+     * 每日销量增量
+     */
+    private Integer daySales;
+
+    /**
+     * 每日库存快照
+     */
+    private Integer stock;
+
+    /**
+     * 每日库存增量
+     */
+    private Integer dayStock;
+
+    /**
+     * 每日虚拟销量快照
+     */
+    private Integer ficti;
+
+    /**
+     * 每日虚拟销量增量
+     */
+    private Integer dayFicti;
+
+    /**
+     * 主图视频链接
+     */
+    private String videoLink;
+
+    /**
+     * 规格 0单 1多
+     */
+    private Boolean specType;
+
+    /**
+     * 活动显示排序0=默认, 1=秒杀,2=砍价,3=拼团
+     */
+    private String activity;
+
+    /**
+     * 创建人id
+     */
+    private Long createUserId;
+
+    /**
+     * 创建时间
+     */
+    private Date createTime;
+
+    /**
+     * 统计时间
+     */
+    private Date statisticalDate;
+
+    /**
+     * 更新人id
+     */
+    private Long updateUserId;
+
+    /**
+     * 更新时间
+     */
+    private Date updateTime;
+
+    /**
+     * 货号
+     */
+    private String itemNumber;
+
+    /**
+     * 品牌
+     */
+    private String itemBrand;
+
+    /**
+     * 版本号
+     */
+    private Integer version;
+
+    /**
+     * 轮播图(白底图)
+     */
+    private String sliderImage;
+
+    /**
+     * 展示图(详情图)
+     */
+    private String flatPattern;
+
+    /**
+     * m_daily_sales_summary_of_products
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 商品id
+     * @return id 商品id
+     */
+    public Long getId() {
+        return id;
+    }
+
+    /**
+     * 商品id
+     * @param id 商品id
+     */
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    /**
+     * 商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)
+     * @return mer_id 商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)
+     */
+    public Byte getMerId() {
+        return merId;
+    }
+
+    /**
+     * 商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)
+     * @param merId 商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)
+     */
+    public void setMerId(Byte merId) {
+        this.merId = merId;
+    }
+
+    /**
+     * 商品图片(主图)
+     * @return image 商品图片(主图)
+     */
+    public String getImage() {
+        return image;
+    }
+
+    /**
+     * 商品图片(主图)
+     * @param image 商品图片(主图)
+     */
+    public void setImage(String image) {
+        this.image = image;
+    }
+
+    /**
+     * 商品名称
+     * @return store_name 商品名称
+     */
+    public String getStoreName() {
+        return storeName;
+    }
+
+    /**
+     * 商品名称
+     * @param storeName 商品名称
+     */
+    public void setStoreName(String storeName) {
+        this.storeName = storeName;
+    }
+
+    /**
+     * 商品简介
+     * @return store_info 商品简介
+     */
+    public String getStoreInfo() {
+        return storeInfo;
+    }
+
+    /**
+     * 商品简介
+     * @param storeInfo 商品简介
+     */
+    public void setStoreInfo(String storeInfo) {
+        this.storeInfo = storeInfo;
+    }
+
+    /**
+     * 关键字(副标题)
+     * @return keyword 关键字(副标题)
+     */
+    public String getKeyword() {
+        return keyword;
+    }
+
+    /**
+     * 关键字(副标题)
+     * @param keyword 关键字(副标题)
+     */
+    public void setKeyword(String keyword) {
+        this.keyword = keyword;
+    }
+
+    /**
+     * 分类id
+     * @return cate_id 分类id
+     */
+    public String getCateId() {
+        return cateId;
+    }
+
+    /**
+     * 分类id
+     * @param cateId 分类id
+     */
+    public void setCateId(String cateId) {
+        this.cateId = cateId;
+    }
+
+    /**
+     * 商品价格
+     * @return price 商品价格
+     */
+    public BigDecimal getPrice() {
+        return price;
+    }
+
+    /**
+     * 商品价格
+     * @param price 商品价格
+     */
+    public void setPrice(BigDecimal price) {
+        this.price = price;
+    }
+
+    /**
+     * 会员价格
+     * @return vip_price 会员价格
+     */
+    public BigDecimal getVipPrice() {
+        return vipPrice;
+    }
+
+    /**
+     * 会员价格
+     * @param vipPrice 会员价格
+     */
+    public void setVipPrice(BigDecimal vipPrice) {
+        this.vipPrice = vipPrice;
+    }
+
+    /**
+     * 市场价
+     * @return ot_price 市场价
+     */
+    public BigDecimal getOtPrice() {
+        return otPrice;
+    }
+
+    /**
+     * 市场价
+     * @param otPrice 市场价
+     */
+    public void setOtPrice(BigDecimal otPrice) {
+        this.otPrice = otPrice;
+    }
+
+    /**
+     * 邮费
+     * @return postage 邮费
+     */
+    public BigDecimal getPostage() {
+        return postage;
+    }
+
+    /**
+     * 邮费
+     * @param postage 邮费
+     */
+    public void setPostage(BigDecimal postage) {
+        this.postage = postage;
+    }
+
+    /**
+     * 单位名
+     * @return unit_name 单位名
+     */
+    public String getUnitName() {
+        return unitName;
+    }
+
+    /**
+     * 单位名
+     * @param unitName 单位名
+     */
+    public void setUnitName(String unitName) {
+        this.unitName = unitName;
+    }
+
+    /**
+     * 每日销量快照
+     * @return sales 每日销量快照
+     */
+    public Integer getSales() {
+        return sales;
+    }
+
+    /**
+     * 每日销量快照
+     * @param sales 每日销量快照
+     */
+    public void setSales(Integer sales) {
+        this.sales = sales;
+    }
+
+    /**
+     * 每日销量增量
+     * @return day_sales 每日销量增量
+     */
+    public Integer getDaySales() {
+        return daySales;
+    }
+
+    /**
+     * 每日销量增量
+     * @param daySales 每日销量增量
+     */
+    public void setDaySales(Integer daySales) {
+        this.daySales = daySales;
+    }
+
+    /**
+     * 每日库存快照
+     * @return stock 每日库存快照
+     */
+    public Integer getStock() {
+        return stock;
+    }
+
+    /**
+     * 每日库存快照
+     * @param stock 每日库存快照
+     */
+    public void setStock(Integer stock) {
+        this.stock = stock;
+    }
+
+    /**
+     * 每日库存增量
+     * @return day_stock 每日库存增量
+     */
+    public Integer getDayStock() {
+        return dayStock;
+    }
+
+    /**
+     * 每日库存增量
+     * @param dayStock 每日库存增量
+     */
+    public void setDayStock(Integer dayStock) {
+        this.dayStock = dayStock;
+    }
+
+    /**
+     * 每日虚拟销量快照
+     * @return ficti 每日虚拟销量快照
+     */
+    public Integer getFicti() {
+        return ficti;
+    }
+
+    /**
+     * 每日虚拟销量快照
+     * @param ficti 每日虚拟销量快照
+     */
+    public void setFicti(Integer ficti) {
+        this.ficti = ficti;
+    }
+
+    /**
+     * 每日虚拟销量增量
+     * @return day_ficti 每日虚拟销量增量
+     */
+    public Integer getDayFicti() {
+        return dayFicti;
+    }
+
+    /**
+     * 每日虚拟销量增量
+     * @param dayFicti 每日虚拟销量增量
+     */
+    public void setDayFicti(Integer dayFicti) {
+        this.dayFicti = dayFicti;
+    }
+
+    /**
+     * 主图视频链接
+     * @return video_link 主图视频链接
+     */
+    public String getVideoLink() {
+        return videoLink;
+    }
+
+    /**
+     * 主图视频链接
+     * @param videoLink 主图视频链接
+     */
+    public void setVideoLink(String videoLink) {
+        this.videoLink = videoLink;
+    }
+
+    /**
+     * 规格 0单 1多
+     * @return spec_type 规格 0单 1多
+     */
+    public Boolean getSpecType() {
+        return specType;
+    }
+
+    /**
+     * 规格 0单 1多
+     * @param specType 规格 0单 1多
+     */
+    public void setSpecType(Boolean specType) {
+        this.specType = specType;
+    }
+
+    /**
+     * 活动显示排序0=默认, 1=秒杀,2=砍价,3=拼团
+     * @return activity 活动显示排序0=默认, 1=秒杀,2=砍价,3=拼团
+     */
+    public String getActivity() {
+        return activity;
+    }
+
+    /**
+     * 活动显示排序0=默认, 1=秒杀,2=砍价,3=拼团
+     * @param activity 活动显示排序0=默认, 1=秒杀,2=砍价,3=拼团
+     */
+    public void setActivity(String activity) {
+        this.activity = activity;
+    }
+
+    /**
+     * 创建人id
+     * @return create_user_id 创建人id
+     */
+    public Long getCreateUserId() {
+        return createUserId;
+    }
+
+    /**
+     * 创建人id
+     * @param createUserId 创建人id
+     */
+    public void setCreateUserId(Long createUserId) {
+        this.createUserId = createUserId;
+    }
+
+    /**
+     * 创建时间
+     * @return create_time 创建时间
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * 创建时间
+     * @param createTime 创建时间
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * 统计时间
+     * @return statistical_date 统计时间
+     */
+    public Date getStatisticalDate() {
+        return statisticalDate;
+    }
+
+    /**
+     * 统计时间
+     * @param statisticalDate 统计时间
+     */
+    public void setStatisticalDate(Date statisticalDate) {
+        this.statisticalDate = statisticalDate;
+    }
+
+    /**
+     * 更新人id
+     * @return update_user_id 更新人id
+     */
+    public Long getUpdateUserId() {
+        return updateUserId;
+    }
+
+    /**
+     * 更新人id
+     * @param updateUserId 更新人id
+     */
+    public void setUpdateUserId(Long updateUserId) {
+        this.updateUserId = updateUserId;
+    }
+
+    /**
+     * 更新时间
+     * @return update_time 更新时间
+     */
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    /**
+     * 更新时间
+     * @param updateTime 更新时间
+     */
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    /**
+     * 货号
+     * @return item_number 货号
+     */
+    public String getItemNumber() {
+        return itemNumber;
+    }
+
+    /**
+     * 货号
+     * @param itemNumber 货号
+     */
+    public void setItemNumber(String itemNumber) {
+        this.itemNumber = itemNumber;
+    }
+
+    /**
+     * 品牌
+     * @return item_brand 品牌
+     */
+    public String getItemBrand() {
+        return itemBrand;
+    }
+
+    /**
+     * 品牌
+     * @param itemBrand 品牌
+     */
+    public void setItemBrand(String itemBrand) {
+        this.itemBrand = itemBrand;
+    }
+
+    /**
+     * 版本号
+     * @return version 版本号
+     */
+    public Integer getVersion() {
+        return version;
+    }
+
+    /**
+     * 版本号
+     * @param version 版本号
+     */
+    public void setVersion(Integer version) {
+        this.version = version;
+    }
+
+    /**
+     * 轮播图(白底图)
+     * @return slider_image 轮播图(白底图)
+     */
+    public String getSliderImage() {
+        return sliderImage;
+    }
+
+    /**
+     * 轮播图(白底图)
+     * @param sliderImage 轮播图(白底图)
+     */
+    public void setSliderImage(String sliderImage) {
+        this.sliderImage = sliderImage;
+    }
+
+    /**
+     * 展示图(详情图)
+     * @return flat_pattern 展示图(详情图)
+     */
+    public String getFlatPattern() {
+        return flatPattern;
+    }
+
+    /**
+     * 展示图(详情图)
+     * @param flatPattern 展示图(详情图)
+     */
+    public void setFlatPattern(String flatPattern) {
+        this.flatPattern = flatPattern;
+    }
+}

+ 27 - 0
mall-interface/src/main/java/com/txz/mall/service/DailySalesSummaryOfProductsServiceClient.java

@@ -0,0 +1,27 @@
+package com.txz.mall.service;
+
+
+import com.txz.mall.dto.*;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.*;
+import java.util.List;
+
+
+@FeignClient("mall")
+public interface DailySalesSummaryOfProductsServiceClient {
+
+	@RequestMapping( value = {"/daily/sales/summary/of/products/add"}, method = {RequestMethod.POST} )
+    public Result add(@RequestBody DailySalesSummaryOfProductsDPO dailySalesSummaryOfProducts,@RequestParam("userId") Long userId);
+
+	@RequestMapping( value = {"/daily/sales/summary/of/products/delete"}, method = {RequestMethod.POST} )
+	public Result delete(@RequestParam("id") Integer id,@RequestParam("userId") Long userId);
+
+	@RequestMapping( value = {"/daily/sales/summary/of/products/update"}, method = {RequestMethod.POST} )
+	public Result update(@RequestBody DailySalesSummaryOfProductsDPO dailySalesSummaryOfProducts,@RequestParam("userId") Long userId);
+
+	@RequestMapping( value = {"/daily/sales/summary/of/products/detail"}, method = {RequestMethod.POST} )
+	public Result<DailySalesSummaryOfProductsDPO> detail(@RequestParam("id") Integer id,@RequestParam("userId") Long userId);
+
+	@RequestMapping( value = {"/daily/sales/summary/of/products/list"}, method = {RequestMethod.POST} )
+	public Result<List<DailySalesSummaryOfProductsDPO>> list(@RequestBody DailySalesSummaryOfProductsDPO dailySalesSummaryOfProducts, @RequestParam("page") Integer page, @RequestParam("size") Integer size,@RequestParam("userId") Long userId);
+}

+ 7 - 0
mall-service/src/main/java/com/txz/mall/dao/DailySalesSummaryOfProductsMapper.java

@@ -0,0 +1,7 @@
+package com.txz.mall.dao;
+
+import com.txz.mall.core.Mapper;
+import com.txz.mall.model.DailySalesSummaryOfProducts;
+
+public interface DailySalesSummaryOfProductsMapper extends Mapper<DailySalesSummaryOfProducts> {
+}

+ 748 - 0
mall-service/src/main/java/com/txz/mall/model/DailySalesSummaryOfProducts.java

@@ -0,0 +1,748 @@
+package com.txz.mall.model;
+
+import java.math.BigDecimal;
+import java.util.Date;
+import javax.persistence.*;
+
+/**
+ * 表名:m_daily_sales_summary_of_products
+ * 表注释:商品每日销量汇总表
+*/
+@Table(name = "m_daily_sales_summary_of_products")
+public class DailySalesSummaryOfProducts {
+    /**
+     * 商品id
+     */
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    private Long id;
+
+    /**
+     * 商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)
+     */
+    @Column(name = "mer_id")
+    private Byte merId;
+
+    /**
+     * 商品图片(主图)
+     */
+    private String image;
+
+    /**
+     * 商品名称
+     */
+    @Column(name = "store_name")
+    private String storeName;
+
+    /**
+     * 商品简介
+     */
+    @Column(name = "store_info")
+    private String storeInfo;
+
+    /**
+     * 关键字(副标题)
+     */
+    private String keyword;
+
+    /**
+     * 分类id
+     */
+    @Column(name = "cate_id")
+    private String cateId;
+
+    /**
+     * 商品价格
+     */
+    private BigDecimal price;
+
+    /**
+     * 会员价格
+     */
+    @Column(name = "vip_price")
+    private BigDecimal vipPrice;
+
+    /**
+     * 市场价
+     */
+    @Column(name = "ot_price")
+    private BigDecimal otPrice;
+
+    /**
+     * 邮费
+     */
+    private BigDecimal postage;
+
+    /**
+     * 单位名
+     */
+    @Column(name = "unit_name")
+    private String unitName;
+
+    /**
+     * 每日销量快照
+     */
+    private Integer sales;
+
+    /**
+     * 每日销量增量
+     */
+    @Column(name = "day_sales")
+    private Integer daySales;
+
+    /**
+     * 每日库存快照
+     */
+    private Integer stock;
+
+    /**
+     * 每日库存增量
+     */
+    @Column(name = "day_stock")
+    private Integer dayStock;
+
+    /**
+     * 每日虚拟销量快照
+     */
+    private Integer ficti;
+
+    /**
+     * 每日虚拟销量增量
+     */
+    @Column(name = "day_ficti")
+    private Integer dayFicti;
+
+    /**
+     * 主图视频链接
+     */
+    @Column(name = "video_link")
+    private String videoLink;
+
+    /**
+     * 规格 0单 1多
+     */
+    @Column(name = "spec_type")
+    private Boolean specType;
+
+    /**
+     * 活动显示排序0=默认, 1=秒杀,2=砍价,3=拼团
+     */
+    private String activity;
+
+    /**
+     * 创建人id
+     */
+    @Column(name = "create_user_id")
+    private Long createUserId;
+
+    /**
+     * 创建时间
+     */
+    @Column(name = "create_time")
+    private Date createTime;
+
+    /**
+     * 统计时间
+     */
+    @Column(name = "statistical_date")
+    private Date statisticalDate;
+
+    /**
+     * 更新人id
+     */
+    @Column(name = "update_user_id")
+    private Long updateUserId;
+
+    /**
+     * 更新时间
+     */
+    @Column(name = "update_time")
+    private Date updateTime;
+
+    /**
+     * 货号
+     */
+    @Column(name = "item_number")
+    private String itemNumber;
+
+    /**
+     * 品牌
+     */
+    @Column(name = "item_brand")
+    private String itemBrand;
+
+    /**
+     * 版本号
+     */
+    private Integer version;
+
+    /**
+     * 轮播图(白底图)
+     */
+    @Column(name = "slider_image")
+    private String sliderImage;
+
+    /**
+     * 展示图(详情图)
+     */
+    @Column(name = "flat_pattern")
+    private String flatPattern;
+
+    /**
+     * 获取商品id
+     *
+     * @return id - 商品id
+     */
+    public Long getId() {
+        return id;
+    }
+
+    /**
+     * 设置商品id
+     *
+     * @param id 商品id
+     */
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    /**
+     * 获取商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)
+     *
+     * @return merId - 商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)
+     */
+    public Byte getMerId() {
+        return merId;
+    }
+
+    /**
+     * 设置商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)
+     *
+     * @param merId 商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)
+     */
+    public void setMerId(Byte merId) {
+        this.merId = merId;
+    }
+
+    /**
+     * 获取商品图片(主图)
+     *
+     * @return image - 商品图片(主图)
+     */
+    public String getImage() {
+        return image;
+    }
+
+    /**
+     * 设置商品图片(主图)
+     *
+     * @param image 商品图片(主图)
+     */
+    public void setImage(String image) {
+        this.image = image;
+    }
+
+    /**
+     * 获取商品名称
+     *
+     * @return storeName - 商品名称
+     */
+    public String getStoreName() {
+        return storeName;
+    }
+
+    /**
+     * 设置商品名称
+     *
+     * @param storeName 商品名称
+     */
+    public void setStoreName(String storeName) {
+        this.storeName = storeName;
+    }
+
+    /**
+     * 获取商品简介
+     *
+     * @return storeInfo - 商品简介
+     */
+    public String getStoreInfo() {
+        return storeInfo;
+    }
+
+    /**
+     * 设置商品简介
+     *
+     * @param storeInfo 商品简介
+     */
+    public void setStoreInfo(String storeInfo) {
+        this.storeInfo = storeInfo;
+    }
+
+    /**
+     * 获取关键字(副标题)
+     *
+     * @return keyword - 关键字(副标题)
+     */
+    public String getKeyword() {
+        return keyword;
+    }
+
+    /**
+     * 设置关键字(副标题)
+     *
+     * @param keyword 关键字(副标题)
+     */
+    public void setKeyword(String keyword) {
+        this.keyword = keyword;
+    }
+
+    /**
+     * 获取分类id
+     *
+     * @return cateId - 分类id
+     */
+    public String getCateId() {
+        return cateId;
+    }
+
+    /**
+     * 设置分类id
+     *
+     * @param cateId 分类id
+     */
+    public void setCateId(String cateId) {
+        this.cateId = cateId;
+    }
+
+    /**
+     * 获取商品价格
+     *
+     * @return price - 商品价格
+     */
+    public BigDecimal getPrice() {
+        return price;
+    }
+
+    /**
+     * 设置商品价格
+     *
+     * @param price 商品价格
+     */
+    public void setPrice(BigDecimal price) {
+        this.price = price;
+    }
+
+    /**
+     * 获取会员价格
+     *
+     * @return vipPrice - 会员价格
+     */
+    public BigDecimal getVipPrice() {
+        return vipPrice;
+    }
+
+    /**
+     * 设置会员价格
+     *
+     * @param vipPrice 会员价格
+     */
+    public void setVipPrice(BigDecimal vipPrice) {
+        this.vipPrice = vipPrice;
+    }
+
+    /**
+     * 获取市场价
+     *
+     * @return otPrice - 市场价
+     */
+    public BigDecimal getOtPrice() {
+        return otPrice;
+    }
+
+    /**
+     * 设置市场价
+     *
+     * @param otPrice 市场价
+     */
+    public void setOtPrice(BigDecimal otPrice) {
+        this.otPrice = otPrice;
+    }
+
+    /**
+     * 获取邮费
+     *
+     * @return postage - 邮费
+     */
+    public BigDecimal getPostage() {
+        return postage;
+    }
+
+    /**
+     * 设置邮费
+     *
+     * @param postage 邮费
+     */
+    public void setPostage(BigDecimal postage) {
+        this.postage = postage;
+    }
+
+    /**
+     * 获取单位名
+     *
+     * @return unitName - 单位名
+     */
+    public String getUnitName() {
+        return unitName;
+    }
+
+    /**
+     * 设置单位名
+     *
+     * @param unitName 单位名
+     */
+    public void setUnitName(String unitName) {
+        this.unitName = unitName;
+    }
+
+    /**
+     * 获取每日销量快照
+     *
+     * @return sales - 每日销量快照
+     */
+    public Integer getSales() {
+        return sales;
+    }
+
+    /**
+     * 设置每日销量快照
+     *
+     * @param sales 每日销量快照
+     */
+    public void setSales(Integer sales) {
+        this.sales = sales;
+    }
+
+    /**
+     * 获取每日销量增量
+     *
+     * @return daySales - 每日销量增量
+     */
+    public Integer getDaySales() {
+        return daySales;
+    }
+
+    /**
+     * 设置每日销量增量
+     *
+     * @param daySales 每日销量增量
+     */
+    public void setDaySales(Integer daySales) {
+        this.daySales = daySales;
+    }
+
+    /**
+     * 获取每日库存快照
+     *
+     * @return stock - 每日库存快照
+     */
+    public Integer getStock() {
+        return stock;
+    }
+
+    /**
+     * 设置每日库存快照
+     *
+     * @param stock 每日库存快照
+     */
+    public void setStock(Integer stock) {
+        this.stock = stock;
+    }
+
+    /**
+     * 获取每日库存增量
+     *
+     * @return dayStock - 每日库存增量
+     */
+    public Integer getDayStock() {
+        return dayStock;
+    }
+
+    /**
+     * 设置每日库存增量
+     *
+     * @param dayStock 每日库存增量
+     */
+    public void setDayStock(Integer dayStock) {
+        this.dayStock = dayStock;
+    }
+
+    /**
+     * 获取每日虚拟销量快照
+     *
+     * @return ficti - 每日虚拟销量快照
+     */
+    public Integer getFicti() {
+        return ficti;
+    }
+
+    /**
+     * 设置每日虚拟销量快照
+     *
+     * @param ficti 每日虚拟销量快照
+     */
+    public void setFicti(Integer ficti) {
+        this.ficti = ficti;
+    }
+
+    /**
+     * 获取每日虚拟销量增量
+     *
+     * @return dayFicti - 每日虚拟销量增量
+     */
+    public Integer getDayFicti() {
+        return dayFicti;
+    }
+
+    /**
+     * 设置每日虚拟销量增量
+     *
+     * @param dayFicti 每日虚拟销量增量
+     */
+    public void setDayFicti(Integer dayFicti) {
+        this.dayFicti = dayFicti;
+    }
+
+    /**
+     * 获取主图视频链接
+     *
+     * @return videoLink - 主图视频链接
+     */
+    public String getVideoLink() {
+        return videoLink;
+    }
+
+    /**
+     * 设置主图视频链接
+     *
+     * @param videoLink 主图视频链接
+     */
+    public void setVideoLink(String videoLink) {
+        this.videoLink = videoLink;
+    }
+
+    /**
+     * 获取规格 0单 1多
+     *
+     * @return specType - 规格 0单 1多
+     */
+    public Boolean getSpecType() {
+        return specType;
+    }
+
+    /**
+     * 设置规格 0单 1多
+     *
+     * @param specType 规格 0单 1多
+     */
+    public void setSpecType(Boolean specType) {
+        this.specType = specType;
+    }
+
+    /**
+     * 获取活动显示排序0=默认, 1=秒杀,2=砍价,3=拼团
+     *
+     * @return activity - 活动显示排序0=默认, 1=秒杀,2=砍价,3=拼团
+     */
+    public String getActivity() {
+        return activity;
+    }
+
+    /**
+     * 设置活动显示排序0=默认, 1=秒杀,2=砍价,3=拼团
+     *
+     * @param activity 活动显示排序0=默认, 1=秒杀,2=砍价,3=拼团
+     */
+    public void setActivity(String activity) {
+        this.activity = activity;
+    }
+
+    /**
+     * 获取创建人id
+     *
+     * @return createUserId - 创建人id
+     */
+    public Long getCreateUserId() {
+        return createUserId;
+    }
+
+    /**
+     * 设置创建人id
+     *
+     * @param createUserId 创建人id
+     */
+    public void setCreateUserId(Long createUserId) {
+        this.createUserId = createUserId;
+    }
+
+    /**
+     * 获取创建时间
+     *
+     * @return createTime - 创建时间
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * 设置创建时间
+     *
+     * @param createTime 创建时间
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * 获取统计时间
+     *
+     * @return statisticalDate - 统计时间
+     */
+    public Date getStatisticalDate() {
+        return statisticalDate;
+    }
+
+    /**
+     * 设置统计时间
+     *
+     * @param statisticalDate 统计时间
+     */
+    public void setStatisticalDate(Date statisticalDate) {
+        this.statisticalDate = statisticalDate;
+    }
+
+    /**
+     * 获取更新人id
+     *
+     * @return updateUserId - 更新人id
+     */
+    public Long getUpdateUserId() {
+        return updateUserId;
+    }
+
+    /**
+     * 设置更新人id
+     *
+     * @param updateUserId 更新人id
+     */
+    public void setUpdateUserId(Long updateUserId) {
+        this.updateUserId = updateUserId;
+    }
+
+    /**
+     * 获取更新时间
+     *
+     * @return updateTime - 更新时间
+     */
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    /**
+     * 设置更新时间
+     *
+     * @param updateTime 更新时间
+     */
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    /**
+     * 获取货号
+     *
+     * @return itemNumber - 货号
+     */
+    public String getItemNumber() {
+        return itemNumber;
+    }
+
+    /**
+     * 设置货号
+     *
+     * @param itemNumber 货号
+     */
+    public void setItemNumber(String itemNumber) {
+        this.itemNumber = itemNumber;
+    }
+
+    /**
+     * 获取品牌
+     *
+     * @return itemBrand - 品牌
+     */
+    public String getItemBrand() {
+        return itemBrand;
+    }
+
+    /**
+     * 设置品牌
+     *
+     * @param itemBrand 品牌
+     */
+    public void setItemBrand(String itemBrand) {
+        this.itemBrand = itemBrand;
+    }
+
+    /**
+     * 获取版本号
+     *
+     * @return version - 版本号
+     */
+    public Integer getVersion() {
+        return version;
+    }
+
+    /**
+     * 设置版本号
+     *
+     * @param version 版本号
+     */
+    public void setVersion(Integer version) {
+        this.version = version;
+    }
+
+    /**
+     * 获取轮播图(白底图)
+     *
+     * @return sliderImage - 轮播图(白底图)
+     */
+    public String getSliderImage() {
+        return sliderImage;
+    }
+
+    /**
+     * 设置轮播图(白底图)
+     *
+     * @param sliderImage 轮播图(白底图)
+     */
+    public void setSliderImage(String sliderImage) {
+        this.sliderImage = sliderImage;
+    }
+
+    /**
+     * 获取展示图(详情图)
+     *
+     * @return flatPattern - 展示图(详情图)
+     */
+    public String getFlatPattern() {
+        return flatPattern;
+    }
+
+    /**
+     * 设置展示图(详情图)
+     *
+     * @param flatPattern 展示图(详情图)
+     */
+    public void setFlatPattern(String flatPattern) {
+        this.flatPattern = flatPattern;
+    }
+}

+ 11 - 0
mall-service/src/main/java/com/txz/mall/service/DailySalesSummaryOfProductsService.java

@@ -0,0 +1,11 @@
+package com.txz.mall.service;
+import com.txz.mall.model.DailySalesSummaryOfProducts;
+import com.txz.mall.core.Service;
+
+
+/**
+ * Created by CodeGenerator on 2025/10/20.
+ */
+public interface DailySalesSummaryOfProductsService extends Service<DailySalesSummaryOfProducts> {
+
+}

+ 22 - 0
mall-service/src/main/java/com/txz/mall/service/impl/DailySalesSummaryOfProductsServiceImpl.java

@@ -0,0 +1,22 @@
+package com.txz.mall.service.impl;
+
+import com.txz.mall.dao.DailySalesSummaryOfProductsMapper;
+import com.txz.mall.model.DailySalesSummaryOfProducts;
+import com.txz.mall.service.DailySalesSummaryOfProductsService;
+import com.txz.mall.core.AbstractService;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+
+
+/**
+ * Created by CodeGenerator on 2025/10/20.
+ */
+@Service
+@Transactional
+public class DailySalesSummaryOfProductsServiceImpl extends AbstractService<DailySalesSummaryOfProducts> implements DailySalesSummaryOfProductsService {
+    @Resource
+    private DailySalesSummaryOfProductsMapper mDailySalesSummaryOfProductsMapper;
+
+}

+ 130 - 0
mall-service/src/main/java/com/txz/mall/web/mng/DailySalesSummaryOfProductsController.java

@@ -0,0 +1,130 @@
+package com.txz.mall.web.mng;
+import com.txz.mall.core.Result;
+import com.txz.mall.model.DailySalesSummaryOfProducts;
+import com.txz.mall.service.DailySalesSummaryOfProductsService;
+
+import com.txz.mall.core.ResultCode;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import tk.mybatis.mapper.entity.Condition;
+import tk.mybatis.mapper.entity.Example.Criteria;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.validation.annotation.Validated;
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Date;
+
+/**
+* Created by CodeGenerator on 2025/10/20.
+*/
+@Api(tags = "[后台]dailySalesSummaryOfProducts管理")
+@RestController
+@RequestMapping("/daily/sales/summary/of/products")
+public class DailySalesSummaryOfProductsController {
+
+	private static Logger log = LoggerFactory.getLogger(DailySalesSummaryOfProductsController.class);
+
+    @Resource
+    private DailySalesSummaryOfProductsService dailySalesSummaryOfProductsService;
+
+    @PostMapping("/add")
+	@ApiOperation(value = "dailySalesSummaryOfProducts新增")
+	public Result add(@RequestBody DailySalesSummaryOfProducts dailySalesSummaryOfProducts) {
+    	if(dailySalesSummaryOfProducts == null){
+    		return Result.fail(ResultCode.OBJECT_IS_NULL);
+    	}
+    	try {
+    		dailySalesSummaryOfProducts.setCreateTime(new Date());
+//            dailySalesSummaryOfProducts.setCreateUserId(userId);
+    		dailySalesSummaryOfProductsService.save(dailySalesSummaryOfProducts);
+		} catch (Exception e) {
+			log.error("新增对象操作异常e:{}",e);
+			return Result.fail(ResultCode.INTERNAL_SERVER_ERROR);
+		}
+        return Result.success();
+    }
+
+    @DeleteMapping("/delete")
+	@ApiOperation(value = "dailySalesSummaryOfProducts删除")
+	public Result delete(@RequestParam Long id) {
+    	if(id == null){
+    		return Result.fail(ResultCode.ID_IS_NULL);
+    	}
+    	try {
+            DailySalesSummaryOfProducts dailySalesSummaryOfProducts = new DailySalesSummaryOfProducts();
+			dailySalesSummaryOfProducts.setId(id);
+			dailySalesSummaryOfProducts.setIsDelete(1);
+			dailySalesSummaryOfProductsService.update(dailySalesSummaryOfProducts);
+		} catch (Exception e) {
+			log.error("删除对象操作异常e:{}",e);
+			return Result.fail(ResultCode.INTERNAL_SERVER_ERROR);
+		}
+        return Result.success();
+    }
+
+    @PutMapping("/update")
+	@ApiOperation(value = "dailySalesSummaryOfProducts更新")
+	public Result update(@RequestBody DailySalesSummaryOfProducts dailySalesSummaryOfProducts) {
+    	if(dailySalesSummaryOfProducts == null){
+    		return Result.fail(ResultCode.OBJECT_IS_NULL);
+    	}
+    	if(dailySalesSummaryOfProducts.getId() == null){
+    		return Result.fail(ResultCode.ID_IS_NULL);
+    	}
+    	try {
+    		dailySalesSummaryOfProducts.setUpdateTime(new Date());
+//            dailySalesSummaryOfProducts.setUpdateUserId(userId);
+    		dailySalesSummaryOfProductsService.update(dailySalesSummaryOfProducts);
+		} catch (Exception e) {
+			log.error("更新对象操作异常e:{}",e);
+			return Result.fail(ResultCode.INTERNAL_SERVER_ERROR);
+		}
+        return Result.success();
+    }
+
+    @GetMapping("/detail")
+	@ApiOperation(value = "dailySalesSummaryOfProducts获取详情")
+	public Result<DailySalesSummaryOfProducts> detail(@RequestParam Long id) {
+    	if(id == null){
+    		return Result.fail(ResultCode.ID_IS_NULL);
+    	}
+    	DailySalesSummaryOfProducts dailySalesSummaryOfProducts = null;
+    	try {
+    		dailySalesSummaryOfProducts = dailySalesSummaryOfProductsService.findById(id);
+		} catch (Exception e) {
+			log.error("查询对象操作异常e:{}",e);
+			return Result.fail(ResultCode.INTERNAL_SERVER_ERROR);
+		}
+        return Result.success(dailySalesSummaryOfProducts);
+    }
+
+    @PostMapping("/list")
+	@ApiOperation(value = "dailySalesSummaryOfProducts获取列表")
+	public Result<List<DailySalesSummaryOfProducts>> list(@Validated @RequestBody DailySalesSummaryOfProductsDTO dto) {
+        PageHelper.startPage(dto.getPage(), dto.getSize());
+
+        Condition condition = new Condition(DailySalesSummaryOfProducts.class);
+        Criteria criteria = condition.createCriteria();
+		criteria.andEqualTo("isDelete", 0);
+		condition.setOrderByClause("create_time DESC");
+		PageInfo pageInfo = null;
+		try {
+    		 List<DailySalesSummaryOfProducts> list = dailySalesSummaryOfProductsService.findByCondition(condition);
+    		 pageInfo = new PageInfo(list);
+		} catch (Exception e) {
+			log.error("查询对象操作异常e:{}",e);
+			return Result.fail(ResultCode.INTERNAL_SERVER_ERROR);
+		}
+        return Result.success(pageInfo);
+    }
+}

+ 40 - 0
mall-service/src/main/resources/mapper/DailySalesSummaryOfProductsMapper.xml

@@ -0,0 +1,40 @@
+<?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="com.txz.mall.dao.DailySalesSummaryOfProductsMapper">
+  <resultMap id="BaseResultMap" type="com.txz.mall.model.DailySalesSummaryOfProducts">
+    <!--
+      WARNING - @mbg.generated
+    -->
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="mer_id" jdbcType="TINYINT" property="merId" />
+    <result column="image" jdbcType="VARCHAR" property="image" />
+    <result column="store_name" jdbcType="VARCHAR" property="storeName" />
+    <result column="store_info" jdbcType="VARCHAR" property="storeInfo" />
+    <result column="keyword" jdbcType="VARCHAR" property="keyword" />
+    <result column="cate_id" jdbcType="VARCHAR" property="cateId" />
+    <result column="price" jdbcType="DECIMAL" property="price" />
+    <result column="vip_price" jdbcType="DECIMAL" property="vipPrice" />
+    <result column="ot_price" jdbcType="DECIMAL" property="otPrice" />
+    <result column="postage" jdbcType="DECIMAL" property="postage" />
+    <result column="unit_name" jdbcType="VARCHAR" property="unitName" />
+    <result column="sales" jdbcType="INTEGER" property="sales" />
+    <result column="day_sales" jdbcType="INTEGER" property="daySales" />
+    <result column="stock" jdbcType="INTEGER" property="stock" />
+    <result column="day_stock" jdbcType="INTEGER" property="dayStock" />
+    <result column="ficti" jdbcType="INTEGER" property="ficti" />
+    <result column="day_ficti" jdbcType="INTEGER" property="dayFicti" />
+    <result column="video_link" jdbcType="VARCHAR" property="videoLink" />
+    <result column="spec_type" jdbcType="BIT" property="specType" />
+    <result column="activity" jdbcType="VARCHAR" property="activity" />
+    <result column="create_user_id" jdbcType="BIGINT" property="createUserId" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="statistical_date" jdbcType="DATE" property="statisticalDate" />
+    <result column="update_user_id" jdbcType="BIGINT" property="updateUserId" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="item_number" jdbcType="VARCHAR" property="itemNumber" />
+    <result column="item_brand" jdbcType="VARCHAR" property="itemBrand" />
+    <result column="version" jdbcType="INTEGER" property="version" />
+    <result column="slider_image" jdbcType="LONGVARCHAR" property="sliderImage" />
+    <result column="flat_pattern" jdbcType="LONGVARCHAR" property="flatPattern" />
+  </resultMap>
+</mapper>