Commit 26e21ccc by naan1993

修改operation_log的表名

parent f2cfad64
...@@ -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("operation_log") @TableName("sys_operation_log")
public class OperationLog extends Model<OperationLog> { public class OperationLog extends Model<OperationLog> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -82,7 +82,7 @@ public class LogController extends BaseController { ...@@ -82,7 +82,7 @@ public class LogController extends BaseController {
@Permission(Const.ADMIN_NAME) @Permission(Const.ADMIN_NAME)
@ResponseBody @ResponseBody
public Object delLog() { public Object delLog() {
SqlRunner.db().delete("delete from operation_log"); SqlRunner.db().delete("delete from sys_operation_log");
return super.SUCCESS_TIP; return super.SUCCESS_TIP;
} }
} }
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<mapper namespace="com.stylefeng.guns.modular.system.dao.LogDao"> <mapper namespace="com.stylefeng.guns.modular.system.dao.LogDao">
<select id="getOperationLogs" resultType="map"> <select id="getOperationLogs" resultType="map">
select * from operation_log where 1 = 1 select * from sys_operation_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