From 4067404caa5c7af5d519f0d7fbb7dc5cdd6ffe45 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期二, 29 四月 2025 17:49:03 +0800
Subject: [PATCH] 后台日志管理

---
 springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java
index d406f46..2b28898 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java
@@ -12,6 +12,7 @@
 import com.panzhihua.common.model.vos.LoginUserInfoVO;
 import com.panzhihua.common.model.vos.sangeshenbian.SystemUserVo;
 import com.panzhihua.common.redis.RedisUtils;
+import com.panzhihua.common.utlis.StringUtils;
 import com.panzhihua.sangeshenbian.config.AutoColumnWidthStrategy;
 import com.panzhihua.sangeshenbian.dao.ComplaintMapper;
 import com.panzhihua.sangeshenbian.enums.AuditStatusEnum;
@@ -1182,6 +1183,15 @@
         //查询评价
         ComplaintComment comment = complaintCommentService.lambdaQuery().eq(ComplaintComment::getComplaintId, id).last("LIMIT 1").one();
         complaintVO.setComplaintComment(comment);
+        ArrayList<String> voiceFileList = new ArrayList<>();
+        String voiceFile = complaint.getVoiceFile();
+        if(StringUtils.isNotEmpty(voiceFile)){
+            for (String file :voiceFile.split(",")) {
+                voiceFileList.add(file);
+            }
+        }
+
+        complaintVO.setVoiceFileList(voiceFileList);
         return complaintVO;
     }
 
@@ -1206,7 +1216,7 @@
     }
 
     @Override
-    public void downloadFile(Long id, Integer type, SystemUserVo loginUserInfo) throws IOException {
+    public String downloadFile(Long id, Integer type, SystemUserVo loginUserInfo) throws IOException {
         Complaint complaint = baseMapper.getDetailBg(id);
         if (Objects.isNull(complaint)) {
             throw new ServiceException("该诉求不存在");
@@ -1317,6 +1327,7 @@
         response.setHeader("Content-disposition", "attachment;filename=\"" + fileNameEncode + ".docx" + "\"");
         InputStream resourceAsStream = this.getClass().getResourceAsStream("/template/" + fileName);
         XWPFTemplate.compile(resourceAsStream).render(map).writeAndClose(response.getOutputStream());
+        return complaint.getName();
     }
 
 
@@ -1354,5 +1365,25 @@
         return this.baseMapper.getTimeoutAndNotComment();
     }
 
+    /**
+     *  修改办理进度
+     * @param dto
+     */
+    @Override
+    public void updateProgress(ComplaintProcessUpdateDto dto) {
+        complaintProgressService.update(new LambdaUpdateWrapper<ComplaintProgress>().eq(ComplaintProgress::getId, dto.getId())
+                .set(ComplaintProgress::getDescribe, dto.getDescribe()).set(ComplaintProgress::getImgUrl, dto.getImgUrl())
+                .set(ComplaintProgress::getVideo, dto.getVideo()) )  ;
+    }
+
+    /**
+     *  删除办理进度
+     * @param
+     */
+    @Override
+    public void delProgress(Long id) {
+       complaintProgressService.removeById(id);
+    }
+
 }
 

--
Gitblit v1.7.1