|  | @@ -23,11 +23,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |  		<result property="operTime"       column="oper_time"      />
 | 
	
		
			
				|  |  |  		<result property="deptId"         column="dept_id"        />
 | 
	
		
			
				|  |  |  		<result property="tenantId"       column="tenant_id"      />
 | 
	
		
			
				|  |  | +		<result property="createBy"       column="create_by"      />
 | 
	
		
			
				|  |  |  	</resultMap>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	<sql id="selectOperLogVo">
 | 
	
		
			
				|  |  |          select oper_id, title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, oper_time
 | 
	
		
			
				|  |  | -        from sys_oper_log
 | 
	
		
			
				|  |  | +        from sys_oper_log d
 | 
	
		
			
				|  |  |      </sql>
 | 
	
		
			
				|  |  |      
 | 
	
		
			
				|  |  |  	<insert id="insertOperlog" parameterType="com.usky.system.domain.SysOperLog">
 | 
	
	
		
			
				|  | @@ -50,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |  			<if test="operTime != null"> oper_time, </if>
 | 
	
		
			
				|  |  |  			<if test="deptId != null"> dept_id, </if>
 | 
	
		
			
				|  |  |  			<if test="tenantId != null"> tenant_id, </if>
 | 
	
		
			
				|  |  | +			<if test="createBy != null"> create_by, </if>
 | 
	
		
			
				|  |  |  		</trim>
 | 
	
		
			
				|  |  |  		values
 | 
	
		
			
				|  |  |  		<trim prefix="(" suffix=")" suffixOverrides=",">
 | 
	
	
		
			
				|  | @@ -70,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |  			<if test="operTime != null"> #{operTime},</if>
 | 
	
		
			
				|  |  |  			<if test="deptId != null"> #{deptId},</if>
 | 
	
		
			
				|  |  |  			<if test="tenantId != null"> #{tenantId},</if>
 | 
	
		
			
				|  |  | +			<if test="createBy != null"> #{createBy},</if>
 | 
	
		
			
				|  |  |  		</trim>
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  	
 | 
	
	
		
			
				|  | @@ -100,13 +103,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |  			<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
 | 
	
		
			
				|  |  |  				and date_format(oper_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | +			<!-- 数据范围过滤 -->
 | 
	
		
			
				|  |  | +			${params.dataScope}
 | 
	
		
			
				|  |  |  		</where>
 | 
	
		
			
				|  |  |  		order by oper_id desc
 | 
	
		
			
				|  |  |  	</select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	<select id="selectOperLogListExport" parameterType="com.usky.system.domain.SysOperLog" resultType="com.usky.system.service.vo.SysOperLogExportVO">
 | 
	
		
			
				|  |  |  		SELECT oper_id, oper_ip, oper_name, title, (CASE business_type WHEN '0' THEN '其它' WHEN '1' THEN '新增' WHEN '2' THEN '修改' ELSE '删除' END) AS businessType, request_method, (CASE STATUS WHEN '0' THEN '成功' ELSE '失败' END) AS STATUS, oper_time
 | 
	
		
			
				|  |  | -		FROM sys_oper_log
 | 
	
		
			
				|  |  | +		FROM sys_oper_log d
 | 
	
		
			
				|  |  |  		<where>
 | 
	
		
			
				|  |  |  			<if test="title != null and title != ''">
 | 
	
		
			
				|  |  |  				AND title like concat('%', #{title}, '%')
 | 
	
	
		
			
				|  | @@ -132,6 +137,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |  			<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
 | 
	
		
			
				|  |  |  				and date_format(oper_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | +			<!-- 数据范围过滤 -->
 | 
	
		
			
				|  |  | +			${params.dataScope}
 | 
	
		
			
				|  |  |  		</where>
 | 
	
		
			
				|  |  |  		order by oper_id desc
 | 
	
		
			
				|  |  |  	</select>
 | 
	
	
		
			
				|  | @@ -145,7 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |   	
 | 
	
		
			
				|  |  |   	<select id="selectOperLogById" parameterType="Long" resultMap="SysOperLogResult">
 | 
	
		
			
				|  |  |  		<include refid="selectOperLogVo"/>
 | 
	
		
			
				|  |  | -		where oper_id = #{operId}
 | 
	
		
			
				|  |  | +		where d.oper_id = #{operId}
 | 
	
		
			
				|  |  |  	</select>
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	<update id="cleanOperLog">
 |