From 2aebbc9601ab439707f69b08e467808df9f7549c Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期五, 07 十一月 2025 11:50:26 +0800
Subject: [PATCH] feat: weixin

---
 ruoyi-system/src/main/resources/mapper/system/SysTaskAttachmentMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysTaskAttachmentMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysTaskAttachmentMapper.xml
index dcda30a..49220e7 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysTaskAttachmentMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysTaskAttachmentMapper.xml
@@ -11,12 +11,13 @@
         <result property="filePath"         column="file_path"         />
         <result property="fileSize"         column="file_size"         />
         <result property="fileType"         column="file_type"         />
+        <result property="attachmentCategory" column="attachment_category" />
         <result property="uploadTime"       column="upload_time"       />
         <result property="uploadBy"         column="upload_by"         />
     </resultMap>
 
     <sql id="selectSysTaskAttachmentVo">
-        select attachment_id, task_id, file_name, file_path, file_size, file_type, upload_time, upload_by 
+        select attachment_id, task_id, file_name, file_path, file_size, file_type, attachment_category, upload_time, upload_by 
         from sys_task_attachment
     </sql>
 
@@ -26,6 +27,7 @@
             <if test="taskId != null "> and task_id = #{taskId}</if>
             <if test="fileName != null  and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
             <if test="fileType != null  and fileType != ''"> and file_type = #{fileType}</if>
+            <if test="attachmentCategory != null and attachmentCategory != ''"> and attachment_category = #{attachmentCategory}</if>
             <if test="uploadBy != null  and uploadBy != ''"> and upload_by like concat('%', #{uploadBy}, '%')</if>
         </where>
         order by upload_time desc
@@ -50,6 +52,7 @@
             <if test="filePath != null and filePath != ''">file_path,</if>
             <if test="fileSize != null">file_size,</if>
             <if test="fileType != null">file_type,</if>
+            <if test="attachmentCategory != null and attachmentCategory != ''">attachment_category,</if>
             <if test="uploadTime != null">upload_time,</if>
             <if test="uploadBy != null and uploadBy != ''">upload_by,</if>
          </trim>
@@ -59,6 +62,7 @@
             <if test="filePath != null and filePath != ''">#{filePath},</if>
             <if test="fileSize != null">#{fileSize},</if>
             <if test="fileType != null">#{fileType},</if>
+            <if test="attachmentCategory != null and attachmentCategory != ''">#{attachmentCategory},</if>
             <if test="uploadTime != null">#{uploadTime},</if>
             <if test="uploadBy != null and uploadBy != ''">#{uploadBy},</if>
          </trim>
@@ -72,6 +76,7 @@
             <if test="filePath != null and filePath != ''">file_path = #{filePath},</if>
             <if test="fileSize != null">file_size = #{fileSize},</if>
             <if test="fileType != null">file_type = #{fileType},</if>
+            <if test="attachmentCategory != null and attachmentCategory != ''">attachment_category = #{attachmentCategory},</if>
             <if test="uploadTime != null">upload_time = #{uploadTime},</if>
             <if test="uploadBy != null and uploadBy != ''">upload_by = #{uploadBy},</if>
         </trim>

--
Gitblit v1.9.1