| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | |
| | | wrapper.orderByAsc("sort"); |
| | | List<FileMenuDTO> list = ConvertUtils.sourceToTarget(fileMenuDao.selectList(wrapper), FileMenuDTO.class); |
| | | list.forEach(item -> { |
| | | fileGroupService.list(item.getId()); |
| | | item.setGroups(fileGroupService.list(item.getId())); |
| | | }); |
| | | return list; |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void create(FileMenuEntity fileMenuEntity) { |
| | | fileMenuDao.insert(fileMenuEntity); |
| | | public void create(FileMenuEntity entity) { |
| | | entity.setId(UUID.randomUUID().toString()); |
| | | fileMenuDao.insert(entity); |
| | | } |
| | | |
| | | @Override |
| | | public void update(FileMenuEntity fileMenuEntity) { |
| | | fileMenuDao.updateById(fileMenuEntity); |
| | | public void update(FileMenuEntity entity) { |
| | | fileMenuDao.updateById(entity); |
| | | } |
| | | |
| | | @Override |