From d8103e5da17cd3dc9fb16abc223b6adcf93f0383 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 12 Aug 2021 14:26:30 +0800
Subject: [PATCH] 培训列表接口修改,帅选出已报名培训的数据

---
 src/main/java/org/springblade/modules/system/mapper/UserMapper.xml |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
index 8500882..76d3e17 100644
--- a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -42,7 +42,8 @@
         <result column="dispatch" property="dispatch"/>
         <result column="my_picture" property="myPicture"/>
         <result column="is_apply" property="isApply"/>
-        <result column="deptname" property="deptname"/>
+        <result column="is_apply" property="isApply"/>
+        <result column="is_train" property="isTrain"/>
         <result column="birthtime" property="birthtime"/>
     </resultMap>
 
@@ -303,4 +304,10 @@
               and dept_id=#{deptid}
           </if>
     </select>
+
+    <!--查询当前年份已有的保安证编号-->
+    <select id="getSecurityPaperCount" resultType="java.lang.Integer">
+        select count(*) from blade_user
+        where securitynumber like concat('%', #{pre},'%')
+    </select>
 </mapper>

--
Gitblit v1.9.3