| | |
| | | @Resource |
| | | private ZfEquipDownloadService zfEquipDownloadService; |
| | | |
| | | @Resource |
| | | private MemoBookService memoBookService; |
| | | |
| | | private LambdaQueryWrapper<ZfEquipment> buildCondition(ZfEquipment zfEquipment,List<Long> familyIdList) { |
| | | LambdaQueryWrapper<ZfEquipment> lqw = new LambdaQueryWrapper<>(); |
| | | lqw.orderByDesc(ZfEquipment::getCreateTime); |
| | |
| | | if (!familyIdList.contains(data.getFamilyId())){ |
| | | throw new RuntimeException("你没有权限操作此家庭的数据"); |
| | | } |
| | | |
| | | List<MemoBook> memoBookService1 = memoBookService.selectByIdAFid(data.getId(),2017L); |
| | | if (!memoBookService.removeByIds(memoBookService1)) |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | | List<ZfEquipment> zfEquipments = listByIds(Arrays.asList(ids)); |