| | |
| | | continue; |
| | | } |
| | | |
| | | List<Node> nodeList = nodeService.selectList(new EntityWrapper<Node>().eq("name", locNo)); |
| | | if (!Cools.isEmpty(nodeList)){ |
| | | throw new CoolException("库位号重复"); |
| | | } |
| | | |
| | | Date now = new Date(); |
| | | Node node1 = new Node(); |
| | | node1.setUuid(locNo); |
| | |
| | | node1.setRow1(r); |
| | | node1.setBay1(b); |
| | | node1.setLev1(l); |
| | | try { |
| | | if (!nodeService.insert(node1)){ |
| | | return R.error("数据插入失败"); |
| | | } |
| | | }catch (Exception e){ |
| | | throw new CoolException("库位号重复"); |
| | | |
| | | if (!nodeService.insert(node1)){ |
| | | return R.error("数据插入失败"); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | if (param.getName().equals("DT-B")){ |