package com.hz.phis.dt.limit; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; /** * 总限制 * @author fwq */ @Data public class LimitTotalDt { /**限制标识*/ private String id; /**限制编码*/ private String code; /**类型*/ private int type; /**外键id(卡项/促销/项目标识)*/ private String foreignKey; /**限制数量*/ private Integer limitNum; /**限制总数量*/ private Integer limitSumNum; /**客户类别标识*/ private String userTypeId; /**客户类别名称*/ private String userTypeName; /**发布范围(PlatformLimit:code)*/ private String isUpPlatform; /**有效开始时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date startTime; /**有效结束时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date endTime; /**最后一次下单开始时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date lastStartTime; /**最后一次下单结束时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date lastEndTime; /**是否可用增值金结账*/ private Integer useIncrement; /**是否可用优惠券结账*/ private Integer useCoupon; /**类型-卡项*/ public static final Integer LIMIT_CARD_ITEM = 0; /**类型-促销*/ public static final Integer LIMIT_PROMOTION = 1; /**类型-项目*/ public static final Integer LIMIT_PROJECT = 2; /**类型-商品(耗材)*/ public static final Integer LIMIT_CONSUMABLE = 3; }