From 279a149dd1ff4ef7a7a9353469532332d3fdcb5f Mon Sep 17 00:00:00 2001 From: Fancy <Fancy.fx@outlook.com> Date: 星期四, 20 六月 2024 14:28:35 +0800 Subject: [PATCH] check user and station relation --- pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml index 6062cef..ab18a26 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml @@ -50,6 +50,11 @@ <select id="selectNameByUserId" parameterType="java.lang.Long" resultType="java.lang.String"> select name from ba_user where id=#{id} </select> + + <select id="selectNameById" parameterType="java.lang.Long" resultType="java.lang.String"> + select name from ba_user where id=#{id} + </select> + <select id="selectCount" resultType="java.lang.Long"> select count(*) @@ -68,9 +73,8 @@ select <include refid="Base_Column_List" /> from ba_user - where id = #{id} + where id = #{id} and disabled!=1 and deleted!=1 </select> - <select id="selectSomeCount" parameterType="java.util.Map" resultType="java.lang.Long"> select @@ -122,11 +126,6 @@ </if> </trim> </select> - - <select id="selectNameById" parameterType="java.lang.Long" resultType="java.lang.String"> - select name from ba_user where id=#{id} - </select> - <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> <!--@mbg.generated--> -- Gitblit v1.8.0