From 6c5d2211582896e9ade3288e7a0d9127210ee4b7 Mon Sep 17 00:00:00 2001 From: Administrator <zhubaomin> Date: 星期四, 07 十二月 2023 18:49:52 +0800 Subject: [PATCH] 2023-12-07 朱宝民 营销模块第一部分2 --- pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSe/SeClientCard.java | 173 +++++++++++++++++---------------------------------------- 1 files changed, 51 insertions(+), 122 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSe/SeClientCard.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSe/SeClientCard.java index 3982c70..ed592ae 100644 --- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSe/SeClientCard.java +++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSe/SeClientCard.java @@ -1,5 +1,18 @@ package com.dy.pipIrrGlobal.pojoSe; +import com.alibaba.fastjson2.annotation.JSONField; +import com.alibaba.fastjson2.writer.ObjectWriterImplToString; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.dy.common.po.BaseEntity; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Positive; +import jakarta.validation.constraints.Size; +import lombok.*; +import org.hibernate.validator.constraints.Length; + import java.util.Date; /** @@ -8,202 +21,118 @@ * @LastEditTime 2023/12/7 9:06 * @Description */ + /** - * 鍐滄埛姘村崱琛� - */ -public class SeClientCard { + * 鍐滄埛姘村崱琛� + */ + +@TableName(value="se_client_card", autoResultMap = true) +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@Schema(name = "鍐滄埛姘村崱瀹炰綋") +public class SeClientCard implements BaseEntity { + public static final long serialVersionUID = 1L; + /** * 涓婚敭 */ + @JSONField(serializeUsing= ObjectWriterImplToString.class) + @TableId(type = IdType.INPUT) + @Schema(description = "瀹炰綋id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Long id; /** * 姘村崱鍦板潃 */ + @Schema(description = "姘村崱鍦板潃", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @NotBlank(message = "姘村崱鍦板潃涓嶈兘涓虹┖") private String cardaddr; /** * 鍐滄埛ID */ + @Schema(description = "鍐滄埛ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Positive(message = "鍐滄埛ID蹇呴』涓哄ぇ浜�0鐨勬暣鏁�") private Long clientid; /** * 浣欓 */ + @Schema(description = "浣欓", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Double money; /** * 鍗$墖鐘舵��;1-姝e父锛�2-宸叉敞閿�锛�3-宸叉寕澶� */ + @Schema(description = "鍗$墖鐘舵��", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Positive(message = "鍗$墖鐘舵�佸繀椤讳负1鎴�2鎴�3") + @Size(min = 1, max = 3) private Byte state; /** * 寮�鍗℃椂闂� */ + @Schema(description = "寮�鍗℃椂闂�", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Date createdt; /** * 琛ュ崱鏃堕棿 */ + @Schema(description = "琛ュ崱鏃堕棿", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Date replacedt; /** * 鍏呭�兼椂闂� */ + @Schema(description = "鍏呭�兼椂闂�", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Date rechargedt; /** * 鎸傚け鏃堕棿 */ + @Schema(description = "鎸傚け鏃堕棿", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Date lossdtdt; /** * 娉ㄩ攢鏃堕棿 */ + @Schema(description = "娉ㄩ攢鏃堕棿", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Date canceldt; /** * 瑙i攣鏃堕棿 */ + @Schema(description = "瑙i攣鏃堕棿", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Date unlockdt; /** * 鍐叉鏃堕棿 */ + @Schema(description = "鍐叉鏃堕棿", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Date reversaldt; /** * 娑堣垂鏃堕棿 */ + @Schema(description = "娑堣垂鏃堕棿", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Date consumedt; /** * 鏈�鍚庢搷浣滅被鍨�;1-寮�鍗★紝2-琛ュ崱锛�3-鍏呭�硷紝4-鎸傚け锛�5-娉ㄩ攢锛�6-瑙i攣锛�7-鍐叉锛�8-娑堣垂 */ + @Schema(description = "鏈�鍚庢搷浣滅被鍨�", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Positive(message = "鍗$墖鐘舵�佸繀椤讳负1鍒�8鐨勬鏁存暟") + @Size(min = 1, max = 8) private Byte lastoper; /** * 澶囨敞淇℃伅 */ + @Schema(description = "澶囨敞", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Length(message = "澶囨敞闀垮害灏忎簬{max}瀛�", min = 1, max = 200) private String remarks; - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getCardaddr() { - return cardaddr; - } - - public void setCardaddr(String cardaddr) { - this.cardaddr = cardaddr; - } - - public Long getClientid() { - return clientid; - } - - public void setClientid(Long clientid) { - this.clientid = clientid; - } - - public Double getMoney() { - return money; - } - - public void setMoney(Double money) { - this.money = money; - } - - public Byte getState() { - return state; - } - - public void setState(Byte state) { - this.state = state; - } - - public Date getCreatedt() { - return createdt; - } - - public void setCreatedt(Date createdt) { - this.createdt = createdt; - } - - public Date getReplacedt() { - return replacedt; - } - - public void setReplacedt(Date replacedt) { - this.replacedt = replacedt; - } - - public Date getRechargedt() { - return rechargedt; - } - - public void setRechargedt(Date rechargedt) { - this.rechargedt = rechargedt; - } - - public Date getLossdtdt() { - return lossdtdt; - } - - public void setLossdtdt(Date lossdtdt) { - this.lossdtdt = lossdtdt; - } - - public Date getCanceldt() { - return canceldt; - } - - public void setCanceldt(Date canceldt) { - this.canceldt = canceldt; - } - - public Date getUnlockdt() { - return unlockdt; - } - - public void setUnlockdt(Date unlockdt) { - this.unlockdt = unlockdt; - } - - public Date getReversaldt() { - return reversaldt; - } - - public void setReversaldt(Date reversaldt) { - this.reversaldt = reversaldt; - } - - public Date getConsumedt() { - return consumedt; - } - - public void setConsumedt(Date consumedt) { - this.consumedt = consumedt; - } - - public Byte getLastoper() { - return lastoper; - } - - public void setLastoper(Byte lastoper) { - this.lastoper = lastoper; - } - - public String getRemarks() { - return remarks; - } - - public void setRemarks(String remarks) { - this.remarks = remarks; - } } \ No newline at end of file -- Gitblit v1.8.0