From 023046416d6ce6b59212486494ed6501f3102f31 Mon Sep 17 00:00:00 2001 From: Qiuyi LI Date: Thu, 7 Dec 2023 12:27:24 +0100 Subject: [PATCH] Build ShoumanOrderContent from DB --- .../business/entity/ShoumanOrderContent.java | 70 +++++++++++++++++++ .../mapper/PlatformOrderContentMapper.java | 3 + .../mapper/xml/PlatformOrderContentMapper.xml | 44 ++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/entity/ShoumanOrderContent.java diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/entity/ShoumanOrderContent.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/entity/ShoumanOrderContent.java new file mode 100644 index 000000000..906977129 --- /dev/null +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/entity/ShoumanOrderContent.java @@ -0,0 +1,70 @@ +package org.jeecg.modules.business.entity; + +import lombok.Data; + +import java.math.BigDecimal; + +@Data +public class ShoumanOrderContent { + + private String platformOrderId; + private String platformOrderNumber; + private String postcode; + private String recipient; + private String city; + private String country; + private String platformOrderContentId; + private String customizationData; + private Integer quantity; + private String productName; + private String remark; + private String contentRecRegex; + private String contentExtRegex; + private BigDecimal price; + private String imageUrl; + private String sku; + + public ShoumanOrderContent(String platformOrderId, String platformOrderNumber, String postcode, String recipient, + String city, String country, String platformOrderContentId, String customizationData, + Integer quantity, String productName, String remark, String contentRecRegex, + String contentExtRegex, BigDecimal price, String imageUrl, String sku) { + this.platformOrderId = platformOrderId; + this.platformOrderNumber = platformOrderNumber; + this.postcode = postcode; + this.recipient = recipient; + this.city = city; + this.country = country; + this.platformOrderContentId = platformOrderContentId; + this.customizationData = customizationData; + this.quantity = quantity; + this.productName = productName; + this.remark = remark; + this.contentRecRegex = contentRecRegex; + this.contentExtRegex = contentExtRegex; + this.price = price; + this.imageUrl = imageUrl; + this.sku = sku; + } + + @Override + public String toString() { + return "ShoumanOrderContent{" + + "platformOrderId='" + platformOrderId + '\'' + + "platformOrderNumber='" + platformOrderNumber + '\'' + + ", postcode='" + postcode + '\'' + + ", recipient='" + recipient + '\'' + + ", city='" + city + '\'' + + ", country='" + country + '\'' + + ", platformOrderContentId='" + platformOrderContentId + '\'' + + ", customizationData='" + customizationData + '\'' + + ", quantity=" + quantity + + ", productName='" + productName + '\'' + + ", remark='" + remark + '\'' + + ", contentRecRegex='" + contentRecRegex + '\'' + + ", contentExtRegex='" + contentExtRegex + '\'' + + ", price=" + price + + ", imageUrl='" + imageUrl + '\'' + + ", sku='" + sku + '\'' + + '}'; + } +} diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/mapper/PlatformOrderContentMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/mapper/PlatformOrderContentMapper.java index 13b1e3724..cffc68720 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/mapper/PlatformOrderContentMapper.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/mapper/PlatformOrderContentMapper.java @@ -5,6 +5,7 @@ import io.swagger.models.auth.In; import org.apache.ibatis.annotations.Param; import org.jeecg.modules.business.entity.ClientPlatformOrderContent; import org.jeecg.modules.business.entity.PlatformOrderContent; +import org.jeecg.modules.business.entity.ShoumanOrderContent; import org.jeecg.modules.business.vo.SkuDetail; import org.jeecg.modules.business.vo.SkuQuantity; import org.jeecg.modules.business.vo.SkuWeightDiscountServiceFees; @@ -75,4 +76,6 @@ public interface PlatformOrderContentMapper extends BaseMapper platformOrderContents); void cancelInvoice(@Param("invoiceNumber") String invoiceNumber); void cancelBatchInvoice(@Param("invoiceNumbers") List invoiceNumbers); + + List searchShoumanOrderContent(); } diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/mapper/xml/PlatformOrderContentMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/mapper/xml/PlatformOrderContentMapper.xml index 945c99bc5..4923917c7 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/mapper/xml/PlatformOrderContentMapper.xml +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/mapper/xml/PlatformOrderContentMapper.xml @@ -313,4 +313,48 @@ #{invoiceNumber} ); + + + + + + + + + + + + + + + + + + + + +