| | |
| | | .eq(ProcessRouteItem::getRouteId, routeId) |
| | | .orderByAsc(ProcessRouteItem::getDragSort)); |
| | | // 重新设置排序值,使序号连续 |
| | | for (int i = 0; i < processRouteItems.size(); i++) { |
| | | ProcessRouteItem item = processRouteItems.get(i); |
| | | if (!item.getDragSort().equals(i+1)) { |
| | | item.setDragSort(i+1); |
| | | processRouteItemMapper.updateById(item); |
| | | } |
| | | } |
| | | // for (int i = 0; i < processRouteItems.size(); i++) { |
| | | // ProcessRouteItem item = processRouteItems.get(i); |
| | | // if (!item.getDragSort().equals(i+1)) { |
| | | // item.setDragSort(i+1); |
| | | // processRouteItemMapper.updateById(item); |
| | | // } |
| | | // } |
| | | return "删除成功"; |
| | | } |
| | | } |