| | |
| | | { |
| | | for (Long id: ids) { |
| | | List<MemoBook> memoBookService1 = memoBookService.selectByIdAFid(id,2026L); |
| | | if (!memoBookService.removeByIds(memoBookService1)) |
| | | if (memoBookService1.size() != 0 && !memoBookService.removeByIds(memoBookService1)) |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | |
| | | { |
| | | for (Long id: ids) { |
| | | List<MemoBook> memoBookService1 = memoBookService.selectByIdAFid(id,2031L); |
| | | if (!memoBookService.removeByIds(memoBookService1)) |
| | | if (memoBookService1.size() != 0 && !memoBookService.removeByIds(memoBookService1)) |
| | | return AjaxResult.error(); |
| | | } |
| | | if (! (zSecretDownloadService.deleteData(ids) && zSecretShareService.deleteByContentId(ids) ) ){ |
| | |
| | | throw new RuntimeException("你没有权限操作此家庭的数据"); |
| | | } |
| | | List<MemoBook> memoBookService1 = memoBookService.selectByIdAFid(data.getId().longValue(),2007L); |
| | | if (!memoBookService.removeByIds(memoBookService1)) |
| | | if (memoBookService1.size() != 0 && !memoBookService.removeByIds(memoBookService1)) |
| | | return AjaxResult.error(); |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | List<MemoBook> memoBookService1 = memoBookService.selectByIdAFid(data.getId(),2017L); |
| | | if (!memoBookService.removeByIds(memoBookService1)) |
| | | if (memoBookService1.size() != 0 && !memoBookService.removeByIds(memoBookService1)) |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | |
| | | if (!familyIdList.contains(data.getFamilyId())){ |
| | | throw new RuntimeException("你没有权限操作此家庭的数据"); |
| | | } |
| | | if (!zfPetNoteService.removeBatchByIds(zfPetNoteService.getPetNoteByPetId(data.getId()))) |
| | | List<ZfPetNote> petNoteByPetId = zfPetNoteService.getPetNoteByPetId(data.getId()); |
| | | if(petNoteByPetId.size() != 0) |
| | | if (!zfPetNoteService.removeBatchByIds(petNoteByPetId)) |
| | | return AjaxResult.error(); |
| | | } |
| | | if (! (zfPetDownlService.deleteData(ids) && zfPetSharService.deleteByContentId(ids) ) ){ |