优化部分查询SQL

This commit is contained in:
wangchl
2018-08-06 11:42:15 +08:00
parent 127b532825
commit db8f960b0d
10 changed files with 26 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<select id="selectLogininforList" parameterType="Logininfor" resultMap="LogininforResult">
select * from sys_logininfor
select info_id,login_name,ipaddr,login_location,browser,os,status,msg,login_time from sys_logininfor
<where>
<if test="ipaddr != null and ipaddr != ''">
AND ipaddr like concat('%', #{ipaddr}, '%')