| | |
| | | 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; |
| | |
| | | node1.setRow1(r); |
| | | node1.setBay1(b); |
| | | node1.setLev1(l); |
| | | try { |
| | | if (!nodeService.insert(node1)){ |
| | | return R.error("数据插入失败"); |
| | | } |
| | | }catch (Exception e){ |
| | | throw new CoolException("库位号重复"); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |