diff --git a/pom.xml b/pom.xml index 65d9ca8d..0139070f 100644 --- a/pom.xml +++ b/pom.xml @@ -42,12 +42,6 @@ - - cokr.xit.base - xit-code - 23.04.01-SNAPSHOT - - org.springframework.boot spring-boot-starter-web diff --git a/src/main/java/cokr/xit/MainController.java b/src/main/java/cokr/xit/MainController.java index 62d6c83b..f19915bc 100644 --- a/src/main/java/cokr/xit/MainController.java +++ b/src/main/java/cokr/xit/MainController.java @@ -1,19 +1,11 @@ package cokr.xit; -import java.util.List; - -import javax.annotation.Resource; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping; -import cokr.xit.backup.service.bean.BackupBean; -import cokr.xit.base.code.service.CodeQuery; -import cokr.xit.base.code.service.bean.CodeBean; -import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.web.AbstractController; @Controller @@ -21,41 +13,11 @@ public class MainController extends AbstractController { @Autowired private RequestMappingHandlerMapping requestHandlers; - @Resource(name = "backupBean") - private BackupBean backupBean; - - @Resource(name = "codeBean") - private CodeBean codeBean; - @GetMapping(name="홈", value={"/", "/index.do"}) public ModelAndView mainPage() { return new ModelAndView("index"); } - @GetMapping(name="시군구 추가/삭제 메인", value="/sggAddDelMain.do") - public ModelAndView sggAddDelMain() { - ModelAndView mav = new ModelAndView(); - - mav.setViewName("sgg/sggAddDelMain"); - mav.addObject("pageName","sggAddDelMain"); - return mav; - } - - @GetMapping(name="시군구 설정 복사 메인", value="/copySggStngMain.do") - public ModelAndView copySggStngMain() { - ModelAndView mav = new ModelAndView(); - - CodeQuery cq = new CodeQuery(); - cq.setGroupIDs("FIM054"); - List taskSeCdList = codeBean.getCodeList(cq); - mav.addObject("taskSeCdList", taskSeCdList); - List sggList = backupBean.getAllList("TB_SGG", "SGG_NM"); - mav.addObject("sggList", sggList); - - mav.setViewName("sgg/copySggStngMain"); - mav.addObject("pageName","copySggStngMain"); - return mav; - } } \ No newline at end of file diff --git a/src/main/java/cokr/xit/TsApplication.java b/src/main/java/cokr/xit/TestServerApplication.java similarity index 83% rename from src/main/java/cokr/xit/TsApplication.java rename to src/main/java/cokr/xit/TestServerApplication.java index 3daf52e9..90db6083 100644 --- a/src/main/java/cokr/xit/TsApplication.java +++ b/src/main/java/cokr/xit/TestServerApplication.java @@ -6,7 +6,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; import cokr.xit.custom.boot.CommonConfig1; import cokr.xit.custom.boot.DatasourceConfig1; -import cokr.xit.custom.boot.DatasourceConfig2; import cokr.xit.custom.boot.MvcConfig1; import cokr.xit.custom.boot.ServletConfig1; import cokr.xit.custom.boot.ServletConfig2; @@ -23,15 +22,14 @@ import testserver.wsdlserver.lvisserver.WebServiceConfig; MvcConfig1.class, DatasourceConfig1.class, - DatasourceConfig2.class, TransactionConfig1.class, WebServiceConfig.class }) -public class TsApplication { +public class TestServerApplication { public static void main(String[] args) { - SpringApplication.run(TsApplication.class, args); + SpringApplication.run(TestServerApplication.class, args); } } diff --git a/src/main/java/cokr/xit/backup/Backup.java b/src/main/java/cokr/xit/backup/Backup.java deleted file mode 100644 index 74f541d8..00000000 --- a/src/main/java/cokr/xit/backup/Backup.java +++ /dev/null @@ -1,16 +0,0 @@ -package cokr.xit.backup; - -import lombok.Getter; -import lombok.Setter; - -@Getter -@Setter -public class Backup { - - String originalTable; - String backupTable; - String pkName; - String[] pks; - - -} diff --git a/src/main/java/cokr/xit/backup/dao/BackupMapper.java b/src/main/java/cokr/xit/backup/dao/BackupMapper.java deleted file mode 100644 index b5bbc321..00000000 --- a/src/main/java/cokr/xit/backup/dao/BackupMapper.java +++ /dev/null @@ -1,25 +0,0 @@ -package cokr.xit.backup.dao; - -import java.util.List; -import java.util.Map; - -import org.egovframe.rte.psl.dataaccess.mapper.Mapper; - -import cokr.xit.backup.Backup; -import cokr.xit.foundation.component.AbstractMapper; -import cokr.xit.foundation.data.DataObject; - -@Mapper("backupMapper") -public interface BackupMapper extends AbstractMapper { - - List selectAllList(Map map); - - int insertOriginalData(Backup backup); - - int deleteOriginalData(Backup backup); - - int insertBackupData(Backup backup); - - int deleteBackupData(Backup backup); - -} diff --git a/src/main/java/cokr/xit/backup/service/bean/BackupBean.java b/src/main/java/cokr/xit/backup/service/bean/BackupBean.java deleted file mode 100644 index eb137bb9..00000000 --- a/src/main/java/cokr/xit/backup/service/bean/BackupBean.java +++ /dev/null @@ -1,53 +0,0 @@ -package cokr.xit.backup.service.bean; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.annotation.Resource; - -import org.springframework.stereotype.Component; - -import cokr.xit.backup.Backup; -import cokr.xit.backup.dao.BackupMapper; -import cokr.xit.foundation.AbstractComponent; -import cokr.xit.foundation.data.DataObject; - -@Component("backupBean") -public class BackupBean extends AbstractComponent { - - @Resource(name = "backupMapper") - private BackupMapper backupMapper; - - public List getAllList(String originalTable, String pkName) { - Map map = new HashMap(); - map.put("originalTable", originalTable); - map.put("pkName", pkName); - return backupMapper.selectAllList(map); - } - - public List getAllList(String backupTable, String originalTable, String pkName) { - Map map = new HashMap(); - map.put("originalTable", originalTable); - map.put("backupTable", backupTable); - map.put("pkName", pkName); - return backupMapper.selectAllList(map); - } - - public boolean activate(Backup backup) { - return backupMapper.insertOriginalData(backup) > 0; - } - - public boolean deactivate(Backup backup) { - - backupMapper.deleteBackupData(backup); - - int result1 = backupMapper.insertBackupData(backup); - int result2 = backupMapper.deleteOriginalData(backup); - - return ((result1 != 0) && (result1 == result2)); - } - - - -} diff --git a/src/main/java/cokr/xit/backup/web/BackupController.java b/src/main/java/cokr/xit/backup/web/BackupController.java deleted file mode 100644 index 1151baa5..00000000 --- a/src/main/java/cokr/xit/backup/web/BackupController.java +++ /dev/null @@ -1,56 +0,0 @@ -package cokr.xit.backup.web; - -import java.util.List; - -import javax.annotation.Resource; - -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.servlet.ModelAndView; - -import cokr.xit.backup.Backup; -import cokr.xit.backup.service.bean.BackupBean; -import cokr.xit.foundation.data.DataObject; - -@Controller -public class BackupController { - @Resource(name = "backupBean") - private BackupBean backupBean; - - @GetMapping(name="백업 테이블 및 실사용 테이블 자료 조회", value="/backup/list.do") - public ModelAndView getBackupList(String backupTable, String originalTable, String pkName) { - ModelAndView mav = new ModelAndView("jsonView"); - - List originalDataList = backupBean.getAllList(originalTable, pkName); - List backupDataList = backupBean.getAllList(backupTable, originalTable, pkName); - - mav.addObject("originalDataList", originalDataList); - mav.addObject("backupDataList", backupDataList); - - - return mav; - } - - @PostMapping(name="백업 테이블 자료를 사용 테이블로 복사", value="/backup/activate.do") - public ModelAndView add(Backup backup) { - ModelAndView mav = new ModelAndView("jsonView"); - - boolean saved = backupBean.activate(backup); - - mav.addObject("saved", saved); - - return mav; - } - - @PostMapping(name="사용 테이블 자료 삭제 및 백업", value="/backup/deactivate.do") - public ModelAndView del(Backup backup) { - ModelAndView mav = new ModelAndView("jsonView"); - - boolean saved = backupBean.deactivate(backup); - - mav.addObject("saved", saved); - - return mav; - } -} diff --git a/src/main/java/cokr/xit/copyStng/dao/CopyStngMapper.java b/src/main/java/cokr/xit/copyStng/dao/CopyStngMapper.java deleted file mode 100644 index 41bd3198..00000000 --- a/src/main/java/cokr/xit/copyStng/dao/CopyStngMapper.java +++ /dev/null @@ -1,19 +0,0 @@ -package cokr.xit.copyStng.dao; - -import java.util.List; -import java.util.Map; - -import org.egovframe.rte.psl.dataaccess.mapper.Mapper; - -import cokr.xit.foundation.component.AbstractMapper; - -@Mapper("copyStngMapper") -public interface CopyStngMapper extends AbstractMapper { - - int copyTask(Map param); - - List selectVltnList(Map param); - - int copyVltn(Map param); - -} diff --git a/src/main/java/cokr/xit/copyStng/service/bean/CopyStngBean.java b/src/main/java/cokr/xit/copyStng/service/bean/CopyStngBean.java deleted file mode 100644 index de5573b9..00000000 --- a/src/main/java/cokr/xit/copyStng/service/bean/CopyStngBean.java +++ /dev/null @@ -1,39 +0,0 @@ -package cokr.xit.copyStng.service.bean; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.annotation.Resource; - -import org.springframework.stereotype.Component; - -import cokr.xit.copyStng.dao.CopyStngMapper; -import cokr.xit.foundation.AbstractComponent; - -@Component("copyStngBean") -public class CopyStngBean extends AbstractComponent { - - @Resource(name = "copyStngMapper") - private CopyStngMapper copyStngMapper; - - public boolean copy(String taskSeCd, String srcSgg, String trgtSgg) { - Map param = new HashMap<>(); - param.put("taskSeCd",taskSeCd); - param.put("srcSgg",srcSgg); - param.put("trgtSgg",trgtSgg); - - copyStngMapper.copyTask(param); - - List vltnCds = copyStngMapper.selectVltnList(param); - param.put("vltnCds", vltnCds); - int result2 = copyStngMapper.copyVltn(param); - if(result2 == vltnCds.size()) { - return true; - } else { - return false; - } - - } - -} diff --git a/src/main/java/cokr/xit/copyStng/web/CopyStngController.java b/src/main/java/cokr/xit/copyStng/web/CopyStngController.java deleted file mode 100644 index 0b0bb891..00000000 --- a/src/main/java/cokr/xit/copyStng/web/CopyStngController.java +++ /dev/null @@ -1,28 +0,0 @@ -package cokr.xit.copyStng.web; - -import javax.annotation.Resource; - -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.servlet.ModelAndView; - -import cokr.xit.copyStng.service.bean.CopyStngBean; - -@Controller -public class CopyStngController { - - @Resource(name = "copyStngBean") - private CopyStngBean copyStngBean; - - @GetMapping(name="시군구 설정 복사", value="/copyStng/copy.do") - public ModelAndView copy(String taskSeCd, String srcSgg, String trgtSgg) { - ModelAndView mav = new ModelAndView("jsonView"); - - boolean saved = copyStngBean.copy(taskSeCd, srcSgg, trgtSgg); - - mav.addObject("saved", saved); - - return mav; - } - -} diff --git a/src/main/java/cokr/xit/custom/boot/DatasourceConfig1.java b/src/main/java/cokr/xit/custom/boot/DatasourceConfig1.java index 624fc1cb..636140be 100644 --- a/src/main/java/cokr/xit/custom/boot/DatasourceConfig1.java +++ b/src/main/java/cokr/xit/custom/boot/DatasourceConfig1.java @@ -47,7 +47,7 @@ public class DatasourceConfig1 { PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); bean.setConfigLocation(resolver.getResource("classpath:sql/mybatis-config.xml")); - bean.setMapperLocations(resolver.getResources("classpath:sql/mapper/**/*.xml")); + bean.setMapperLocations(resolver.getResources("classpath:sql/externalmapper/**/*.xml")); return bean; } catch (Exception e) { throw Assert.runtimeException(e); @@ -59,10 +59,10 @@ public class DatasourceConfig1 { * @return MapperConfigurer */ @Bean - public MapperConfigurer internalMapperConfigurer() { + public MapperConfigurer mapperConfigurer() { MapperConfigurer bean = new MapperConfigurer(); - bean.setBasePackage("cokr.xit"); - bean.setSqlSessionFactoryBeanName("sqlSession"); + bean.setBasePackage("externalsystem"); + bean.setSqlSessionFactoryBeanName("sqlSession"); return bean; } } diff --git a/src/main/java/cokr/xit/custom/boot/DatasourceConfig2.java b/src/main/java/cokr/xit/custom/boot/DatasourceConfig2.java deleted file mode 100644 index d5d4ef8b..00000000 --- a/src/main/java/cokr/xit/custom/boot/DatasourceConfig2.java +++ /dev/null @@ -1,57 +0,0 @@ -package cokr.xit.custom.boot; - -import javax.sql.DataSource; - -import org.egovframe.rte.psl.dataaccess.mapper.MapperConfigurer; -import org.mybatis.spring.SqlSessionFactoryBean; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.boot.jdbc.DataSourceBuilder; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.core.io.support.PathMatchingResourcePatternResolver; - -import cokr.xit.foundation.Assert; - -/**데이터베이스 접속 관련 설정 - *
  • {@link #dataSource() 데이터소스} 설정
  • - *
  • {@link #sqlSession() MyBatis} 접속 설정
  • - *
  • {@link #mapperConfigurer() 매퍼} 설정
  • - *
- * @author mjkhan - */ -@Configuration -public class DatasourceConfig2 { - private DataSource dataSource; - - - @Bean("externaldataSource") - @ConfigurationProperties(prefix = "spring.datasource2.hikari") - public DataSource externaldataSource() { - return dataSource != null ? dataSource : (dataSource = DataSourceBuilder.create().build()); - } - - @Bean - public SqlSessionFactoryBean externalSqlSession() { - try { - SqlSessionFactoryBean bean = new SqlSessionFactoryBean(); - bean.setDataSource(externaldataSource()); - - PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); - bean.setConfigLocation(resolver.getResource("classpath:sql/mybatis-config.xml")); - bean.setMapperLocations(resolver.getResources("classpath:sql/externalmapper/**/*.xml")); - return bean; - } catch (Exception e) { - throw Assert.runtimeException(e); - } - } - - @Bean - public MapperConfigurer externalMapperConfigurer() { - MapperConfigurer bean = new MapperConfigurer(); - - bean.setBasePackage("externalsystem"); - bean.setSqlSessionFactoryBeanName("externalSqlSession"); - - return bean; - } -} \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index af200632..7729f3de 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -7,7 +7,7 @@ spring: application: name: dummy-external-system main: - allow-bean-definition-overriding: true + allow-bean-definition-overriding: true # web-application-type: SERVLET sql: init: @@ -18,13 +18,6 @@ spring: resources: static-locations: /resources/,file:files/ datasource: - hikari: - driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy - jdbc-url: jdbc:log4jdbc:mariadb://211.119.124.9:4407/fims?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false - username: fimsweb - password: fimsweb!@ - auto-commit: false - datasource2: hikari: driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy jdbc-url: jdbc:log4jdbc:mariadb://211.119.124.9:4407/dummysys?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false diff --git a/src/main/resources/sql/mapper/backup/backup-mapper.xml b/src/main/resources/sql/mapper/backup/backup-mapper.xml deleted file mode 100644 index ae602622..00000000 --- a/src/main/resources/sql/mapper/backup/backup-mapper.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - -INSERT - INTO ${originalTable} -SELECT * - FROM ${backupTable} - WHERE ${pkName} IN (#{pk}) - - - -DELETE - FROM ${backupTable} - WHERE ${pkName} IN (#{pk}) - - - -INSERT - INTO ${backupTable} -SELECT * - FROM ${originalTable} - WHERE ${pkName} IN (#{pk}) - - - -DELETE - FROM ${originalTable} - WHERE ${pkName} IN (#{pk}) - - - \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/code-mapper.xml b/src/main/resources/sql/mapper/base/code-mapper.xml deleted file mode 100644 index be27d2b6..00000000 --- a/src/main/resources/sql/mapper/base/code-mapper.xml +++ /dev/null @@ -1,230 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -SELECT * - FROM TB_CODE_CTGR - WHERE USE_YN = 'Y' - AND CTGR_ID IN (#{categoryID}) - - - - - - - -/* 코드 카테고리 등록(codeMapper.insertCategory) */ -INSERT INTO TB_CODE_CTGR ( - CTGR_ID - , CTGR_NM - , DSCRP - , REG_DT - , RGTR - , MDFCN_DT - , MDFR - , USE_YN -) VALUES ( - #{category.id} - , #{category.name} - , #{category.description} - , - , #{currentUser.id} - , - , #{currentUser.id} - , 'Y' -) - -/* 코드 카테고리 수정(codeMapper.updateCategory) */ -UPDATE TB_CODE_CTGR SET - CTGR_NM = #{category.name} - , DSCRP = #{category.description} - , MDFCN_DT = - , MDFR = #{currentUser.id} -WHERE CTGR_ID = #{category.id} - -/* 코드 카테고리 제거(codeMapper.removeCategories) */ -UPDATE TB_CODE_CTGR SET - MDFCN_DT = - , MDFR = #{currentUser.id} - , USE_YN = 'N' -WHERE CTGR_ID IN (#{categoryID}) - - -SELECT * - FROM TB_CODE_GRP - WHERE USE_YN = 'Y' -AND CTGR_ID IN (#{categoryID}) -AND GRP_ID IN (#{groupID}) - - - - - - - -/* 코드그룹 등록(codeMapper.insertGroup) */ -INSERT INTO TB_CODE_GRP ( - GRP_ID - , GRP_NM - , CTGR_ID - , DSCRP - , REG_DT - , RGTR - , MDFCN_DT - , MDFR - , USE_YN -) VALUES ( - #{group.id} - , #{group.name} - , #{group.categoryID} - , #{group.description} - , - , #{currentUser.id} - , - , #{currentUser.id} - , 'Y' -) - -/* 코드그룹 수정(codeMapper.updateGroup) */ -UPDATE TB_CODE_GRP SET - GRP_NM = #{group.name} - , CTGR_ID = #{group.categoryID} - , DSCRP = #{group.description} - , MDFCN_DT = - , MDFR = #{currentUser.id} - WHERE GRP_ID = #{group.id} - -/*코드그룹 제거(codeMapper.removeGroups) */ -UPDATE TB_CODE_GRP SET - USE_YN = 'N' - , MDFCN_DT = - , MDFR = #{currentUser.id} - -CTGR_ID IN (#{categoryID}) -GRP_ID IN (#{groupID}) - - - -SELECT * - FROM TB_CMN_CODE - WHERE USE_YN = 'Y' - AND GRP_ID IN (#{groupID}) - AND CODE IN (#{code}) - - - - - - - -/* 코드 등록(codeMapper.insertCode) */ -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 ( - #{code.groupID} - , #{code.code} - , #{code.value} - , #{code.description} - , #{code.etc1} - , #{code.etc2} - , #{code.etc3} - , #{code.sortOrder} - , - , #{currentUser.id} - , - , #{currentUser.id} - , 'Y' -) - -/* 코드 수정(codeMapper.updateCode) */ -UPDATE TB_CMN_CODE SET - CODE_VAL = #{code.value} - , DSCRP = #{code.description} - , ETC_1 = #{code.etc1} - , ETC_2 = #{code.etc2} - , ETC_3 = #{code.etc3} - , MDFCN_DT = - , MDFR = #{currentUser.id} - WHERE GRP_ID = #{code.groupID} - AND CODE = #{code.code} - -/* 코드 정렬순서 변경(codeMapper.reorderCodes) */ -UPDATE TB_CMN_CODE SET - SRT_ORD = CASE CODE - WHEN #{code} THEN #{index} - ELSE SRT_ORD - END - , MDFCN_DT = - , MDFR = #{currentUser.id} - WHERE GRP_ID = #{groupID} - AND CODE IN (#{code}) - -/* 코드 제거(codeMapper.removeCodes) */ -UPDATE TB_CMN_CODE SET - MDFCN_DT = - , MDFR = #{currentUser.id} - , USE_YN = 'N' - -AND GRP_ID IN (#{groupID}) -AND CODE IN (#{code}) - - - \ No newline at end of file diff --git a/src/main/resources/sql/mapper/copyStng/copyStng-mapper.xml b/src/main/resources/sql/mapper/copyStng/copyStng-mapper.xml index 0c872f97..2e7743d0 100644 --- a/src/main/resources/sql/mapper/copyStng/copyStng-mapper.xml +++ b/src/main/resources/sql/mapper/copyStng/copyStng-mapper.xml @@ -2,77 +2,6 @@ - -INSERT - INTO TB_TASK -SELECT #{trgtSgg} AS SGG_CD - , B.TASK_SE_CD - , B.TASK_SE_NM - , B.ADVNTCE_DAY_CNT - , B.ADVNTCE_RDUCT_RT - , B.WKSN_RDUCT_RT - , B.FFNLG_ADTN_YMD - , B.FFNLG_ADTN_RT - , B.FFNLG_INADTN_RT - , B.FFNLG_INADTN_MXMM_CNT - , B.NXRP_LINK_SE_CD - , B.NXRP_LINK_SE_DTL_SN - , B.USE_YN - , B.REG_DT - , B.RGTR - , B.MDFCN_DT - , B.MDFR - FROM TB_TASK B - WHERE B.SGG_CD = #{srcSgg} - AND B.TASK_SE_CD = #{taskSeCd} - - - - - - SELECT - LPAD(CAST(IFNULL(MAX(VLTN_ID) + 1, 1) AS INT), 10, '0') - AS NEW_ID - FROM TB_VLTN - - INSERT - INTO TB_VLTN - SELECT (CASE B.VLTN_CD - - WHEN #{vltnCd} THEN LPAD(CAST(${vltnId}+${index} AS INT), 10, '0') - - ELSE '' END) AS VLTN_ID - , #{trgtSgg} AS SGG_CD - , B.TASK_SE_CD - , B.VLTN_CD - , B.VLTN_ARTCL - , B.VLTN_LAW_NM - , B.VLTN_LAW1 - , B.VLTN_LAW2 - , B.VLTN_LAW_ETC - , B.ACNTG_SE_CD - , B.ACNTG_SE_NM - , B.TXITM_CD - , B.TXITM_NM - , B.OPER_ITEM_CD - , B.OPER_ITEM_NM - , B.SPCL_BIZ_CD - , B.SPCL_BIZ_NM - , B.USE_YN - , B.REG_DT - , B.RGTR - , B.MDFCN_DT - , B.MDFR - FROM TB_VLTN B - WHERE B.SGG_CD = #{srcSgg} - AND B.TASK_SE_CD = #{taskSeCd} - AND B.VLTN_CD IN (#{vltnCd}) - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp index c28be07c..b6aedff3 100644 --- a/src/main/webapp/WEB-INF/jsp/index.jsp +++ b/src/main/webapp/WEB-INF/jsp/index.jsp @@ -13,12 +13,7 @@ -
-
시군구
- - - -
+ @@ -57,45 +52,7 @@ }); - $("#btnForSgg").on("click", function(){ - $.ajax({ - type : "GET", - ContentType : "text/html;charset=UTF-8", - url : "/sggAddDelMain.do", - data: {}, - success: (resp) => { - console.log(resp); - - dialog.open({ - id: "sggAddDelDialog", - title: "시군구 추가,삭제", - content: resp , - size: "fullscreen", - init:() => {} - }); - } - }); - }); - - $("#btnForCopySggStng").on("click", function(){ - $.ajax({ - type : "GET", - ContentType : "text/html;charset=UTF-8", - url : "/copySggStngMain.do", - data: {}, - success: (resp) => { - console.log(resp); - - dialog.open({ - id: "copySggStngDialog", - title: "시군구 설정 복사", - content: resp , - size: "fullscreen", - init:() => {} - }); - } - }); - }); + $(function(){ diff --git a/src/main/webapp/WEB-INF/jsp/sgg/copySggStngMain.jsp b/src/main/webapp/WEB-INF/jsp/sgg/copySggStngMain.jsp deleted file mode 100644 index f3851116..00000000 --- a/src/main/webapp/WEB-INF/jsp/sgg/copySggStngMain.jsp +++ /dev/null @@ -1,64 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> -
-
-
-
-
- - -
-
- - -
-
- - -
-
- - - -
-
- -
-
-
- - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/sgg/sggAddDelMain.jsp b/src/main/webapp/WEB-INF/jsp/sgg/sggAddDelMain.jsp deleted file mode 100644 index 3f46f6ae..00000000 --- a/src/main/webapp/WEB-INF/jsp/sgg/sggAddDelMain.jsp +++ /dev/null @@ -1,190 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> -<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> -
-
-
-

시군구 백업

- -
- -
- -
- -
-
- - -
-
- -
-

시군구

- -
- -
- -
- - -
- - -
- - - - - - \ No newline at end of file