|  |  | @ -22,16 +22,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
			
		
	
		
		
			
				
					
					|  |  |  | 		<result property="errorMsg"       column="error_msg"      /> |  |  |  | 		<result property="errorMsg"       column="error_msg"      /> | 
			
		
	
		
		
			
				
					
					|  |  |  | 		<result property="operTime"       column="oper_time"      /> |  |  |  | 		<result property="operTime"       column="oper_time"      /> | 
			
		
	
		
		
			
				
					
					|  |  |  | 		<result property="costTime"       column="cost_time"      /> |  |  |  | 		<result property="costTime"       column="cost_time"      /> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		<result property="deptId"       column="dept_id"      /> | 
			
		
	
		
		
			
				
					
					|  |  |  | 	</resultMap> |  |  |  | 	</resultMap> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	<sql id="selectOperLogVo"> |  |  |  | 	<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, cost_time |  |  |  |         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, cost_time | 
			
		
	
		
		
			
				
					
					|  |  |  |         from sys_oper_log |  |  |  |         from sys_oper_log d | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </sql> |  |  |  |     </sql> | 
			
		
	
		
		
			
				
					
					|  |  |  |      |  |  |  |      | 
			
		
	
		
		
			
				
					
					|  |  |  | 	<insert id="insertOperlog" parameterType="SysOperLog"> |  |  |  | 	<insert id="insertOperlog" parameterType="SysOperLog"> | 
			
		
	
		
		
			
				
					
					|  |  |  | 		insert into sys_oper_log(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, cost_time, oper_time) |  |  |  | 		insert into sys_oper_log(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, cost_time, oper_time,dept_id) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, now()) |  |  |  |         values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, now(),#{deptId}) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 	</insert> |  |  |  | 	</insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 	 |  |  |  | 	 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	<select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult"> |  |  |  | 	<select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -61,6 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
			
		
	
		
		
			
				
					
					|  |  |  | 			<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |  |  |  | 			<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> | 
			
		
	
		
		
			
				
					
					|  |  |  | 				AND oper_time <= CAST(#{params.endTime} AS TIMESTAMP) |  |  |  | 				AND oper_time <= CAST(#{params.endTime} AS TIMESTAMP) | 
			
		
	
		
		
			
				
					
					|  |  |  | 			</if> |  |  |  | 			</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			<!-- 数据范围过滤 --> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			${params.dataScope} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		</where> |  |  |  | 		</where> | 
			
		
	
		
		
			
				
					
					|  |  |  | 	</select> |  |  |  | 	</select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 	 |  |  |  | 	 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |