You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
udiwms-java/api-admin/src/main/resources/mybatis/mapper/info/SysServerLogDao.xml

39 lines
1.2 KiB
XML

<?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>