Commit b67fa952 by zhengxj

finish 订单渠道 on 20190416 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19736 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 784b610f
...@@ -511,12 +511,12 @@ public class OrderController extends BaseController { ...@@ -511,12 +511,12 @@ public class OrderController extends BaseController {
* *
*/ */
@RequestMapping(value = "/getChannel", method = { RequestMethod.GET, RequestMethod.POST }) @RequestMapping(value = "/getChannel", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject getChannel(HttpServletRequest request) { public ResultObject getChannel(HttpServletRequest request,@RequestParam(defaultValue = "1") Integer type) {
Integer userId=UserUtils.getUserId(request); Integer userId=UserUtils.getUserId(request);
if(userId==BizConstants.USER_TYPE_AMIN){ if (userId == BizConstants.USER_TYPE_AMIN || 0 == type) {
// 超级管理员特殊处理 // 超级管理员特殊处理
userId=null; userId = null;
} }
return new ResultObject(ResultCodeEnum.SUCCESS.getCode() , ResultCodeEnum.SUCCESS.getMsg(),orderChannelService.getChannel(userId)); return new ResultObject(ResultCodeEnum.SUCCESS.getCode() , ResultCodeEnum.SUCCESS.getMsg(),orderChannelService.getChannel(userId));
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!