TestDemo.java 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package com.ruoyi.demo.domain;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import com.ruoyi.common.core.web.domain.BaseEntity;
  4. import lombok.Data;
  5. import lombok.EqualsAndHashCode;
  6. import java.io.Serial;
  7. /**
  8. * 测试单表对象 test_demo
  9. *
  10. * @author Lion Li
  11. * @date 2021-07-26
  12. */
  13. @Data
  14. @EqualsAndHashCode(callSuper = true)
  15. @TableName("test_demo")
  16. public class TestDemo extends BaseEntity {
  17. @Serial
  18. private static final long serialVersionUID = 1L;
  19. /**
  20. * 主键
  21. */
  22. @TableId(value = "id")
  23. private Long id;
  24. /**
  25. * 部门id
  26. */
  27. private Long deptId;
  28. /**
  29. * 用户id
  30. */
  31. private Long userId;
  32. /**
  33. * 排序号
  34. */
  35. @OrderBy(asc = false, sort = 1)
  36. private Integer orderNum;
  37. /**
  38. * key键
  39. */
  40. private String testKey;
  41. /**
  42. * 值
  43. */
  44. private String value;
  45. /**
  46. * 版本
  47. */
  48. @Version
  49. private Long version;
  50. /**
  51. * 删除标志
  52. */
  53. @TableLogic
  54. private Long delFlag;
  55. }