mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-07-25 07:07:37 +08:00
feat(JsPurchaser, JsReceipt, JsSupplier): add tags field to DTOs and entities for enhanced categorization
This commit is contained in:
@@ -2,10 +2,17 @@ package cn.lihongjie.coal.jsPurchaser.dto;
|
||||
|
||||
import cn.lihongjie.coal.base.dto.OrgCommonDto;
|
||||
|
||||
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class CreateJsPurchaserDto extends OrgCommonDto {
|
||||
@@ -33,4 +40,9 @@ public class CreateJsPurchaserDto extends OrgCommonDto {
|
||||
|
||||
|
||||
private String address;
|
||||
|
||||
@Comment("标签")
|
||||
@Column(columnDefinition = "text[]")
|
||||
@Type(ListArrayType.class)
|
||||
private List<String> tags;
|
||||
}
|
||||
|
||||
@@ -4,9 +4,16 @@ import cn.lihongjie.coal.base.dto.OrgCommonDto;
|
||||
import cn.lihongjie.coal.common.DictCode;
|
||||
import cn.lihongjie.coal.pojoProcessor.DictTranslate;
|
||||
|
||||
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class JsPurchaserDto extends OrgCommonDto {
|
||||
@@ -41,4 +48,10 @@ public class JsPurchaserDto extends OrgCommonDto {
|
||||
|
||||
|
||||
private String address;
|
||||
|
||||
|
||||
@Comment("标签")
|
||||
@Column(columnDefinition = "text[]")
|
||||
@Type(ListArrayType.class)
|
||||
private List<String> tags;
|
||||
}
|
||||
|
||||
@@ -2,9 +2,16 @@ package cn.lihongjie.coal.jsPurchaser.dto;
|
||||
|
||||
import cn.lihongjie.coal.base.dto.OrgCommonDto;
|
||||
|
||||
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class UpdateJsPurchaserDto extends OrgCommonDto {
|
||||
@@ -31,4 +38,10 @@ public class UpdateJsPurchaserDto extends OrgCommonDto {
|
||||
|
||||
private String address;
|
||||
|
||||
|
||||
@Comment("标签")
|
||||
@Column(columnDefinition = "text[]")
|
||||
@Type(ListArrayType.class)
|
||||
private List<String> tags;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,9 @@ package cn.lihongjie.coal.jsPurchaser.entity;
|
||||
|
||||
import cn.lihongjie.coal.base.entity.OrgCommonEntity;
|
||||
|
||||
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@@ -9,6 +12,9 @@ import lombok.Data;
|
||||
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@@ -42,4 +48,10 @@ public class JsPurchaserEntity extends OrgCommonEntity {
|
||||
|
||||
|
||||
private String address;
|
||||
|
||||
|
||||
@Comment("标签")
|
||||
@Column(columnDefinition = "text[]")
|
||||
@Type(ListArrayType.class)
|
||||
private List<String> tags;
|
||||
}
|
||||
|
||||
@@ -3,9 +3,14 @@ package cn.lihongjie.coal.jsReceipt.dto;
|
||||
import cn.lihongjie.coal.base.dto.OrgCommonDto;
|
||||
import cn.lihongjie.coal.jsReceiptDetail.dto.CreateJsReceiptDetailDto;
|
||||
|
||||
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
@@ -41,4 +46,14 @@ public class CreateJsReceiptDto extends OrgCommonDto {
|
||||
|
||||
@Comment("事由")
|
||||
private String reason;
|
||||
|
||||
|
||||
@Comment("标签")
|
||||
@Column(columnDefinition = "text[]")
|
||||
@Type(ListArrayType.class)
|
||||
private List<String> tags;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -54,4 +54,11 @@ public class JsReceiptDto extends OrgCommonDto {
|
||||
|
||||
@Comment("事由")
|
||||
private String reason;
|
||||
|
||||
|
||||
@Comment("标签")
|
||||
private List<String> tags;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ import lombok.Data;
|
||||
import org.hibernate.annotations.Comment;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class JsReceiptSimpleDto extends OrgCommonDto {
|
||||
@@ -52,4 +53,12 @@ public class JsReceiptSimpleDto extends OrgCommonDto {
|
||||
|
||||
@Comment("事由")
|
||||
private String reason;
|
||||
|
||||
|
||||
@Comment("标签")
|
||||
private List<String> tags;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -43,4 +43,11 @@ public class UpdateJsReceiptDto extends OrgCommonDto {
|
||||
|
||||
@Comment("事由")
|
||||
private String reason;
|
||||
|
||||
|
||||
@Comment("标签")
|
||||
private List<String> tags;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@ import cn.lihongjie.coal.jsPurchaser.entity.JsPurchaserEntity;
|
||||
import cn.lihongjie.coal.jsReceiptDetail.entity.JsReceiptDetailEntity;
|
||||
import cn.lihongjie.coal.jsSupplier.entity.JsSupplierEntity;
|
||||
|
||||
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
import lombok.Data;
|
||||
@@ -12,6 +14,7 @@ import lombok.EqualsAndHashCode;
|
||||
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
@@ -74,4 +77,12 @@ public class JsReceiptEntity extends OrgCommonEntity {
|
||||
|
||||
@Comment("事由")
|
||||
private String reason;
|
||||
|
||||
|
||||
@Comment("标签")
|
||||
@Column(columnDefinition = "text[]")
|
||||
@Type(ListArrayType.class)
|
||||
private List<String> tags;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -2,9 +2,16 @@ package cn.lihongjie.coal.jsSupplier.dto;
|
||||
|
||||
import cn.lihongjie.coal.base.dto.OrgCommonDto;
|
||||
|
||||
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class CreateJsSupplierDto extends OrgCommonDto {
|
||||
@@ -22,4 +29,9 @@ public class CreateJsSupplierDto extends OrgCommonDto {
|
||||
|
||||
|
||||
private String address;
|
||||
|
||||
@Comment("标签")
|
||||
@Column(columnDefinition = "text[]")
|
||||
@Type(ListArrayType.class)
|
||||
private List<String> tags;
|
||||
}
|
||||
|
||||
@@ -4,9 +4,16 @@ import cn.lihongjie.coal.base.dto.OrgCommonDto;
|
||||
import cn.lihongjie.coal.common.DictCode;
|
||||
import cn.lihongjie.coal.pojoProcessor.DictTranslate;
|
||||
|
||||
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class JsSupplierDto extends OrgCommonDto {
|
||||
@@ -33,4 +40,9 @@ public class JsSupplierDto extends OrgCommonDto {
|
||||
|
||||
|
||||
private String address;
|
||||
|
||||
@Comment("标签")
|
||||
@Column(columnDefinition = "text[]")
|
||||
@Type(ListArrayType.class)
|
||||
private List<String> tags;
|
||||
}
|
||||
|
||||
@@ -2,8 +2,17 @@ package cn.lihongjie.coal.jsSupplier.dto;
|
||||
|
||||
import cn.lihongjie.coal.base.dto.OrgCommonDto;
|
||||
|
||||
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class UpdateJsSupplierDto extends OrgCommonDto {
|
||||
private String socialCreditCode;
|
||||
@@ -20,4 +29,9 @@ public class UpdateJsSupplierDto extends OrgCommonDto {
|
||||
|
||||
|
||||
private String address;
|
||||
|
||||
@Comment("标签")
|
||||
@Column(columnDefinition = "text[]")
|
||||
@Type(ListArrayType.class)
|
||||
private List<String> tags;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,9 @@ package cn.lihongjie.coal.jsSupplier.entity;
|
||||
|
||||
import cn.lihongjie.coal.base.entity.OrgCommonEntity;
|
||||
|
||||
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@@ -9,6 +12,9 @@ import lombok.Data;
|
||||
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@@ -42,4 +48,11 @@ public class JsSupplierEntity extends OrgCommonEntity {
|
||||
|
||||
|
||||
private String address;
|
||||
|
||||
|
||||
|
||||
@Comment("标签")
|
||||
@Column(columnDefinition = "text[]")
|
||||
@Type(ListArrayType.class)
|
||||
private List<String> tags;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user