From be812198b1c18cf5b79f2cdc69d2f7c3c70eff51 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 20 六月 2023 14:23:43 +0800
Subject: [PATCH] “文件管理“ 代码提交
---
smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
index 400feeb..1cc1517 100644
--- a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
@@ -88,7 +88,11 @@
<if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if>
<if test="iccardno != null and iccardno != ''">and iccardno = #{iccardno}</if>
<if test="telcode != null and telcode != ''">and telcode = #{telcode}</if>
- <if test="tagId != null and tagId != ''">and c.tagid = #{tagId}</if>
+ <if test="tagIds != null and tagIds != ''">and c.tagid in
+ <foreach collection="tagIds" item="tagId" open="(" separator="," close=")">
+ #{tagId}
+ </foreach>
+ </if>
</where>
</select>
@@ -97,7 +101,8 @@
where patid = #{patid}
</select>
- <insert id="insertPatArchive" parameterType="com.smartor.domain.PatArchive" useGeneratedKeys="true" keyProperty="patid">
+ <insert id="insertPatArchive" parameterType="com.smartor.domain.PatArchive" useGeneratedKeys="true"
+ keyProperty="patid">
insert into pat_archive
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
--
Gitblit v1.9.3