Prechádzať zdrojové kódy

refactor(model): 删除企业专享价及优惠券模板相关DTO和VO类

- 移除ExclusivePriceDTO类及其相关属性
- 移除ExclusivePriceVO类及其相关属性
- 移除PromotionCouponTemplateVO类及其相关属性
- 清理无用代码,优化项目结构
SheepHy 1 deň pred
rodič
commit
1962f2f9ab

+ 0 - 49
src/main/java/com/zsElectric/boot/business/model/dto/ExclusivePriceDTO.java

@@ -1,49 +0,0 @@
-package com.zsElectric.boot.business.model.dto;
-
-import io.swagger.v3.oas.annotations.media.Schema;
-import lombok.Data;
-
-import java.io.Serial;
-import java.io.Serializable;
-import java.math.BigDecimal;
-
-@Schema( description = "企业专享价列表对象")
-@Data
-public class ExclusivePriceDTO implements Serializable {
-
-    @Serial
-    private static final long serialVersionUID = 1L;
-
-    @Schema(description = "价格时段id")
-    private Long id;
-
-    @Schema(description = "时间段")
-    private String time;
-
-    @Schema(description = "企业id")
-    private Integer firmId;
-
-    @Schema(description = "附加平台服务费")
-    private BigDecimal addServicePrice;
-
-    @Schema(description = "电价")
-    private BigDecimal electrovalence;
-
-    @Schema(description = "结算服务费")
-    private BigDecimal servicePrice;
-
-    @Schema(description = "结算费合计")
-    private BigDecimal ePrice;
-
-    @Schema(description = "平台售价")
-    private BigDecimal platformPrice;
-
-    @Schema(description = "企业优惠金额")
-    private BigDecimal firmServicePrice;
-
-    @Schema(description = "企业专享价格")
-    private BigDecimal firmPrice;
-
-    @Schema(description = "时间类型 1 谷 2 平 3 峰")
-    private Integer timeType;
-}

+ 0 - 43
src/main/java/com/zsElectric/boot/business/model/vo/ExclusivePriceVO.java

@@ -1,43 +0,0 @@
-package com.zsElectric.boot.business.model.vo;
-
-import io.swagger.v3.oas.annotations.media.Schema;
-import lombok.Data;
-
-import java.io.Serial;
-import java.io.Serializable;
-import java.math.BigDecimal;
-
-@Data
-@Schema(description = "企业专属价格视图对象")
-public class ExclusivePriceVO implements Serializable {
-
-    @Serial
-    private static final long serialVersionUID = 1L;
-
-    @Schema(description = "价格时段id")
-    private Long id;
-
-    @Schema(description = "时间段")
-    private String time;
-
-    @Schema(description = "附加平台服务费")
-    private BigDecimal addServicePrice;
-
-    @Schema(description = "电价")
-    private BigDecimal electrovalence;
-
-    @Schema(description = "结算服务费")
-    private BigDecimal servicePrice;
-
-    @Schema(description = "结算费合计")
-    private BigDecimal ePrice;
-
-    @Schema(description = "企业专享价格")
-    private BigDecimal firmPrice;
-
-    @Schema(description = "销售合计价格")
-    private BigDecimal saleTotalPrice;
-
-    @Schema(description = "时间类型 1 谷 2 平 3 峰")
-    private Integer timeType;
-}

+ 0 - 56
src/main/java/com/zsElectric/boot/business/model/vo/PromotionCouponTemplateVO.java

@@ -1,56 +0,0 @@
-package com.zsElectric.boot.business.model.vo;
-
-import java.io.Serial;
-import java.io.Serializable;
-import java.time.LocalDateTime;
-import io.swagger.v3.oas.annotations.media.Schema;
-import lombok.Getter;
-import lombok.Setter;
-import java.time.LocalDateTime;
-import java.math.BigDecimal;
-
-/**
- * 优惠劵模板视图对象
- *
- * @author zsElectric
- * @since 2025-12-12 15:11
- */
-@Getter
-@Setter
-@Schema( description = "优惠劵模板视图对象")
-public class PromotionCouponTemplateVO implements Serializable {
-
-    @Serial
-    private static final long serialVersionUID = 1L;
-
-    @Schema(description = "主键ID")
-    private Long id;
-    @Schema(description = "优惠劵名称")
-    private String name;
-    @Schema(description = "描述")
-    private String description;
-    @Schema(description = "上线状态 ( 0-下线 1-上线)")
-    private Integer status;
-    @Schema(description = "发放数量, -1 - 则表示不限制")
-    private Integer totalCount;
-    @Schema(description = "每人限领个数, -1 - 则表示不限制")
-    private Integer takeLimitCount;
-    @Schema(description = "失效时间,领取后的几天。")
-    private Integer failureTime;
-    @Schema(description = "设置满多少金额可用,单位:分")
-    private BigDecimal usePrice;
-    @Schema(description = "优惠金额,单位:分")
-    private BigDecimal discountPrice;
-    @Schema(description = "领取时间:周  星期一 1  2  3 4 5 6 7")
-    private String validTimeWeeks;
-    @Schema(description = "领取时间 时分  08:20")
-    private String validTimeHour;
-    @Schema(description = "创建时间")
-    private LocalDateTime createTime;
-    @Schema(description = "创建人")
-    private Long createBy;
-    @Schema(description = "更新时间")
-    private LocalDateTime updateTime;
-    @Schema(description = "更新人")
-    private Long updateBy;
-}