ftp정보 테이블 수정

main
이범준 8 months ago
parent 97e26a8931
commit 71aa3a8cd8

@ -34,7 +34,7 @@ public class FTPUtil {
client = new FTPClient();
client.setControlEncoding("UTF-8");
client.connect(rs.getIp(), 21);
client.connect(rs.getIp(), Integer.parseInt(rs.getPort()));
// 접속을 확인.
int resultCode = client.getReplyCode();

@ -7,6 +7,7 @@ import lombok.Setter;
@Setter
public class RemoteSystemInfo {
String ip;
String port;
String id;
String pw;
String osType;

@ -170,6 +170,7 @@ public class Crdn05Controller extends ApplicationController {
RemoteSystemInfo rs = new RemoteSystemInfo();
rs.setIp(remoteInfo.string("REMOTE_IP"));
rs.setPort(remoteInfo.string("REMOTE_PORT"));
rs.setId(remoteInfo.string("REMOTE_ID"));
rs.setPw(remoteInfo.string("REMOTE_PASSWORD"));
rs.setOsType(remoteInfo.string("REMOTE_OS"));

@ -96,6 +96,7 @@ SELECT A.FILE_LAYOUT_ID
, A.INCREASE_TYPE
, B.FILE_LAYOUT_ID
, B.REMOTE_IP
, B.REMOTE_PORT
, B.REMOTE_ID
, B.REMOTE_PASSWORD
, B.REMOTE_OS
@ -175,6 +176,7 @@ INSERT
INTO TB_FTP (
FILE_LAYOUT_ID
, REMOTE_IP
, REMOTE_PORT
, REMOTE_ID
, REMOTE_PASSWORD
, REMOTE_OS
@ -183,6 +185,7 @@ INSERT
) VALUES (
#{layoutDescriptor.fileLayoutId}
, #{remoteSystemInfo.ip}
, #{remoteSystemInfo.port}
, #{remoteSystemInfo.id}
, #{remoteSystemInfo.pw}
, #{remoteSystemInfo.osType}
@ -221,6 +224,7 @@ UPDATE TB_CRDN_FILE_LAYOUT
/* 파일연계 원격지 정보 수정(crdnStngMapper.updateFtpInfo) */
UPDATE TB_FTP
SET REMOTE_IP = #{remoteSystemInfo.ip}
, REMOTE_PORT = #{remoteSystemInfo.port}
, REMOTE_ID = #{remoteSystemInfo.id}
, REMOTE_PASSWORD = #{remoteSystemInfo.pw}
, REMOTE_OS = #{remoteSystemInfo.osType}
@ -304,6 +308,7 @@ SELECT A.FILE_LAYOUT_ID
/* 연계파일 fpt정보 조회(crdnStngMapper.selectRemoteInfo) */
SELECT FILE_LAYOUT_ID
, REMOTE_IP
, REMOTE_PORT
, REMOTE_ID
, REMOTE_PASSWORD
, REMOTE_OS

@ -161,7 +161,7 @@
</div>
<div class="card-body">
<div class="row g-1">
<div class="col-md-6">
<div class="col-md-4">
<label for="linkEnterpriseName--${pageName}"
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">
업체명(연계)
@ -170,7 +170,7 @@
class="form-control" maxlength="100" data-maxlengthb="100" />
</div>
<div class="col-md-6">
<div class="col-md-4">
<label for="ip--${pageName}"
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">
아이피
@ -179,6 +179,15 @@
class="form-control" maxlength="100" data-maxlengthb="100" />
</div>
<div class="col-md-4">
<label for="port--${pageName}"
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">
포트
</label>
<input type="number" id="port--${pageName}" name="port" data-map="REMOTE_PORT"
class="form-control" min="1" max="65535" />
</div>
<div class="col-md-6">
<label for="id--${pageName}"
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">

Loading…
Cancel
Save