TeamClass.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.xintong.visualinspection.bean;
  2. import java.util.Date;
  3. import javax.validation.constraints.NotNull;
  4. import org.hibernate.validator.constraints.NotEmpty;
  5. import org.springframework.format.annotation.DateTimeFormat;
  6. import com.fasterxml.jackson.annotation.JsonFormat;
  7. import lombok.Data;
  8. /**
  9. * 文件名:ScoreDeducting
  10. * 版本信息:日期:2017/4/18 Copyright 江苏省交通规划设计院 Corporation 2017 版权所有.
  11. */
  12. @Data
  13. public class TeamClass {
  14. //编号
  15. private Long id;
  16. //上班日期
  17. @NotNull
  18. @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  19. @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  20. private Date work_date;
  21. //上班时间
  22. @NotNull
  23. @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  24. @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  25. private Date start_time;
  26. //下班时间
  27. @NotNull
  28. @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  29. @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  30. private Date end_time;
  31. //班组id
  32. private Long team_id;
  33. //人员ids
  34. private String user_ids;
  35. //部门id
  36. private Long dept_id;
  37. //班次类型(早、中、晚、全天)
  38. private Integer class_type;
  39. private String team_name ;
  40. private Integer type ;
  41. }