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.

35 lines
1.1 KiB

4 months ago
<?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,
buser.login_name `user`
FROM
dashboard_operation_log dolog
INNER JOIN data_center_new.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>