From fd3d6d30afb9041c2cc3099833b7683e12c7daff Mon Sep 17 00:00:00 2001 From: wangwh <2397901735@qq.com> Date: Sun, 22 Sep 2024 10:00:36 +0800 Subject: [PATCH] 督办信息兼容新需求 查询待办任务-督办 首页-督办-我发起的 功能兼容 添加督办逻辑修改 新增全部签收接口 首页-待审核-我申请的 新增接口 办理反馈新增承办/配合部门判断 新增查询督办详情接口 查询时限接口bug修复 --- dyh-service/dyh-sys/src/main/java/cn/huge/module/file/controller/client/FileRelateClientController.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/controller/client/FileRelateClientController.java b/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/controller/client/FileRelateClientController.java index 5940dc0..784da72 100644 --- a/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/controller/client/FileRelateClientController.java +++ b/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/controller/client/FileRelateClientController.java @@ -2,15 +2,19 @@ import cn.huge.base.common.utils.ReturnFailUtils; import cn.huge.base.common.utils.ReturnSucUtils; +import cn.huge.module.file.domain.po.FileRelate; import cn.huge.module.file.service.FileRelateService; import cn.huge.module.sys.dto.FileTypeTermsDTO; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.google.common.collect.Maps; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; +import java.util.List; import java.util.Map; /** @@ -116,4 +120,38 @@ return ReturnFailUtils.getRepInfo(); } } + + /** + * 根据关系编号查询附件关系信息 + * @url {ctx}/api/client/fileRelate/listFileRelateByOwnerId + * @return Object + */ + @GetMapping("/listFileRelateByOwnerId") + public Object listFileRelateByOwnerId(@RequestParam(value = "ownerId") String ownerId) { + try { + QueryWrapper<FileRelate> fileRelateQueryWrapper = new QueryWrapper<>(); + fileRelateQueryWrapper.eq("owner_id", ownerId); + List<FileRelate> fileRelateList = service.list(fileRelateQueryWrapper); + return ReturnSucUtils.getRepInfo(fileRelateList); + } catch (Exception e) { + return ReturnFailUtils.getRepInfo(); + } + } + + /** + * 插入多条附件关系记录 + * @url {ctx}/api/client/fileRelate/saveFileRelateList + * @return Object + */ + @PostMapping("/saveFileRelateList") + public Object saveFileRelateList(@RequestBody List<FileRelate> fileRelateList) { + try { + if(CollectionUtils.isNotEmpty(fileRelateList)){ + service.saveBatch(fileRelateList); + } + return ReturnSucUtils.getRepInfo(); + } catch (Exception e) { + return ReturnFailUtils.getRepInfo(); + } + } } -- Gitblit v1.8.0