2022-08-18 06:21:44 +00:00
|
|
|
<?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">
|
|
|
|
|
|
2022-10-27 00:02:05 +00:00
|
|
|
<mapper namespace="com.dbnt.faisp.main.userInfo.mapper.UserInfoMapper">
|
2022-10-19 06:23:11 +00:00
|
|
|
<sql id="selectUserInfoWhere">
|
|
|
|
|
<where>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="userStatus != null and userStatus != ''">
|
|
|
|
|
user_status = #{userStatus}
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
user_status != 'D'
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
<if test="userId != null and userId != ''">
|
|
|
|
|
and user_id like '%'||#{userId}||'%'
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userNm != null and userNm != ''">
|
|
|
|
|
and user_nm like '%'||#{userNm}||'%'
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ogCd != null and ogCd != ''">
|
|
|
|
|
and og_cd = #{ogCd}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ofcCd != null and ofcCd != ''">
|
|
|
|
|
and ofc_cd = #{ofcCd}
|
|
|
|
|
</if>
|
2022-10-28 09:00:38 +00:00
|
|
|
<if test="titleCd != null and titleCd != ''">
|
|
|
|
|
and title_cd = #{titleCd}
|
|
|
|
|
</if>
|
2022-10-19 06:23:11 +00:00
|
|
|
</where>
|
|
|
|
|
</sql>
|
2022-08-18 06:21:44 +00:00
|
|
|
<select id="selectUserInfoList" resultType="UserInfo" parameterType="UserInfo">
|
2022-08-25 09:39:21 +00:00
|
|
|
select user_seq,
|
2022-10-31 02:35:08 +00:00
|
|
|
dic_code,
|
2022-08-25 09:39:21 +00:00
|
|
|
user_id,
|
|
|
|
|
user_nm,
|
2022-08-31 00:57:37 +00:00
|
|
|
user_role,
|
2022-08-25 09:39:21 +00:00
|
|
|
email,
|
|
|
|
|
og_cd,
|
|
|
|
|
ofc_cd,
|
2022-10-27 06:38:53 +00:00
|
|
|
title_cd,
|
2022-08-25 09:39:21 +00:00
|
|
|
wrt_dt
|
|
|
|
|
from user_info
|
2022-10-19 06:23:11 +00:00
|
|
|
<include refid="selectUserInfoWhere"></include>
|
2022-10-27 06:38:53 +00:00
|
|
|
order by og_cd, ofc_cd, title_cd desc
|
2022-08-25 09:39:21 +00:00
|
|
|
limit #{rowCnt} offset #{firstIndex}
|
2022-08-18 06:21:44 +00:00
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectUserInfoListCnt" resultType="int" parameterType="UserInfo">
|
2022-08-25 09:39:21 +00:00
|
|
|
select count(*)
|
|
|
|
|
from user_info
|
2022-10-19 06:23:11 +00:00
|
|
|
<include refid="selectUserInfoWhere"></include>
|
2022-08-18 06:21:44 +00:00
|
|
|
</select>
|
2022-10-12 02:42:00 +00:00
|
|
|
|
|
|
|
|
<select id="selectManagerList" resultType="com.dbnt.faisp.util.ParamMap" parameterType="com.dbnt.faisp.util.ParamMap">
|
|
|
|
|
select user_seq,
|
2022-11-01 04:27:40 +00:00
|
|
|
user_id,
|
|
|
|
|
(select item_value from code_mgt where item_cd = title_cd) as title_cd,
|
|
|
|
|
user_nm
|
2022-10-12 02:42:00 +00:00
|
|
|
from user_info
|
|
|
|
|
where og_cd in
|
|
|
|
|
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
order by user_nm asc
|
|
|
|
|
</select>
|
2022-10-13 09:34:32 +00:00
|
|
|
|
|
|
|
|
<select id="selectDashboardConfigList" resultType="DashboardConfig" parameterType="int">
|
|
|
|
|
select a.menu_key ,
|
|
|
|
|
a.cat1_cd ,
|
|
|
|
|
a.cat2_cd ,
|
|
|
|
|
a.cat3_cd ,
|
|
|
|
|
a.menu_url ,
|
|
|
|
|
b.order_num
|
|
|
|
|
from menu_mgt a
|
|
|
|
|
inner join dashboard_config b
|
|
|
|
|
on a.menu_key = b.menu_key
|
|
|
|
|
where b.user_seq = #{userSeq}
|
|
|
|
|
order by b.order_num
|
|
|
|
|
</select>
|
2022-08-18 06:21:44 +00:00
|
|
|
</mapper>
|