| | |
| | | |
| | | @Resource |
| | | ZAuthorityService zAuthorityService; |
| | | |
| | | @Resource |
| | | ZfPetNoteService zfPetNoteService; |
| | | |
| | | @Resource |
| | | ZfPetSharService zfPetSharService; |
| | | |
| | | @Resource |
| | | ZfPetDownlService zfPetDownlService; |
| | | |
| | | @Override |
| | | public AjaxResult selectDataList(ZfPet zfPet, Integer pageNum, Integer pageSize) { |
| | | // LambdaQueryWrapper<ZfPet> lqw = buildCondition(zfPet); |
| | |
| | | if (!familyIdList.contains(data.getFamilyId())){ |
| | | throw new RuntimeException("你没有权限操作此家庭的数据"); |
| | | } |
| | | if (!zfPetNoteService.removeBatchByIds(zfPetNoteService.getPetNoteByPetId(data.getId()))) |
| | | return AjaxResult.error(); |
| | | } |
| | | if (! (zfPetDownlService.deleteData(ids) && zfPetSharService.deleteByContentId(ids) ) ){ |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | | if (zfPetService.removeByIds(Arrays.asList(ids))) { |