package com.ydtech.modules.ins.model; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; /** * 人力成本表 * @TableName ins_labor_cost */ @TableName(value ="ins_labor_cost") @Data public class InsLaborCost implements Serializable { /** * 主键 */ @TableId(type = IdType.AUTO) private Long id; /** * 年-月 */ @TableField(value="year_and_month") private String yearAndMonth; /** * 人力成本 */ @TableField(value="labor_cost") private BigDecimal laborCost; /** * 固定成本 */ @TableField(value="fixed_cost") private BigDecimal fixedCost; /** * 变动成本 */ @TableField(value="variable_cost") private BigDecimal variableCost; /** * 经营利润 */ @TableField(value="operating_profit") private BigDecimal operatingProfit; /** * 税费 */ @TableField(value="taxation") private BigDecimal taxation; /** * 净利润 */ @TableField(value="net_profit") private BigDecimal netProfit; /** * 创建人 */ @TableField(value="create_user") private String createUser; /** * 创建时间 */ @TableField(value="create_date") private Date createDate; /** * 修改人 */ @TableField(value="update_user") private Date updateUser; /** * 修改时间 */ @TableField(value="update_date") private Date updateDate; @TableField(exist = false) private static final long serialVersionUID = 1L; @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } InsLaborCost other = (InsLaborCost) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getYearAndMonth() == null ? other.getYearAndMonth() == null : this.getYearAndMonth().equals(other.getYearAndMonth())) && (this.getLaborCost() == null ? other.getLaborCost() == null : this.getLaborCost().equals(other.getLaborCost())) && (this.getFixedCost() == null ? other.getFixedCost() == null : this.getFixedCost().equals(other.getFixedCost())) && (this.getVariableCost() == null ? other.getVariableCost() == null : this.getVariableCost().equals(other.getVariableCost())) && (this.getOperatingProfit() == null ? other.getOperatingProfit() == null : this.getOperatingProfit().equals(other.getOperatingProfit())) && (this.getTaxation() == null ? other.getTaxation() == null : this.getTaxation().equals(other.getTaxation())) && (this.getNetProfit() == null ? other.getNetProfit() == null : this.getNetProfit().equals(other.getNetProfit())) && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser())) && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate())) && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser())) && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getYearAndMonth() == null) ? 0 : getYearAndMonth().hashCode()); result = prime * result + ((getLaborCost() == null) ? 0 : getLaborCost().hashCode()); result = prime * result + ((getFixedCost() == null) ? 0 : getFixedCost().hashCode()); result = prime * result + ((getVariableCost() == null) ? 0 : getVariableCost().hashCode()); result = prime * result + ((getOperatingProfit() == null) ? 0 : getOperatingProfit().hashCode()); result = prime * result + ((getTaxation() == null) ? 0 : getTaxation().hashCode()); result = prime * result + ((getNetProfit() == null) ? 0 : getNetProfit().hashCode()); result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode()); result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode()); result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode()); return result; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", yearAndMonth=").append(yearAndMonth); sb.append(", laborCost=").append(laborCost); sb.append(", fixedCost=").append(fixedCost); sb.append(", variableCost=").append(variableCost); sb.append(", operatingProfit=").append(operatingProfit); sb.append(", taxation=").append(taxation); sb.append(", netProfit=").append(netProfit); sb.append(", createUser=").append(createUser); sb.append(", createDate=").append(createDate); sb.append(", updateUser=").append(updateUser); sb.append(", updateDate=").append(updateDate); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }