|
@@ -423,12 +423,18 @@ public class OrderApi extends BaseController {
|
|
Integer status = null;
|
|
Integer status = null;
|
|
String searchShopIdStr = null;
|
|
String searchShopIdStr = null;
|
|
if (StringUtils.isNotBlank(body)) {
|
|
if (StringUtils.isNotBlank(body)) {
|
|
- JSONObject json = JSON.parseObject(body);
|
|
|
|
- orderIds = JSONArray.parseArray(json.getString("orderIds"), Integer.class);
|
|
|
|
- status = json.get("status") != null ? json.getInteger("status") : null;
|
|
|
|
- searchShopIdStr = json.get("searchShopIdStr") != null ? json.getString("searchShopIdStr") : null;
|
|
|
|
|
|
+ try{
|
|
|
|
+ JSONObject json = JSON.parseObject(body);
|
|
|
|
+ orderIds = JSONArray.parseArray(json.getString("orderIds"), Integer.class);
|
|
|
|
+ status = json.get("status") != null ? json.getInteger("status") : null;
|
|
|
|
+ searchShopIdStr = json.get("searchShopIdStr") != null ? json.getString("searchShopIdStr") : null;
|
|
|
|
+ return BaseResult.success(apiOrderService.findNewList(getLoginId(), orderIds, status, searchShopIdStr));
|
|
|
|
+ }catch (Exception e) {
|
|
|
|
+ logger.error("轮询拉取外面新订单异常,请求参数{},错误信息{}",body,e.getMessage());
|
|
|
|
+ return BaseResult.error(501,"请求数据参数格式错误");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- return BaseResult.success(apiOrderService.findNewList(getLoginId(), orderIds, status, searchShopIdStr));
|
|
|
|
|
|
+ return BaseResult.error(501,"请求数据为空");
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("一键发单增加备注")
|
|
@ApiOperation("一键发单增加备注")
|