From 983d86580e17202349a71f17c0308653917e973b Mon Sep 17 00:00:00 2001 From: Qiuyi LI Date: Thu, 1 Aug 2024 17:34:10 +0200 Subject: [PATCH] Adapt ShoumanOrderContent to the fact that now multiple regexes can exist --- .../business/entity/ShoumanOrderContent.java | 30 +++---------------- .../mapper/xml/PlatformOrderContentMapper.xml | 23 +++++++++----- 2 files changed, 20 insertions(+), 33 deletions(-) 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 index 426708733..902e039c8 100644 --- 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 @@ -3,6 +3,7 @@ package org.jeecg.modules.business.entity; import lombok.Data; import java.math.BigDecimal; +import java.util.List; @Data public class ShoumanOrderContent { @@ -19,34 +20,12 @@ public class ShoumanOrderContent { private Integer quantity; private String productName; private String remark; - private String contentRecRegex; - private String contentExtRegex; private BigDecimal price; private String imageUrl; private String sku; + private List regexList; - public ShoumanOrderContent(String shopErpCode, 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.shopErpCode = shopErpCode; - 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; + public ShoumanOrderContent() { } @Override @@ -64,11 +43,10 @@ public class ShoumanOrderContent { ", quantity=" + quantity + ", productName='" + productName + '\'' + ", remark='" + remark + '\'' + - ", contentRecRegex='" + contentRecRegex + '\'' + - ", contentExtRegex='" + contentExtRegex + '\'' + ", price=" + price + ", imageUrl='" + imageUrl + '\'' + ", sku='" + sku + '\'' + + ", regexList='" + regexList + '\'' + '}'; } } 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 1ff3717e9..e223d1a7d 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 @@ -361,7 +361,7 @@ @@ -401,10 +406,14 @@ - - + + + + + +