feat: 시민신고 테이블 등록 진행

main
minuk926 2 years ago
parent cca33540ac
commit 6f832bdb97

@ -0,0 +1,18 @@
package kr.xit.fims.biz.ec.mapper;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.RowBounds;
import egovframework.rte.psl.dataaccess.mapper.Mapper;
import kr.xit.fims.biz.ec.model.CtznSttemntDTO;
import kr.xit.fims.biz.ec.model.NatlNewspaperRcvXmlDTO;
@Mapper
public interface IEcCtznSttemntMapper {
int insertEcEsbInterface(final NatlNewspaperRcvXmlDTO dto);
List<CtznSttemntDTO> selectEcCtznSttemnts(Map<String, Object> paraMap, RowBounds rowBounds);
}

@ -1,12 +1,18 @@
package kr.xit.fims.biz.ec.mapper;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.RowBounds;
import egovframework.rte.psl.dataaccess.mapper.Mapper;
import kr.xit.fims.biz.ec.model.NatlNewspaperDTO;
import kr.xit.fims.biz.ec.model.NatlNewspaperRcvDTO;
import kr.xit.fims.biz.ec.model.NatlNewspaperRcvXmlDTO;
import kr.xit.fims.biz.ec.model.NatlNewspaperSendXmlDTO;
@Mapper
public interface IEcNatlNewspaperMapper {
int insertEcEsbInterface(final NatlNewspaperRcvXmlDTO dto);
List<NatlNewspaperRcvDTO> selectEcEsbInterfaces(Map<String, Object> paraMap, RowBounds rowBounds);
}

@ -0,0 +1,184 @@
package kr.xit.fims.biz.ec.model;
import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class CtznSttemntDTO implements Serializable { //extends ExtlEsbDataType {
private static final long serialVersionUID = 1L;
private String interfaceSeqN;
/**
* -anc_code_v
*/
private String insttCode;
/**
* :88-sys_gubun_c
*/
private String ffnlgCode;
/**
* :140/180/140-peti_gubun_c
*/
private String cvplSe;
/**
* -peti_no_c
*/
private String cvplReqstNo;
/**
* -civil_no_c
*/
private String cvplRceptNo;
/**
* -peti_name_v
*/
private String cvplApplcntNm;
/**
* -zip_code_c
*/
private String cvplApplcntZip;
/**
* -address_v
*/
private String cvplApplcntAdres;
/**
* -email_v
*/
private String cvplApplcntEmailAdres;
/**
* -cel_no_v
*/
private String cvplApplcntMoblphonNo;
/**
* -tel_no_v
*/
private String cvplApplcntTlphonNo;
/**
* -peti_title_v
*/
private String cvplReqstSj;
/**
* -peti_reason_l
*/
private String cvplReqstCn;
/**
* -peti_reg_d
*/
private String cvplReqstDt;
/**
* -anc_reg_d
*/
private String cvplRceptDt;
/**
*-peti_proc_dur_n
*/
private String cvplProcessPd;
/**
*
*/
private String cvplRegistDt;
/**
*
*/
private String ctznSttemntProcessSttus;
private String register;
private String updtDt;
private String updusr;
private List<CtznSttemntDetailDTO> dtlList;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public static class CtznSttemntDetailDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* <pre>
*
* * (1/2) C: 2022/09/16 02:52:52 : 686455 (· )
* -------
* </pre>
*/
private String vhcleNo;
/**
* <pre>
*
* <pre>
*/
private String ctznSttemntDetailSn;
private String interfaceSeqN;
/**
* <pre>
* ID
* <pre>
*/
private String regltId;
/**
* <pre>
*
* * (1/2) C: 2022/09/16 02:52:52 : 686455 (· )
* -------------------
* </pre>
*/
private String regltDeTime;
/**
* <pre>
*
* [] 807
* -------------------
* </pre>
*/
private String regltPlace;
/**
* <pre>
*
* (SPP-2209-1603268) .288045*
* ---------------
* </pre>
*/
private String violtDtlsNm;
/**
* <pre>
* GPS
* * :37.362327575683594 :126.93710327148438
* ------------------
* </pre>
*/
private String gpsX;
/**
* GPS
* * :37.362327575683594 :126.93710327148438
* ------------------
* </pre>
*/
private String gpsY;
/**
*
*/
private String insttCode;
/**
*
*/
private String ffnlgCode;
/**
*
*/
private String ctznSttemntDetailProcessSttus;
private String registDt;
private String register;
private String updtDt;
private String updusr;
}
}

@ -0,0 +1,36 @@
package kr.xit.fims.biz.ec.model;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class CtznSttemntDetailDTO implements Serializable {
private static final long serialVersionUID = 1L;
private String interfaceSeqN;
private String vhcleNo;
private String ctznSttemntDetailSn;
private String regltId;
private String regltDeTime;
private String regltPlace;
private String violtDtlsNm;
private String gpsX;
private String gpsY;
private String insttCode;
private String ffnlgCode;
private String ctznSttemntDetailProcessSttus;
private String registDt;
private String register;
private String updtDt;
private String updusr;
}

@ -0,0 +1,382 @@
package kr.xit.fims.biz.ec.model;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlElement;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* <pre>
* interface
* XmlRootElement
* JAXBContext
* XmlAccessorType
* FIELD - (static transient ) XML
* NONE - XML .
* PROPERTY - getter/setter XML .
* PUBLIC_MEMBER - public getter/setter XML .
*
* comment / /
* / /
* </pre>
*/
@Getter
@Setter
@ToString
public class NatlNewspaperRcvDTO implements Serializable { //extends ExtlEsbDataType {
private static final long serialVersionUID = 1L;
/**
* :
* PK : number(30) - YYYYMMDDHH24MISSFF+random(9)
*/
private String interfaceSeqN;
/**
* :
* char(88)
* EC010008
*/
private String sysGubunC;
/**
* :
* varchar2(7)
* 1140100 / /
* ex) - 641000
*/
private String ancCodeV;
/**
* :
* char(3)
* 140:(-) / 180: / 140: (-)
*/
private String petiGubunC;
/**
* :
* varchar2(7)
* ()
*/
private String petiAncCodeV;
/**
* :
* varchar2(16)
* ( ), null .
* ( )
*/
private String petiNoC;
/**
* :
* varchar2(16)
* ( ), null .
* ( )"
*/
private String civilNoC;
/**
* : /
* varchar2(128)
*/
private String peterNameV;
/**
* : /
* varchar2(7)
*/
private String zipCodeC;
/**
* : /
* varchar2(400)
*/
private String addressV;
/**
*
* varchar2(64)
*/
private String emailV;
/**
*
* varchar2(20)
*/
private String celNoV;
/**
*
* varchar2(20)
*/
private String telNoV;
/**
* : /
* varchar2(500)
*/
private String petiTitleV;
/**
* : /
* clob
*/
private String petiReasonL;
/**
* : /
* char(1)
* Y = , N = (default N)
* Y ()
* N
*/
private String openYnC;
/**
* : /
* date : YYYYMMDDHH24MISS
*/
private String petiRegD;
/**
* :
* char(1)
* Y = , N = (default)
*/
private String petiReasonAttachYnC;
/**
* :
* number(10)
*/
private String petiFileSizeN;
//-------------------------------------------------------------
/**
* 1
* varchar2(2000)
*/
private String petiFilePath1V;
/**
* 2
* varchar2(2000)
*/
private String petiFilePath2V;
/**
* 3
* varchar2(2000)
*/
private String petiFilePath3V;
/**
* 4
* varchar2(2000)
*/
private String petiFilePath4V;
/**
* 5
* varchar2(2000)
*/
private String petiFilePath5V;
//-----------------------------------------------------------------------------
/**
* :
* date
* sysdate(YYYYMMDDHH24MISS)
*/
private String regD;
/**
* :
* char(1)
* 1: / 2: / 1:
*/
private String sendYnC;
/**
*
* date : YYYYMMDDHH24MISS
*/
private String sendD;
/**
* :
* date
* interface DB->XML sysdate(YYYYMMDDHH24MISS)
*/
private String applyD;
/**
* :
* char(1)
* :Y OR N (default:N , DB Y )
*/
private String applyGubunC;
//------------------------------------------------------------------------------------
/**
* 1:
* varchar2(400)
* 0 / / 0
*/
private String pcdGubunV;
/**
* 2:
* varchar2(400)
*/
private String pcdGubun2V;
/**
* 3:
* varchar2(400)
*/
private String pcdGubun3V;
/**
* xml :
* varchar2(10)
*/
private String ifid;
/**
* :
* varchar2(7)
*
*/
private String srcorgcd;
/**
* :
* varchar2(7)
* insert 1140100
*/
private String tgtorgcd;
private AppendFileInfoDTO appendFileInfo;
//-------------------------------------------------------------------------------------
private String petiPathGubunC;
/**
* :
* varchar2(7)
*/
private String pcdDeptV;
/**
* :
* varchar2(50)
*/
private String pcdDeptNmV;
/**
* :
* varchar2(50)
*/
private String dutyIdV;
/**
* :
* varchar2(64)
*/
private String pcdEmailV;
/**
* :
* varchar2(20)
*/
private String pcdTelV;
//-------------------------------------------------------------------------------------
// 선택사항
//-------------------------------------------------------------------------------------
/**
*
* date
*/
private String ancRegD;
/**
*
* varchar2(4000)
*/
private String moreAgainV;
//------------------------------------------------------------------------------
/**
* 1
* char(8)
*/
private String satisfyC;
/**
* 2
* char(8)
*/
private String satisfy2C;
/**
* 3
* char(8)
*/
private String satisfy3C;
//------------------------------------------------------------------------------
/**
*
* date
*/
private String satisfyRegD;
/**
* :
* varchar2(7)
* ex) 6410000
*/
private String pcdAncCodeV;
/**
*
* number(5)
*/
private String petiProcDurN;
/**
*
* date
*/
private String petiEndD;
private String registDt;
private String register;
//----------------------------------------------------------------------------------------------------
// 결과(응답) 처리
//----------------------------------------------------------------------------------------------------
/**
* :
* varchar2(512)
*
*/
private String civilGistV;
/**
* :
* clob
*
*/
private String civilAbstractL;
/**
* :
* clob
*/
private String pcdRstContL;
/**
* :
* varchar2(14) : YYYYMMDDHH24MISS
*/
private String doRegD;
/**
* :
* char(1)
* Y = , N = (default)
*/
private String pcdRstContAttachYnC;
/**
*
* number(10)
*/
private String pcdFileSizeN;
@Getter
@Setter
@ToString
public static class AppendFileInfoDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 1
* varchar2(2000)
*/
@XmlElement(name = "peti_file_path1_v")
private String petiFilePath1V;
@XmlElement(name = "apndfilcont1")
private String apndfilcont1;
/**
* 2
* varchar2(2000)
*/
private String petiFilePath2V;
private String apndfilcont2;
/**
* 3
* varchar2(2000)
*/
private String petiFilePath3V;
private String apndfilcont3;
/**
* 4
* varchar2(2000)
*/
private String petiFilePath4V;
private String apndfilcont4;
/**
* 5
* varchar2(2000)
*/
private String petiFilePath5V;
private String apndfilcont5;
private String apndfilcount;
}
}

