InsLaborCost.java 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. package com.ydtech.modules.ins.model;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import lombok.Data;
  7. import java.io.Serializable;
  8. import java.math.BigDecimal;
  9. import java.util.Date;
  10. /**
  11. * 人力成本表
  12. * @TableName ins_labor_cost
  13. */
  14. @TableName(value ="ins_labor_cost")
  15. @Data
  16. public class InsLaborCost implements Serializable {
  17. /**
  18. * 主键
  19. */
  20. @TableId(type = IdType.AUTO)
  21. private Long id;
  22. /**
  23. * 年-月
  24. */
  25. @TableField(value="year_and_month")
  26. private String yearAndMonth;
  27. /**
  28. * 人力成本
  29. */
  30. @TableField(value="labor_cost")
  31. private BigDecimal laborCost;
  32. /**
  33. * 固定成本
  34. */
  35. @TableField(value="fixed_cost")
  36. private BigDecimal fixedCost;
  37. /**
  38. * 变动成本
  39. */
  40. @TableField(value="variable_cost")
  41. private BigDecimal variableCost;
  42. /**
  43. * 经营利润
  44. */
  45. @TableField(value="operating_profit")
  46. private BigDecimal operatingProfit;
  47. /**
  48. * 税费
  49. */
  50. @TableField(value="taxation")
  51. private BigDecimal taxation;
  52. /**
  53. * 净利润
  54. */
  55. @TableField(value="net_profit")
  56. private BigDecimal netProfit;
  57. /**
  58. * 创建人
  59. */
  60. @TableField(value="create_user")
  61. private String createUser;
  62. /**
  63. * 创建时间
  64. */
  65. @TableField(value="create_date")
  66. private Date createDate;
  67. /**
  68. * 修改人
  69. */
  70. @TableField(value="update_user")
  71. private Date updateUser;
  72. /**
  73. * 修改时间
  74. */
  75. @TableField(value="update_date")
  76. private Date updateDate;
  77. @TableField(exist = false)
  78. private static final long serialVersionUID = 1L;
  79. @Override
  80. public boolean equals(Object that) {
  81. if (this == that) {
  82. return true;
  83. }
  84. if (that == null) {
  85. return false;
  86. }
  87. if (getClass() != that.getClass()) {
  88. return false;
  89. }
  90. InsLaborCost other = (InsLaborCost) that;
  91. return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
  92. && (this.getYearAndMonth() == null ? other.getYearAndMonth() == null : this.getYearAndMonth().equals(other.getYearAndMonth()))
  93. && (this.getLaborCost() == null ? other.getLaborCost() == null : this.getLaborCost().equals(other.getLaborCost()))
  94. && (this.getFixedCost() == null ? other.getFixedCost() == null : this.getFixedCost().equals(other.getFixedCost()))
  95. && (this.getVariableCost() == null ? other.getVariableCost() == null : this.getVariableCost().equals(other.getVariableCost()))
  96. && (this.getOperatingProfit() == null ? other.getOperatingProfit() == null : this.getOperatingProfit().equals(other.getOperatingProfit()))
  97. && (this.getTaxation() == null ? other.getTaxation() == null : this.getTaxation().equals(other.getTaxation()))
  98. && (this.getNetProfit() == null ? other.getNetProfit() == null : this.getNetProfit().equals(other.getNetProfit()))
  99. && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
  100. && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
  101. && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
  102. && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()));
  103. }
  104. @Override
  105. public int hashCode() {
  106. final int prime = 31;
  107. int result = 1;
  108. result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
  109. result = prime * result + ((getYearAndMonth() == null) ? 0 : getYearAndMonth().hashCode());
  110. result = prime * result + ((getLaborCost() == null) ? 0 : getLaborCost().hashCode());
  111. result = prime * result + ((getFixedCost() == null) ? 0 : getFixedCost().hashCode());
  112. result = prime * result + ((getVariableCost() == null) ? 0 : getVariableCost().hashCode());
  113. result = prime * result + ((getOperatingProfit() == null) ? 0 : getOperatingProfit().hashCode());
  114. result = prime * result + ((getTaxation() == null) ? 0 : getTaxation().hashCode());
  115. result = prime * result + ((getNetProfit() == null) ? 0 : getNetProfit().hashCode());
  116. result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
  117. result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
  118. result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
  119. result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
  120. return result;
  121. }
  122. @Override
  123. public String toString() {
  124. StringBuilder sb = new StringBuilder();
  125. sb.append(getClass().getSimpleName());
  126. sb.append(" [");
  127. sb.append("Hash = ").append(hashCode());
  128. sb.append(", id=").append(id);
  129. sb.append(", yearAndMonth=").append(yearAndMonth);
  130. sb.append(", laborCost=").append(laborCost);
  131. sb.append(", fixedCost=").append(fixedCost);
  132. sb.append(", variableCost=").append(variableCost);
  133. sb.append(", operatingProfit=").append(operatingProfit);
  134. sb.append(", taxation=").append(taxation);
  135. sb.append(", netProfit=").append(netProfit);
  136. sb.append(", createUser=").append(createUser);
  137. sb.append(", createDate=").append(createDate);
  138. sb.append(", updateUser=").append(updateUser);
  139. sb.append(", updateDate=").append(updateDate);
  140. sb.append(", serialVersionUID=").append(serialVersionUID);
  141. sb.append("]");
  142. return sb.toString();
  143. }
  144. }