From d175d9c401fb97ebe6a580005a8c9ad5fedccb6b Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期一, 29 七月 2024 17:02:41 +0800
Subject: [PATCH] add other method
---
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPlt/PltProduct.java | 36 +++++++++++++++++++++++++++++++-----
1 files changed, 31 insertions(+), 5 deletions(-)
diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPlt/PltProduct.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPlt/PltProduct.java
index 296f51e..503318c 100644
--- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPlt/PltProduct.java
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPlt/PltProduct.java
@@ -6,10 +6,13 @@
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
import jakarta.validation.constraints.NotEmpty;
+import jakarta.validation.constraints.NotNull;
import lombok.*;
import java.util.Date;
+import java.util.List;
@TableName(value="plt_product", autoResultMap = true)
@Data
@@ -17,7 +20,7 @@
@ToString
@NoArgsConstructor
@AllArgsConstructor
-public class PltProduct {
+public class PltProduct implements BaseEntity {
/**
* 涓婚敭
*/
@@ -32,6 +35,11 @@
public String name;
/**
+ * 浜у搧鐮�
+ */
+ public String code;
+
+ /**
* 鍨嬪彿
*/
public String type;
@@ -39,27 +47,39 @@
/**
* 鍏稿瀷鍥剧墖
*/
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
public Long image;
+ /**
+ * 鍏稿瀷鍥剧墖web璺緞
+ */
@TableField(exist = false)
public String imageWebPath;
+ /**
+ * 鍏稿瀷鍥剧墖缂╃暐鍥緒eb璺緞
+ */
@TableField(exist = false)
public String imageWebPathZip;
+ /**
+ * 浜岀淮鐮�
+ */
+ @TableField(exist = false)
+ public String qrCode;
/**
* 鎶�鏈礋璐d汉
*/
- public Long director;
-
- @TableField(exist = false)
- public String directorName;
+ public String director;
/**
* 鎶�鏈礋璐d汉鎵嬫満鍙�
*/
public String dMobile;
+ /**
+ * 鏄惁鍒犻櫎锛�1鏄紝0鍚�
+ */
@JSONField(serialize = false)
public Boolean deleted;
@@ -73,5 +93,11 @@
*/
public String remark;
+ @NotNull(message = "鎶�鏈弬鏁颁笉鑳戒负绌�")
+ public List<PltProductParams> params;
+
+ @NotNull(message = "浜у搧鏂囦欢涓嶈兘涓虹┖")
+ public List<PltProductFile> proFiles;
+
}
\ No newline at end of file
--
Gitblit v1.8.0