|
@@ -51,33 +51,6 @@
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
- <!-- <select id="selectLogininforList" parameterType="com.usky.system.domain.SysLogininfor" resultMap="SysLogininforResult">-->
|
|
|
- <!-- select info_id, user_name, ipaddr, status, msg, access_time,login_location, browser, os from sys_logininfor d-->
|
|
|
- <!-- <where>-->
|
|
|
- <!-- <if test="ipaddr != null and ipaddr != ''">-->
|
|
|
- <!-- AND ipaddr like concat('%', #{ipaddr}, '%')-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="status != null and status != ''">-->
|
|
|
- <!-- AND status = #{status}-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="userName != null and userName != ''">-->
|
|
|
- <!-- AND user_name like concat('%', #{userName}, '%')-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="params.beginTime != null and params.beginTime != ''"><!– 开始时间检索 –>-->
|
|
|
- <!-- and date_format(access_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="params.endTime != null and params.endTime != ''"><!– 结束时间检索 –>-->
|
|
|
- <!-- and date_format(access_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="1 == 1">-->
|
|
|
- <!-- and tenant_id = #{tenantId}-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <!– 数据范围过滤 –>-->
|
|
|
- <!-- ${params.dataScope}-->
|
|
|
- <!-- </where>-->
|
|
|
- <!-- order by info_id desc-->
|
|
|
- <!-- </select>-->
|
|
|
-
|
|
|
<select id="selectLogininforList" parameterType="com.usky.system.domain.SysLogininfor" resultMap="SysLogininforResult">
|
|
|
select d.info_id, d.user_name, d.ipaddr, d.status, d.msg, d.access_time, d.login_location, d.browser, d.os, sd.dept_name
|
|
|
from sys_logininfor d
|
|
@@ -107,32 +80,6 @@
|
|
|
order by d.info_id desc
|
|
|
</select>
|
|
|
|
|
|
- <!-- <select id="selectLogininforListExport" parameterType="com.usky.system.domain.SysLogininfor" resultType="com.usky.system.service.vo.SysLoginExportVO">-->
|
|
|
- <!-- select info_id, ipaddr, user_name, (case status when '0' then '成功' else '失败' end) as status, msg, access_time,login_location, browser, os from sys_logininfor d-->
|
|
|
- <!-- <where>-->
|
|
|
- <!-- <if test="ipaddr != null and ipaddr != ''">-->
|
|
|
- <!-- AND ipaddr like concat('%', #{ipaddr}, '%')-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="status != null and status != ''">-->
|
|
|
- <!-- AND status = #{status}-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="userName != null and userName != ''">-->
|
|
|
- <!-- AND user_name like concat('%', #{userName}, '%')-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="params.beginTime != null and params.beginTime != ''"><!– 开始时间检索 –>-->
|
|
|
- <!-- and date_format(access_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="params.endTime != null and params.endTime != ''"><!– 结束时间检索 –>-->
|
|
|
- <!-- and date_format(access_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="1 == 1">-->
|
|
|
- <!-- and tenant_id = #{tenantId}-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- ${params.dataScope}-->
|
|
|
- <!-- </where>-->
|
|
|
- <!-- order by info_id desc-->
|
|
|
- <!-- </select>-->
|
|
|
-
|
|
|
<select id="selectLogininforListExport" parameterType="com.usky.system.domain.SysLogininfor" resultType="com.usky.system.service.vo.SysLoginExportVO">
|
|
|
select d.info_id, d.ipaddr, d.user_name,
|
|
|
(case when d.status = '0' then '成功' else '失败' end) as status,
|