Windpowerstation.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package com.gyee.impala.model.master;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.baomidou.mybatisplus.extension.activerecord.Model;
  4. import java.io.Serializable;
  5. import lombok.Data;
  6. import lombok.EqualsAndHashCode;
  7. import org.apache.commons.lang3.StringUtils;
  8. /**
  9. * <p>
  10. *
  11. * </p>
  12. *
  13. * @author chenmh
  14. * @since 2021-10-19
  15. */
  16. @Data
  17. @EqualsAndHashCode(callSuper = false)
  18. @TableName("windpowerstation")
  19. public class Windpowerstation extends Model<Windpowerstation> {
  20. private static final long serialVersionUID=1L;
  21. private String id;
  22. private String name;
  23. private String address;
  24. private String telephone;
  25. private String type;
  26. private Double capacity;
  27. private String capacityunit;
  28. private Integer quantity;
  29. private Double longitude;
  30. private Double latitude;
  31. private String model;
  32. private String manufacturer;
  33. private Integer ordernum;
  34. private String remark;
  35. public String getType() {
  36. return StringUtils.isEmpty(type) ? "FJ" : type;
  37. }
  38. public void setType(String type) {
  39. this.type = type;
  40. }
  41. public String getCapacityunit() {
  42. return StringUtils.isEmpty(capacityunit) ? "MW" : capacityunit;
  43. }
  44. public void setCapacityunit(String capacityunit) {
  45. this.capacityunit = capacityunit;
  46. }
  47. @Override
  48. protected Serializable pkVal() {
  49. return this.id;
  50. }
  51. }