| | |
| | | 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("你没有权限操作此家庭的数据"); |
| | | } |
| | | 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) ) ){ |
| | | return AjaxResult.error(); |