|
|
|
@ -1,6 +1,8 @@ |
|
|
|
|
package com.cweb.controller.meal; |
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
|
import com.hfkj.common.exception.ErrorCode; |
|
|
|
|
import com.hfkj.common.exception.ErrorHelp; |
|
|
|
|
import com.hfkj.common.exception.SysCode; |
|
|
|
@ -13,6 +15,7 @@ import com.hfkj.model.ResponseData; |
|
|
|
|
import com.hfkj.service.meal.*; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import io.swagger.models.auth.In; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
@ -143,6 +146,28 @@ public class BsMealTableOrderController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/queryOrderList",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "查询订单列表") |
|
|
|
|
public ResponseData queryOrderList(@RequestParam(value = "storeId" , required = true) String storeId, |
|
|
|
|
@RequestParam(value = "serialNumber" , required = false) String serialNumber, |
|
|
|
|
@RequestParam(value = "pageNum" , required = true) Integer pageNum, |
|
|
|
|
@RequestParam(value = "pageSize" , required = true) Integer pageSize) { |
|
|
|
|
try { |
|
|
|
|
Map<String, Object> param = new HashMap<>(); |
|
|
|
|
param.put("storeId", storeId); |
|
|
|
|
param.put("serialNumber", serialNumber); |
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageNum, pageSize); |
|
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(mealTableOrderService.getTableOrderList(param))); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error(e.getMessage(), e); |
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|