From 0bf88192cfcbecbed540a93a1c6394651c144ee8 Mon Sep 17 00:00:00 2001 From: 18792927508 <1322446236@qq.com> Date: Tue, 21 May 2024 13:47:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=A7=A3bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mscase/MsVideoConferenceController.java | 3 +- .../impl/MsCaseApplicationServiceImpl.java | 3 +- .../mscase/MsCaseApplicationMapper.xml | 37 ++++++++++--------- 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsVideoConferenceController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsVideoConferenceController.java index fb42a37..18168db 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsVideoConferenceController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsVideoConferenceController.java @@ -71,6 +71,7 @@ public class MsVideoConferenceController extends BaseController { // 上传文件路径 String filePath = RuoYiConfig.getUploadPath(); // 上传并返回新文件名称 + String fileName = FileUploadUtils.upload(filePath, file); String suffix = getFileExtension(fileName); if(StrUtil.isNotEmpty(suffix)&& suffix.contains("doc")){ @@ -110,7 +111,7 @@ public class MsVideoConferenceController extends BaseController { AjaxResult ajax = AjaxResult.success(); ajax.put("annexId", caseAttach.getAnnexId()); ajax.put("annexType", annexType); - // ajax.put("url", url); + ajax.put("onlyOfficeFileId", caseAttach.getOnlyOfficeFileId()); ajax.put("fileName", fileName); ajax.put("newFileName", FileUtils.getName(fileName)); ajax.put("originalFilename", file.getOriginalFilename()); diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java index 51b2383..949b509 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java @@ -311,7 +311,8 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService { if(StrUtil.isEmpty(loginUser.getUsername())){ vo.setAgentFlag(0); }else { - if(StrUtil.equals(loginUser.getUsername(),vo.getCreatBy()) && agentFlag){ + // todo 如果案件流程id变了需要改 + if(StrUtil.equals(loginUser.getUsername(),vo.getCreatBy()) && agentFlag && vo.getCaseFlowId()!=null && mediatorSort!=null && vo.getCaseFlowId() @@ -87,13 +88,7 @@ AND c.case_num like concat('%',#{req.caseNum},'%') - - - and c.create_time >= #{req.startTime} - - - and c.create_time <= #{req.endTime} - + @@ -161,18 +156,26 @@ AND c.case_num like concat('%',#{req.caseNum},'%') - - - and c.create_time >= #{req.startTime} - - - and c.create_time <= #{req.endTime} - + + + + + + + GROUP BY c.id - ) t ORDER BY t.createTime desc,t.caseNum desc + ) t + + + and t.createTime >= #{req.startTime} + + + and t.createTime <= #{req.endTime} + + ORDER BY t.createTime desc,t.caseNum desc