|
|
|
@ -2,6 +2,7 @@ package cn.chjyj.szwh.controller.admin; |
|
|
|
|
|
|
|
import cn.chjyj.szwh.bean.Order; |
|
|
|
import cn.chjyj.szwh.bean.OrderGoodsDetail; |
|
|
|
import cn.chjyj.szwh.constant.ChConstant; |
|
|
|
import cn.chjyj.szwh.controller.BaseController; |
|
|
|
import cn.chjyj.szwh.service.OrderGoodsDetailService; |
|
|
|
import cn.chjyj.szwh.service.OrderService; |
|
|
|
@ -27,9 +28,12 @@ public class AdminOrderController extends BaseController { |
|
|
|
private OrderGoodsDetailService orderGoodsDetailService; |
|
|
|
|
|
|
|
@PostMapping("/list") |
|
|
|
public JSONObject olist(@RequestParam(value = "page",defaultValue = "1") String spage){ |
|
|
|
public JSONObject olist(@RequestParam(value = "current_page",defaultValue = "1") String spage){ |
|
|
|
int ipage = Integer.valueOf(spage); |
|
|
|
List<Order> orderList=orderService.getAllOrderList(ipage); |
|
|
|
jsonObject.put("current_page",spage); |
|
|
|
jsonObject.put("per_page", ChConstant.PAGESIZE); |
|
|
|
jsonObject.put("total",0); |
|
|
|
jsonObject.put("code",200); |
|
|
|
jsonObject.put("data",orderList); |
|
|
|
jsonObject.put("msg","成功"); |
|
|
|
@ -57,7 +61,7 @@ public class AdminOrderController extends BaseController { |
|
|
|
@RequestParam(value = "buy_name",defaultValue = "") String buyName, |
|
|
|
@RequestParam(value = "goods_ame",defaultValue = "") String goodsName, |
|
|
|
@RequestParam(value = "order_type",defaultValue = "") String orderType, |
|
|
|
@RequestParam("transaction_status") String transactionStatus, |
|
|
|
@RequestParam(value = "transaction_status",defaultValue = "0") String transactionStatus, |
|
|
|
@RequestParam(value = "createtime",defaultValue = "") String createtime, |
|
|
|
@RequestParam(value = "goods_isli",defaultValue = "")String goodsIsli, |
|
|
|
@RequestParam(value = "charges_type",defaultValue = "") String chargesType, |
|
|
|
@ -69,7 +73,7 @@ public class AdminOrderController extends BaseController { |
|
|
|
qmap.put("entrust_name",entrustName); |
|
|
|
qmap.put("goods_name",goodsName); |
|
|
|
qmap.put("order_type",orderType); |
|
|
|
qmap.put("transaction_status",transactionStatus); |
|
|
|
// qmap.put("transaction_status",transactionStatus);
|
|
|
|
qmap.put("createtime",createtime); |
|
|
|
qmap.put("godos_isli",goodsIsli); |
|
|
|
qmap.put("charges_type",chargesType); |
|
|
|
|