|  |  | 
 |  |  |         EntityWrapper<Node> nodeEntityWrapper = new EntityWrapper<>(); | 
 |  |  |         nodeEntityWrapper.eq("id",param.getValue()); | 
 |  |  |         nodeEntityWrapper.eq("name",param.getName()); | 
 |  |  |  //       nodeService.delete(new EntityWrapper<Node>().eq("parent_id",param.getValue())); | 
 |  |  |         nodeService.delete(new EntityWrapper<Node>().eq("parent_id",param.getValue())); | 
 |  |  |         Node node = nodeService.selectOne(nodeEntityWrapper); | 
 |  |  |         String[] string = node.getNamePath().split(","); | 
 |  |  |         int tno=1; int no=1; | 
 |  |  | 
 |  |  |         return R.ok(keyValueVoList); | 
 |  |  |  | 
 |  |  |     } | 
 |  |  |     @RequestMapping(value = "/node/recommendLoc") | 
 |  |  |     public R recommendLoc(@RequestParam String matnr){ | 
 |  |  |         List<String> remmendLoc = nodeService.getRemmendLoc(matnr); | 
 |  |  |  | 
 |  |  |         return R.ok(remmendLoc); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @RequestMapping(value = "/node/updateStatus") | 
 |  |  |     @ManagerAuth(memo = "库位冻结") | 
 |  |  |     public R updateStockFreeze(@RequestParam String param){ | 
 |  |  |         List<Node> list = JSONArray.parseArray(param, Node.class); | 
 |  |  |         if (Cools.isEmpty(list)){ | 
 |  |  |             return R.error("无数据"); | 
 |  |  |         } | 
 |  |  |         for (Node node : list){ | 
 |  |  |             node.setStatus(0); | 
 |  |  |             if (nodeService.updateStockFreeze(node.getName(), node.getStatus()) != 1){ | 
 |  |  |                 return R.error(node.getName()+"冻结失败"); | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |         } | 
 |  |  |             return R.ok("冻结成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @RequestMapping(value = "/node/updateDisStatus") | 
 |  |  |     @ManagerAuth(memo = "库位解除冻结") | 
 |  |  |     public R updateStockDisFreeze(@RequestParam String param){ | 
 |  |  |         List<Node> list = JSONArray.parseArray(param, Node.class); | 
 |  |  |         if (Cools.isEmpty(list)){ | 
 |  |  |             return R.error("无数据"); | 
 |  |  |         } | 
 |  |  |         for (Node node : list){ | 
 |  |  |             node.setStatus(1); | 
 |  |  |             if (nodeService.updateStockFreeze(node.getName(), node.getStatus()) != 1){ | 
 |  |  |                 return R.error(node.getName()+"解除冻结失败"); | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |         } | 
 |  |  |         return R.ok("解冻成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |