1481fb25addd05349d5e304a032438493ba41ae4.svn-base 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package org.jeecg.modules.online.cgreport.entity;/*package org.jeecg.modules.online.entity;
  2. import java.util.Date;
  3. import javax.persistence.Column;
  4. import javax.persistence.GeneratedValue;
  5. import javax.persistence.Id;
  6. import javax.persistence.MappedSuperclass;
  7. import org.hibernate.annotations.GenericGenerator;
  8. import org.jeecgframework.poi.excel.annotation.Excel;
  9. import org.springframework.format.annotation.DateTimeFormat;
  10. import com.baomidou.mybatisplus.annotation.IdType;
  11. import com.baomidou.mybatisplus.annotation.TableId;
  12. import com.fasterxml.jackson.annotation.JsonFormat;
  13. import io.swagger.annotations.ApiModelProperty;
  14. import lombok.Data;
  15. @Data
  16. @MappedSuperclass
  17. public class BaseEntity {
  18. @TableId(type = IdType.ASSIGN_ID)
  19. @ApiModelProperty(value = "主键")
  20. @Id
  21. @Column(name = "ID")
  22. @GeneratedValue(generator = "uuid")
  23. @GenericGenerator(name = "uuid", strategy = "uuid")
  24. private String id;
  25. @Excel(name = "创建人", width = 15)
  26. @ApiModelProperty(value = "创建人")
  27. @Column(name = "CREATE_BY")
  28. private String createBy;// "admin"
  29. @Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  30. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  31. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  32. @ApiModelProperty(value = "创建日期")
  33. @Column(name = "CREATE_TIME")
  34. private Date createTime;// "2019-04-28 16:47:37"
  35. @Excel(name = "更新人", width = 15)
  36. @ApiModelProperty(value = "更新人")
  37. @Column(name = "UPDATE_BY")
  38. private String updateBy;// "jeecg"
  39. @Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  40. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  41. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  42. @ApiModelProperty(value = "更新日期")
  43. @Column(name = "UPDATE_TIME")
  44. private Date updateTime;// "2020-05-06 10:24:17"
  45. }
  46. */