Commit bcb590e1 by 徐康

Merge branch 'feature/20200727_麦咖啡p1v2支付券码路由' into qa

parents fe29c8de fb81c7fb
......@@ -7,5 +7,7 @@ public class MCCafeDeliveryGetStoreIdResponse {
private Integer storeId;
private String extraId;
private String storeName;
}
......@@ -649,7 +649,7 @@ public class CheckMCCafeOrder {
throw new ServiceException(ResponseResult.ORDER_TAKE_OUT_ADDRESS_NOT_VALID);
} else {
List<MCCafeDeliveryGetStoreIdResponse> mcCafeDeliveryGetStoreIdResponseList = JSON.parseArray(mcCafeDeliveryBaseResponse.getData().toString(), MCCafeDeliveryGetStoreIdResponse.class);
if(mcCafeDeliveryGetStoreIdResponseList.stream().noneMatch(o -> createOrderVo.getShopId().equals(o.getStoreId()+""))) {
if(mcCafeDeliveryGetStoreIdResponseList.stream().noneMatch(o -> createOrderVo.getShopId().equals(o.getExtraId()))) {
throw new ServiceException(ResponseResult.ORDER_TAKE_OUT_ADDRESS_NOT_DELIVERY);
}
}
......
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