系统操作日志,菜单列表问题修改
parent
1b67e47fd9
commit
bdc5773f44
@ -0,0 +1,18 @@
|
||||
package com.glxp.api.admin.dao.info;
|
||||
|
||||
import com.glxp.api.admin.entity.info.SetupEntity;
|
||||
import com.glxp.api.admin.entity.info.SysServerLogEntity;
|
||||
import com.glxp.api.admin.req.info.FilterSetupRequest;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface SysServerLogDao {
|
||||
|
||||
|
||||
List<SysServerLogEntity> filterLog(FilterSetupRequest filterSetupRequest);
|
||||
|
||||
boolean insertLog(SysServerLogEntity sysServerLogEntity);
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.glxp.api.admin.entity.info;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SysServerLogEntity {
|
||||
private Integer id;
|
||||
private String genTime;
|
||||
private String fileName;
|
||||
private String filePath;
|
||||
private String type;
|
||||
private String remark;
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.glxp.api.admin.req.info;
|
||||
|
||||
import com.glxp.api.admin.req.ListPageRequest;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class FilterSysLogRequest extends ListPageRequest {
|
||||
private String genTime;
|
||||
private String fileName;
|
||||
private String filePath;
|
||||
private String type;
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package com.glxp.api.admin.service.info;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
public interface SysServerLogService {
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package com.glxp.api.admin.service.info.impl;
|
||||
|
||||
import com.glxp.api.admin.service.info.SysServerLogService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class SysServerLogServiceImpl implements SysServerLogService {
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
|
||||
<mapper namespace="com.glxp.api.admin.dao.info.SysServerLogDao">
|
||||
|
||||
|
||||
<select id="filterLog" parameterType="com.glxp.api.admin.req.info.FilterSysLogRequest"
|
||||
resultType="com.glxp.api.admin.entity.info.SysServerLogEntity">
|
||||
SELECT * FROM sys_server_log
|
||||
<where>
|
||||
<if test="type != '' and type != null">
|
||||
AND `type` = #{type}
|
||||
</if>
|
||||
|
||||
<if test="fileName != '' and fileName != null">
|
||||
AND fileName = #{fileName}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertLog" parameterType="com.glxp.api.admin.entity.info.SysServerLogEntity">
|
||||
insert
|
||||
INTO sys_server_log(genTime,
|
||||
fileName,
|
||||
filePath,
|
||||
`type`,
|
||||
remark)
|
||||
values (#{genTime},
|
||||
#{fileName},
|
||||
#{companyName},
|
||||
#{filePath},
|
||||
#{type},
|
||||
#{remark})
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue