|
|
@@ -13,15 +13,15 @@
|
|
|
FROM
|
|
|
smsb_device_login sdl
|
|
|
LEFT JOIN smsb_device sd ON sdl.identifier = sd.identifier
|
|
|
- WHERE 1=1
|
|
|
- <if test="bo.identifier != null and bo.identifier != ''">
|
|
|
- AND sdl.identifier = #{bo.identifier}
|
|
|
+ WHERE 1 = 1
|
|
|
+ <if test="bo.reqIdentifier != null and bo.reqIdentifier != ''">
|
|
|
+ AND sdl.req_identifier like concat('%',#{bo.reqIdentifier},'%')
|
|
|
</if>
|
|
|
<if test="bo.reqIp != null and bo.reqIp != ''">
|
|
|
- AND sdl.reqIp = #{bo.reqIp}
|
|
|
+ AND sdl.req_ip like concat('%',#{bo.reqIp},'%')
|
|
|
</if>
|
|
|
<if test="bo.loginResult != null">
|
|
|
- AND sdl.loginResult = #{bo.loginResult}
|
|
|
+ AND sdl.login_result = #{bo.loginResult}
|
|
|
</if>
|
|
|
ORDER BY sdl.create_time DESC
|
|
|
</select>
|