| | |
| | | ZAuthorityService zAuthorityService; |
| | | |
| | | @Resource |
| | | ZfPetSharService zfPetSharService; |
| | | ZfPetNoteService zfPetNoteService; |
| | | |
| | | @Resource |
| | | ZfPetDownlService zfPetDownlService; |
| | | @Override |
| | | public AjaxResult selectDataList(ZfPet zfPet, Integer pageNum, Integer pageSize) { |
| | | // LambdaQueryWrapper<ZfPet> lqw = buildCondition(zfPet); |
| | |
| | | fatherFaId = zInfoUserService.getInfoById(myself.getFatherId()).getFamilyId(); |
| | | Long motherFaId = 0L; |
| | | if(myself.getMomId()!=null) |
| | | motherFaId = zInfoUserService.getInfoById(myself.getMomId()).getFamilyId(); |
| | | motherFaId = zInfoUserService.getInfoBysysId(myself.getMomId()).getFamilyId(); |
| | | |
| | | //也要查别人授权的 |
| | | List<ZAuthority> authority = zAuthorityService.getAuthority(); |
| | |
| | | if (!familyIdList.contains(data.getFamilyId())){ |
| | | throw new RuntimeException("你没有权限操作此家庭的数据"); |
| | | } |
| | | } |
| | | if (! (zfPetDownlService.deleteData(ids) && zfPetSharService.deleteByContentId(ids) ) ){ |
| | | return AjaxResult.error(); |
| | | if (!zfPetNoteService.removeBatchByIds(zfPetNoteService.getPetNoteByPetId(data.getId()))) |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | | if (zfPetService.removeByIds(Arrays.asList(ids))) { |