Commit 41d984ff by ping.wu

门店数据错误校验

parent f817e297
......@@ -70,6 +70,7 @@ public enum ResponseResult {
STORE_WILL_COLSE("43020", "门店即将打烊,不能下单",""),
STORE_DDELIVERY_METHOD("43021", "获取门店外卖配送方式异常",""),
STORE_QUERYEXPECTARRIVETIME("43022", "获取门店计算预计送达时间失败",""),
STORE_DATE_ERROR("43023", "门店数据错误",""),
/**
* 购物车状态码
......
......@@ -205,6 +205,10 @@ public class CheckOrder {
if (storeResponseDto.getActiveFlag() == null || storeResponseDto.getActiveFlag() != 1) {
throw new ServiceException(ResponseResult.STORE_ITEM_STOP_BUSINESS);
}
//特殊情况
if ("".equals(storeResponseDto.getBusinessType())) {
throw new ServiceException(ResponseResult.STORE_DATE_ERROR);
}
createOrderVo.setStoreName(storeResponseDto.getStoreName());
createOrderVo.setStoreAddress(storeResponseDto.getAddress());
createOrderVo.setThirdShopId(storeResponseDto.getThirdPartCode());
......
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