fix: 시민신고 DTO static class로 변경

main
minuk926 2 years ago
parent 92d77ab6d2
commit c2c49172cd

@ -34,6 +34,23 @@ public class FimsCrackdownDTO {
public static class TotalInfo extends RtDTO.Reglt { public static class TotalInfo extends RtDTO.Reglt {
// CCTV 연계 key
private String extrlRegltCntcId;
// 민원심사 마스터 / 상세 key
private String interfaceSeqN;
// 민원심사 상세 key
private String ctznSttemntDetailSn;
}
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public static class Ctzn extends RtDTO.Reglt {
// CCTV 연계 key // CCTV 연계 key
private String extrlRegltCntcId; private String extrlRegltCntcId;

@ -37,6 +37,7 @@ public class FimsCrackdownMgtService implements IFimsCrackdownMgtService {
else regltDTO = rtCrackdownMgtMapper.selectRtReglt(reqDTO); else regltDTO = rtCrackdownMgtMapper.selectRtReglt(reqDTO);
rtnMap.put("regltDTO", regltDTO); rtnMap.put("regltDTO", regltDTO);
rtnMap.put("payerDTO", Checks.isEmpty(regltDTO.getPayerId()) ? RtDTO.Payer.builder().build() : rtCrackdownMgtMapper.selectRtPayer(reqDTO)); rtnMap.put("payerDTO", Checks.isEmpty(regltDTO.getPayerId()) ? RtDTO.Payer.builder().build() : rtCrackdownMgtMapper.selectRtPayer(reqDTO));
//rtnMap.put()
return rtnMap; return rtnMap;
} }

@ -11,19 +11,19 @@ import kr.xit.framework.biz.cmm.model.CmmFileDTO;
@Mapper @Mapper
public interface IEcCtznSttemntMapper { public interface IEcCtznSttemntMapper {
List<CtznStmtDTO> selectEcCtznSttemnts(final Map<String, Object> paraMap, final RowBounds rowBounds); List<CtznStmtDTO.Mst> selectEcCtznSttemnts(final Map<String, Object> paraMap, final RowBounds rowBounds);
CtznStmtDTO selectEcCtznSttemnt(final CtznStmtDTO.Request dto); CtznStmtDTO.Mst selectEcCtznSttemnt(final CtznStmtDTO.Request dto);
List<CtznStmtDTO.CtznStmtDtl> selectEcCtznSttemntDetails(final CtznStmtDTO.Request dto); List<CtznStmtDTO.Dtl> selectEcCtznSttemntDetails(final CtznStmtDTO.Request dto);
CtznStmtDTO.CtznStmtDtl selectEcCtznSttemntDetail(final CtznStmtDTO.Request dto); CtznStmtDTO.Dtl selectEcCtznSttemntDetail(final CtznStmtDTO.Request dto);
int insertEcCtznSttemnt(final CtznStmtDTO dto); int insertEcCtznSttemnt(final CtznStmtDTO.Mst dto);
int insertEcCtznSttemntDetail(final CtznStmtDTO.CtznStmtDtl dtl); int insertEcCtznSttemntDetail(final CtznStmtDTO.Dtl dtl);
int updateEcCtznSttemntDetail(final CtznStmtDTO.CtznStmtDtl dtl); int updateEcCtznSttemntDetail(final CtznStmtDTO.Dtl dtl);
int deleteEcCtznSttemntDetail(final CtznStmtDTO.CtznStmtDtl dtl); int deleteEcCtznSttemntDetail(final CtznStmtDTO.Dtl dtl);
List<CtznStmtDTO> selectCtznSttemnts(final Map<String, Object> paraMap, final RowBounds rowBounds); List<CtznStmtDTO.Mst> selectCtznSttemnts(final Map<String, Object> paraMap, final RowBounds rowBounds);
//----------------------------------------------------- //-----------------------------------------------------
@ -35,14 +35,14 @@ public interface IEcCtznSttemntMapper {
//----------------------------------------------------- //-----------------------------------------------------
void insertRtErppFromCtznStmt(final CtznStmtDTO.Request dto); void insertRtErppFromCtznStmt(final CtznStmtDTO.Request dto);
CtznStmtDTO.CtznStmtAns selectCreateEcCtznSttemntAnswer(final CtznStmtDTO.Request dto); CtznStmtDTO.Ans selectCreateEcCtznSttemntAnswer(final CtznStmtDTO.Request dto);
CtznStmtDTO.CtznStmtAns selectEcCtznSttemntAnswer(final CtznStmtDTO.Request dto); CtznStmtDTO.Ans selectEcCtznSttemntAnswer(final CtznStmtDTO.Request dto);
void updateStatusAndRegltIdOfEcCtznSttemntDetail(final CtznStmtDTO.Request dto); void updateStatusAndRegltIdOfEcCtznSttemntDetail(final CtznStmtDTO.Request dto);
<T> void updateStmtProcessStsOfEcCtznSttemnt(T t); <T> void updateStmtProcessStsOfEcCtznSttemnt(T t);
void saveEcCtznSttemntAnswer(final CtznStmtDTO.CtznStmtAns dto); void saveEcCtznSttemntAnswer(final CtznStmtDTO.Ans dto);
int dragAndDropSaveImg(CmmFileDTO.FileDtl vo); int dragAndDropSaveImg(CmmFileDTO.FileDtl vo);

@ -9,18 +9,19 @@ import java.util.Set;
import kr.xit.fims.biz.FimsConst; import kr.xit.fims.biz.FimsConst;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data;
import lombok.Getter; import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.Setter; import lombok.Setter;
import lombok.ToString; import lombok.ToString;
@Getter public class CtznStmtDTO { //extends ExtlEsbDataType {
@Setter
@Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@ToString public static class Mst implements Serializable { //extends ExtlEsbDataType {
public class CtznStmtDTO implements Serializable { //extends ExtlEsbDataType {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private String interfaceSeqN; private String interfaceSeqN;
@ -100,7 +101,7 @@ public class CtznStmtDTO implements Serializable { //extends ExtlEsbDataType {
private String updtDt; private String updtDt;
private String updusr; private String updusr;
private List<CtznStmtDtl> stmtDtlDTOs = new ArrayList<>(); private List<CtznStmtDTO.Dtl> stmtDtlDTOs = new ArrayList<>();
private boolean isSingle = true; private boolean isSingle = true;
/** /**
@ -110,14 +111,14 @@ public class CtznStmtDTO implements Serializable { //extends ExtlEsbDataType {
* </pre> * </pre>
*/ */
private List<DupData> dupDataList = new ArrayList<>(); private List<DupData> dupDataList = new ArrayList<>();
}
@Getter @Getter
@Setter @Setter
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@ToString @ToString
public static class DupData implements Serializable { public static class DupData implements Serializable {
private CtznStmtDtl sttemntDetailDTO; private CtznStmtDTO.Dtl sttemntDetailDTO;
private Set<Integer> indexs = new HashSet<>(); private Set<Integer> indexs = new HashSet<>();
} }
@ -127,7 +128,7 @@ public class CtznStmtDTO implements Serializable { //extends ExtlEsbDataType {
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
@ToString @ToString
public static class CtznStmtDtl implements Serializable { public static class Dtl implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
@ -218,7 +219,7 @@ public class CtznStmtDTO implements Serializable { //extends ExtlEsbDataType {
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@ToString @ToString
public static class CtznStmtAns implements Serializable { public static class Ans implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
@ -306,7 +307,7 @@ public class CtznStmtDTO implements Serializable { //extends ExtlEsbDataType {
*/ */
private String ancCodeV; private String ancCodeV;
public static CtznStmtAnsSendDTO getCtznStmtAnsDTO(CtznStmtDTO.CtznStmtAns dto) { public static CtznStmtAnsSendDTO getCtznStmtAnsDTO(CtznStmtDTO.Ans dto) {
return CtznStmtAnsSendDTO.builder() return CtznStmtAnsSendDTO.builder()
.interfaceSeqN(dto.getInterfaceSeqN()) .interfaceSeqN(dto.getInterfaceSeqN())
.sysGubunC(dto.getSysGubunC()) .sysGubunC(dto.getSysGubunC())

@ -48,38 +48,38 @@ public class EcCtznSttemntService implements IEcCtznSttemntService {
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public List<CtznStmtDTO> findCtznStmts(final Map<String, Object> paraMap, final RowBounds rowBounds) { public List<CtznStmtDTO.Mst> findCtznStmts(final Map<String, Object> paraMap, final RowBounds rowBounds) {
return mapper.selectEcCtznSttemnts(paraMap, rowBounds); return mapper.selectEcCtznSttemnts(paraMap, rowBounds);
} }
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public CtznStmtDTO findCtznStmt(final CtznStmtDTO.Request dto) { public CtznStmtDTO.Mst findCtznStmt(final CtznStmtDTO.Request dto) {
return mapper.selectEcCtznSttemnt(dto); return mapper.selectEcCtznSttemnt(dto);
} }
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public List<CtznStmtDTO.CtznStmtDtl> findCtznStmtDtls(final CtznStmtDTO.Request dto) { public List<CtznStmtDTO.Dtl> findCtznStmtDtls(final CtznStmtDTO.Request dto) {
return mapper.selectEcCtznSttemntDetails(dto); return mapper.selectEcCtznSttemntDetails(dto);
} }
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public CtznStmtDTO.CtznStmtDtl findCtznStmtDtl(final CtznStmtDTO.Request dto) { public CtznStmtDTO.Dtl findCtznStmtDtl(final CtznStmtDTO.Request dto) {
return mapper.selectEcCtznSttemntDetail(dto); return mapper.selectEcCtznSttemntDetail(dto);
} }
@Override @Override
@Transactional @Transactional
public void modifyEcCtznSttemntDetail(final CtznStmtDTO.CtznStmtDtl dto) { public void modifyEcCtznSttemntDetail(final CtznStmtDTO.Dtl dto) {
dto.setUpdusr(getUserInfo().getUniqId()); dto.setUpdusr(getUserInfo().getUniqId());
mapper.updateEcCtznSttemntDetail(dto); mapper.updateEcCtznSttemntDetail(dto);
} }
@Override @Override
@Transactional @Transactional
public void removeEcCtznSttemntDetail(final CtznStmtDTO.CtznStmtDtl dto) { public void removeEcCtznSttemntDetail(final CtznStmtDTO.Dtl dto) {
mapper.deleteEcCtznSttemntDetail(dto); mapper.deleteEcCtznSttemntDetail(dto);
// 첨부파일 삭제 // 첨부파일 삭제
@ -144,14 +144,14 @@ public class EcCtznSttemntService implements IEcCtznSttemntService {
// 단속 처리 결과 전송 // 단속 처리 결과 전송
//----------------------------------------------------- //-----------------------------------------------------
@Override @Override
public CtznStmtDTO.CtznStmtAns findCtznStmtAnswer(CtznStmtDTO.Request reqDTO) { public CtznStmtDTO.Ans findCtznStmtAnswer(CtznStmtDTO.Request reqDTO) {
if(reqDTO.isAnsCreate()) return mapper.selectCreateEcCtznSttemntAnswer(reqDTO); if(reqDTO.isAnsCreate()) return mapper.selectCreateEcCtznSttemntAnswer(reqDTO);
return mapper.selectEcCtznSttemntAnswer(reqDTO); return mapper.selectEcCtznSttemntAnswer(reqDTO);
} }
@Override @Override
@Transactional @Transactional
public String saveCtznStmtAns(CtznStmtDTO.CtznStmtAns dto) { public String saveCtznStmtAns(CtznStmtDTO.Ans dto) {
// 답변 xml 파일 생성 // 답변 xml 파일 생성
List<CmmFileDTO.FileDtl> fileDtlList = cmmFileService.findFilesByJobSeCodeAndJobId( List<CmmFileDTO.FileDtl> fileDtlList = cmmFileService.findFilesByJobSeCodeAndJobId(
CmmFileDTO.FileMst.builder() CmmFileDTO.FileMst.builder()
@ -162,7 +162,7 @@ public class EcCtznSttemntService implements IEcCtznSttemntService {
String tgtPath = uploadResPath + fileDtlList.get(0).getFileCours(); String tgtPath = uploadResPath + fileDtlList.get(0).getFileCours();
final String fileName = dto.getInterfaceSeqN() + ".xml"; final String fileName = dto.getInterfaceSeqN() + ".xml";
CtznStmtAnsSendDTO sendDto = CtznStmtDTO.CtznStmtAns.getCtznStmtAnsDTO(dto); CtznStmtAnsSendDTO sendDto = CtznStmtDTO.Ans.getCtznStmtAnsDTO(dto);
String xmlStr = XmlParseUtils.writeObjectToXml(sendDto, kr.xit.fims.biz.ec.model.CtznStmtAnsSendDTO.class); String xmlStr = XmlParseUtils.writeObjectToXml(sendDto, kr.xit.fims.biz.ec.model.CtznStmtAnsSendDTO.class);
byte[] bytes = xmlStr.getBytes(); byte[] bytes = xmlStr.getBytes();

@ -117,7 +117,7 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
//------------------------------------------------------------- //-------------------------------------------------------------
//시민 신고 마스터 데이타 생성 //시민 신고 마스터 데이타 생성
//------------------------------------------------------------- //-------------------------------------------------------------
CtznStmtDTO ctznStmtDTO = setCtznSttemntDTOFromRcvXml(xmlDto); CtznStmtDTO.Mst ctznStmtDTO = setCtznSttemntDTOFromRcvXml(xmlDto);
ctznSttemntMapper.insertEcCtznSttemnt(ctznStmtDTO); ctznSttemntMapper.insertEcCtznSttemnt(ctznStmtDTO);
//------------------------------------------------------------- //-------------------------------------------------------------
@ -126,7 +126,7 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
index.set(0); index.set(0);
CmmFileDTO.FileMst fstMstDTO = null; CmmFileDTO.FileMst fstMstDTO = null;
CmmFileDTO.FileDtl pngDtlDTO = null; CmmFileDTO.FileDtl pngDtlDTO = null;
for(CtznStmtDTO.CtznStmtDtl dtl : ctznStmtDTO.getStmtDtlDTOs()){ for(CtznStmtDTO.Dtl dtl : ctznStmtDTO.getStmtDtlDTOs()){
// 시민 신고 상세 데이타 생성 // 시민 신고 상세 데이타 생성
dtl.setCtznSttemntDetailProcessSttus(FimsConst.CtznStmtDtlStsCode.ACCEPTANCE.getCode()); dtl.setCtznSttemntDetailProcessSttus(FimsConst.CtznStmtDtlStsCode.ACCEPTANCE.getCode());
ctznSttemntMapper.insertEcCtznSttemntDetail(dtl); ctznSttemntMapper.insertEcCtznSttemntDetail(dtl);
@ -215,9 +215,9 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
* @return * @return
*/ */
//------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------
private CtznStmtDTO setCtznSttemntDTOFromRcvXml(NatlNewspaperRcvXmlDTO xmlDto){ private CtznStmtDTO.Mst setCtznSttemntDTOFromRcvXml(NatlNewspaperRcvXmlDTO xmlDto){
CtznStmtDTO dto = new CtznStmtDTO(); CtznStmtDTO.Mst dto = new CtznStmtDTO.Mst();
List<CtznStmtDTO.CtznStmtDtl> dtlList = new ArrayList<>(); List<CtznStmtDTO.Dtl> dtlList = new ArrayList<>();
String reasonStr = xmlDto.getPetiReasonL(); String reasonStr = xmlDto.getPetiReasonL();
dto.setInterfaceSeqN(xmlDto.getInterfaceSeqN()); dto.setInterfaceSeqN(xmlDto.getInterfaceSeqN());
@ -262,7 +262,7 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
.replaceAll("[: /]", "") .replaceAll("[: /]", "")
.split(","); .split(",");
CtznStmtDTO.CtznStmtDtl dtlDto = new CtznStmtDTO.CtznStmtDtl(); CtznStmtDTO.Dtl dtlDto = new CtznStmtDTO.Dtl();
//단속일시 //단속일시
dtlDto.setRegltDeTime(arrSrc[0]); dtlDto.setRegltDeTime(arrSrc[0]);
@ -291,7 +291,7 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
dto.getDupDataList().add(dupDto); dto.getDupDataList().add(dupDto);
for (int idx = 1; idx < dtlList.size(); idx++) { for (int idx = 1; idx < dtlList.size(); idx++) {
CtznStmtDTO.CtznStmtDtl tgt = dtlList.get(idx); CtznStmtDTO.Dtl tgt = dtlList.get(idx);
int finalIdx = idx; int finalIdx = idx;
AtomicBoolean isDup = new AtomicBoolean(false); AtomicBoolean isDup = new AtomicBoolean(false);
dto.getDupDataList().forEach(dupData -> { dto.getDupDataList().forEach(dupData -> {
@ -311,7 +311,7 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
} }
// 단속일시 desc로 정렬 - 동일 차량인 경우 단속일시가 늦은것 남기기위해) // 단속일시 desc로 정렬 - 동일 차량인 경우 단속일시가 늦은것 남기기위해)
dtlList = dtlList.stream() dtlList = dtlList.stream()
.sorted(Comparator.comparing(CtznStmtDTO.CtznStmtDtl::getRegltDeTime).reversed()).collect( .sorted(Comparator.comparing(CtznStmtDTO.Dtl::getRegltDeTime).reversed()).collect(
Collectors.toList()); Collectors.toList());
// 중복제거(동일 차량 번호중 단속일시가 가장 늦은것 pick) // 중복제거(동일 차량 번호중 단속일시가 가장 늦은것 pick)
// 차량번호가 없는 경우가 존재하여 체크로직 추가 // 차량번호가 없는 경우가 존재하여 체크로직 추가
@ -388,7 +388,7 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
private void saveAllAppendFiles( private void saveAllAppendFiles(
NatlNewspaperRcvXmlDTO xmlDto, NatlNewspaperRcvXmlDTO xmlDto,
NatlNewspaperRcvXmlDTO.ApndFileInfo appendFileDto, NatlNewspaperRcvXmlDTO.ApndFileInfo appendFileDto,
CtznStmtDTO.CtznStmtDtl sttemntDetailDTO, CtznStmtDTO.Dtl sttemntDetailDTO,
int fileCnt) { int fileCnt) {
List<MultipartFile> mfList = new ArrayList<>(); List<MultipartFile> mfList = new ArrayList<>();
@ -417,7 +417,7 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
@SuppressWarnings("DuplicatedCode") @SuppressWarnings("DuplicatedCode")
private CmmFileDTO.FileMst saveAppendFiles( private CmmFileDTO.FileMst saveAppendFiles(
NatlNewspaperRcvXmlDTO.ApndFileInfo apndFileDTO, NatlNewspaperRcvXmlDTO.ApndFileInfo apndFileDTO,
CtznStmtDTO.CtznStmtDtl stmtDtlDTO, CtznStmtDTO.Dtl stmtDtlDTO,
int index, int index,
int fileCnt) { int fileCnt) {
@ -463,7 +463,7 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
@SuppressWarnings({"DuplicatedCode", "UnusedReturnValue"}) @SuppressWarnings({"DuplicatedCode", "UnusedReturnValue"})
private CmmFileDTO.FileMst saveFstOverAppendFiles( private CmmFileDTO.FileMst saveFstOverAppendFiles(
final NatlNewspaperRcvXmlDTO.ApndFileInfo apndFileDTO, final NatlNewspaperRcvXmlDTO.ApndFileInfo apndFileDTO,
final CtznStmtDTO.CtznStmtDtl stmtDtlDTO, final CtznStmtDTO.Dtl stmtDtlDTO,
final CmmFileDTO.FileDtl pngFileDtlDto, final CmmFileDTO.FileDtl pngFileDtlDto,
int index) { int index) {
@ -498,7 +498,7 @@ public class EcNatlNewspaperService implements IEcNatlNewspaperService {
} }
} }
private CmmFileDTO.FileMst getFileMst(CtznStmtDTO.CtznStmtDtl sttemntDetailDTO) { private CmmFileDTO.FileMst getFileMst(CtznStmtDTO.Dtl sttemntDetailDTO) {
CmmFileDTO.FileMst fileMstDTO = new CmmFileDTO.FileMst(); CmmFileDTO.FileMst fileMstDTO = new CmmFileDTO.FileMst();
fileMstDTO.setJobSeCode(FimsConst.FileJobSeCode.NATL_NEWS_PAPER_RCV.getCode()); fileMstDTO.setJobSeCode(FimsConst.FileJobSeCode.NATL_NEWS_PAPER_RCV.getCode());
fileMstDTO.setFileJobId(sttemntDetailDTO.getInterfaceSeqN()+ sttemntDetailDTO.getCtznSttemntDetailSn()); fileMstDTO.setFileJobId(sttemntDetailDTO.getInterfaceSeqN()+ sttemntDetailDTO.getCtznSttemntDetailSn());

@ -10,13 +10,13 @@ import kr.xit.framework.biz.cmm.model.XitLoginVO;
import kr.xit.framework.core.utils.XitCmmnUtil; import kr.xit.framework.core.utils.XitCmmnUtil;
public interface IEcCtznSttemntService { public interface IEcCtznSttemntService {
List<CtznStmtDTO> findCtznStmts(final Map<String, Object> paraMap, final RowBounds rowBounds); List<CtznStmtDTO.Mst> findCtznStmts(final Map<String, Object> paraMap, final RowBounds rowBounds);
CtznStmtDTO findCtznStmt(final CtznStmtDTO.Request reqDTO); CtznStmtDTO.Mst findCtznStmt(final CtznStmtDTO.Request reqDTO);
List<CtznStmtDTO.CtznStmtDtl> findCtznStmtDtls(final CtznStmtDTO.Request reqDTO); List<CtznStmtDTO.Dtl> findCtznStmtDtls(final CtznStmtDTO.Request reqDTO);
CtznStmtDTO.CtznStmtDtl findCtznStmtDtl(final CtznStmtDTO.Request reqDTO); CtznStmtDTO.Dtl findCtznStmtDtl(final CtznStmtDTO.Request reqDTO);
void modifyEcCtznSttemntDetail(final CtznStmtDTO.CtznStmtDtl dto); void modifyEcCtznSttemntDetail(final CtznStmtDTO.Dtl dto);
void removeEcCtznSttemntDetail(final CtznStmtDTO.CtznStmtDtl dto); void removeEcCtznSttemntDetail(final CtznStmtDTO.Dtl dto);
//----------------------------------------------------- //-----------------------------------------------------
// 단속자료 생성 - 단속 처리 // 단속자료 생성 - 단속 처리
@ -32,10 +32,10 @@ public interface IEcCtznSttemntService {
// 단속 처리 결과 전송 // 단속 처리 결과 전송
//----------------------------------------------------- //-----------------------------------------------------
//시민신고 답변 데이타 생성 기초데이타 조회 //시민신고 답변 데이타 생성 기초데이타 조회
CtznStmtDTO.CtznStmtAns findCtznStmtAnswer(CtznStmtDTO.Request reqDTO); CtznStmtDTO.Ans findCtznStmtAnswer(CtznStmtDTO.Request reqDTO);
//String sendCtznSttemntRespons(final CtznStmtDTO.CtznStmtDtl dto); //String sendCtznSttemntRespons(final CtznStmtDTO.CtznStmtDtl dto);
String saveCtznStmtAns(final CtznStmtDTO.CtznStmtAns dto); String saveCtznStmtAns(final CtznStmtDTO.Ans dto);
void dragAndDropSaveImg(final Map<String, Object>paraMap); void dragAndDropSaveImg(final Map<String, Object>paraMap);

@ -110,7 +110,7 @@ public class EcCtznSttemntController {
} }
@PostMapping("/modifyCtznStmtDtl") @PostMapping("/modifyCtznStmtDtl")
public ModelAndView modifyCtznStmtDtl(final CtznStmtDTO.CtznStmtDtl dto) { public ModelAndView modifyCtznStmtDtl(final CtznStmtDTO.Dtl dto) {
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW); ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
service.modifyEcCtznSttemntDetail(dto); service.modifyEcCtznSttemntDetail(dto);
@ -119,7 +119,7 @@ public class EcCtznSttemntController {
} }
@PostMapping("/removeCtznStmtDtl") @PostMapping("/removeCtznStmtDtl")
public ModelAndView removeCtznStmtDtl(final CtznStmtDTO.CtznStmtDtl dto) { public ModelAndView removeCtznStmtDtl(final CtznStmtDTO.Dtl dto) {
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW); ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
service.removeEcCtznSttemntDetail(dto); service.removeEcCtznSttemntDetail(dto);
@ -168,7 +168,7 @@ public class EcCtznSttemntController {
} }
@RequestMapping("/saveCtznStmtAns") @RequestMapping("/saveCtznStmtAns")
public ModelAndView saveCtznStmtAns(final CtznStmtDTO.CtznStmtAns dto) { public ModelAndView saveCtznStmtAns(final CtznStmtDTO.Ans dto) {
return ResultResponse.of(service.saveCtznStmtAns(dto)); return ResultResponse.of(service.saveCtznStmtAns(dto));
} }
} }

@ -32,12 +32,12 @@
FROM tb_ec_ctzn_sttemnt FROM tb_ec_ctzn_sttemnt
</sql> </sql>
<select id="selectEcCtznSttemnts" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO"> <select id="selectEcCtznSttemnts" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$Mst">
/* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemnts-민원연계(국민신문고) 목록 조회|julim */ /* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemnts-민원연계(국민신문고) 목록 조회|julim */
<include refid="sqlEcCtznStmt"/> <include refid="sqlEcCtznStmt"/>
</select> </select>
<select id="selectEcCtznSttemnt" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO"> <select id="selectEcCtznSttemnt" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$Mst">
/* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemnt-민원연계(국민신문고) 조회|julim */ /* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemnt-민원연계(국민신문고) 조회|julim */
<include refid="sqlEcCtznStmt"/> <include refid="sqlEcCtznStmt"/>
WHERE interface_seq_n = #{interfaceSeqN} WHERE interface_seq_n = #{interfaceSeqN}
@ -120,7 +120,7 @@
ON tecsd.interface_seq_n = tecs.interface_seq_n ON tecsd.interface_seq_n = tecs.interface_seq_n
</sql> </sql>
<select id="selectEcCtznSttemntDetails" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$CtznStmtDtl"> <select id="selectEcCtznSttemntDetails" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$Dtl">
/* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemntDetails-민원연계(국민신문고) 상세(목록) 조회|julim */ /* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemntDetails-민원연계(국민신문고) 상세(목록) 조회|julim */
<include refid="sqlEcCtznStmtDtl"/> <include refid="sqlEcCtznStmtDtl"/>
<where> <where>
@ -133,7 +133,7 @@
</where> </where>
</select> </select>
<select id="selectEcCtznSttemntDetail" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$CtznStmtDtl"> <select id="selectEcCtznSttemntDetail" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$Dtl">
/* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemntDetail-민원연계(국민신문고) 상세 조회|julim */ /* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemntDetail-민원연계(국민신문고) 상세 조회|julim */
<include refid="sqlEcCtznStmtDtl"/> <include refid="sqlEcCtznStmtDtl"/>
WHERE tecsd.interface_seq_n = #{interfaceSeqN} WHERE tecsd.interface_seq_n = #{interfaceSeqN}
@ -142,7 +142,7 @@
<insert id="insertEcCtznSttemntDetail"> <insert id="insertEcCtznSttemntDetail">
/* ec-ctzn-sttemnt-mysql-mapper|insertEcCtznSttemntDetail-시민신고 상세 등록|julim */ /* ec-ctzn-sttemnt-mysql-mapper|insertEcCtznSttemntDetail-시민신고 상세 등록|julim */
<selectKey keyColumn="ctznSttemntDetailSn,regltId" keyProperty="ctznSttemntDetailSn,regltId" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$CtznStmtDtl" order="BEFORE"> <selectKey keyColumn="ctznSttemntDetailSn,regltId" keyProperty="ctznSttemntDetailSn,regltId" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$Dtl" order="BEFORE">
SELECT LPAD(IFNULL(MAX(CAST(csd.ctzn_sttemnt_detail_sn AS UNSIGNED)) + 1, 1), 2, '0') AS ctznSttemntDetailSn SELECT LPAD(IFNULL(MAX(CAST(csd.ctzn_sttemnt_detail_sn AS UNSIGNED)) + 1, 1), 2, '0') AS ctznSttemntDetailSn
, LPAD(NEXTVAL(seq_rt_reglt), 16, '0') AS regltId , LPAD(NEXTVAL(seq_rt_reglt), 16, '0') AS regltId
FROM tb_ec_ctzn_sttemnt_detail csd FROM tb_ec_ctzn_sttemnt_detail csd
@ -325,7 +325,7 @@
WHERE interface_seq_n = #{interfaceSeqN} WHERE interface_seq_n = #{interfaceSeqN}
</update> </update>
<select id="selectCreateEcCtznSttemntAnswer" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$CtznStmtAns"> <select id="selectCreateEcCtznSttemntAnswer" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$Ans">
/* ec-ctzn-sttemnt-mysql-mapper|selectCreateEcCtznSttemntAnswer-시민신고답변 생성 데이타 조회|cjm */ /* ec-ctzn-sttemnt-mysql-mapper|selectCreateEcCtznSttemntAnswer-시민신고답변 생성 데이타 조회|cjm */
SELECT teei.interface_seq_n SELECT teei.interface_seq_n
, teei.sys_gubun_c -- sysCode , teei.sys_gubun_c -- sysCode
@ -358,7 +358,7 @@
WHERE teei.interface_seq_n = #{interfaceSeqN} WHERE teei.interface_seq_n = #{interfaceSeqN}
</select> </select>
<select id="selectEcCtznSttemntAnswer" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$CtznStmtAns"> <select id="selectEcCtznSttemntAnswer" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$Ans">
/* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemntAnswer-시민신고답변 데이타 조회|cjm */ /* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemntAnswer-시민신고답변 데이타 조회|cjm */
SELECT interface_seq_n SELECT interface_seq_n
, sys_code -- sysGubunC , sys_code -- sysGubunC
@ -462,7 +462,7 @@
<resultMap id="resultMapCtznStmt" type="kr.xit.fims.biz.ec.model.CtznStmtDTO"> <resultMap id="resultMapCtznStmt" type="kr.xit.fims.biz.ec.model.CtznStmtDTO$Mst">
<result column="interface_seq_n" property="interfaceSeqN"/> <result column="interface_seq_n" property="interfaceSeqN"/>
<result column="instt_code" property="insttCode"/> <result column="instt_code" property="insttCode"/>
<result column="sys_code" property="sysCode"/> <result column="sys_code" property="sysCode"/>

@ -75,6 +75,8 @@ Date Author Description
<input type="text" id="vhcleNo" name="vhcleNo" value="${regltDTO.vhcleNo}"/> <input type="text" id="vhcleNo" name="vhcleNo" value="${regltDTO.vhcleNo}"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<th>위반장소</th> <th>위반장소</th>
<td> <td>
@ -95,6 +97,46 @@ Date Author Description
<input type="text" name="towngAtCode" value='${regltDTO.towngAtCode}' readonly/> <input type="text" name="towngAtCode" value='${regltDTO.towngAtCode}' readonly/>
</td> </td>
</tr> </tr>
<tr>
<th>신고자</th>
<td>
<input type="text" name="cvplApplcntNm" value="${ctznDTO.cvplApplcntNm}"/>
</td>
<th>연락처</th>
<td>
<input type="text" name="cvplApplcntMoblphonNo" value='${ctznDTO.cvplApplcntMoblphonNo}' readonly/>
</td>
</tr>
<tr>
<th>위반장소</th>
<td>
<input type="text" name="regltPlace" value="${ctznDTO.regltPlace }"/>
</td>
<th>공개여부</th>
<td>
<input type="text" name="" value='' readonly/>
</td>
</tr>
<tr>
<th>신고내용</th>
<td colspan="3">
<textarea type="text" name="cvplReqstCn" col="180" rows="5"><c:out value="${ctznDTO.cvplReqstCn}"/></textarea>
</td>
</tr>
<tr>
<th>접수번호</th>
<td>
<input type="text" name="cvplRceptNo" value='${ctznDTO.cvplRceptNo}' readonly/>
</td>
<th>접수일</th>
<td>
<fmt:parseDate value="${ctznDTO.cvplRceptDt}" var="cvplRceptDt" pattern="yyyyMMddHHmmss"/>
<input type="text" data-fmt-type="dt" name="cvplRceptDt" value='<fmt:formatDate value="${cvplRceptDt}" pattern="yyyy-MM-dd HH:mm:ss"/>' readonly/>
</td>
</tr>
</tbody> </tbody>
</table> </table>

Loading…
Cancel
Save