EmailTemplateInfoDO.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. package com.simuwang.base.pojo.dos;
  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.simuwang.base.pojo.vo.EmailTemplateInfoVO;
  7. import lombok.Data;
  8. import java.util.Date;
  9. @Data
  10. @TableName("email_template_info")
  11. public class EmailTemplateInfoDO {
  12. /**
  13. * 主键Id
  14. */
  15. @TableId(value = "id",type = IdType.AUTO)
  16. private Integer id;
  17. /**
  18. * 模板名称
  19. */
  20. @TableId(value = "name")
  21. private String name;
  22. /**
  23. * 模板类型:1-excel类型,2-正文类型
  24. */
  25. @TableId(value = "type")
  26. private Integer type;
  27. /**
  28. * 模版方向:1-行,2-列,-1其他
  29. */
  30. @TableId(value = "direction")
  31. private Integer direction;
  32. /**
  33. * 循环开始数字或者字母
  34. */
  35. @TableId(value = "start_index")
  36. private String startIndex;
  37. /**
  38. * 循环结束数字或者字母
  39. */
  40. @TableId(value = "end_index")
  41. private String endIndex;
  42. /**
  43. * 模版备注
  44. */
  45. @TableId(value = "description")
  46. private String description;
  47. /**
  48. * 状态:0-关闭,1-开启
  49. */
  50. @TableId(value = "status")
  51. private Integer status;
  52. /**
  53. * 是否有效:0-无效,1-有效
  54. */
  55. @TableField(value = "isvalid")
  56. private Integer isvalid;
  57. /**
  58. * 创建者Id
  59. */
  60. @TableField(value = "creatorid")
  61. private Integer creatorId;
  62. /**
  63. * 创建时间
  64. */
  65. @TableField(value = "createtime")
  66. private Date createTime;
  67. /**
  68. * 修改者Id
  69. */
  70. @TableField(value = "updaterid")
  71. private Integer updaterId;
  72. /**
  73. * 更新时间
  74. */
  75. @TableField(value = "updatetime")
  76. private Date updateTime;
  77. public EmailTemplateInfoVO toVO() {
  78. EmailTemplateInfoVO vo = new EmailTemplateInfoVO();
  79. vo.setName(this.name);
  80. vo.setId(this.id);
  81. vo.setStatus(this.status);
  82. vo.setDescription(this.description);
  83. vo.setType(this.type);
  84. return vo;
  85. }
  86. }