mirror of https://github.com/jeecgboot/jeecg-boot
Build ShoumanOrderContent from DB
parent
631dbc2c32
commit
023046416d
|
@ -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 + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
|
@ -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<PlatformOrderCont
|
|||
void insertPlatformOrderContentsArchives(@Param("orderContents") List<PlatformOrderContent> platformOrderContents);
|
||||
void cancelInvoice(@Param("invoiceNumber") String invoiceNumber);
|
||||
void cancelBatchInvoice(@Param("invoiceNumbers") List<String> invoiceNumbers);
|
||||
|
||||
List<ShoumanOrderContent> searchShoumanOrderContent();
|
||||
}
|
||||
|
|
|
@ -313,4 +313,48 @@
|
|||
#{invoiceNumber}
|
||||
</foreach>);
|
||||
</update>
|
||||
|
||||
<select id="searchShoumanOrderContent"
|
||||
resultType="org.jeecg.modules.business.entity.ShoumanOrderContent">
|
||||
select po.platform_order_id,
|
||||
po.platform_order_number,
|
||||
po.postcode,
|
||||
po.recipient,
|
||||
po.city,
|
||||
po.country,
|
||||
poc.id as platform_order_content_id,
|
||||
poc.customization_data,
|
||||
poc.quantity,
|
||||
sc.product_name,
|
||||
ssr.remark,
|
||||
sc.content_rec_regex,
|
||||
sc.content_ext_regex,
|
||||
sc.price,
|
||||
sc.image_url,
|
||||
sc.sku
|
||||
from platform_order_content poc
|
||||
join platform_order po on poc.platform_order_id = po.id
|
||||
join sku s on poc.sku_id = s.id
|
||||
join shouman_sku_relation ssr on s.id = ssr.sku_id
|
||||
join shouman_category sc on ssr.shouman_category_id = sc.id;
|
||||
</select>
|
||||
|
||||
<resultMap id="shoumanOrderContentResultMap" type="org.jeecg.modules.business.entity.ShoumanOrderContent">
|
||||
<id property="platformOrderContentId" column="platform_order_content_id" javaType="string"/>
|
||||
<result property="platformOrderId" column="platform_order_id" javaType="string"/>
|
||||
<result property="platformOrderNumber" column="platform_order_number" javaType="string"/>
|
||||
<result property="postcode" column="postcode" javaType="string"/>
|
||||
<result property="recipient" column="recipient" javaType="string"/>
|
||||
<result property="city" column="city" javaType="string"/>
|
||||
<result property="country" column="country" javaType="string"/>
|
||||
<result property="customizationData" column="customization_data" javaType="string"/>
|
||||
<result property="quantity" column="quantity"/>
|
||||
<result property="productName" column="product_name" 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="imageUrl" column="image_url" javaType="string"/>
|
||||
<result property="sku" column="sku" javaType="string"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue