Commit d8e1067c by ping.wu

订单列表新增bizTypes集合查询卖券订单

parent 0f1eacff
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<dependency> <dependency>
<groupId>cn.freemud</groupId> <groupId>cn.freemud</groupId>
<artifactId>ordercenter-sdk</artifactId> <artifactId>ordercenter-sdk</artifactId>
<version>1.2.10.RELEASE</version> <version>1.4.12-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.freemud.application.service.sdk</groupId> <groupId>com.freemud.application.service.sdk</groupId>
......
...@@ -502,7 +502,7 @@ public class OrderSdkAdapter { ...@@ -502,7 +502,7 @@ public class OrderSdkAdapter {
} catch (ParseException e) { } catch (ParseException e) {
e.printStackTrace(); e.printStackTrace();
} }
orderConditionsReq.setBizTypes(queryOrdersRequest.getBizTypes());
return orderConditionsReq; return orderConditionsReq;
} }
......
...@@ -29,4 +29,5 @@ public class QueryOrdersByConditionsRequest extends BaseConfig { ...@@ -29,4 +29,5 @@ public class QueryOrdersByConditionsRequest extends BaseConfig {
private String userId; private String userId;
//订单业务类型 1:普通订单 2:虚拟订单 //订单业务类型 1:普通订单 2:虚拟订单
private Integer bizType; private Integer bizType;
private List<Integer> bizTypes;
} }
...@@ -3,6 +3,8 @@ package com.freemud.sdk.api.assortment.order.request.order; ...@@ -3,6 +3,8 @@ package com.freemud.sdk.api.assortment.order.request.order;
import com.freemud.sdk.api.assortment.order.config.BaseConfig; import com.freemud.sdk.api.assortment.order.config.BaseConfig;
import lombok.Data; import lombok.Data;
import java.util.List;
@Data @Data
public class QueryOrdersRequest extends BaseConfig { public class QueryOrdersRequest extends BaseConfig {
...@@ -55,4 +57,6 @@ public class QueryOrdersRequest extends BaseConfig { ...@@ -55,4 +57,6 @@ public class QueryOrdersRequest extends BaseConfig {
*/ */
private String[] source; private String[] source;
private List<Integer> bizTypes;
} }
...@@ -823,6 +823,8 @@ public class OrderAdapter { ...@@ -823,6 +823,8 @@ public class OrderAdapter {
queryOrdersDto.setStatus(statuses); queryOrdersDto.setStatus(statuses);
queryOrdersDto.setType(new Integer[]{}); queryOrdersDto.setType(new Integer[]{});
} }
//商品订单和卖券订单
queryOrdersDto.setBizTypes(Arrays.asList(1,6));
return queryOrdersDto; return queryOrdersDto;
} }
...@@ -1650,13 +1652,14 @@ public class OrderAdapter { ...@@ -1650,13 +1652,14 @@ public class OrderAdapter {
productVo.setSpecification(""); productVo.setSpecification("");
List<InventedParentActivityVo> inventedParentActivityVos = new ArrayList<>(); List<InventedParentActivityVo> inventedParentActivityVos = new ArrayList<>();
String attributeNames = ""; String attributeNames = "";
if (StringUtils.isNotBlank(productBean.getAddInfo())) { if (StringUtils.isNotBlank(productBean.getAddInfo()) && productBean.getAddInfo().contains("attributeNames")) {
OrderProductAddInfo orderProductAddInfo = gson.fromJson(productBean.getAddInfo(), OrderProductAddInfo.class); OrderProductAddInfo orderProductAddInfo = gson.fromJson(productBean.getAddInfo(), OrderProductAddInfo.class);
if(productBean.getAddInfo().contains("attributeNames")){
attributeNames = orderProductAddInfo.getAttributeNames(); attributeNames = orderProductAddInfo.getAttributeNames();
productVo.setAttributeNames(attributeNames); productVo.setAttributeNames(attributeNames);
productVo.setSpecification(attributeNames); productVo.setSpecification(attributeNames);
} }
if(StringUtils.isNotBlank(productBean.getExtInfo())){
OrderProductAddInfo orderProductAddInfo = gson.fromJson(productBean.getExtInfo(), OrderProductAddInfo.class);
if(CollectionUtils.isNotEmpty(orderProductAddInfo.getProductBindingCoupons())){ if(CollectionUtils.isNotEmpty(orderProductAddInfo.getProductBindingCoupons())){
for (ProductBindingCouponType productBindingCouponType : orderProductAddInfo.getProductBindingCoupons()){ for (ProductBindingCouponType productBindingCouponType : orderProductAddInfo.getProductBindingCoupons()){
InventedParentActivityVo inventedParentActivityVo = new InventedParentActivityVo(); InventedParentActivityVo inventedParentActivityVo = new InventedParentActivityVo();
...@@ -1667,7 +1670,6 @@ public class OrderAdapter { ...@@ -1667,7 +1670,6 @@ public class OrderAdapter {
} }
productVo.setInventedParentActivitiesVo(inventedParentActivityVos); productVo.setInventedParentActivitiesVo(inventedParentActivityVos);
} }
} }
productVo.setOriginalPrice(productBean.getPrice()); productVo.setOriginalPrice(productBean.getPrice());
productVo.setFinalPrice(productBean.getSalePrice()); productVo.setFinalPrice(productBean.getSalePrice());
......
...@@ -2,6 +2,8 @@ package cn.freemud.entities.dto; ...@@ -2,6 +2,8 @@ package cn.freemud.entities.dto;
import lombok.Data; import lombok.Data;
import java.util.List;
@Data @Data
public class QueryOrdersDto { public class QueryOrdersDto {
...@@ -54,5 +56,6 @@ public class QueryOrdersDto { ...@@ -54,5 +56,6 @@ public class QueryOrdersDto {
*/ */
private String[] source; private String[] source;
private List<Integer> bizTypes;
} }
...@@ -106,6 +106,8 @@ public class OrderConditionsReq { ...@@ -106,6 +106,8 @@ public class OrderConditionsReq {
//订单业务类型 1:普通订单 2:虚拟订单 //订单业务类型 1:普通订单 2:虚拟订单
private Integer bizType; private Integer bizType;
private List<Integer> bizTypes;
// 外部对象ID 如:活动ID // 外部对象ID 如:活动ID
private List<String> externalObjectIds; private List<String> externalObjectIds;
// 外部对象ID 如:活动类型 // 外部对象ID 如:活动类型
......
...@@ -52,4 +52,7 @@ public class OrderUserConditionsReq { ...@@ -52,4 +52,7 @@ public class OrderUserConditionsReq {
//当前分页 //当前分页
private Integer pageNum; private Integer pageNum;
//订单类型集合
private List<Integer> bizTypes;
} }
...@@ -65,4 +65,6 @@ public class QueryAfterSalesOrderConditionsReq { ...@@ -65,4 +65,6 @@ public class QueryAfterSalesOrderConditionsReq {
private Byte afterSalesStageType; private Byte afterSalesStageType;
protected Integer ver; protected Integer ver;
private List<Integer> bizTypes;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment