| | |
| | | sol.operator_type AS operatorType,sol.oper_name AS operName,sol.dept_name AS deptName, sol.oper_url AS operUrl, sol.oper_ip AS operIp, |
| | | sol.oper_location AS operLocation, sol.oper_param AS operLocation,sol.json_result AS jsonResult, sol.status AS status,sol.error_msg AS errorMsg, |
| | | sol.oper_time AS operTime, sol.cost_time AS costTime,sol.companyName AS companyName,sol.roleName AS roleName,sol.phonenumber AS phonenumber, |
| | | sol.userId AS userId,sol.nickName AS nickName |
| | | sol.userId AS userId,sol.nickName AS nickName,sol.role_type AS roleType |
| | | from sys_oper_log sol |
| | | left join sys_user u on sol.userId = u.user_id |
| | | <where> |
| | | <if test="query.nickName != null and query.nickName != ''"> |
| | | AND sol.nickName like concat('%', #{query.nickName}, '%') |
| | |
| | | AND sol.oper_time >= #{query.startTime} |
| | | AND sol.oper_time <= #{query.endTime} |
| | | </if> |
| | | <if test="query.roleType != null"> |
| | | AND sol.role_type = #{query.roleType} |
| | | </if> |
| | | <if test="query.objectId != null and query.objectId != ''"> |
| | | AND u.object_id = #{query.objectId} |
| | | </if> |
| | | </where> |
| | | ORDER BY sol.oper_time DESC |
| | | </select> |