Commit 819062a9 authored by suntao's avatar suntao

渠道订单查询

parent 8bec6774
package cn.quantgroup.cashloanflowboss.api.order.controller;
import cn.quantgroup.cashloanflowboss.api.order.service.OrderService;
import cn.quantgroup.cashloanflowboss.core.annotation.ChannelIdInit;
import cn.quantgroup.cashloanflowboss.core.annotation.CheckChannelRole;
import cn.quantgroup.cashloanflowboss.core.base.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -20,6 +22,8 @@ public class OrderController {
@Autowired
private OrderService orderService;
@ChannelIdInit
@CheckChannelRole
@RequestMapping("/info")
public Result getOrders(Long channelId, String channelOrderNumber, Integer pageNumber, Integer pageSize) {
return Result.buildSuccess(orderService.getOrders(channelId, channelOrderNumber, pageNumber, pageSize));
......
......@@ -40,7 +40,7 @@ public class RoleLoadAspect {
@Autowired
private UserSessionService userSessionService;
@Pointcut("execution(* cn.quantgroup.cashloanflowboss.api.channel.controller.*.*(..))")
@Pointcut("execution(* cn.quantgroup.cashloanflowboss.api.*.controller.*.*(..))")
private void channelRoleInit() {}
@Around(value = "channelRoleInit()")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment