Commit 8952fac0 by naan1993

修改表名-login_log

parent 843fedab
...@@ -16,7 +16,7 @@ import java.util.Date; ...@@ -16,7 +16,7 @@ import java.util.Date;
* @author stylefeng * @author stylefeng
* @since 2017-07-11 * @since 2017-07-11
*/ */
@TableName("login_log") @TableName("sys_login_log")
public class LoginLog extends Model<LoginLog> { public class LoginLog extends Model<LoginLog> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -63,7 +63,7 @@ public class LoginLogController extends BaseController { ...@@ -63,7 +63,7 @@ public class LoginLogController extends BaseController {
@Permission(Const.ADMIN_NAME) @Permission(Const.ADMIN_NAME)
@ResponseBody @ResponseBody
public Object delLog() { public Object delLog() {
SqlRunner.db().delete("delete from login_log"); SqlRunner.db().delete("delete from sys_login_log");
return super.SUCCESS_TIP; return super.SUCCESS_TIP;
} }
} }
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</select> </select>
<select id="getLoginLogs" resultType="map" parameterType="com.baomidou.mybatisplus.plugins.Page"> <select id="getLoginLogs" resultType="map" parameterType="com.baomidou.mybatisplus.plugins.Page">
select * from login_log where 1 = 1 select * from sys_login_log where 1 = 1
<if test="beginTime != null and beginTime !='' and endTime != null and endTime != ''"> <if test="beginTime != null and beginTime !='' and endTime != null and endTime != ''">
and (createTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59')) and (createTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment