mirror of https://github.com/jeecgboot/jeecg-boot
Adapt ShoumanOrderContent to the fact that now multiple regexes can exist
parent
dcc862b25d
commit
983d86580e
|
@ -3,6 +3,7 @@ package org.jeecg.modules.business.entity;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class ShoumanOrderContent {
|
public class ShoumanOrderContent {
|
||||||
|
@ -19,34 +20,12 @@ public class ShoumanOrderContent {
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
private String productName;
|
private String productName;
|
||||||
private String remark;
|
private String remark;
|
||||||
private String contentRecRegex;
|
|
||||||
private String contentExtRegex;
|
|
||||||
private BigDecimal price;
|
private BigDecimal price;
|
||||||
private String imageUrl;
|
private String imageUrl;
|
||||||
private String sku;
|
private String sku;
|
||||||
|
private List<ShoumanRegex> regexList;
|
||||||
|
|
||||||
public ShoumanOrderContent(String shopErpCode, String platformOrderId, String platformOrderNumber, String postcode,
|
public ShoumanOrderContent() {
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -64,11 +43,10 @@ public class ShoumanOrderContent {
|
||||||
", quantity=" + quantity +
|
", quantity=" + quantity +
|
||||||
", productName='" + productName + '\'' +
|
", productName='" + productName + '\'' +
|
||||||
", remark='" + remark + '\'' +
|
", remark='" + remark + '\'' +
|
||||||
", contentRecRegex='" + contentRecRegex + '\'' +
|
|
||||||
", contentExtRegex='" + contentExtRegex + '\'' +
|
|
||||||
", price=" + price +
|
", price=" + price +
|
||||||
", imageUrl='" + imageUrl + '\'' +
|
", imageUrl='" + imageUrl + '\'' +
|
||||||
", sku='" + sku + '\'' +
|
", sku='" + sku + '\'' +
|
||||||
|
", regexList='" + regexList + '\'' +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -361,7 +361,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="searchShoumanOrderContent"
|
<select id="searchShoumanOrderContent"
|
||||||
resultType="org.jeecg.modules.business.entity.ShoumanOrderContent">
|
resultType="org.jeecg.modules.business.entity.ShoumanOrderContent" resultMap="shoumanOrderContentResultMap">
|
||||||
select sh.erp_code,
|
select sh.erp_code,
|
||||||
po.platform_order_id,
|
po.platform_order_id,
|
||||||
po.platform_order_number,
|
po.platform_order_number,
|
||||||
|
@ -374,18 +374,23 @@
|
||||||
poc.quantity,
|
poc.quantity,
|
||||||
sc.product_name,
|
sc.product_name,
|
||||||
ssr.remark,
|
ssr.remark,
|
||||||
sc.content_rec_regex,
|
|
||||||
sc.content_ext_regex,
|
|
||||||
sc.price,
|
sc.price,
|
||||||
sc.image_url,
|
sc.image_url,
|
||||||
sc.sku
|
sc.sku,
|
||||||
|
sr.content_rec_regex,
|
||||||
|
sr.content_ext_regex,
|
||||||
|
sr.prefix,
|
||||||
|
sr.is_size_regex
|
||||||
from platform_order_content poc
|
from platform_order_content poc
|
||||||
join platform_order po on poc.platform_order_id = po.id
|
join platform_order po on poc.platform_order_id = po.id
|
||||||
join shop sh on po.shop_id = sh.id
|
join shop sh on po.shop_id = sh.id
|
||||||
join sku s on poc.sku_id = s.id
|
join sku s on poc.sku_id = s.id
|
||||||
join shouman_sku_relation ssr on s.id = ssr.sku_id
|
join shouman_sku_relation ssr on s.id = ssr.sku_id
|
||||||
join shouman_category sc on ssr.shouman_category_id = sc.id
|
join shouman_category sc on ssr.shouman_category_id = sc.id
|
||||||
where poc.erp_status = 1 and po.platform_order_id not in (select platform_order_id from shouman_order);
|
join shouman_regex sr on sc.id = sr.shouman_category_id
|
||||||
|
where poc.erp_status = 1
|
||||||
|
and sr.is_active = 1
|
||||||
|
and po.platform_order_id not in (select platform_order_id from shouman_order);
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<resultMap id="shoumanOrderContentResultMap" type="org.jeecg.modules.business.entity.ShoumanOrderContent">
|
<resultMap id="shoumanOrderContentResultMap" type="org.jeecg.modules.business.entity.ShoumanOrderContent">
|
||||||
|
@ -401,10 +406,14 @@
|
||||||
<result property="quantity" column="quantity"/>
|
<result property="quantity" column="quantity"/>
|
||||||
<result property="productName" column="product_name" javaType="string"/>
|
<result property="productName" column="product_name" javaType="string"/>
|
||||||
<result property="remark" column="remark" javaType="string"/>
|
<result property="remark" column="remark" javaType="string"/>
|
||||||
<result property="contentRecRegex" column="content_rec_regex" javaType="string"/>
|
|
||||||
<result property="contentExtRegex" column="content_ext_regex" javaType="string"/>
|
|
||||||
<result property="price" column="price"/>
|
<result property="price" column="price"/>
|
||||||
<result property="imageUrl" column="image_url" javaType="string"/>
|
<result property="imageUrl" column="image_url" javaType="string"/>
|
||||||
<result property="sku" column="sku" javaType="string"/>
|
<result property="sku" column="sku" javaType="string"/>
|
||||||
|
<collection property="regexList" ofType="org.jeecg.modules.business.entity.ShoumanRegex">
|
||||||
|
<result property="contentRecRegex" column="content_rec_regex" javaType="string"/>
|
||||||
|
<result property="contentExtRegex" column="content_ext_regex" javaType="string"/>
|
||||||
|
<result property="prefix" column="prefix" javaType="string"/>
|
||||||
|
<result property="isSizeRegex" column="is_size_regex" javaType="string"/>
|
||||||
|
</collection>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue