| | |
| | | <where> |
| | | 1 = 1 |
| | | <if test="ip != null"> |
| | | and ip like #{ip} |
| | | and upper(ip) like #{ip} |
| | | </if> |
| | | <if test="type != null"> |
| | | and type = #{type} |
| | |
| | | <where> |
| | | 1 = 1 |
| | | <if test="ip != null"> |
| | | and a.ip like #{ip} |
| | | and upper(a.ip) like #{ip} |
| | | </if> |
| | | <if test="type != null"> |
| | | and a.type = #{type} |
| | | </if> |
| | | </where> |
| | | order by a.id |
| | | order by a.id desc |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | <select id="selectAll" resultType="com.lf.server.entity.sys.BlacklistEntity"> |
| | | select a.*,fn_uname(a.create_user) createName,fn_uname(a.update_user) updateName from lf.sys_blacklist a order by a.id; |
| | | select a.*,fn_uname(a.create_user) createName,fn_uname(a.update_user) updateName from lf.sys_blacklist a order by a.id desc |
| | | </select> |
| | | |
| | | <select id="selectById" resultType="com.lf.server.entity.sys.BlacklistEntity"> |