Task.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. package com.wtkj.entity;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.baomidou.mybatisplus.annotation.TableName;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  6. import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
  7. import io.swagger.annotations.ApiModelProperty;
  8. import lombok.Data;
  9. import lombok.EqualsAndHashCode;
  10. import org.springblade.core.mp.base.BaseEntity;
  11. import org.springframework.format.annotation.DateTimeFormat;
  12. import javax.validation.constraints.NotNull;
  13. import java.util.Date;
  14. /**
  15. * @author Blizzard
  16. * @create at 2023-09-15 14:35
  17. * @describe
  18. */
  19. @EqualsAndHashCode(callSuper = true)
  20. @Data
  21. @TableName("blade_task")
  22. public class Task extends BaseEntity {
  23. private static final long serialVersionUID = 1L;
  24. @JsonSerialize(using = ToStringSerializer.class)
  25. @TableField("project_id")
  26. @NotNull(message = "projectId can't be null")
  27. private Long projectId;
  28. @JsonSerialize(using = ToStringSerializer.class)
  29. @TableField("stage_id")
  30. @NotNull(message = "stageId can't be null")
  31. private Long stageId;
  32. @TableField("title")
  33. private String title;
  34. @TableField("competent_unit")
  35. @JsonSerialize(using = ToStringSerializer.class)
  36. @ApiModelProperty(value = "主管单位")
  37. private Long competentUnit;
  38. @ApiModelProperty(value = "派遣给哪个机构:顶级机构")
  39. @NotNull(message = "orgDeptId不可为空")
  40. @TableField("org_dept_id")
  41. private Long orgDeptId;
  42. @TableField("task_status")
  43. @ApiModelProperty("任务状态:1.待确认 2.进行中 3.已提交 4.已完成 5.已取消")
  44. private Integer taskStatus = 1;
  45. @TableField("is_expire")
  46. private Integer isExpire = 0;
  47. @TableField("level")
  48. @ApiModelProperty("优先级")
  49. private Integer level;
  50. @TableField("category")
  51. @ApiModelProperty("类别:可研,方案、其他等")
  52. private String category;
  53. @TableField("tags")
  54. @ApiModelProperty("标签:新写、修改等")
  55. private String tags;
  56. @TableField("start_time")
  57. @ApiModelProperty("开始时间")
  58. @DateTimeFormat(pattern = "yyyy-MM-dd")
  59. @JsonFormat(pattern = "yyyy-MM-dd")
  60. private Date startTime;
  61. @TableField("end_time")
  62. @ApiModelProperty("截止时间")
  63. @DateTimeFormat(pattern = "yyyy-MM-dd")
  64. @JsonFormat(pattern = "yyyy-MM-dd")
  65. private Date endTime;
  66. @TableField("is_confirmed")
  67. @ApiModelProperty("是否已经确认完成")
  68. private Integer isConfirmed;
  69. @TableField("confirm_time")
  70. @ApiModelProperty("任务完成确认时间")
  71. @DateTimeFormat(pattern = "yyyy-MM-dd")
  72. @JsonFormat(pattern = "yyyy-MM-dd")
  73. private Date confirmTime;
  74. @JsonSerialize(using = ToStringSerializer.class)
  75. @ApiModelProperty(value = "确认任务完成的用户")
  76. @TableField("confirm_user")
  77. private Long confirmUser;
  78. @TableField("remark")
  79. @ApiModelProperty("备注")
  80. private String remark;
  81. @TableField("task_process")
  82. @ApiModelProperty("任务进展")
  83. private String taskProcess;
  84. @TableField("related_ids")
  85. @ApiModelProperty("参考文件的主键id")
  86. private String relatedIds;
  87. @ApiModelProperty(value = "项目经理")
  88. @TableField("project_manager")
  89. private Long projectManager;
  90. @ApiModelProperty(value = "第一审查人")
  91. @TableField("first_check_user")
  92. private Long firstCheckUser;
  93. @ApiModelProperty(value = "第二审查人")
  94. @TableField("second_check_user")
  95. private Long secondCheckUser;
  96. @ApiModelProperty(value = "实际执行部门")
  97. @TableField("execute_dept")
  98. private Long executeDept;
  99. @ApiModelProperty(value = "执行人")
  100. @TableField("execute_user")
  101. private String executeUser;
  102. @TableField("year")
  103. private Integer year;
  104. @TableField("month")
  105. private Integer month;
  106. }