提交 d35114a3 编写于 作者: M megagao

修改了权限判别

上级 e4c2cbb4
......@@ -83,17 +83,6 @@ public class OrderController {
return result;
}
@RequestMapping("/update_judge")
@ResponseBody
public Map<String,Object> orderUpdateJudge() {
Map<String,Object> map = new HashMap<String,Object>();
Subject currentUser = SecurityUtils.getSubject();
if(!currentUser.isPermitted("order:update")){
map.put("msg", "您没有权限,请切换用户登录!");
}
return map;
}
@RequestMapping(value="/update")
@ResponseBody
private CustomResult update(COrderPO cOrder) throws Exception {
......@@ -101,17 +90,6 @@ public class OrderController {
return result;
}
@RequestMapping("/updateAll_judge")
@ResponseBody
public Map<String,Object> orderUpdateAllJudge() {
Map<String,Object> map = new HashMap<String,Object>();
Subject currentUser = SecurityUtils.getSubject();
if(!currentUser.isPermitted("order:update_all")){
map.put("msg", "您没有权限,请切换用户登录!");
}
return map;
}
@RequestMapping(value="/update_all")
@ResponseBody
private CustomResult updateAll(COrderPO cOrder) throws Exception {
......@@ -119,17 +97,6 @@ public class OrderController {
return result;
}
@RequestMapping("/updateNote_judge")
@ResponseBody
public Map<String,Object> orderUpdateNoteJudge() {
Map<String,Object> map = new HashMap<String,Object>();
Subject currentUser = SecurityUtils.getSubject();
if(!currentUser.isPermitted("order:update_note")){
map.put("msg", "您没有权限,请切换用户登录!");
}
return map;
}
@RequestMapping(value="/update_note")
@ResponseBody
private CustomResult updateNote(COrderPO cOrder) throws Exception {
......@@ -155,17 +122,6 @@ public class OrderController {
return result;
}
@RequestMapping("/deleteBatch_judge")
@ResponseBody
public Map<String,Object> orderDeleteBatchJudge() {
Map<String,Object> map = new HashMap<String,Object>();
Subject currentUser = SecurityUtils.getSubject();
if(!currentUser.isPermitted("order:delete_batch")){
map.put("msg", "您没有权限,请切换用户登录!");
}
return map;
}
@RequestMapping(value="/delete_batch")
@ResponseBody
private CustomResult deleteBatch(String[] ids) throws Exception {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册