zqy
2024-11-09 e37d2ce605787d75fe4fc851c87e7b6c02c9b2d8
zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetServiceImpl.java
@@ -53,6 +53,12 @@
    @Resource
    ZfPetNoteService zfPetNoteService;
    @Resource
    ZfPetSharService zfPetSharService;
    @Resource
    ZfPetDownlService zfPetDownlService;
    @Override
    public AjaxResult selectDataList(ZfPet zfPet, Integer pageNum, Integer pageSize) {
//        LambdaQueryWrapper<ZfPet> lqw = buildCondition(zfPet);
@@ -269,9 +275,14 @@
            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)  ) ){
            return AjaxResult.error();
        }
        if (zfPetService.removeByIds(Arrays.asList(ids))) {
            return AjaxResult.success();