From 983bdb5b89932b38d08a11ad1eed6ea89d1597e1 Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: Mon, 29 Jan 2024 10:07:31 +0800
Subject: [PATCH] 更新
---
assess-system/src/main/resources/mapper/SysAttachMapper.xml | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/assess-system/src/main/resources/mapper/system/SysAttachMapper.xml b/assess-system/src/main/resources/mapper/SysAttachMapper.xml
similarity index 65%
rename from assess-system/src/main/resources/mapper/system/SysAttachMapper.xml
rename to assess-system/src/main/resources/mapper/SysAttachMapper.xml
index abdd9ff..b9e3450 100644
--- a/assess-system/src/main/resources/mapper/system/SysAttachMapper.xml
+++ b/assess-system/src/main/resources/mapper/SysAttachMapper.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gkhy.assess.system.mapper.SysAttachMapper">
+
<delete id="deleteAttachsByUserId">
delete from sys_attach
<where>
@@ -14,13 +15,17 @@
</where>
</delete>
+ <delete id="deleteAttachsByIds">
+ delete from sys_attach where id in
+ <foreach collection="ids" item="id" separator="," open="(" close=")">
+ #{id}
+ </foreach>
+ </delete>
+
<select id="getAttachsByUserId" resultType="com.gkhy.assess.system.domain.SysAttach">
- select * from sys_attach
- <where>
- and user_id=#{userId}
- <if test="type!=null and type!=''">
- and type=#{type}
- </if>
- </where>
+ select * from sys_attach where user_id=#{userId}
+ <if test="type!=null and type!=''">
+ and type=#{type}
+ </if>
</select>
</mapper>
--
Gitblit v1.9.2