From 8d3639d3f33cfed8de92342ed4583b868fb32ba4 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期三, 07 五月 2025 09:00:51 +0800
Subject: [PATCH] 放开了访问下载视频接口

---
 zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java
index 7adbf2e..ae031a8 100644
--- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java
+++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java
@@ -67,7 +67,7 @@
 
     private LambdaQueryWrapper<ZfEquipment> buildCondition(ZfEquipment zfEquipment,List<Long> familyIdList) {
         LambdaQueryWrapper<ZfEquipment> lqw = new LambdaQueryWrapper<>();
-        lqw.orderByDesc(ZfEquipment::getCreateTime);
+        lqw.orderByDesc(ZfEquipment::getHappenTime);
         lqw.like(StringUtils.isNotEmpty(zfEquipment.getName()), ZfEquipment::getName, zfEquipment.getName());
         lqw.like(StringUtils.isNotEmpty(zfEquipment.getBuyer()), ZfEquipment::getBuyer, zfEquipment.getBuyer());
         lqw.like(StringUtils.isNotEmpty(zfEquipment.getContent()), ZfEquipment::getContent, zfEquipment.getContent());
@@ -597,7 +597,7 @@
             }
 
             List<MemoBook> memoBookService1 =  memoBookService.selectByIdAFid(data.getId(),2017L);
-            if (!memoBookService.removeByIds(memoBookService1))
+            if (memoBookService1.size() != 0 && !memoBookService.removeByIds(memoBookService1))
                 return AjaxResult.error();
         }
 

--
Gitblit v1.9.1