
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<?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.takensoft.taken_bi_manager.host.dao.SftpDAO">
<!--
작성자 : 김성훈
작성일 : 2024.02.01
내용 : Host 리스트
-->
<!--<select id="hostSelectList" resultType="HostVO">
SELECT
host_code
, host_ip
, host_nm
FROM
host_info
WHERE
use_yn = 'Y'
ORDER BY
reg_dt DESC
</select>-->
<!--
작성자 : 하석형
작성일 : 2024.04.09
내용 : Host 리스트
-->
<select id="hostSelectList" parameterType="Member" resultType="HostVO">
SELECT
hi.host_code
, hi.host_ip
, hi.host_nm
FROM
host_info hi
JOIN
dept_host dh
ON
hi.host_code = dh.host_code
WHERE
use_yn = 'Y'
<if test="author == 'ROLE_USER'">
AND
dh.dept_code = #{dept_code}
</if>
ORDER BY
reg_dt DESC
</select>
<!--
작성자 : 김성훈
작성일 : 2024.02.01
내용 : Host 단건 조회 SQL
-->
<select id="hostSelectOne" parameterType="String" resultType="ConnectionVO_host">
SELECT
host_code
, host_protocol
, host_ip
, host_id
, host_pw
, host_port
, host_nm
FROM
host_info
WHERE
host_code = #{host_code}
</select>
</mapper>