|
@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{userId}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, sysdate())
|
|
|
</insert>
|
|
|
|
|
|
- <select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult">
|
|
|
+ <select id="selectOperLogList" parameterType="SysOperlogVo" resultMap="SysOperLogResult">
|
|
|
<include refid="selectOperLogVo"/>
|
|
|
<where>
|
|
|
<if test="title != null and title != ''">
|
|
@@ -48,20 +48,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- #{businessType}-->
|
|
|
<!-- </foreach>-->
|
|
|
<!-- </if>-->
|
|
|
- <if test="status != null">
|
|
|
- AND status = #{status}
|
|
|
- </if>
|
|
|
+<!-- <if test="status != null">-->
|
|
|
+<!-- AND status = #{status}-->
|
|
|
+<!-- </if>-->
|
|
|
<if test="userId != null and userId != ''">
|
|
|
AND user_id like concat('%', #{userId}, '%')
|
|
|
</if>
|
|
|
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
- and date_format(oper_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
|
+<!-- <if test="operatorType != null and operatorType != 0">-->
|
|
|
+<!-- AND operator_type like concat('%', #{operatorType}, '%')-->
|
|
|
+<!-- </if>-->
|
|
|
+ <if test="startTime != null and startTime != ''"><!-- 开始时间检索 -->
|
|
|
+ and date_format(oper_time,'%y%m%d') >= date_format(#{startTime},'%y%m%d')
|
|
|
</if>
|
|
|
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
- and date_format(oper_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
|
+ <if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
|
|
|
+ and date_format(oper_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d')
|
|
|
</if>
|
|
|
</where>
|
|
|
- order by oper_id desc
|
|
|
+ order by oper_time desc
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteOperLogByIds" parameterType="Long">
|