refactor: 거주자/장애인 의견진술 심의 모둘 공통화 진행
parent
fb3b8beefd
commit
571811aa41
@ -1,126 +0,0 @@
|
||||
package com.xit.biz.ctgy.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Schema(name = "GnRecallScDto", description = "")
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ResidentDto {
|
||||
@Schema(required = true, title = " ", example = " ", description = " ")
|
||||
private Long scCode;
|
||||
|
||||
@Schema(required = true, title = "접수번호", example = " ", description = " ")
|
||||
private Long scSeq;
|
||||
|
||||
@Schema(required = true, title = "차량번호", example = " ", description = " ")
|
||||
private String scCarnum;
|
||||
|
||||
@Schema(required = true, title = "이름", example = " ", description = " ")
|
||||
private String scName;
|
||||
|
||||
@Schema(required = true, title = " ", example = " ", description = " ")
|
||||
private String scDong;
|
||||
|
||||
@Schema(required = true, title = "진술유형코드", example = " ", description = "진술유형코드")
|
||||
private String scContDoc;
|
||||
|
||||
@Schema(required = true, title = "진술유형코드명", example = " ", description = "진술유형코드명")
|
||||
private String scContDocNm;
|
||||
|
||||
@Schema(required = true, title = "접수일자", example = " ", description = "접수일자")
|
||||
private String scCdate;
|
||||
|
||||
@Schema(required = true, title = "접수방법코드", example = " ", description = "접수방법코드")
|
||||
private String scIngb;
|
||||
|
||||
@Schema(required = true, title = "접수방법코드명", example = " ", description = "접수방법코드명")
|
||||
private String scIngbNm;
|
||||
|
||||
@Schema(required = true, title = " ", example = " ", description = " ")
|
||||
private String scWdate;
|
||||
|
||||
@Schema(required = true, title = " ", example = " ", description = " ")
|
||||
private String scJbtime;
|
||||
|
||||
@Schema(required = true, title = " ", example = " ", description = " ")
|
||||
private String scPos;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scFrecad1;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scFrecad2;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scFrecad3;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scFrecad4;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scContad1;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scContad2;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scContad3;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scContad4;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scContad5;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scContad6;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scContad7;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scContad8;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scPicad1;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scPicad2;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scPicad3;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scPicad4;
|
||||
|
||||
@Schema(required = true, title = " ", example = " ", description = " ")
|
||||
private String scTransfer;
|
||||
|
||||
@Schema(required = true, title = " ", example = " ", description = " ")
|
||||
private String scDatagb;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scAnswer;
|
||||
|
||||
@Schema(required = true, title = " ", example = " ", description = " ")
|
||||
private String scState;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String zipcode1;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String zipcode2;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scJuso;
|
||||
|
||||
@Schema(title = " ", example = " ", description = " ")
|
||||
private String scBunji;
|
||||
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.xit.biz.ctgy.mapper;
|
||||
|
||||
import com.xit.biz.ctgy.dto.JudgeTargetDto;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface IResidentAndDisabledMapper {
|
||||
|
||||
void insertJudgeTargetIntoSelect(JudgeTargetDto dto);
|
||||
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
package com.xit.biz.ctgy.mapper;
|
||||
|
||||
import com.xit.biz.ctgy.dto.ResidentTargetDto;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface IResidentMapper {
|
||||
|
||||
void insertResidentJudgeTargetIntoSelect(ResidentTargetDto dto);
|
||||
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
package com.xit.biz.ctgy.repository;
|
||||
|
||||
import com.xit.biz.ctgy.dto.GnRecallScDto;
|
||||
import com.xit.biz.ctgy.dto.JudgeListDto;
|
||||
import com.xit.biz.ctgy.dto.JudgeTargetDto;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 의견 진술
|
||||
* 거주자 : scDatagb = "1"
|
||||
* 장애인 : scDatagb = "2"
|
||||
*/
|
||||
public interface IResidentAndDisabledRepositoryCustom {
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 의견진술 자료 목록 조회
|
||||
* @param pageable Pageable
|
||||
* @return Page<GnRecallScDto>
|
||||
*/
|
||||
Page<GnRecallScDto> findJudgeDatas(Pageable pageable);
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 의견진술 자료 정보 조회
|
||||
* @param scCode Long
|
||||
* @return GnRecallScDto
|
||||
*/
|
||||
GnRecallScDto findJudgeData(final Long scCode);
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 의견진술 목로 조회
|
||||
* @param dto JudgeListDto
|
||||
* @param pageable Pageable
|
||||
* @return Page<JudgeListDto>
|
||||
*/
|
||||
Page<JudgeListDto> findJudges(JudgeListDto dto, Pageable pageable);
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 심의 대상 목록 조회
|
||||
* @param dto JudgeTargetDto
|
||||
* @return List<JudgeTargetDto>
|
||||
*/
|
||||
List<JudgeTargetDto> findJudgeTargets(final JudgeTargetDto dto);
|
||||
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
package com.xit.biz.ctgy.repository;
|
||||
|
||||
import com.xit.biz.ctgy.dto.GnRecallScDto;
|
||||
import com.xit.biz.ctgy.dto.JudgeListDto;
|
||||
import com.xit.biz.ctgy.dto.ResidentTargetDto;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IResidentRepositoryCustom {
|
||||
Page<GnRecallScDto> findResidentDatas(Pageable pageable);
|
||||
|
||||
GnRecallScDto findResident(final Long scCode);
|
||||
|
||||
Page<JudgeListDto> findResidents(JudgeListDto dto, Pageable pageable);
|
||||
|
||||
List<ResidentTargetDto> findResidentJudgeTargets(final ResidentTargetDto dto);
|
||||
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package com.xit.biz.ctgy.service;
|
||||
|
||||
import com.xit.biz.ctgy.dto.GnRecallScDto;
|
||||
import com.xit.biz.ctgy.dto.JudgeListDto;
|
||||
import com.xit.biz.ctgy.dto.JudgeTargetDto;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 의견 진술
|
||||
* 거주자 : scDatagb = "1"
|
||||
* 장애인 : scDatagb = "2"
|
||||
*/
|
||||
public interface IResidentAndDisabledService {
|
||||
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 심의자료 목록 조회
|
||||
* @param pageable Pageable
|
||||
* @return Page<GnRecallScDto>
|
||||
*/
|
||||
Page<GnRecallScDto> findJudgeDatas(Pageable pageable);
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 심의자료 정보 조회
|
||||
* @param scCode Long
|
||||
* @return GnRecallScDto
|
||||
*/
|
||||
GnRecallScDto findJudgeData(final Long scCode);
|
||||
|
||||
//Page<GnRecallSc> findAll(final GnRecallSc entity, Pageable pageable);
|
||||
|
||||
// 심의자료 저장
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 심의자료 저장
|
||||
* @param entity GnRecallScDto
|
||||
*/
|
||||
void saveJudgeData(GnRecallScDto entity);
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 심의대상 목록 조회
|
||||
* @param dto JufgeTargetDto
|
||||
* @return List<JudgeTargetDto>
|
||||
*/
|
||||
List<JudgeTargetDto> findJudgeTargets(final JudgeTargetDto dto) ;
|
||||
void saveJudgeTargets(JudgeTargetDto dto);
|
||||
|
||||
/**
|
||||
* 거주자 / 장애인 의견진술 심의 목록 조회
|
||||
* @param dto JudgeListDto
|
||||
* @param pageable Pageable
|
||||
* @return Page<JudgeListDto>
|
||||
*/
|
||||
Page<JudgeListDto> findJudges(JudgeListDto dto, Pageable pageable);
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
package com.xit.biz.ctgy.service;
|
||||
|
||||
import com.xit.biz.ctgy.dto.GnRecallScDto;
|
||||
import com.xit.biz.ctgy.dto.ResidentTargetDto;
|
||||
import com.xit.biz.ctgy.dto.JudgeListDto;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IResidentService {
|
||||
|
||||
Page<GnRecallScDto> findResidentDatas(Pageable pageable);
|
||||
|
||||
GnRecallScDto findResidentData(final Long scCode);
|
||||
|
||||
//Page<GnRecallSc> findAll(final GnRecallSc entity, Pageable pageable);
|
||||
|
||||
void saveResidentData(GnRecallScDto entity);
|
||||
|
||||
List<ResidentTargetDto> findResidentJudgeTargets(final ResidentTargetDto dto) ;
|
||||
void saveResidentJudgeTargets(ResidentTargetDto dto);
|
||||
|
||||
Page<JudgeListDto> findResidents(JudgeListDto dto, Pageable pageable);
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
<?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.xit.biz.ctgy.mapper.IResidentMapper">
|
||||
<insert id="insertResidentJudgeTargetIntoSelect" parameterType="com.xit.biz.ctgy.dto.ResidentDto">
|
||||
/* resident-mapper|insertResidentJudgeTargetIntoSelect|julim */
|
||||
<mapper namespace="com.xit.biz.ctgy.mapper.IResidentAndDisabledMapper">
|
||||
<insert id="insertJudgeTargetIntoSelect" parameterType="com.xit.biz.ctgy.dto.JudgeTargetDto">
|
||||
/* residentanddisabled-mapper|insertJudgeTargetIntoSelect|julim */
|
||||
insert
|
||||
into min_simsa680_sc(
|
||||
ms_maincode,
|
Loading…
Reference in New Issue