ZhuDongming
2019-10-18 a73c63037e6a5276ce6442873afc627e8cb2c9b0
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>