TianaoTask.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. package com.ruoyi.tianao.domian;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import lombok.Data;
  4. import org.springframework.format.annotation.DateTimeFormat;
  5. import javax.validation.constraints.NotEmpty;
  6. import javax.validation.constraints.NotNull;
  7. import java.util.Date;
  8. /**
  9. * Created with IntelliJ IDEA.
  10. *
  11. * @author: liuzhifei
  12. * Date: 2023/6/6
  13. * Time: 13:39
  14. * To change this template use File | Settings | File Templates.
  15. * Description: 天奥对接实体
  16. **/
  17. @Data
  18. public class TianaoTask{
  19. /**
  20. * LCS任务编码
  21. */
  22. @NotEmpty(message = "LCS任务编码不能为空")
  23. private String lcs_task_id;
  24. /**
  25. * 托盘号
  26. */
  27. @NotEmpty(message = "托盘号不能为空")
  28. private String container_no;
  29. /**
  30. * 任务类型
  31. */
  32. @NotEmpty(message = "任务类型不能为空")
  33. private String task_type;
  34. /**
  35. * 起始位置
  36. */
  37. @NotEmpty(message = "起始位置不能为空")
  38. private String from_location;
  39. /**
  40. * 目标位置
  41. */
  42. @NotEmpty(message = "目标位置不能为空")
  43. private String to_location;
  44. /**
  45. *
  46. */
  47. private String reserved_field01;
  48. /**
  49. *
  50. */
  51. private String reserved_field02;
  52. /**
  53. *
  54. */
  55. private String reserved_field03;
  56. /**
  57. *
  58. */
  59. private String reserved_field04;
  60. /**
  61. *
  62. */
  63. private String reserved_field05;
  64. /**
  65. * 任务下发时间
  66. */
  67. @NotNull(message = "任务下发时间不能为空")
  68. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  69. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  70. private Date time;
  71. }