Factory.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. package com.hssx.cloudmodel.entity;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.extension.activerecord.Model;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import java.time.LocalDateTime;
  7. import com.baomidou.mybatisplus.annotation.TableField;
  8. import com.fasterxml.jackson.annotation.JsonFormat;
  9. import java.io.Serializable;
  10. /**
  11. * <p>
  12. *
  13. * </p>
  14. *
  15. * @author 吴涛涛
  16. * @since 2019-07-26
  17. */
  18. @TableName("tb_factory")
  19. public class Factory extends Model<Factory> {
  20. private static final long serialVersionUID=1L;
  21. @TableId(value = "id", type = IdType.AUTO)
  22. private Integer id;
  23. /**
  24. * 工厂名称
  25. */
  26. @TableField("factory_name")
  27. private String factoryName;
  28. /**
  29. * 工厂地址
  30. */
  31. @TableField("factory_area")
  32. private String factoryArea;
  33. /**
  34. * 经度
  35. */
  36. @TableField("y_lng")
  37. private String yLng;
  38. /**
  39. * 纬度
  40. */
  41. @TableField("x_lat")
  42. private String xLat;
  43. /**
  44. * 创建时间
  45. */
  46. @TableField("indate")
  47. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  48. private LocalDateTime indate;
  49. public Integer getId() {
  50. return id;
  51. }
  52. public void setId(Integer id) {
  53. this.id = id;
  54. }
  55. public String getFactoryName() {
  56. return factoryName;
  57. }
  58. public void setFactoryName(String factoryName) {
  59. this.factoryName = factoryName;
  60. }
  61. public String getFactoryArea() {
  62. return factoryArea;
  63. }
  64. public void setFactoryArea(String factoryArea) {
  65. this.factoryArea = factoryArea;
  66. }
  67. public String getyLng() {
  68. return yLng;
  69. }
  70. public void setyLng(String yLng) {
  71. this.yLng = yLng;
  72. }
  73. public String getxLat() {
  74. return xLat;
  75. }
  76. public void setxLat(String xLat) {
  77. this.xLat = xLat;
  78. }
  79. public LocalDateTime getIndate() {
  80. return indate;
  81. }
  82. public void setIndate(LocalDateTime indate) {
  83. this.indate = indate;
  84. }
  85. @Override
  86. protected Serializable pkVal() {
  87. return this.id;
  88. }
  89. @Override
  90. public String toString() {
  91. return "Factory{" +
  92. "id=" + id +
  93. ", factoryName=" + factoryName +
  94. ", factoryArea=" + factoryArea +
  95. ", yLng=" + yLng +
  96. ", xLat=" + xLat +
  97. ", indate=" + indate +
  98. "}";
  99. }
  100. }