@ -4,7 +4,9 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.crypto.codec.Base64;
import org.springframework.stereotype.Service;
@ -14,6 +16,7 @@ import org.springframework.web.multipart.MultipartFile;
import kr.xit.fims.biz.cmm.FimsConst;
import kr.xit.fims.biz.ec.mapper.IEcNatlNewspaperMapper;
import kr.xit.fims.biz.ec.model.EcNatlNewspaperRcvReqDTO;
import kr.xit.fims.biz.ec.model.NatlNewspaperRcvDTO;
import kr.xit.fims.biz.ec.model.NatlNewspaperRcvXmlDTO;
import kr.xit.framework.biz.cmm.model.CmmFileMstDTO;
import kr.xit.framework.biz.cmm.service.ICmmFileService;
@ -62,10 +65,19 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
dto.getXmlFileInfoList().forEach((fi) -> {
NatlNewspaperRcvXmlDTO xmlDto = XmlParseUtils.readXmlToObject(NatlNewspaperRcvXmlDTO.class, filePath+System.getProperty("file.separator")+fi.getFileNm());
// rcv data 생성
xmlDto.setPetiRegD(xmlDto.getPetiRegD().replaceAll("[-: ]", ""));
xmlDto.setPetiEndD(xmlDto.getPetiEndD().replaceAll("[-: ]", ""));
xmlDto.setAncRegD(xmlDto.getAncRegD().replaceAll("[-: ]", ""));
xmlDto.setRegD(xmlDto.getRegD().replaceAll("[-: ]", ""));
xmlDto.setRegister(getUserUniqId());
mapper.insertEcEsbInterface(xmlDto);
// 첨부 파일 생성
NatlNewspaperRcvXmlDTO.AppendFileInfoDTO appendFileDto = xmlDto.getAppendFileInfo();
int fileCnt = Integer.parseInt(appendFileDto.getApndfilcount());
List<MultipartFile> mfList = new ArrayList<>();
if(fileCnt > 0) {
Class<?> clz = appendFileDto.getClass();
String makeDir = "/" + DateUtils.getToday("");
@ -96,16 +108,6 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, e.getMessage());
}
}
}
xmlDto.setPetiRegD(xmlDto.getPetiRegD().replaceAll("[-: ]", ""));
xmlDto.setPetiEndD(xmlDto.getPetiEndD().replaceAll("[-: ]", ""));
xmlDto.setAncRegD(xmlDto.getAncRegD().replaceAll("[-: ]", ""));
xmlDto.setRegD(xmlDto.getRegD().replaceAll("[-: ]", ""));
xmlDto.setRegister(getUserUniqId());
mapper.insertEcEsbInterface(xmlDto);
if(fileCnt > 0) {
CmmFileMstDTO fileMstDTO = new CmmFileMstDTO();
fileMstDTO.setJobSeCode(FimsConst.FileJobSeCode.NATL_NEWS_PAPER_RCV.getCode());
fileMstDTO.setFileJobId(xmlDto.getInterfaceSeqN());
@ -113,9 +115,30 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
fileMstDTO.setFileDirPath(FimsConst.FileDirDepth.DAY.getCode());
cmmFileService.saveFiles(fileMstDTO, mfList);
}
//log.debug(appendFileDto.toString());
});
}
public void saveCtznSttemnt(final EcNatlNewspaperRcvReqDTO dto){
}
@Override
public List<NatlNewspaperRcvDTO> findNatlNewspaers(final Map<String, Object> paraMap, final RowBounds rowBounds) {
return mapper.selectEcEsbInterfaces(paraMap, rowBounds);
}
public static void main(String[] args) {
String data = "D:/project_data/fims/01. 연계/01. 국민신문고/rcv/202209160959023e60d9$EPOUGA$1140100_2022091609485096255243399.xml";
NatlNewspaperRcvXmlDTO xmlDto = XmlParseUtils.readXmlToObject(NatlNewspaperRcvXmlDTO.class, data);
String reasonStr = xmlDto.getPetiReasonL();
log.debug(reasonStr);
// /\*\s\(.\/.*\)\sC:\s/g
//
// /\*\s\(.\/.*\)\sC:\s.*/g
}
}

@ -1,13 +1,19 @@
package kr.xit.fims.biz.ec.service;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.RowBounds;
import kr.xit.fims.biz.ec.model.EcNatlNewspaperRcvReqDTO;
import kr.xit.fims.biz.ec.model.NatlNewspaperRcvDTO;
import kr.xit.framework.core.utils.XitCmmnUtil;
public interface IEcNatlNewspaperService {
void saveEsbRvcParse(final EcNatlNewspaperRcvReqDTO dto);
List<NatlNewspaperRcvDTO> findNatlNewspaers(final Map<String, Object> paraMap, final RowBounds rowBounds);
@ -17,4 +23,6 @@ public interface IEcNatlNewspaperService {
default String getUserUniqId(){
return XitCmmnUtil.getUserUniqId();
}
}

@ -1,12 +1,15 @@
package kr.xit.fims.biz.ec.web;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import kr.xit.fims.biz.cmm.FimsConst;
@ -16,6 +19,7 @@ import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.model.ResultResponse;
import kr.xit.framework.core.utils.fileExplorer.XitFileExplorerUtil;
import kr.xit.framework.core.utils.fileExplorer.function.DirectorySearch;
import kr.xit.framework.support.mybatis.MybatisUtils;
import kr.xit.framework.support.util.AjaxMessageMapRenderer;
import kr.xit.framework.support.util.constants.MessageKey;
import lombok.RequiredArgsConstructor;
@ -52,7 +56,7 @@ public class EcNatlNewspaperController {
XitFileExplorerUtil explorer = new XitFileExplorerUtil(new DirectorySearch(dirPath));
return ResultResponse.of(
explorer.getList().stream()
.filter(m->"Y".equals(m.get("isFile")))
.filter(m->"Y".equals(m.get("isFile")) && "xml".equals(m.get("fileType")))
.collect(Collectors.toList())
);
}
@ -66,4 +70,8 @@ public class EcNatlNewspaperController {
return mav;
}
@GetMapping(value = "/findNatlNewspaers")
public ModelAndView findNatlNewspaers(@RequestParam final Map<String,Object> paraMap) {
return ResultResponse.of(service.findNatlNewspaers(paraMap, MybatisUtils.getPagingInfo(paraMap)));
}
}

