구 주소조회 관련 소스 제거

main
이범준 5 months ago
parent 987414d6cf
commit 00f1f5ebcd

@ -55,26 +55,8 @@ public interface CodeInfoDao {
*/
public List<Map<String, Object>> findWorkerWorkInfoList(Map<String, Object> param);
/**
* .
* @author exchange84
* @task
* @param param
* @return
*
*/
public List<Map<String, Object>> findSidoCodeList();
/**
* .
* @author exchange84
* @task
* @param param
* @return
*
*/
public List<Map<String, Object>> findSiGunGuCodeList(Map<String, Object> param);
/**
* .
* @author noheart

@ -70,28 +70,8 @@
GROUP BY WORKER_ID, FUN_WORKER_NAME(WORKER_ID, YEAR, MONTH, DAY)
</select>
<!--
시도 코드를 조회한다.
-->
<select id="findSidoCodeList" resultType="java.util.Map">
SELECT 'addr' AS GRP_CD
, SIDO_ID AS COM_CD
, SIDO_FULL_NAME AS CODE_NM
FROM SIDO_CODE_INFO
</select>
<!--
시군구 코드를 조회한다. (구 주소 체계를 조회함)
-->
<select id="findSiGunGuCodeList" parameterType="java.util.Map" resultType="java.util.Map">
SELECT 'sido_'||#{sido, jdbcType=VARCHAR} AS GRP_CD
, POST_NO1 AS COM_CD
, ADDRESS_DISTRICT AS CODE_NM
FROM ADDRESS_INFO
WHERE ADDRESS_CITY = (SELECT SIDO_FULL_NAME FROM SIDO_CODE_INFO WHERE SIDO_ID = #{sido, jdbcType=VARCHAR})
GROUP BY POST_NO1, ADDRESS_DISTRICT
ORDER BY POST_NO1, ADDRESS_DISTRICT
</select>
<!--
담당자 코드 정보에서 해당하는 담당자 정보를 조회한다.

@ -45,26 +45,7 @@ public interface CodeInfoService {
*/
public List<Map<String, Object>> findWorkerWorkInfoList(Map<String, Object> param);
/**
* () .
* @author noheart
* @task
* @param param
* @return
*
*/
public List<Map<String, Object>> findSidoCodeList();
/**
* () .
* @author noheart
* @task
* @param param
* @return
*
*/
public List<Map<String, Object>> findSiGunGuCodeList(Map<String, Object> param);

@ -43,16 +43,9 @@ public class CodeInfoServiceImpl implements CodeInfoService {
return codeInfoDao.findWorkerWorkInfoList(param);
}
@Override
public List<Map<String, Object>> findSidoCodeList() {
return codeInfoDao.findSidoCodeList();
}
@Override
public List<Map<String, Object>> findSiGunGuCodeList(Map<String, Object> param) {
return codeInfoDao.findSiGunGuCodeList(param);
}
@Override
public List<Map<String, Object>> findChargeCodeInfoList(Map<String, Object> param) {
return codeInfoDao.findChargeCodeInfoList(param);

@ -151,74 +151,5 @@ public class CodeInfoController {
return result.getResult();
}
/**
* .
*
* @param argument
* @returns <ModelAndView>
*/
@SuppressWarnings("unchecked")
@RequestMapping(value="/cfs/com/code/findAddressCodeList.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> findAddressCodeList(@RequestBody Map<String, Object> param) {
Result result = new Result();
Map<String, Object> commonCode = null;
String GRP_CD;
String dataIdPrefix;
try {
commonCode = (Map<String, Object>) param.get("dma_commonCode");
dataIdPrefix = (String) commonCode.get("DATA_PREFIX");
if (dataIdPrefix == null) {
dataIdPrefix = "dlt_commonCode_";
}
List<Map<String, Object>> codeList = null;
GRP_CD = (String) commonCode.get("GRP_CD");
if ("addr".equals(GRP_CD)) {
// 시도 조회
codeList = codeInfoService.findSidoCodeList();
} else {
// 시군구 조회
Map<String, Object> paramMap = new HashMap<String, Object>();
paramMap.put("sido", GRP_CD.split("_")[1]);
codeList = codeInfoService.findSiGunGuCodeList(paramMap);
}
int size = codeList.size();
String preCode = "";
List<Map<String, Object>> codeGrpList = null;
for (int i = 0; i < size; i++) {
Map<String, Object> codeMap = (Map<String, Object>) codeList.remove(0);
String grp_cd = "";
if (StringUtils.isEmpty((String) codeMap.get("GRP_CD"))) {
grp_cd = "addr";
} else {
grp_cd = (String) codeMap.get("GRP_CD");
}
grp_cd = grp_cd.toLowerCase();
if (!preCode.equals(grp_cd)) {
if (codeGrpList != null) {
result.setData(dataIdPrefix + preCode, codeGrpList);
}
preCode = grp_cd;
codeGrpList = new ArrayList<Map<String, Object>>();
codeGrpList.add(codeMap);
} else {
codeGrpList.add(codeMap);
}
if (i == size - 1) {
result.setData(dataIdPrefix + preCode, codeGrpList);
}
}
result.setMsg(Result.STATUS_SUCESS, "공통코드 조회가 완료되었습니다.");
}catch(RuntimeException e) {
result.setMsg(Result.STATUS_ERROR, "공통코드 조회중 오류가 발생하였습니다.", e);
} catch (Exception ex) {
result.setMsg(Result.STATUS_ERROR, "공통코드 조회중 오류가 발생하였습니다.", ex);
}
return result.getResult();
}
}

@ -16,93 +16,8 @@ import cfs.system.vo.SystemVO;
@Repository("systemDao")
public interface SystemDao {
/**
* > > -
* @author nuloongji
* @task ST003
* @param param
*
*/
List<SystemVO> findSystemPostNoList(SystemVO systemVO);
/**
* > > -
* @author nuloongji
* @task ST003
* @param param
*
*/
List<SystemVO> findSystemAddressAdimnCode(SystemVO systemVO);
/**
* > > -
* @author nuloongji
* @task ST003
* @param param
*
*/
public void createPostNo(SystemVO systemVO);
/**
* > > -
* @author nuloongji
* @task ST003
* @param param
*
*/
public void updatePostNo(SystemVO systemVO);
/**
* > > -
* @author nuloongji
* @task ST003
* @param param
*
*/
public void deletePostNo(SystemVO systemVO);
/**
* > > -
* @author nuloongji
* @task ST004
* @param param
*
*/
List<SystemVO> findSystemAddressAdimnCodeList(SystemVO systemVO);
/**
* > > -
* @author nuloongji
* @task ST004
* @param param
*
*/
public void createAddressAdminCode(SystemVO systemVO);
/**
* > > -
* @author nuloongji
* @task ST004
* @param param
*
*/
public void updateAddressAdminCode(SystemVO systemVO);
/**
* > > -
* @author nuloongji
* @task ST004
* @param param
*
*/
public void deleteAddressAdminCode(SystemVO systemVO);
/**
* > -

@ -11,10 +11,6 @@ public interface SystemPostDao {
//public List<SystemPostVO> findSystemPost(SystemPostVO SystemPostVO);
public List<SystemPostVO> findSidoCode(SystemPostVO systemPostVO);
public List<SystemPostVO> findSystemNoticeUpdate(SystemPostVO systemPostVO);
public List<SystemPostVO> findSystemPrivacyDel(SystemPostVO systemPostVO);

@ -2,22 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cfs.system.dao.SystemPostDao">
<!-- 코드 목록 [SD002M01] -->
<resultMap id="findSystemPost_resultMap" type="cfs.system.vo.SystemPostVO">
<result property="postNo" column="POST_NO" />
<result property="addressCity" column="ADDRESS_CITY" />
<result property="district" column="ADDRESS_DISTRICT" />
<result property="addressSame" column="ADDRESS_SAME" />
<result property="addressTown" column="ADDRESS_TOWN" />
<result property="assressBunji" column="ADDRESS_BUNJI" />
<result property="addressAdminCode" column="ADDRESS_ADMIN_CODE" />
</resultMap>
<!-- 시도 코드 조회 [SD003M01] -->
<resultMap id="findSidoCode_resultMap" type="cfs.system.vo.SystemPostVO">
<result property="sidoId" column="sido_id" />
<result property="sidoName" column="sido_full_name" />
</resultMap>
<!-- 개인정보 삭제 [SD073M01] -->
<resultMap id="findSystemNoticeWrong_resultMap" type="cfs.system.vo.SystemPostVO">
@ -44,30 +29,6 @@
</resultMap>
<!-- 코드 목록 [SD002M01]
<select id="findSystemPost" parameterType="cfs.system.vo.SystemPostVO" resultMap="findSystemPost_resultMap">
SELECT POST_NO1||'-'||POST_NO2 POST_NO,
ADDRESS_CITY,
ADDRESS_DISTRICT,
ADDRESS_SAME,
ADDRESS_TOWN,
ADDRESS_BUNJI,
ADDRESS_ADMIN_CODE
FROM address_info
where 1=1
<if test="!cityAdreessCode.equals('all')">
and post_no1 <![CDATA[>= ]]>#{cityAdreessCode}||00
and post_no1 <![CDATA[< ]]>#{cityAdreessCode}+1||00
</if>
and ADDRESS_CITY||address_district like '%'||#{adressDistrict}||'%'
and address_same like '%'||#{addressResident}||'%'
ORDER BY post_no1, post_no2
</select>-->
<!-- 시도 코드 조회 [SD003M01] -->
<select id="findSidoCode" parameterType="cfs.system.vo.SystemPostVO" resultMap="findSidoCode_resultMap">
SELECT sido_id, sido_full_name FROM sido_code_info
</select>
<!-- 개인정보 삭제 [SD007M01]-수정정보 -->
<select id="findSystemNoticeUpdate" parameterType="cfs.system.vo.SystemPostVO" resultMap="findSystemNoticeWrong_resultMap">

@ -2,44 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cfs.system.dao.SystemDao">
<!-- 우편번호 조회 [ST003] -->
<resultMap id="findPostNOList-resultMap" type="cfs.system.vo.SystemVO">
<result property="postNo" column="POST_NO"/>
<result property="postNo1" column="POST_NO1"/>
<result property="postNo2" column="POST_NO2"/>
<result property="addressSeqno" column="ADDRESS_SEQNO"/>
<result property="addressCity" column="ADDRESS_CITY"/>
<result property="addressDistrict" column="ADDRESS_DISTRICT"/>
<result property="addressSame" column="ADDRESS_SAME"/>
<result property="addressTown" column="ADDRESS_TOWN"/>
<result property="addressBunji" column="ADDRESS_BUNJI"/>
<result property="stBunji" column="ST_BUNJI"/>
<result property="edBunji" column="ED_BUNJI"/>
<result property="stNumDong" column="ST_NUM_DONG"/>
<result property="edNumDong" column="ED_NUM_DONG"/>
<result property="stDong" column="ST_DONG"/>
<result property="edDong" column="ED_DONG"/>
<result property="stAfterBunji" column="ST_AFTER_BUNJI"/>
<result property="edAfterBunji" column="ED_AFTER_BUNJI"/>
<result property="addressAdminCode" column="ADDRESS_ADMIN_CODE"/>
</resultMap>
<!-- 행정동코드 조회 [ST004] -->
<resultMap id="findAddressAdminCodeList-resultMap" type="cfs.system.vo.SystemVO">
<result property="addressAdminCode" column="ADDRESS_ADMIN_CODE"/>
<result property="adminCity" column="ADMIN_CITY"/>
<result property="adminDistrict" column="ADMIN_DISTRICT"/>
<result property="adminSame" column="ADMIN_SAME"/>
<result property="adminTown" column="ADMIN_TOWN"/>
<result property="adminNewCode" column="ADMIN_NEW_CODE"/>
<result property="adminInputDate" column="ADMIN_INPUT_DATE"/>
<result property="adminCancelKbn" column="ADMIN_CANCEL_KBN"/>
<result property="statusKbn" column="STATUS_KBN"/>
<result property="createDate" column="CREATE_DATE"/>
<result property="creater" column="CREATER"/>
<result property="updateDate" column="UPDATE_DATE"/>
<result property="updater" column="UPDATER"/>
</resultMap>
<!-- 상용문구 조회 [ST008] -->
<resultMap id="findCommonWordList-resultMap" type="cfs.system.vo.SystemVO">
@ -48,182 +10,7 @@
<result property="seq" column="SEQ"/>
<result property="msg" column="MSG"/>
</resultMap>
<!--
시스템관리 > 우편번호 > 우편번호 등록 및 조회 - 우편번호 조회 [ST003]
-->
<select id="findSystemPostNoList" parameterType="cfs.system.vo.SystemVO" resultMap="findPostNOList-resultMap">
SELECT
A.POST_NO1||'-'||A.POST_NO2 AS postNo
,A.POST_NO1
,A.POST_NO2
,A.ADDRESS_SEQNO
,A.ADDRESS_CITY
,A.ADDRESS_DISTRICT
,A.ADDRESS_SAME
,A.ADDRESS_TOWN
,A.ADDRESS_BUNJI
,A.ST_BUNJI
,A.ED_BUNJI
,A.ST_NUM_DONG
,A.ED_NUM_DONG
,A.ST_DONG
,A.ED_DONG
,A.ST_AFTER_BUNJI
,A.ED_AFTER_BUNJI
,A.ADDRESS_ADMIN_CODE
FROM ADDRESS_INFO A
WHERE ADDRESS_CITY = #{addrCtNm, jdbcType=VARCHAR}
<if test="addressDistrict != null and addressDistrict != ''">
AND ADDRESS_DISTRICT = #{addressDistrict, jdbcType=VARCHAR}
</if>
<if test="addressSame != null and addressSame != ''">
AND ADDRESS_SAME = #{addressSame, jdbcType=VARCHAR}
</if>
</select>
<!--
시스템관리 > 우편번호 > 우편번호 등록 및 조회 - 행정동코드 조회 [ST004]
-->
<select id="findSystemAddressAdimnCode" parameterType="cfs.system.vo.SystemVO" resultMap="findPostNOList-resultMap">
SELECT
A.ADDRESS_ADMIN_CODE
FROM ADMIN_ADDRESS_INFO A
WHERE A.ADMIN_CITY = #{addressCity, jdbcType=VARCHAR}
<if test="addressDistrict != null and addressDistrict != ''">
AND A.ADMIN_DISTRICT = #{addressDistrict, jdbcType=VARCHAR}
</if>
<if test="addressSame != null and addressSame != ''">
AND A.ADMIN_SAME = #{addressSame, jdbcType=VARCHAR}
</if>
</select>
<!--
시스템관리 > 우편번호 > 우편번호 등록 및 조회 - 우편번호 등록 [ST003]
-->
<insert id="createPostNo" parameterType="cfs.system.vo.SystemVO">
INSERT INTO ADDRESS_INFO (
POST_NO1 ,POST_NO2, ADDRESS_SEQNO, ADDRESS_CITY
, ADDRESS_DISTRICT, ADDRESS_SAME, ADDRESS_TOWN, ADDRESS_BUNJI
, ST_BUNJI, ED_BUNJI, ST_NUM_DONG, ED_NUM_DONG
, ST_DONG, ED_DONG, ST_AFTER_BUNJI, ED_AFTER_BUNJI
, ADDRESS_ADMIN_CODE, CREATE_DATE, CREATER, UPDATE_DATE, UPDATER
) VALUES(
#{postNo1, jdbcType=VARCHAR}, #{postNo1, jdbcType=VARCHAR}, (SELECT NVL(MAX(ADDRESS_SEQNO), 0)+1 FROM ADDRESS_INFO), #{addrCtNm, jdbcType=VARCHAR}
, #{addressDistrict, jdbcType=VARCHAR}, #{addressSame, jdbcType=VARCHAR}, #{addressTown, jdbcType=VARCHAR}, #{addressBunji, jdbcType=VARCHAR}
, #{stBunji, jdbcType=VARCHAR}, #{edBunji, jdbcType=VARCHAR}, #{stNumDong, jdbcType=VARCHAR}, #{edNumDong, jdbcType=VARCHAR}
, #{stDong, jdbcType=VARCHAR}, #{edDong, jdbcType=VARCHAR}, #{stAfterBunji, jdbcType=VARCHAR}, #{edAfterBunji, jdbcType=VARCHAR}
, #{addressAdminCode, jdbcType=VARCHAR},SYSDATE, #{creater, jdbcType=VARCHAR}, SYSDATE, #{creater, jdbcType=VARCHAR}
)
</insert>
<!--
시스템관리 > 우편번호 > 우편번호 등록 및 조회 - 우편번호 수정 [ST003]
-->
<update id="updatePostNo" parameterType="cfs.system.vo.SystemVO">
UPDATE ADDRESS_INFO SET POST_NO1 = #{postNo1, jdbcType=VARCHAR},
POST_NO2 = #{postNo2, jdbcType=VARCHAR},
ADDRESS_CITY = #{addrCtNm, jdbcType=VARCHAR},
ADDRESS_DISTRICT = #{addressDistrict, jdbcType=VARCHAR},
ADDRESS_SAME = #{addressSame, jdbcType=VARCHAR},
ADDRESS_TOWN = #{addressTown, jdbcType=VARCHAR},
ADDRESS_BUNJI = #{addressBunji, jdbcType=VARCHAR},
ST_BUNJI = #{stBunji, jdbcType=VARCHAR},
ED_BUNJI = #{edBunji, jdbcType=VARCHAR},
ST_NUM_DONG = #{stNumDong, jdbcType=VARCHAR},
ED_NUM_DONG = #{edNumDong, jdbcType=VARCHAR},
ST_DONG = #{stDong, jdbcType=VARCHAR},
ED_DONG = #{edDong, jdbcType=VARCHAR},
ST_AFTER_BUNJI = #{stAfterBunji, jdbcType=VARCHAR},
ED_AFTER_BUNJI = #{edAfterBunji, jdbcType=VARCHAR},
ADDRESS_ADMIN_CODE = #{addressAdminCode, jdbcType=VARCHAR},
UPDATE_DATE = SYSDATE,
UPDATER = #{creater, jdbcType=VARCHAR}
WHERE POST_NO1= #{postNo1, jdbcType=VARCHAR}
AND POST_NO2 = #{postNo2, jdbcType=VARCHAR}
AND ADDRESS_SEQNO = #{addressSeqno, jdbcType=VARCHAR}
</update>
<!--
시스템관리 > 우편번호 > 우편번호 등록 및 조회 - 우편번호 삭제 [ST003]
-->
<delete id="deletePostNo" parameterType="cfs.system.vo.SystemVO">
DELETE FROM ADDRESS_INFO
WHERE POST_NO1= #{postNo1, jdbcType=VARCHAR}
AND POST_NO2 = #{postNo2, jdbcType=VARCHAR}
AND ADDRESS_SEQNO = #{addressSeqno, jdbcType=VARCHAR}
</delete>
<!--
시스템관리 > 우편번호 > 행정동코드 등록 및 조회 - 행정동코드 조회 [ST004]
-->
<select id="findSystemAddressAdimnCodeList" parameterType="cfs.system.vo.SystemVO" resultMap="findAddressAdminCodeList-resultMap">
SELECT
A.ADDRESS_ADMIN_CODE
,A.ADMIN_CITY
,A.ADMIN_DISTRICT
,A.ADMIN_SAME
,A.ADMIN_TOWN
,A.ADMIN_NEW_CODE
,A.ADMIN_INPUT_DATE
,A.ADMIN_CANCEL_KBN
,A.STATUS_KBN
,A.CREATE_DATE
,A.CREATER
,A.UPDATE_DATE
,A.UPDATER
FROM ADMIN_ADDRESS_INFO A
WHERE A.ADMIN_CITY = #{addrCtNm, jdbcType=VARCHAR}
<if test="adminDistrict != null and adminDistrict != ''">
AND A.ADMIN_DISTRICT = #{adminDistrict, jdbcType=VARCHAR}
</if>
<if test="adminSame != null and adminSame != ''">
AND A.ADMIN_SAME = #{adminSame, jdbcType=VARCHAR}
</if>
</select>
<!--
시스템관리 > 행정동코드 등록 및 조회 - 행정동코드 등록 [ST004]
-->
<insert id="createAddressAdminCode" parameterType="cfs.system.vo.SystemVO">
INSERT INTO ADMIN_ADDRESS_INFO (
ADDRESS_ADMIN_CODE, ADMIN_CITY, ADMIN_DISTRICT, ADMIN_SAME,
ADMIN_TOWN, ADMIN_NEW_CODE, ADMIN_INPUT_DATE, STATUS_KBN,
ADMIN_CANCEL_KBN, CREATE_DATE, CREATER, UPDATE_DATE, UPDATER
) VALUES(
#{addressAdminCode, jdbcType=VARCHAR}, #{addrCtNm, jdbcType=VARCHAR}, #{adminDistrict, jdbcType=VARCHAR}, #{adminSame, jdbcType=VARCHAR},
#{adminTown, jdbcType=VARCHAR}, #{adminNewCode, jdbcType=VARCHAR}, SYSDATE, '0',
#{adminCancelKbn, jdbcType=VARCHAR},SYSDATE, #{creater, jdbcType=VARCHAR}, SYSDATE, #{creater, jdbcType=VARCHAR}
)
</insert>
<!--
시스템관리 > 우편번호 > 행정동코드 등록 및 조회 - 행정동코드 수정 [ST004]
-->
<update id="updateAddressAdminCode" parameterType="cfs.system.vo.SystemVO">
UPDATE ADMIN_ADDRESS_INFO SET ADDRESS_ADMIN_CODE = #{addressAdminCode, jdbcType=VARCHAR}
, ADMIN_CITY = #{addrCtNm, jdbcType=VARCHAR}
, ADMIN_DISTRICT = #{adminDistrict, jdbcType=VARCHAR}
, ADMIN_SAME = #{adminSame, jdbcType=VARCHAR}
, ADMIN_TOWN = #{adminTown, jdbcType=VARCHAR}
, ADMIN_NEW_CODE = #{adminNewCode, jdbcType=VARCHAR}
, STATUS_KBN = #{statusKbn, jdbcType=VARCHAR}
, UPDATE_DATE = SYSDATE
WHERE ADDRESS_ADMIN_CODE = #{addressAdminCode, jdbcType=VARCHAR}
</update>
<!--
시스템관리 > 우편번호 > 행정동코드 등록 및 조회 - 행정동코드 삭제 [ST004]
-->
<delete id="deleteAddressAdminCode" parameterType="cfs.system.vo.SystemVO">
DELETE FROM ADMIN_ADDRESS_INFO WHERE ADDRESS_ADMIN_CODE = #{addressAdminCode, jdbcType=VARCHAR}
</delete>
<!--
시스템관리 > 상용문구 등록 - 상용문구 목록 조회 [ST008]
@ -268,7 +55,7 @@
AND SEQ = #{seq, jdbcType=VARCHAR}
</delete>
<!-- 우편번호 조회 [ST003] -->
<!-- 장비이상내역조회 [ST010] -->
<resultMap id="findSystemEquipment-resultMap" type="cfs.system.vo.SystemVO">
<result property="fareOfficeId" column="FARE_OFFICE_ID"/>
<result property="fareOfficeNm" column="FARE_OFFICE_NM"/>
@ -500,7 +287,7 @@
</select>
<!-- 우편번호 조회 [ST003] -->
<!-- 시스템로그인이력 [ST] -->
<resultMap id="findSystemLoginlog-resultMap" type="cfs.system.vo.SystemVO">
<result property="userId" column="USER_ID"/>
<result property="userNm" column="USER_NM"/>

@ -8,10 +8,7 @@ import cfs.system.vo.SystemPostVO;
public interface SystemPostService {
//public List<SystemPostVO> findSystemPost(SystemPostVO SystemPostVO) throws Exception;
public List<SystemPostVO> findSidoCode(SystemPostVO SystemPostVO) throws Exception;
public List<SystemPostVO> findSystemNoticeUpdate(SystemPostVO SystemPostVO) throws Exception;
public List<SystemPostVO> findSystemPrivacyDel(SystemPostVO SystemPostVO) throws Exception;

@ -7,73 +7,7 @@ import cfs.system.vo.SystemVO;
public interface SystemService {
/**
* > > - .
* @author nuloongji
* @task [ST003]
* @param param
* @throws Exception
*
*/
List<SystemVO> findSystemPostNoList(SystemVO systemVO) throws Exception;
/**
* > > - () .
* @author nuloongji
* @task [ST003]
* @param param
* @throws Exception
*
*/
List<SystemVO> findSystemAddressAdimnCode(SystemVO systemVO) throws Exception;
/**
* > > - /.
* @author nuloongji
* @task [ST003]
* @param param
* @throws Exception
*
*/
public void createPostNo(SystemVO systemVO) throws Exception;
/**
* > > - .
* @author nuloongji
* @task [ST003]
* @param param
* *
*/
public void deletePostNo(SystemVO systemVO) throws Exception;
/**
* > > - .
* @author nuloongji
* @task [ST004]
* @param param
* @throws Exception
*
*/
List<SystemVO> findSystemAddressAdimnCodeList(SystemVO systemVO) throws Exception;
/**
* > > - /.
* @author nuloongji
* @task [ST004]
* @param param
* @throws Exception
*
*/
public void createAddressAdminCode(SystemVO systemVO) throws Exception;
/**
* > > - .
* @author nuloongji
* @task [ST004]
* @param param
* *
*/
public void deleteAddressAdminCode(SystemVO systemVO) throws Exception;
/**
* > - .

@ -20,17 +20,7 @@ public class SystemPostServiceImpl implements SystemPostService{
@Resource(name="SystemPostDao")
private SystemPostDao SystemPostDao;
/*
@Override
public List<SystemPostVO> findSystemPost(SystemPostVO SystemPostVO) throws Exception {
return SystemPostDao.findSystemPost(SystemPostVO);
}
*/
@Override
public List<SystemPostVO> findSidoCode(SystemPostVO SystemPostVO) throws Exception {
return SystemPostDao.findSidoCode(SystemPostVO);
}
@Override

@ -32,119 +32,6 @@ public class SystemServiceImpl implements SystemService {
private SystemDao systemDao;
@Override
public List<SystemVO> findSystemPostNoList(SystemVO systemVO) throws Exception {
return systemDao.findSystemPostNoList(systemVO);
}
@Override
public List<SystemVO> findSystemAddressAdimnCode(SystemVO systemVO) throws Exception {
return systemDao.findSystemAddressAdimnCode(systemVO);
}
@Override
public void createPostNo(SystemVO systemVO) throws Exception {
String message = "";
try {
if ("C".equals(systemVO.getCrudSe())) {
systemDao.createPostNo(systemVO);
}
if ("U".equals(systemVO.getCrudSe())) {
systemDao.updatePostNo(systemVO);
}
}catch(RuntimeException e) {
logger.info("catch check");
if (!"".equals(message)) {
message += "이 실패하였습니다.<br/>전산담당자에게 문의하세요.";
} else {
message = Result.STATUS_ERROR_MESSAGE;
}
throw new Exception(message);
} catch (Exception e) {
logger.info("catch check");
if (!"".equals(message)) {
message += "이 실패하였습니다.<br/>전산담당자에게 문의하세요.";
} else {
message = Result.STATUS_ERROR_MESSAGE;
}
throw new Exception(message);
}
}
@Override
public void deletePostNo(SystemVO systemVO) throws Exception {
try {
systemDao.deletePostNo(systemVO);
}catch(RuntimeException e) {
logger.info("catch check");
throw new Exception("삭제중 오류가 발생하였습니다.<br/>전산담당자에게 문의하세요.");
} catch (Exception e) {
logger.info("catch check");
throw new Exception("삭제중 오류가 발생하였습니다.<br/>전산담당자에게 문의하세요.");
}
}
@Override
public List<SystemVO> findSystemAddressAdimnCodeList(SystemVO systemVO) throws Exception {
return systemDao.findSystemAddressAdimnCodeList(systemVO);
}
@Override
public void createAddressAdminCode(SystemVO systemVO) throws Exception {
String message = "";
try {
if ("C".equals(systemVO.getCrudSe())) {
systemVO.setAdminCancelKbn("'");
systemDao.createAddressAdminCode(systemVO);
}
if ("U".equals(systemVO.getCrudSe())) {
systemDao.updateAddressAdminCode(systemVO);
}
}catch(RuntimeException e) {
logger.info("catch check");
if (!"".equals(message)) {
message += "이 실패하였습니다.<br/>전산담당자에게 문의하세요.";
} else {
message = Result.STATUS_ERROR_MESSAGE;
}
throw new Exception(message);
} catch (Exception e) {
logger.info("catch check");
if (!"".equals(message)) {
message += "이 실패하였습니다.<br/>전산담당자에게 문의하세요.";
} else {
message = Result.STATUS_ERROR_MESSAGE;
}
throw new Exception(message);
}
}
@Override
public void deleteAddressAdminCode(SystemVO systemVO) throws Exception {
try {
systemDao.deleteAddressAdminCode(systemVO);
}catch(RuntimeException e) {
logger.info("catch check");
throw new Exception("삭제중 오류가 발생하였습니다.<br/>전산담당자에게 문의하세요.");
} catch (Exception e) {
logger.info("catch check");
throw new Exception("삭제중 오류가 발생하였습니다.<br/>전산담당자에게 문의하세요.");
}
}
@Override
public List<SystemVO> findSystemCommonWordRegList(SystemVO systemVO) throws Exception {

@ -31,206 +31,7 @@ public class SystemController {
@Resource(name = "systemService")
private SystemService systemService;
/**
*
* > > - .
* @author nuloongji
* @task [ST003]
* @param param
* @return
* @throws Exception
*
*/
@RequestMapping(value="/cfs/system/findSystemPostNoList.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> postNoList(@RequestBody ParamBean<SystemVO> param, HttpServletRequest request) {
SystemVO systemVO = param.getParam();
Result result = new Result();
List<SystemVO> statList = null;
try {
statList = (List<SystemVO>) systemService.findSystemPostNoList(systemVO);
result.setData("statList", statList);
result.setMsg(Result.STATUS_SUCESS, "정상적으로 조회가 완료되었습니다.");
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
} catch (Exception ex) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
return result.getResult();
}
/**
*
* > > - () .
* @author nuloongji
* @task [ST003] ()
* @param param
* @return
* @throws Exception
*
*/
@RequestMapping(value="/cfs/system/findSystemAddressAdimnCode.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> findSystemAddressAdimnCode(@RequestBody ParamBean<SystemVO> param, HttpServletRequest request) {
SystemVO systemVO = param.getParam();
Result result = new Result();
//List<SystemVO> resCode = null;
try {
result.setData("resCode", systemService.findSystemAddressAdimnCode(systemVO));
result.setMsg(Result.STATUS_SUCESS, "정상적으로 조회가 완료되었습니다.");
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
} catch (Exception ex) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
return result.getResult();
}
/**
* > > - /.
* @author nuloongji
* @task [ST003]
* @param param
* @param request
* @return
* @throws Exception
*
*/
@RequestMapping(value="/cfs/system/createPostNo.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> createPostNo(@RequestBody ParamBean<SystemVO> param, HttpServletRequest request) throws Exception {
SystemVO systemVO = param.getParam();
Result result = new Result();
try {
HttpSession session = request.getSession();
systemVO.setCreater(((String) session.getAttribute("EMP_NM")));
systemService.createPostNo(systemVO);
result.setMsg(Result.STATUS_SUCESS, "저장을 완료하였습니다.");
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
} catch (Exception ex) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
return result.getResult();
}
/**
*
* > > - .
* @author nuloongji
* @task [ST003]
* @param param
* @return
* @throws Exception
*
*
*/
@RequestMapping(value = "/cfs/system/deletePostNo.do", method = RequestMethod.POST)
public @ResponseBody Map<String, Object> deletePostNo(@RequestBody ParamBean<SystemVO> param, HttpServletRequest request) throws Exception {
SystemVO systemVO = param.getParam();
Result result = new Result();
try {
systemService.deletePostNo(systemVO);
result.setMsg(Result.STATUS_SUCESS, Result.STATUS_SUCESS_MESSAGE);
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
} catch (Exception ex) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
return result.getResult();
}
/**
*
* > > - .
* @author nuloongji
* @task [ST004]
* @param param
* @return
* @throws Exception
*
*/
@RequestMapping(value="/cfs/system/findSystemAddressAdimnCodeList.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> findSystemAddressAdimnCodeList(@RequestBody ParamBean<SystemVO> param, HttpServletRequest request) {
SystemVO systemVO = param.getParam();
Result result = new Result();
List<SystemVO> statList = null;
try {
statList = (List<SystemVO>) systemService.findSystemAddressAdimnCodeList(systemVO);
result.setData("statList", statList);
result.setMsg(Result.STATUS_SUCESS, "정상적으로 조회가 완료되었습니다.");
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
} catch (Exception ex) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
return result.getResult();
}
/**
* > > - /.
* @author nuloongji
* @task [ST004]
* @param param
* @param request
* @return
* @throws Exception
*
*/
@RequestMapping(value="/cfs/system/createAddressAdminCode.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> createAddressAdminCode(@RequestBody ParamBean<SystemVO> param, HttpServletRequest request) throws Exception {
SystemVO systemVO = param.getParam();
Result result = new Result();
try {
HttpSession session = request.getSession();
systemVO.setCreater(((String) session.getAttribute("EMP_NM")));
systemService.createAddressAdminCode(systemVO);
result.setMsg(Result.STATUS_SUCESS, "저장을 완료하였습니다.");
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
} catch (Exception ex) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
return result.getResult();
}
/**
*
* > - .
* @author nuloongji
* @task [ST004]
* @param param
* @return
* @throws Exception
*
*
*/
@RequestMapping(value = "/cfs/system/deleteAddressAdminCode.do", method = RequestMethod.POST)
public @ResponseBody Map<String, Object> deleteAddressAdminCode(@RequestBody ParamBean<SystemVO> param, HttpServletRequest request) throws Exception {
SystemVO systemVO = param.getParam();
Result result = new Result();
try {
systemService.deleteAddressAdminCode(systemVO);
result.setMsg(Result.STATUS_SUCESS, Result.STATUS_SUCESS_MESSAGE);
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
} catch (Exception ex) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
return result.getResult();
}
/**
*

@ -30,61 +30,7 @@ public class SystemPostController {
/**
*
* .
* @author cfs02
* @task [SD02]
* @param param
* @return
*
*/
@RequestMapping(value="/cfs/system/findSystemPost.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> findSystemPost(@RequestBody ParamBean<SystemPostVO> param, HttpServletRequest request) {
//SystemPostVO SystemPostVO = param.getParam();
Result result = new Result();
List<SystemPostVO> statList = null;
try {
//statList = SystemPostService.findSystemPost(SystemPostVO);
result.setData("result", statList);
result.setMsg(Result.STATUS_SUCESS, "정상적으로 조회가 완료되었습니다.");
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
} catch (Exception e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
return result.getResult();
}
/**
*
* .
* @author cfs02
* @task [SD03]sido
* @param param
* @return
*
*/
@RequestMapping(value="/cfs/system/findSidoCode.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> findSidoCode(@RequestBody ParamBean<SystemPostVO> param, HttpServletRequest request) {
SystemPostVO SystemPostVO = param.getParam();
Result result = new Result();
List<SystemPostVO> statList = null;
try {
statList = SystemPostService.findSidoCode(SystemPostVO);
result.setData("result", statList);
result.setMsg(Result.STATUS_SUCESS, "정상적으로 조회가 완료되었습니다.");
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
} catch (Exception e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
return result.getResult();
}
/**
*

Loading…
Cancel
Save