PrintLogVO.java 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package jnpf.base.model.vo;
  2. import com.fasterxml.jackson.annotation.JsonIgnore;
  3. import lombok.Data;
  4. import java.util.Date;
  5. @Data
  6. public class PrintLogVO {
  7. /**
  8. * 打印人
  9. */
  10. private String printMan;
  11. /**
  12. * 打印时间
  13. */
  14. private Long printTime;
  15. /**
  16. * 打印条数
  17. */
  18. private Integer printNum;
  19. /**
  20. * 打印功能名称
  21. */
  22. private String printTitle;
  23. /**
  24. * 基于哪一个模板
  25. */
  26. private String printId;
  27. /**
  28. * 日志id
  29. */
  30. @JsonIgnore
  31. private String id;
  32. /**
  33. * 账号
  34. */
  35. @JsonIgnore
  36. private String account;
  37. /**
  38. * 名称
  39. */
  40. @JsonIgnore
  41. private String realName;
  42. /**
  43. * 打印时间
  44. */
  45. @JsonIgnore
  46. private Date creatorTime;
  47. public Long getPrintTime() {
  48. if (this.creatorTime == null) {
  49. return null;
  50. }
  51. return this.creatorTime.getTime();
  52. }
  53. public String getPrintMan() {
  54. return this.realName + "/" + this.account;
  55. }
  56. }