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