Browse Source

井筒-文件预览

xiaoqiao 10 months ago
parent
commit
924b6aff64

BIN
target/classes/com/bowintek/practice/mapper/cquery/SysLogCQuery.class


BIN
target/classes/com/bowintek/practice/services/service/system/LogService.class


+ 7 - 1
target/classes/mapping/cquery/SysLogCQuery.xml

@@ -2,7 +2,7 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
 <!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">
 <mapper namespace="com.bowintek.practice.mapper.cquery.SysLogCQuery">
     <select id="selectLogList" resultType="com.bowintek.practice.vo.system.LogModel">
     <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
         from sys_log l
         inner join sys_user us on l.userID = us.userID
         inner join sys_user us on l.userID = us.userID
         where 1=1
         where 1=1
@@ -18,6 +18,12 @@
         <if test="startDate != null ">
         <if test="startDate != null ">
             and l.logTime <![CDATA[ < ]]> date_add(#{startDate}, interval 1 day)
             and l.logTime <![CDATA[ < ]]> date_add(#{startDate}, interval 1 day)
         </if>
         </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
         order by l.logTime desc
     </select>
     </select>
 </mapper>
 </mapper>