@ -44,4 +44,5 @@ public class CmmFileDTO implements Serializable {
*
*/
private MultipartFile[] files;
//private List<MultipartFile> files;
}

@ -66,6 +66,7 @@ public class CmmFileService implements ICmmFileService {
* @param files MultipartFile[]
* @return CmmFileMst
*/
/*
@Override
@Transactional//(propagation = Propagation.REQUIRES_NEW)
public CmmFileMstDTO saveFiles(final CmmFileMstDTO fileMstDTO, final MultipartFile[] files) {
@ -156,7 +157,7 @@ public class CmmFileService implements ICmmFileService {
fileMstDTO.getCmmFileDtls().addAll(cmmFileDtls);
return fileMstDTO;
}
*/
@Override
@Transactional
public CmmFileMstDTO saveFiles(final CmmFileMstDTO fileMstDTO, final List<MultipartFile> files) {

@ -14,7 +14,8 @@ import kr.xit.framework.core.utils.XitCmmnUtil;
public interface ICmmFileService {
CmmFileMstDTO findFiles(String fileMstId);
CmmFileMstDTO saveFiles(CmmFileMstDTO fileMstDTO, MultipartFile[] files);
//CmmFileMstDTO saveFiles(CmmFileMstDTO fileMstDTO, MultipartFile[] files);
@SuppressWarnings("UnusedReturnValue")
CmmFileMstDTO saveFiles(CmmFileMstDTO fileMstDTO, List<MultipartFile> files);

@ -1,5 +1,7 @@
package kr.xit.framework.biz.cmm.web;
import java.util.Arrays;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@ -44,20 +46,20 @@ public class CmmFileMgtController {
.jobSeCode(cmmFileDto.getJobSeCode())
.fileJobId(cmmFileDto.getFileJobId())
.build();
cmmFileService.saveFiles(cmmFileMst, cmmFileDto.getFiles());
cmmFileService.saveFiles(cmmFileMst, Arrays.asList(cmmFileDto.getFiles()));
AjaxMessageMapRenderer.success(mav, MessageKey.CMM_INSERT_SUCCESS);
return mav;
}
@PostMapping(value = "/upload2", consumes = "multipart/form-data")
public ModelAndView saveFiles2(final CmmFileMstDTO cmmFileMst, @RequestParam("files") MultipartFile[] files) {
public ModelAndView saveFiles2(final CmmFileMstDTO cmmFileMst, @RequestParam("files") final MultipartFile[] files) {
if(Checks.isEmpty(cmmFileMst)) throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "파일 정보가 존재하지 않습니다.");
if(Checks.isEmpty(cmmFileMst.getJobSeCode())) throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "파일 구분 코드[fileCtgCd] 정보가 존재하지 않습니다.");
if(Checks.isEmpty(cmmFileMst.getFileJobId())) throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "파일 업무 ID[fileBizId] 정보가 존재하지 않습니다.");
if(Checks.isEmpty(files)) throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "대상 파일이 존재하지 않습니다.");
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
cmmFileService.saveFiles(cmmFileMst, files);
cmmFileService.saveFiles(cmmFileMst, Arrays.asList(files));
AjaxMessageMapRenderer.success(mav, MessageKey.CMM_INSERT_SUCCESS);
return mav;
}

@ -0,0 +1,154 @@
<?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="kr.xit.fims.biz.ec.mapper.IEcCtznSttemntMapper">
<!-- *************************************************************************************************************
* tb_ec_ctzn_sttemnt : 시민신고
************************************************************************************************************** -->
<sql id="sqlEcCtznSttemnt">
SELECT interface_seq_n
, instt_code
, ffnlg_code
, cvpl_se
, cvpl_reqst_no
, cvpl_rcept_no
, cvpl_applcnt_nm
, cvpl_applcnt_zip
, cvpl_applcnt_adres
, cvpl_applcnt_email_adres
, cvpl_applcnt_moblphon_no
, cvpl_applcnt_tlphon_no
, cvpl_reqst_sj
, cvpl_reqst_cn
, cvpl_reqst_dt
, cvpl_rcept_dt
, cvpl_process_pd
, cvpl_regist_dt
, ctzn_sttemnt_process_sttus
, register
, updt_dt
, updusr
FROM tb_ec_ctzn_sttemnt
</sql>
<select id="selectEcCtznSttemnts" resultType="kr.xit.fims.biz.ec.model.CtznSttemntDTO">
/* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemnts-민원연계(국민신문고) 목록 조회|julim */
<include refid="sqlEcCtznSttemnt"/>
</select>
<insert id="insertEcCtznSttemnt">
/* ec-ctzn-sttemnt-mysql-mapper|insertEcCtznSttemnt-시민신고 등록|julim */
INSERT
INTO tb_ec_esb_interface (
interface_seq_n
, sys_gubun_c
, anc_code_v
, peti_gubun_c
, peti_anc_code_v
, peti_no_c
, civil_no_c
, peter_name_v
, zip_code_c
, address_v
, email_v
, cel_no_v
, tel_no_v
, peti_title_v
, peti_reason_l
, open_yn_c
, peti_reg_d
, peti_reason_attach_yn_c
, peti_file_size_n
, peti_file_path1_v
, peti_file_path2_v
, peti_file_path3_v
, peti_file_path4_v
, peti_file_path5_v
, civil_gist_v
, civil_abstract_l
, pcd_dept_v
, pcd_dept_nm_v
, duty_id_v
, pcd_email_v
, pcd_tel_v
, pcd_rst_cont_l
, do_reg_d
, peti_proc_dur_n
, peti_end_d
, anc_reg_d
, more_again_v
, satisfy_c
, satisfy2_c
, satisfy3_c
, satisfy_reg_d
, reg_d
, send_yn_c
, send_d
, apply_d
, apply_gubun_c
, pcd_gubun_v
, pcd_gubun2_v
, pcd_gubun3_v
, peti_path_gubun_c
, regist_dt
, register
) VALUES (
#{interfaceSeqN}
, #{sysGubunC}
, #{ancCodeV}
, #{petiGubunC}
, #{petiAncCodeV}
, #{petiNoC}
, #{civilNoC}
, #{peterNameV}
, #{zipCodeC}
, #{addressV}
, #{emailV}
, #{celNoV}
, #{telNoV}
, #{petiTitleV}
, #{petiReasonL}
, #{openYnC}
, #{petiRegD}
, #{petiReasonAttachYnC}
, #{petiFileSizeN}
, #{petiFilePath1V}
, #{petiFilePath2V}
, #{petiFilePath3V}
, #{petiFilePath4V}
, #{petiFilePath5V}
, #{civilGistV}
, #{civilAbstractL}
, #{pcdDeptV}
, #{pcdDeptNmV}
, #{dutyIdV}
, #{pcdEmailV}
, #{pcdTelV}
, #{pcdRstContL}
, #{doRegD}
, #{petiProcDurN}
, #{petiEndD}
, #{ancRegD}
, #{moreAgainV}
, #{satisfyC}
, #{satisfy2C}
, #{satisfy3C}
, #{satisfyRegD}
, #{regD}
, #{sendYnC}
, #{sendD}
, #{applyD}
, #{applyGubunC}
, #{pcdGubunV}
, #{pcdGubun2V}
, #{pcdGubun3V}
, #{petiPathGubunC}
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, #{register}
)
</insert>
</mapper>

