From 68512f2e92193b620101564d9bf4b15af553c69f Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Tue, 17 Dec 2024 13:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/InspectionFileController.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/InspectionFileController.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/InspectionFileController.java index ac3409c3..b80e5bf8 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/InspectionFileController.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/InspectionFileController.java @@ -8,6 +8,7 @@ import cn.iocoder.yudao.module.inspection.service.AppInspectionPartnerService; import cn.iocoder.yudao.module.inspection.service.IInspectionFileService; import cn.iocoder.yudao.module.shop.entity.ShopMallPartners; import cn.iocoder.yudao.util.ExcelUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import org.springframework.beans.factory.annotation.Autowired; @@ -122,4 +123,21 @@ public class InspectionFileController extends BaseController } return success(inspectionFileService.getCountByIds(ids)); } + + /** + * 得到使用说明 + * + * @author 小李 + * @date 12:31 2024/12/17 + **/ + @GetMapping("/getPresent") + public CommonResult getPresent(){ + List files = inspectionFileService.list(new LambdaQueryWrapper().eq(InspectionFile::getFileName, "使用说明")); + if (CollUtil.isEmpty(files)){ + return null; + } + InspectionFile inspectionFile = files.get(0); + return success(inspectionFile); + + } }