From afc2b4d2800d91c793523d14fbe2d6fbbd319fc0 Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Fri, 25 Feb 2022 09:02:41 +0800
Subject: [PATCH] 模拟考试开始修改,返回所有题目的所有答题信息

---
 src/main/java/org/springblade/modules/resource/mapper/AttachMapper.xml |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/resource/mapper/AttachMapper.xml b/src/main/java/org/springblade/modules/resource/mapper/AttachMapper.xml
index a73014e..d25134a 100644
--- a/src/main/java/org/springblade/modules/resource/mapper/AttachMapper.xml
+++ b/src/main/java/org/springblade/modules/resource/mapper/AttachMapper.xml
@@ -24,7 +24,13 @@
 
 
     <select id="selectAttachPage" resultMap="attachResultMap">
-        select * from blade_attach where is_deleted = 0
+        select * from blade_attach where is_deleted = 0 and cardid=#{cardid} and type=#{type}
+        <if test="attach.originalName!='' and attach.originalName!=null">
+             and  original_name like concat('%', #{attach.originalName},'%')
+        </if>
     </select>
 
+    <update id="updat">
+        update blade_attach set deptid=#{deptid} where cardid=#{cardid}
+    </update>
 </mapper>

--
Gitblit v1.9.3