|
@@ -2,7 +2,7 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
<mapper namespace="com.bowintek.practice.mapper.cquery.SysLogCQuery">
|
|
|
<select id="selectLogList" resultType="com.bowintek.practice.vo.system.LogModel">
|
|
|
- select l.logID,l.logID,l.pageUrl,l.actionName,l.userID,l.logTime,us.name as userName,us.loginID,l.pageName
|
|
|
+ select l.logID,l.pageUrl,l.actionName,l.userID,l.logTime,us.name as userName,us.loginID,l.pageName
|
|
|
from sys_log l
|
|
|
inner join sys_user us on l.userID = us.userID
|
|
|
where 1=1
|
|
@@ -18,6 +18,12 @@
|
|
|
<if test="startDate != null ">
|
|
|
and l.logTime <![CDATA[ < ]]> date_add(#{startDate}, interval 1 day)
|
|
|
</if>
|
|
|
+ <if test="idList!=null and idList.size>0">
|
|
|
+ and l.logID in
|
|
|
+ <foreach collection="idList" item="id" index="index" open="(" close=")" separator=",">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
order by l.logTime desc
|
|
|
</select>
|
|
|
</mapper>
|