|
|
|
@ -1,5 +1,6 @@ |
|
|
|
package cn.chjyj.szwh.controller.api; |
|
|
|
|
|
|
|
import cn.chjyj.szwh.bean.Order; |
|
|
|
import cn.chjyj.szwh.controller.BaseController; |
|
|
|
import cn.chjyj.szwh.service.OrderService; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
@ -10,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
@ -63,7 +65,13 @@ public class OrderController extends BaseController { |
|
|
|
int ipage = Integer.valueOf(page); |
|
|
|
int ips = Integer.valueOf(pagesize); |
|
|
|
int startrs = ipage > 0 ? (ipage - 1) * ips : 0; |
|
|
|
orderService.getOrderList(qmap, startrs, ips); |
|
|
|
List<Order> olist =orderService.getOrderList(qmap, startrs, ips); |
|
|
|
//赋值
|
|
|
|
jsonObject.put("code","200"); |
|
|
|
jsonObject.put("data",olist); |
|
|
|
jsonObject.put("msg","success"); |
|
|
|
jsonObject.put("page",page); |
|
|
|
jsonObject.put("limit",pagesize); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
|
|
|
|
|