공통코드 생성 스크립트 추가

dev
Jonguk. Lim 6 months ago
parent f9340b591a
commit a8cebe6203

@ -1,3 +1,53 @@
INSERT INTO tb_code_ctgr (CTGR_ID, CTGR_NM, DSCRP, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS', '마약류폐기지원시스템', null, '20240521113802', '0000000000', '20240521113802', '0000000000', 'Y');
commit;
INSERT INTO tb_code_grp (GRP_ID, CTGR_ID, GRP_NM, DSCRP, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS01', 'ADDS', '보고구분코드', 'RPT_SE_CD', '20240521114617', '0000000000', '20240521115010', '0000000000', 'Y');
INSERT INTO tb_code_grp (GRP_ID, CTGR_ID, GRP_NM, DSCRP, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS02', 'ADDS', '보고유형코드', 'RPT_TY_CD', '20240521114944', '0000000000', '20240521114944', '0000000000', 'Y');
INSERT INTO tb_code_grp (GRP_ID, CTGR_ID, GRP_NM, DSCRP, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS03', 'ADDS', '폐기구분코드', 'DSUSE_SE_CD', '20240521115110', '0000000000', '20240521115110', '0000000000', 'Y');
INSERT INTO tb_code_grp (GRP_ID, CTGR_ID, GRP_NM, DSCRP, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS04', 'ADDS', '폐기사유코드', 'DSUSE_PRV_CD', '20240521115110', '0000000000', '20240521115110', '0000000000', 'Y');
INSERT INTO tb_code_grp (GRP_ID, CTGR_ID, GRP_NM, DSCRP, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS05', 'ADDS', '폐기방법코드', 'DSUSE_MTH_CD', '20240521115110', '0000000000', '20240521115110', '0000000000', 'Y');
INSERT INTO tb_code_grp (GRP_ID, CTGR_ID, GRP_NM, DSCRP, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS11', 'ADDS', '폐기관리진행상태', 'PRGRS_STTS_CD', '20240521115110', '0000000000', '20240521115110', '0000000000', 'Y');
INSERT INTO tb_code_grp (GRP_ID, CTGR_ID, GRP_NM, DSCRP, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS12', 'ADDS', '폐기관리문서구분코드', 'DSUSE_DOC_SE_CD', '20240521115110', '0000000000', '20240521115110', '0000000000', 'Y');
commit;
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS01', 'AAR', '폐기', '', '', '', '', 1, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS02', '0', '신규', '', '', '', '', 1, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS02', '1', '취소', '', '', '', '', 3, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS02', '2', '변경', '', '', '', '', 2, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS03', '1', '보건소폐기', '보건소폐기', '', '', '', 1, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS03', '2', '공무원임회', '공무원임회', '', '', '', 2, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS03', '4', '사고마약류', '도난/분실/재해 발생 사고마약류', '', '', '', 3, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS04', '01', '사고마약류(파손)', '사고마약류(파손)', '', '', '', 1, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS04', '02', '사고마약류(변질,부패)', '사고마약류(변질,부패)', '', '', '', 2, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS04', '03', '유효/사용기한 경과', '유효/사용기한 경과', '', '', '', 3, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS04', '04', '유효기한임박', '재고관리재고관리또는보관을하기에곤란한사유(유효기한임박)', '', '', '', 4, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS04', '05', '사용중단', '재고관리또는보관을하기에곤란한사유(사용중단)', '', '', '', 5, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS04', '07', '폐업', '재고관리또는보관을하기에곤란한사유(폐업)', '', '', '', 6, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS04', '08', '환자반납', '재고관리또는보관을하기에곤란한사유(환자반납)', '', '', '', 7, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS04', '09', '기타', '기타(사고마약류(도난,분실,재해) 발생보고완료건)', '', '', '', 8, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS04', '12', '제조공정중폐기물', '제조공정중폐기물', '', '', '', 9, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS05', '1', '소각', '소각', '', '', '', 1, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS05', '2', '중화', '중화', '', '', '', 2, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS05', '3', '가수분해', '가수분해', '', '', '', 3, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS05', '4', '산화', '산화', '', '', '', 4, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS05', '5', '환원', '환원', '', '', '', 5, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS05', '6', '희석', '희석', '', '', '', 6, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS05', '7', '매몰', '매몰', '', '', '', 7, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS05', '8', '기타', '기타(파쇄,혼합)', '', '', '', 8, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS05', '9', '사고', '사고(사고마약류중재해상실, 분실, 도난에의한경우)', '', '', '', 9, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS11', '01', '폐기신청서접수', '', '', '', '', 1, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS11', '02', '폐기보고매핑', '', '', '', '', 2, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS11', '99', '종료', '', '', '', '', 3, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS12', '01', '폐기결과통보서', '', '', '', '', 1, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS12', '02', '폐기결과보고서', '', '', '', '', 2, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS12', '03', '폐기현황', '', '', '', '', 3, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS12', '04', '폐기처리내역', '', '', '', '', 4, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
INSERT INTO tb_cmn_code (GRP_ID, CODE, CODE_VAL, DSCRP, ETC_1, ETC_2, ETC_3, SRT_ORD, REG_DT, RGTR, MDFCN_DT, MDFR, USE_YN) VALUES ('ADDS12', '05', '폐기관리대장', '', '', '', '', 5, '20240521114713', '0000000000', '20240521114713', '0000000000', 'Y');
commit;
/* /*
INSERT INTO xit_user_info (user_id, ORGNZT_ID, USER_NM, PASSWD, EMPL_NO, IHIDNUM, SEXDSTN_CODE, BRTHDY, FXNUM, HOUSE_ADRES, PASSWORD_HINT, PASSWORD_CNSR, HOUSE_END_TELNO, AREA_NO, DETAIL_ADRES, ZIP, OFFM_TELNO, MBTLNUM, EMAIL_ADRES, OFCPS_NM, HOUSE_MIDDLE_TELNO, GROUP_ID, PSTINST_CODE, USER_STTUS_CODE, ESNTL_ID, CRTFC_DN_VALUE, SBSCRB_DE, LOGIN_FAIL, LOGIN_FAIL_DE) VALUES ('admin', 'ORGNZT_00000', '관리자', 'OmIexDh6OVsEdGhKF1lSrkaF4/jhc8NL24rcz8pl++0=', null, null, null, null, null, null, 'P01', '123', null, null, null, null, null, '123456789', 'admin@test.com', null, null, 'GROUP_00000', '00000000', 'P', 'USRCNFRM_00000000000', null, '2023-03-03 16:22:42', 0, null); INSERT INTO xit_user_info (user_id, ORGNZT_ID, USER_NM, PASSWD, EMPL_NO, IHIDNUM, SEXDSTN_CODE, BRTHDY, FXNUM, HOUSE_ADRES, PASSWORD_HINT, PASSWORD_CNSR, HOUSE_END_TELNO, AREA_NO, DETAIL_ADRES, ZIP, OFFM_TELNO, MBTLNUM, EMAIL_ADRES, OFCPS_NM, HOUSE_MIDDLE_TELNO, GROUP_ID, PSTINST_CODE, USER_STTUS_CODE, ESNTL_ID, CRTFC_DN_VALUE, SBSCRB_DE, LOGIN_FAIL, LOGIN_FAIL_DE) VALUES ('admin', 'ORGNZT_00000', '관리자', 'OmIexDh6OVsEdGhKF1lSrkaF4/jhc8NL24rcz8pl++0=', null, null, null, null, null, null, 'P01', '123', null, null, null, null, null, '123456789', 'admin@test.com', null, null, 'GROUP_00000', '00000000', 'P', 'USRCNFRM_00000000000', null, '2023-03-03 16:22:42', 0, null);
INSERT INTO xit_user_info (user_id, ORGNZT_ID, USER_NM, PASSWD, EMPL_NO, IHIDNUM, SEXDSTN_CODE, BRTHDY, FXNUM, HOUSE_ADRES, PASSWORD_HINT, PASSWORD_CNSR, HOUSE_END_TELNO, AREA_NO, DETAIL_ADRES, ZIP, OFFM_TELNO, MBTLNUM, EMAIL_ADRES, OFCPS_NM, HOUSE_MIDDLE_TELNO, GROUP_ID, PSTINST_CODE, USER_STTUS_CODE, ESNTL_ID, CRTFC_DN_VALUE, SBSCRB_DE, LOGIN_FAIL, LOGIN_FAIL_DE) VALUES ('admin1', 'ORGNZT_00000', '시스템 운영자', 'D2sxtA5iLZI0TTw8URKzKBasmg/MiZOoJ3/+uV2yl8g=', null, null, null, null, null, null, ' P01', '서광', null, null, null, null, null, null, null, null, null, 'GROUP_00001', null, 'P', 'USRCNFRM_00000000021', null, '2023-07-07 10:22:33', 0, null); INSERT INTO xit_user_info (user_id, ORGNZT_ID, USER_NM, PASSWD, EMPL_NO, IHIDNUM, SEXDSTN_CODE, BRTHDY, FXNUM, HOUSE_ADRES, PASSWORD_HINT, PASSWORD_CNSR, HOUSE_END_TELNO, AREA_NO, DETAIL_ADRES, ZIP, OFFM_TELNO, MBTLNUM, EMAIL_ADRES, OFCPS_NM, HOUSE_MIDDLE_TELNO, GROUP_ID, PSTINST_CODE, USER_STTUS_CODE, ESNTL_ID, CRTFC_DN_VALUE, SBSCRB_DE, LOGIN_FAIL, LOGIN_FAIL_DE) VALUES ('admin1', 'ORGNZT_00000', '시스템 운영자', 'D2sxtA5iLZI0TTw8URKzKBasmg/MiZOoJ3/+uV2yl8g=', null, null, null, null, null, null, ' P01', '서광', null, null, null, null, null, null, null, null, null, 'GROUP_00001', null, 'P', 'USRCNFRM_00000000021', null, '2023-07-07 10:22:33', 0, null);

Loading…
Cancel
Save