From b0625931bc528429d592f642bdd759e7dbdfb1c3 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 19 Oct 2021 22:21:07 +0800
Subject: [PATCH] 1.保安员新增接口修改,单个新增保安员默认密码为身份证号后6位,账号为身份证号, 2.考试成绩可以按天导出 3.个人图片批量导入接口修改 4.保安员批量导入修改,如有重复的账号导入的跳过,导入完成后返回提示信息
---
src/main/java/org/springblade/modules/resource/mapper/AttachMapper.xml | 10 +++++++++-
1 files changed, 9 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 67e34f7..d25134a 100644
--- a/src/main/java/org/springblade/modules/resource/mapper/AttachMapper.xml
+++ b/src/main/java/org/springblade/modules/resource/mapper/AttachMapper.xml
@@ -18,11 +18,19 @@
<result column="original_name" property="originalName"/>
<result column="extension" property="extension"/>
<result column="attach_size" property="attachSize"/>
+ <result column="deptid" property="deptid"/>
+ <result column="type" property="type"/>
</resultMap>
<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