|
|
|
@ -31,9 +31,10 @@ public class AdminOrderController extends BaseController { |
|
|
|
public JSONObject olist(@RequestParam(value = "current_page",defaultValue = "1") String spage){ |
|
|
|
int ipage = Integer.valueOf(spage); |
|
|
|
List<Order> orderList=orderService.getAllOrderList(ipage); |
|
|
|
int total = orderService.countAllOrder(); |
|
|
|
jsonObject.put("current_page",spage); |
|
|
|
jsonObject.put("per_page", ChConstant.PAGESIZE); |
|
|
|
jsonObject.put("total",0); |
|
|
|
jsonObject.put("total",total); |
|
|
|
jsonObject.put("code",200); |
|
|
|
jsonObject.put("data",orderList); |
|
|
|
jsonObject.put("msg","成功"); |
|
|
|
|