TbPlace.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package com.ruoyi.asset.domain;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import org.apache.commons.lang3.builder.ToStringBuilder;
  7. import org.apache.commons.lang3.builder.ToStringStyle;
  8. import com.ruoyi.common.annotation.Excel;
  9. import com.ruoyi.common.core.domain.BaseEntity;
  10. /**
  11. * 地点对象 tb_place
  12. *
  13. * @author 原动力
  14. * @date 2023-03-27
  15. */
  16. @TableName("tb_place")
  17. public class TbPlace extends BaseEntity
  18. {
  19. private static final long serialVersionUID = 1L;
  20. /** 编号 */
  21. @Excel(name = "编号")
  22. @TableId("id")
  23. @JsonFormat(shape = JsonFormat.Shape.STRING)
  24. private Long id;
  25. /** 地点名称 */
  26. @Excel(name = "地点名称")
  27. @TableField("name")
  28. private String name;
  29. /** 用途 */
  30. @Excel(name = "用途")
  31. @TableField("purpose")
  32. private String purpose;
  33. public void setId(Long id)
  34. {
  35. this.id = id;
  36. }
  37. public Long getId()
  38. {
  39. return id;
  40. }
  41. public void setName(String name)
  42. {
  43. this.name = name;
  44. }
  45. public String getName()
  46. {
  47. return name;
  48. }
  49. public void setPurpose(String purpose)
  50. {
  51. this.purpose = purpose;
  52. }
  53. public String getPurpose()
  54. {
  55. return purpose;
  56. }
  57. @Override
  58. public String toString() {
  59. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  60. .append("id", getId())
  61. .append("name", getName())
  62. .append("purpose", getPurpose())
  63. .toString();
  64. }
  65. }