From 9f79dd626f3a5096acedcae8d7a919c8910ac240 Mon Sep 17 00:00:00 2001
From: lizijie <lzjiiie@163.com>
Date: Mon, 14 Oct 2019 10:08:16 +0800
Subject: [PATCH] 修改单位

---
 src/main/resources/mapper/AccountMapper.xml |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/AccountMapper.xml b/src/main/resources/mapper/AccountMapper.xml
index 715d8f4..c7c2903 100644
--- a/src/main/resources/mapper/AccountMapper.xml
+++ b/src/main/resources/mapper/AccountMapper.xml
@@ -39,4 +39,20 @@
 			ar.role_id = r.id
 		AND ar.account_id = #{accountId}
 	</select>
+	
+	<select id="getOrganizationIdByAccountId" resultType="java.util.Map">
+		SELECT organization_id
+		FROM account
+		WHERE id=#{id}
+	</select>
+
+    <select id="getAccountList" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from account
+        where is_delete=0 and expire_time > now()
+        <if test="accountName != 'null'">
+            and account_name like concat('%',#{accountName},'%')
+        </if>
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0