123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- package com.gyee.impala.model.master;
- import com.baomidou.mybatisplus.annotation.TableName;
- import com.baomidou.mybatisplus.extension.activerecord.Model;
- import java.io.Serializable;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import org.apache.commons.lang3.StringUtils;
- /**
- * <p>
- *
- * </p>
- *
- * @author chenmh
- * @since 2021-10-19
- */
- @Data
- @EqualsAndHashCode(callSuper = false)
- @TableName("windpowerstation")
- public class Windpowerstation extends Model<Windpowerstation> {
- private static final long serialVersionUID=1L;
- private String id;
- private String name;
- private String address;
- private String telephone;
- private String type;
- private Double capacity;
- private String capacityunit;
- private Integer quantity;
- private Double longitude;
- private Double latitude;
- private String model;
- private String manufacturer;
- private Integer ordernum;
- private String remark;
- public String getType() {
- return StringUtils.isEmpty(type) ? "FJ" : type;
- }
- public void setType(String type) {
- this.type = type;
- }
- public String getCapacityunit() {
- return StringUtils.isEmpty(capacityunit) ? "MW" : capacityunit;
- }
- public void setCapacityunit(String capacityunit) {
- this.capacityunit = capacityunit;
- }
- @Override
- protected Serializable pkVal() {
- return this.id;
- }
- }
|