You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.dongjian.dashboard.back.dao.ex.DashboardOperationLogMapperExt">
|
|
|
|
|
|
|
|
|
|
<select id="getListPage" resultType="com.dongjian.dashboard.back.vo.operationlog.OperationLogPageVO">
|
|
|
|
|
SELECT
|
|
|
|
|
dolog.id,
|
|
|
|
|
dolog.user_id,
|
|
|
|
|
dolog.company_id,
|
|
|
|
|
dolog.operation,
|
|
|
|
|
dolog.operation_remark,
|
|
|
|
|
dolog.uri,
|
|
|
|
|
dolog.method_name,
|
|
|
|
|
dolog.class_name,
|
|
|
|
|
dolog.ip_address,
|
|
|
|
|
dolog.request_params,
|
|
|
|
|
dolog.execution_time_ms,
|
|
|
|
|
dolog.created_at,
|
|
|
|
|
COALESCE(
|
|
|
|
|
NULLIF(
|
|
|
|
|
CONCAT_WS('', buser.last_name, buser.first_name),
|
|
|
|
|
''
|
|
|
|
|
),
|
|
|
|
|
buser.login_name
|
|
|
|
|
) AS `user`
|
|
|
|
|
FROM
|
|
|
|
|
dashboard_operation_log dolog
|
|
|
|
|
INNER JOIN data_center_aeon_admin.basic_user buser ON buser.id = dolog.user_id
|
|
|
|
|
WHERE dolog.company_id IN <foreach collection="companyIdList" item="item" open="(" separator="," close=")">#{item}</foreach>
|
|
|
|
|
<if test="startTime != null">
|
|
|
|
|
AND dolog.created_at >= #{startTime}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="endTime != null">
|
|
|
|
|
AND #{endTime} >= dolog.created_at
|
|
|
|
|
</if>
|
|
|
|
|
ORDER BY dolog.created_at DESC
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|