@ -70,7 +70,7 @@
FROM tb_ec_esb_interface
</sql>
<select id="selectEcEsbInterfaces">
<select id="selectEcEsbInterfaces" resultType="kr.xit.fims.biz.ec.model.NatlNewspaperRcvDTO">
/* ec-esb-interface-mysql-mapper|selectEcEsbInterfaces-민원연계(국민신문고) 목록 조회|julim */
<include refid="sqlEcEsbInterface"/>
</select>

@ -126,10 +126,13 @@ file.upload.allow.max-size: 2048
file.upload.allow.ext=
#file.upload.root=/Users/minuk/data/fims/upload
file.upload.root=D:/data/fims/upload
#file.upload.root=http://211.119.124.107:280/fimsdata/upload
file.upload.natl-newspaper.path=/natl-newspaper
#file.rcv.root=/Users/minuk/data/fims/rcv
#file.rcv.natl-newspaper.path=/natl-newspaper/rcv
#file.rcv.root=/Users/minuk/project_data/fims/01. \uC5F0\uACC4/01. \uAD6D\uBBFC\uC2E0\uBB38\uACE0
file.rcv.root=D:/project_data/fims/01. \uC5F0\uACC4/01. \uAD6D\uBBFC\uC2E0\uBB38\uACE0
#file.rcv.root=http://211.119.124.107:280/fimsdata/rcv
#file.rcv.natl-newspaper.path=/natl-newspaper
file.rcv.natl-newspaper.path=/rcv

@ -124,8 +124,8 @@
const initGrid = () => {
const gridColumns = [
{
header: '템플릿명',
name: 'tmplatNm',
header: '인터페이스키',
name: 'interfaceSeqN',
minWidth: 200,
sortable: true,
sortingType: 'desc',
@ -135,7 +135,7 @@
options: {
formatter: (props)=>{
return {
formatter: props.grid.getRow(props.rowKey).tmplatNm
formatter: props.grid.getRow(props.rowKey).interfaceSeqN
,element: "text"
}
}
@ -145,40 +145,22 @@
}
},
{
header: '템플릿구분',
name: 'tmplatSeCodeNm',
header: '시스템구분',
name: 'sysGubunC',
width: 80,
sortable: false,
align: 'center'
},
{
header: '템플릿경로',
name: 'tmplatCours',
header: '송신기관코드',
name: 'ancCodeV',
minWidth: 200,
sortable: false,
//align: 'left'
},
{
header: '사용여부',
name: 'useAt',
width: 60,
sortable: false,
align: 'center',
formatter: 'listItemText',
editable: false,
editor: {
type: 'select', //select, radio, checkbox, text
options: {
listItems: [
{value: 'Y', text: '사용'},
{value: 'N', text: '미사용'}
]
}
},
},
{
header: '등록일자',
name: 'frstRegisterPnttm',
name: 'registDt',
width: 160,
sortable: false,
align: 'center',
@ -198,7 +180,7 @@
initialRequest: true, // 화면 load시 조회 안함 - default
api: {
readData: {
url: '<c:url value="/framework/biz/mng/bbs/findBoardTmpls.do"/>'
url: '<c:url value="/fims/biz/ec/findNatlNewspaers.do"/>'
,serializer: (params) => {
const schKey = $('#searchCondition').val();
let schValue = $('input[name=searchKeyword]').val();

Loading…
Cancel
Save