VppContractTemplate.java 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package com.usky.vpp.domain;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import com.fasterxml.jackson.annotation.JsonFormat;
  7. import lombok.Data;
  8. import lombok.EqualsAndHashCode;
  9. import javax.validation.constraints.NotBlank;
  10. import javax.validation.constraints.NotNull;
  11. import java.io.Serializable;
  12. import java.time.LocalDateTime;
  13. /**
  14. * vpp_contract_template
  15. */
  16. @Data
  17. @EqualsAndHashCode(callSuper = false)
  18. @TableName("vpp_contract_template")
  19. public class VppContractTemplate implements Serializable {
  20. private static final long serialVersionUID = 1L;
  21. @TableId(value = "id", type = IdType.AUTO)
  22. private Long id;
  23. @TableField("template_code")
  24. @NotBlank(message = "模板编码不能为空!")
  25. private String templateCode;
  26. @TableField("template_name")
  27. @NotBlank(message = "模板名称不能为空!")
  28. private String templateName;
  29. /**
  30. * 1、购售电合同 2、需求响应合作协议 3、聚合代理协议(2024 版) 4、虚拟电厂服务代理协议 5、居民个人充电桩协议
  31. */
  32. @TableField("contract_type")
  33. @NotNull(message = "合同类型不能为空!")
  34. private Integer contractType;
  35. /**
  36. * 模板分类:1居间/层间 2普通/直网(用于一对一关联校验)
  37. */
  38. @TableField("template_kind")
  39. private Integer templateKind;
  40. private String version;
  41. @TableField("file_url")
  42. @NotBlank(message = "文件路径不能为空!")
  43. private String fileUrl;
  44. @TableField("variables_json")
  45. private String variablesJson;
  46. @TableField("is_enabled")
  47. @NotNull(message = "是否启用不能为空!")
  48. private Integer isEnabled;
  49. @TableField("tenant_id")
  50. private Integer tenantId;
  51. @TableField("create_time")
  52. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  53. private LocalDateTime createTime;
  54. @TableField("update_time")
  55. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  56. private LocalDateTime updateTime;
  57. @TableField("created_by")
  58. private String createdBy;
  59. @TableField("updated_by")
  60. private String updatedBy;
  61. @TableField("delete_flag")
  62. private Integer deleteFlag;
  63. @TableField("deleted_at")
  64. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  65. private LocalDateTime deletedAt;
  66. }