From e90881819710950ec6b6bc7afa1f689e748d1eae Mon Sep 17 00:00:00 2001 From: 76164 <761646706@qq.com> Date: Thu, 8 Aug 2024 10:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=BA=86=20=E9=85=8D=E4=BB=B6?= =?UTF-8?q?=E7=AE=A1=E7=90=86=20excel=E5=AF=BC=E5=85=A5bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bonus/sgzb/base/domain/MapType.java | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/domain/MapType.java diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/domain/MapType.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/domain/MapType.java new file mode 100644 index 00000000..c26b5b39 --- /dev/null +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/domain/MapType.java @@ -0,0 +1,47 @@ +package com.bonus.sgzb.base.domain; + +import com.bonus.sgzb.common.core.annotation.Excel; +import com.bonus.sgzb.common.core.web.domain.BaseEntity; +import lombok.Data; + +import java.util.Objects; + +/** + * 配件类型管理ma_part_type(MaPartType)表实体类 + * + * @author makejava + * @since 2023-11-27 16:44:09 + */ +@SuppressWarnings("serial") +@Data +public class MapType extends BaseEntity { + + //类型名称 + @Excel(name = "类型名称") + private String paName; + + //计量单位ID + @Excel(name = "计量单位ID") + private String unitId; + + //原值 + @Excel(name = "原值") + private String buyPrice; + + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + MapType mapType = (MapType) o; + return Objects.equals(paName, mapType.paName) && + Objects.equals(unitId, mapType.unitId) && + Objects.equals(buyPrice, mapType.buyPrice); + } + + @Override + public int hashCode() { + return Objects.hash(paName, unitId, buyPrice); + } + +} +