fwq
2022-08-09 f98fead30b8f5ebd22fc36aa99105b6562115d18
提交 | 用户 | age
3ce49a 1 package com.hz.phis.dt.limit;
F 2
3 import com.fasterxml.jackson.annotation.JsonFormat;
4 import lombok.Data;
5 import org.springframework.format.annotation.DateTimeFormat;
6
7 import java.util.Date;
8
9 /**
10  * 总限制
11  * @author fwq
12  */
13 @Data
14 public class LimitTotalDt {
15     /**限制标识*/
16     private String id;
17     /**限制编码*/
18     private String code;
19     /**类型*/
20     private int type;
21     /**外键id(卡项/促销/项目标识)*/
22     private String foreignKey;
23     /**限制数量*/
24     private Integer limitNum;
25     /**限制总数量*/
26     private Integer limitSumNum;
27     /**客户类别标识*/
28     private String userTypeId;
29     /**客户类别名称*/
30     private String userTypeName;
31     /**发布范围(PlatformLimit:code)*/
32     private String isUpPlatform;
33     /**有效开始时间*/
34     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
35     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
36     private Date startTime;
37     /**有效结束时间*/
38     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
39     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
40     private Date endTime;
41     /**最后一次下单开始时间*/
42     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
43     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
44     private Date lastStartTime;
45     /**最后一次下单结束时间*/
46     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
47     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
48     private Date lastEndTime;
49
50     /**类型-卡项*/
51     public static final Integer LIMIT_CARD_ITEM = 0;
52     /**类型-促销*/
53     public static final Integer LIMIT_PROMOTION = 1;
54     /**类型-项目*/
55     public static final Integer LIMIT_PROJECT = 2;
56     /**类型-商品(耗材)*/
57     public static final Integer LIMIT_CONSUMABLE = 3;
58 }