| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- 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();
- }
- }
|