feige
2024-10-24 4215ced06b40268e9f3c8ef6915998fbe64013b4
zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java
@@ -56,6 +56,12 @@
    @Resource
    private RestHighLevelClient restHighLevelClient;
    @Resource
    private ZfEquipShareService zfEquipShareService;
    @Resource
    private ZfEquipDownloadService zfEquipDownloadService;
    private LambdaQueryWrapper<ZfEquipment> buildCondition(ZfEquipment zfEquipment,List<Long> familyIdList) {
        LambdaQueryWrapper<ZfEquipment> lqw = new LambdaQueryWrapper<>();
        lqw.orderByDesc(ZfEquipment::getCreateTime);
@@ -589,6 +595,9 @@
        }
        List<ZfEquipment> zfEquipments = listByIds(Arrays.asList(ids));
        if (! (zfEquipDownloadService.deleteData(ids) && zfEquipShareService.deleteByContentId(ids)  ) ){
            return AjaxResult.error();
        }
        if (zfEquipmentService.removeByIds(Arrays.asList(ids))) {
@@ -604,6 +613,7 @@
                    }
                }
            });
            return AjaxResult.success();
        }else {
            return AjaxResult.error();