Commit 332bd98d by chongfu.liang

添加payStatus字段

parent 08b2af8f
...@@ -3858,7 +3858,7 @@ public class OrderAdapter { ...@@ -3858,7 +3858,7 @@ public class OrderAdapter {
return activityUpdateStockRequest; return activityUpdateStockRequest;
} }
public OrderConditionsReq convent2QueryOrdersDtoES(OrderConditionsReq query, String memberId, String channelType, Integer queryOrderStatus,Integer queryOrderType) { public OrderConditionsReq convent2QueryOrdersDtoES(OrderConditionsReq query, String memberId, String channelType, Integer queryOrderStatus,Integer queryOrderType, Integer queryPayStatus) {
OrderConditionsReq queryOrdersDto = new OrderConditionsReq(); OrderConditionsReq queryOrdersDto = new OrderConditionsReq();
queryOrdersDto.setUserId(memberId); queryOrdersDto.setUserId(memberId);
queryOrdersDto.setPartnerId(query.getPartnerId()); queryOrdersDto.setPartnerId(query.getPartnerId());
...@@ -3885,8 +3885,14 @@ public class OrderAdapter { ...@@ -3885,8 +3885,14 @@ public class OrderAdapter {
orderClients.add(OrderClientType.ALIPAY.getIndex()); orderClients.add(OrderClientType.ALIPAY.getIndex());
queryOrdersDto.setOrderClients(orderClients); queryOrdersDto.setOrderClients(orderClients);
if (queryPayStatus == null){
List<Integer> payStatus = Arrays.asList(PayStatus.HAVE_PAID.getCode(), PayStatus.HAVE_REFUND.getCode(), PayStatus.COMPLETE.getCode()); List<Integer> payStatus = Arrays.asList(PayStatus.HAVE_PAID.getCode(), PayStatus.HAVE_REFUND.getCode(), PayStatus.COMPLETE.getCode());
queryOrdersDto.setPayStatuses(payStatus); queryOrdersDto.setPayStatuses(payStatus);
} else {
List<Integer> payStatus = Arrays.asList(queryPayStatus);
queryOrdersDto.setPayStatuses(payStatus);
}
//queryOrdersDto.setPayStatus((Integer[]) payStatus.toArray()); //queryOrdersDto.setPayStatus((Integer[]) payStatus.toArray());
//TODO 查询退款的待确定 //TODO 查询退款的待确定
if (queryOrderStatus != null) { if (queryOrderStatus != null) {
...@@ -3954,6 +3960,8 @@ public class OrderAdapter { ...@@ -3954,6 +3960,8 @@ public class OrderAdapter {
} }
queryOrdersDto.setOrderTypes(orderTypes); queryOrdersDto.setOrderTypes(orderTypes);
if (OrderChannelType.IWC.getCode().equals(channelType)) { if (OrderChannelType.IWC.getCode().equals(channelType)) {
Integer[] statuses = new Integer[]{OrderStatus.COMPLETE.getCode(), OrderStatus.CALCEL.getCode(), OrderStatus.WAIT_PAY.getCode()}; Integer[] statuses = new Integer[]{OrderStatus.COMPLETE.getCode(), OrderStatus.CALCEL.getCode(), OrderStatus.WAIT_PAY.getCode()};
List<Integer> orderStatuses = new ArrayList<>(); List<Integer> orderStatuses = new ArrayList<>();
......
...@@ -38,6 +38,10 @@ public class QueryOrderVo { ...@@ -38,6 +38,10 @@ public class QueryOrderVo {
*/ */
private Integer queryOrderStatus; private Integer queryOrderStatus;
/** /**
* 订单支付状态 enum queryOrderStatus 全部订单 1 未支付 2 已支付 3 已退款 4. 部分退款
*/
private Integer queryPayStatus;
/**
* 查询订单状态 1 外卖 4 门店自提 * 查询订单状态 1 外卖 4 门店自提
*/ */
private Integer queryOrderType; private Integer queryOrderType;
......
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