|
@@ -1,11 +1,13 @@
|
|
package com.hssx.pcbms.entity;
|
|
package com.hssx.pcbms.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
-import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
+import lombok.Data;
|
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
|
+import lombok.experimental.Accessors;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -13,8 +15,11 @@ import java.io.Serializable;
|
|
* </p>
|
|
* </p>
|
|
*
|
|
*
|
|
* @author 吴涛涛
|
|
* @author 吴涛涛
|
|
- * @since 2019-11-05
|
|
|
|
|
|
+ * @since 2019-11-13
|
|
*/
|
|
*/
|
|
|
|
+@Data
|
|
|
|
+@EqualsAndHashCode(callSuper = false)
|
|
|
|
+@Accessors(chain = true)
|
|
public class Goods extends Model<Goods> {
|
|
public class Goods extends Model<Goods> {
|
|
|
|
|
|
private static final long serialVersionUID=1L;
|
|
private static final long serialVersionUID=1L;
|
|
@@ -32,7 +37,7 @@ public class Goods extends Model<Goods> {
|
|
private String name;
|
|
private String name;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 分类标签id
|
|
|
|
|
|
+ * 分类标签id,录入机柜时默认传-1
|
|
*/
|
|
*/
|
|
@TableField("tag_id")
|
|
@TableField("tag_id")
|
|
private Integer tagId;
|
|
private Integer tagId;
|
|
@@ -103,141 +108,22 @@ public class Goods extends Model<Goods> {
|
|
@TableField("suffix_code")
|
|
@TableField("suffix_code")
|
|
private String suffixCode;
|
|
private String suffixCode;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 资产类型 0-普通资产 1-机柜
|
|
|
|
+ */
|
|
|
|
+ @TableField("good_type")
|
|
|
|
+ private Integer goodType;
|
|
|
|
|
|
- public Integer getId() {
|
|
|
|
- return id;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setId(Integer id) {
|
|
|
|
- this.id = id;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getName() {
|
|
|
|
- return name;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setName(String name) {
|
|
|
|
- this.name = name;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Integer getTagId() {
|
|
|
|
- return tagId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setTagId(Integer tagId) {
|
|
|
|
- this.tagId = tagId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getModelNumber() {
|
|
|
|
- return modelNumber;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setModelNumber(String modelNumber) {
|
|
|
|
- this.modelNumber = modelNumber;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getUnit() {
|
|
|
|
- return unit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setUnit(String unit) {
|
|
|
|
- this.unit = unit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getAddress() {
|
|
|
|
- return address;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setAddress(String address) {
|
|
|
|
- this.address = address;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getFactory() {
|
|
|
|
- return factory;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setFactory(String factory) {
|
|
|
|
- this.factory = factory;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getPic() {
|
|
|
|
- return pic;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setPic(String pic) {
|
|
|
|
- this.pic = pic;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Integer getServiceLife() {
|
|
|
|
- return serviceLife;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setServiceLife(Integer serviceLife) {
|
|
|
|
- this.serviceLife = serviceLife;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getNextIndate() {
|
|
|
|
- return nextIndate;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setNextIndate(String nextIndate) {
|
|
|
|
- this.nextIndate = nextIndate;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Integer getIsDelete() {
|
|
|
|
- return isDelete;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setIsDelete(Integer isDelete) {
|
|
|
|
- this.isDelete = isDelete;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Integer getCreatorId() {
|
|
|
|
- return creatorId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setCreatorId(Integer creatorId) {
|
|
|
|
- this.creatorId = creatorId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getDivisionCode() {
|
|
|
|
- return divisionCode;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setDivisionCode(String divisionCode) {
|
|
|
|
- this.divisionCode = divisionCode;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getSuffixCode() {
|
|
|
|
- return suffixCode;
|
|
|
|
- }
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 机柜id(只用于录入,没有与其他表关联)
|
|
|
|
+ */
|
|
|
|
+ @TableField("rack_id")
|
|
|
|
+ private String rackId;
|
|
|
|
|
|
- public void setSuffixCode(String suffixCode) {
|
|
|
|
- this.suffixCode = suffixCode;
|
|
|
|
- }
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
protected Serializable pkVal() {
|
|
protected Serializable pkVal() {
|
|
return this.id;
|
|
return this.id;
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
- public String toString() {
|
|
|
|
- return "Goods{" +
|
|
|
|
- "id=" + id +
|
|
|
|
- ", name=" + name +
|
|
|
|
- ", tagId=" + tagId +
|
|
|
|
- ", modelNumber=" + modelNumber +
|
|
|
|
- ", unit=" + unit +
|
|
|
|
- ", address=" + address +
|
|
|
|
- ", factory=" + factory +
|
|
|
|
- ", pic=" + pic +
|
|
|
|
- ", serviceLife=" + serviceLife +
|
|
|
|
- ", nextIndate=" + nextIndate +
|
|
|
|
- ", isDelete=" + isDelete +
|
|
|
|
- ", creatorId=" + creatorId +
|
|
|
|
- ", divisionCode=" + divisionCode +
|
|
|
|
- ", suffixCode=" + suffixCode +
|
|
|
|
- "}";
|
|
|
|
- }
|
|
|
|
}
|
|
}
|