최초소스커밋(일부 커밋)
parent
966ea9770d
commit
46ec237617
@ -0,0 +1,601 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>WRM</groupId>
|
||||
<artifactId>WRM</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>1.0.0</version>
|
||||
<name>WRM</name>
|
||||
<url>http://www.egovframe.go.kr</url>
|
||||
|
||||
<properties>
|
||||
<spring.maven.artifact.version>4.3.16.RELEASE</spring.maven.artifact.version>
|
||||
<egovframework.rte.version>3.8.0</egovframework.rte.version>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>mvn2</id>
|
||||
<url>http://repo1.maven.org/maven2/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>egovframe</id>
|
||||
<url>http://www.egovframe.go.kr/maven/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>egovframe2</id>
|
||||
<url>http://maven.egovframe.kr:8080/maven/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<!-- 표준프레임워크 실행환경 -->
|
||||
<dependency>
|
||||
<groupId>egovframework.rte</groupId>
|
||||
<artifactId>egovframework.rte.ptl.mvc</artifactId>
|
||||
<version>${egovframework.rte.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<groupId>commons-logging</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>egovframework.rte</groupId>
|
||||
<artifactId>egovframework.rte.psl.dataaccess</artifactId>
|
||||
<version>${egovframework.rte.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>egovframework.rte</groupId>
|
||||
<artifactId>egovframework.rte.fdl.idgnr</artifactId>
|
||||
<version>${egovframework.rte.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>egovframework.rte</groupId>
|
||||
<artifactId>egovframework.rte.fdl.property</artifactId>
|
||||
<version>${egovframework.rte.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
<version>2.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>jstl</artifactId>
|
||||
<version>1.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>taglibs</groupId>
|
||||
<artifactId>standard</artifactId>
|
||||
<version>1.1.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.antlr</groupId>
|
||||
<artifactId>antlr</artifactId>
|
||||
<version>3.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.hsqldb</groupId>
|
||||
<artifactId>hsqldb</artifactId>
|
||||
<version>2.3.2</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 라이브러리 추가 -->
|
||||
<dependency>
|
||||
<groupId>commons-dbcp</groupId>
|
||||
<artifactId>commons-dbcp</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<version>1.9</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cglib</groupId>
|
||||
<artifactId>cglib</artifactId>
|
||||
<version>3.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-compress</artifactId>
|
||||
<version>1.8.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-collections4</artifactId>
|
||||
<version>4.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
<version>4.5.2</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Apache HttpClient Mime -->
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpmime</artifactId>
|
||||
<version>4.5.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.12</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- tibero driver -->
|
||||
<dependency>
|
||||
<groupId>com.tmax.tibero</groupId>
|
||||
<artifactId>tibero-jdbc</artifactId>
|
||||
<version>6.0</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/tibero6-jdbc-14.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-fileupload</groupId>
|
||||
<artifactId>commons-fileupload</artifactId>
|
||||
<version>1.3.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.servlet.jsp</groupId>
|
||||
<artifactId>jsp-api</artifactId>
|
||||
<version>2.2</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.ibm.icu</groupId>
|
||||
<artifactId>icu4j</artifactId>
|
||||
<version>53.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.0.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dom4j</groupId>
|
||||
<artifactId>dom4j</artifactId>
|
||||
<version>1.6.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.googlecode.json-simple</groupId>
|
||||
<artifactId>json-simple</artifactId>
|
||||
<version>1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.opencsv</groupId>
|
||||
<artifactId>opencsv</artifactId>
|
||||
<version>1.8</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>fop</artifactId>
|
||||
<version>1.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi</artifactId>
|
||||
<version>3.12</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi-ooxml</artifactId>
|
||||
<version>3.12</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi-excelant</artifactId>
|
||||
<version>3.12</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi-scratchpad</artifactId>
|
||||
<version>3.12</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-all</artifactId>
|
||||
<version>1.7</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/batik-all-1.7.1-20150510.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>batik</groupId>
|
||||
<artifactId>pdf-transcoder</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/pdf-transcoder-1.0beta2.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xalan</groupId>
|
||||
<artifactId>xalan</artifactId>
|
||||
<version>2.7.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xmlbeans</groupId>
|
||||
<artifactId>xbean_xpath</artifactId>
|
||||
<version>2.4.0</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/xmlbeans_xpath-2.4.0.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
<version>2.7.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xml-apis</groupId>
|
||||
<artifactId>xml-apis</artifactId>
|
||||
<version>1.4.01</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlbeans</groupId>
|
||||
<artifactId>xmlbeans</artifactId>
|
||||
<version>2.3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlbeans</groupId>
|
||||
<artifactId>xmlbeans-qname</artifactId>
|
||||
<version>2.3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlbeans</groupId>
|
||||
<artifactId>xmlbeans-xmlpublic</artifactId>
|
||||
<version>2.5.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- WebSquare 구동시 오류가 많이 발생함. 해당 라이브러리는 WAS 공통 라이브러리 등. 반드시 확인 -->
|
||||
<dependency>
|
||||
<groupId>xbean</groupId>
|
||||
<artifactId>xbean</artifactId>
|
||||
<version>2.5</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/xbean.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
<!-- dependency for WebSquare //-->
|
||||
<dependency>
|
||||
<groupId>websquare</groupId>
|
||||
<artifactId>websquare</artifactId>
|
||||
<version>5.0_3.3643B</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/websquare_5.0_3.3487B.20190213.175059_1.5.jar
|
||||
</systemPath>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>2.5.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-test</artifactId>
|
||||
<version>4.3.18.RELEASE</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-validator-annotation-processor</artifactId>
|
||||
<version>4.1.0.Final</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>eu.bitwalker</groupId>
|
||||
<artifactId>UserAgentUtils</artifactId>
|
||||
<version>1.21</version>
|
||||
</dependency>
|
||||
|
||||
<!--Clipreport-->
|
||||
<dependency>
|
||||
<groupId>com.clipsoft</groupId>
|
||||
<artifactId>clipreport</artifactId>
|
||||
<version>4.0-1.0.0.217</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/ClipReport4.0-1.0.0.217.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.clipsoft</groupId>
|
||||
<artifactId>clipreport-Common</artifactId>
|
||||
<version>4.0</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/ClipReport4.0-Common.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/javax.media/jai_codec -->
|
||||
<dependency>
|
||||
<groupId>javax.media</groupId>
|
||||
<artifactId>jai_codec</artifactId>
|
||||
<version>1.1.3</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/jai_codec-1.1.3.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/javax.media/jai_core -->
|
||||
<dependency>
|
||||
<groupId>javax.media</groupId>
|
||||
<artifactId>jai_core</artifactId>
|
||||
<version>1.1.3</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/jai_core-1.1.3.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/com.google.code.findbugs/annotations -->
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>annotations</artifactId>
|
||||
<version>3.0.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
<version>2.8.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-slf4j-impl</artifactId>
|
||||
<version>2.8.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-1.2-api</artifactId>
|
||||
<version>2.8.2</version>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.8.3</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/org.lazyluke/log4jdbc-remix -->
|
||||
<dependency>
|
||||
<groupId>org.lazyluke</groupId>
|
||||
<artifactId>log4jdbc-remix</artifactId>
|
||||
<version>0.2.7</version>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/org.quartz-scheduler/quartz -->
|
||||
<dependency>
|
||||
<groupId>org.quartz-scheduler</groupId>
|
||||
<artifactId>quartz</artifactId>
|
||||
<version>2.3.0</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<defaultGoal>install</defaultGoal>
|
||||
<directory>${basedir}/target</directory>
|
||||
<finalName>${artifactId}-${version}</finalName>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.tomcat.maven</groupId>
|
||||
<artifactId>tomcat7-maven-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
<configuration>
|
||||
<port>80</port>
|
||||
<path>/</path>
|
||||
<systemProperties>
|
||||
<JAVA_OPTS>-Xms256m -Xmx768m -XX:MaxPermSize=256m</JAVA_OPTS>
|
||||
</systemProperties>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>hibernate3-maven-plugin</artifactId>
|
||||
<version>2.1</version>
|
||||
<configuration>
|
||||
<components>
|
||||
<component>
|
||||
<name>hbm2ddl</name>
|
||||
<implementation>annotationconfiguration</implementation>
|
||||
</component>
|
||||
</components>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.hsqldb</groupId>
|
||||
<artifactId>hsqldb</artifactId>
|
||||
<version>2.3.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<!-- EMMA -->
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>emma-maven-plugin</artifactId>
|
||||
<version>1.0-alpha-3</version>
|
||||
</plugin>
|
||||
<!-- PMD manven plugin -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-pmd-plugin</artifactId>
|
||||
<version>3.1</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<!-- EMMA -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
<forkMode>once</forkMode>
|
||||
<reportFormat>xml</reportFormat>
|
||||
<excludes>
|
||||
<exclude>**/Abstract*.java</exclude>
|
||||
<exclude>**/*Suite.java</exclude>
|
||||
</excludes>
|
||||
<includes>
|
||||
<include>**/*Test.java</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>emma-maven-plugin</artifactId>
|
||||
<inherited>true</inherited>
|
||||
</plugin>
|
||||
<!-- JavaDoc -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.9.1</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<reporting>
|
||||
<outputDirectory>${basedir}/target/site</outputDirectory>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
<version>2.7</version>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<id>sunlink</id>
|
||||
<reports>
|
||||
<report>javadoc</report>
|
||||
</reports>
|
||||
<inherited>true</inherited>
|
||||
<configuration>
|
||||
<links>
|
||||
<link>http://docs.oracle.com/javase/6/docs/api/</link>
|
||||
</links>
|
||||
</configuration>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<!-- JUnit Test Results & EMMA Coverage Reporting -->
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>emma-maven-plugin</artifactId>
|
||||
<inherited>true</inherited>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>surefire-report-maven-plugin</artifactId>
|
||||
<inherited>true</inherited>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>report-only</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<!-- PMD manven plugin -->
|
||||
<!--
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-pmd-plugin</artifactId>
|
||||
<version>3.1</version>
|
||||
<configuration>
|
||||
<rulesets>
|
||||
<ruleset>./Ruleset.xml</ruleset>
|
||||
</rulesets>
|
||||
<linkXref>true</linkXref>
|
||||
<sourceEncoding>${encoding}</sourceEncoding>
|
||||
<minimumTokens>100</minimumTokens>
|
||||
<targetJdk>${compileSource}</targetJdk>
|
||||
</configuration>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>pmd</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
-->
|
||||
<!-- Generating JavaDoc Report -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<configuration>
|
||||
<minmemory>128m</minmemory>
|
||||
<maxmemory>512m</maxmemory>
|
||||
<encoding>${encoding}</encoding>
|
||||
<docencoding>${encoding}</docencoding>
|
||||
<charset>${encoding}</charset>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Generating Java Source in HTML -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jxr-plugin</artifactId>
|
||||
<configuration>
|
||||
<inputEncoding>${encoding}</inputEncoding>
|
||||
<outputEncoding>${encoding}</outputEncoding>
|
||||
<linkJavadoc>true</linkJavadoc>
|
||||
<javadocDir>apidocs</javadocDir>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
</project>
|
||||
@ -0,0 +1,92 @@
|
||||
package com.inswave.interceptor;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
|
||||
|
||||
import com.inswave.util.UserInfo;
|
||||
|
||||
public class SessionCheckInterceptor extends HandlerInterceptorAdapter {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(SessionCheckInterceptor.class);
|
||||
|
||||
@Autowired
|
||||
private UserInfo userInfo;
|
||||
|
||||
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {
|
||||
String loginInfo = null;
|
||||
HttpSession session = request.getSession();
|
||||
String reqUrl = request.getRequestURI();
|
||||
String w2xPath = request.getParameter("w2xPath");
|
||||
int index = reqUrl.indexOf(".xml");;
|
||||
boolean result = true;
|
||||
try {
|
||||
loginInfo = (String) session.getAttribute("EMP_CD");
|
||||
if (loginInfo != null) {
|
||||
userInfo.setUserInfo(session);
|
||||
} else {
|
||||
if (!isSkipURI(request)) {
|
||||
if ((w2xPath != null) || (index >= 0)) {
|
||||
// 웹스퀘어 화면 호출 시 세션이 종료된 경우, 로그인 페이지로 Redirect 처리한다.
|
||||
result = false;
|
||||
response.setContentType("text/xml");
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
response.getWriter().write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
|
||||
response.getWriter().write("<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" ");
|
||||
response.getWriter().write("xmlns:w2=\"http://www.inswave.com/websquare\" xmlns:xf=\"http://www.w3.org/2002/xforms\">");
|
||||
response.getWriter().write("<head>");
|
||||
response.getWriter().write("<w2:buildDate/>");
|
||||
response.getWriter().write("<xf:model><xf:instance><data xmlns=\"\"/></xf:instance></xf:model>");
|
||||
response.getWriter().write("<script type=\"javascript\" lazy=\"false\"><![CDATA[ ");
|
||||
response.getWriter().write("scwin.onpageload = function() { com.alert(\"Session이 종료 되었습니다. 로그인 화면으로 이동하겠습니다.\", \"com.goHome\", true); };");
|
||||
response.getWriter().write("scwin.onpageunload = function() { };");
|
||||
response.getWriter().write("]]></script>");
|
||||
response.getWriter().write("</head>");
|
||||
response.getWriter().write("<body ev:onpageload=\"scwin.onpageload\" ev:onpageunload=\"scwin.onpageunload\"></body>");
|
||||
response.getWriter().write("</html>");
|
||||
} else {
|
||||
// 서비스 호출 시 세션이 종료된 경우, Session 종료 Alert 후, 로그인 페이지로 Redirect 처리 한다.
|
||||
result = false;
|
||||
response.setContentType("application/json");
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
response.getWriter().write("{\"rsMsg\":{\"statusCode\":\"E\", \"errorCode\" : \"E0001\", \"message\":\"Session이 종료 되었습니다.\",\"status\":\"Error\"}}");
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
logger.error("IOException",e);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Session 체크 대상에서 예외 URI 구성
|
||||
*
|
||||
* @date 2016. 8. 29.
|
||||
* @param argument
|
||||
* 파라미터 정보
|
||||
* @returns <boolean> 반환 변수 및 객체
|
||||
* @author InswaveSystems
|
||||
* @example 샘플 코드
|
||||
*/
|
||||
private boolean isSkipURI(HttpServletRequest request) {
|
||||
|
||||
String[] skipUrl = { "/openapi", "/", "/I18N"};
|
||||
boolean result = false;
|
||||
String uri = (request.getRequestURI()).replace(request.getContextPath(), "");
|
||||
|
||||
for (int i = 0; i < skipUrl.length; i++) {
|
||||
if (uri.equals(skipUrl[i])) {
|
||||
result = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,210 @@
|
||||
package com.inswave.template.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.template.service.AuthorityService;
|
||||
import com.inswave.util.Result;
|
||||
|
||||
import kr.seoul.green.bds.pasngix.controller.DailPasngIxController;
|
||||
|
||||
@Controller
|
||||
public class AuthorityController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(AuthorityController.class);
|
||||
@Autowired
|
||||
private AuthorityService authorityService;
|
||||
|
||||
/**
|
||||
* selectAuthoritySearchItem - 권한 아이템 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {}
|
||||
* 없음
|
||||
* @returns mv dlt_authroitySearchItem ( 권한 아이템 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/authority/selectAuthoritySearchItem")
|
||||
public @ResponseBody Map<String, Object> selectAuthoritySearchItem() {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_authoritySearchItem", authorityService.selectAuthoritySearchItem());
|
||||
result.setMsg(result.STATUS_SUCESS, "권한 아이템 리스트가 조회 되었습니다.");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "권한 아이템 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "권한 아이템 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* selectAuthorityList - 조건에 따라 권한 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {}
|
||||
* dma_search { TYPE :"권한명 또는 권한 코드", CONTENTS :"검색어", IS_USE
|
||||
* :"사용여부" }
|
||||
* @returns mv dlt_authroity ( 권한 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/authority/selectAuthorityList")
|
||||
public @ResponseBody Map<String, Object> selectAuthorityList(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_authority", authorityService.selectAuthorityList((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "권한 리스트가 조회 되었습니다.");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "권한 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* selectAuthorityMemberList - 조건에 따라 권한이 부여된 사용자 리스트를 불러온다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {}
|
||||
* dma_authority { AUTHORITY_CD :"권한 코드" }
|
||||
* @returns mv dlt_authroityMember ( 권한이 부여된 사용자 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/authority/selectAuthorityMemberList")
|
||||
public @ResponseBody Map<String, Object> selectAuthorityMemberList(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_authorityMember",
|
||||
authorityService.selectAuthorityMemberList((Map) param.get("dma_authority")));
|
||||
result.setMsg(result.STATUS_SUCESS, "권한(" + (String) ((Map) param.get("dma_authority")).get("AUTHORITY_CD")
|
||||
+ ")이 부여된 사용자 리스트가 조회되었습니다.");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "권한이 부여된 사용자 정보를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* excludeSelectAuthorityMemberList - 권한이 부여되지 않은 직원리스트를 검색조건에 따라 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {}
|
||||
* dma_search { TYPE :"사원코드 또는 사원명", CONTENTS :"검색어",
|
||||
* AUTHORITY_CD :"권한코드" }
|
||||
* @returns mv dlt_member ( 권한이 부여되지 않은 직원 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/authority/excludeSelectAuthorityMemberList")
|
||||
public @ResponseBody Map<String, Object> excludeSelectAuthorityMemberList(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_member",
|
||||
authorityService.excludeSelectAuthorityMemberList((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "권한이 부여되지 않은 직원 리스트가 조회되었습니다.");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "권한이 부여되지 않은 직원 리스트 조회중 오류가 발생하였습니다.,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* saveAuthority - 권한리스트를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {}
|
||||
* dlt_authority ( 권한관리 상태인( C,U,D ) 리스트 ), dma_search ( 조회조건 )
|
||||
* @returns mv dlt_result ( 입력,수정,삭제된 건수 및 상태 ), dlt_authority( 변경된 권한리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/authority/saveAuthority")
|
||||
public @ResponseBody Map<String, Object> saveAuthority(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = authorityService.saveAuthority((List) param.get("dlt_authority"));
|
||||
result.setData("dma_result", hash);
|
||||
result.setData("dlt_authority", authorityService.selectAuthorityList((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "권한이 저장 되었습니다. 입력 : " + (String) hash.get("ICNT") + "건, 수정 : "
|
||||
+ (String) hash.get("UCNT") + "건, 삭제 : " + (String) hash.get("DCNT") + "건");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "권한 저장도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* saveAuthorityMember 권한별 등록사원 리스트를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {}
|
||||
* dlt_authorityMember ( 권한관리 상태인( C,U,D ) 리스트 ), dma_search (
|
||||
* 조회조건 )
|
||||
* @returns mv dlt_result ( 입력,수정,삭제된 건수 및 상태 ), dlt_authorityMember( 변경된 권한
|
||||
* 사용자 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/authority/saveAuthorityMember")
|
||||
public @ResponseBody Map<String, Object> saveAuthorityMember(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = authorityService.saveAuthorityMember((List) param.get("dlt_authorityMember"));
|
||||
result.setData("dma_result", hash);
|
||||
result.setData("dlt_authorityMember",
|
||||
authorityService.selectAuthorityMemberList((Map) param.get("dma_authority")));
|
||||
result.setMsg(result.STATUS_SUCESS, "권한 사용자가 저장 되었습니다. 입력 : " + (String) hash.get("ICNT") + "건, 수정 : "
|
||||
+ (String) hash.get("UCNT") + "건, 삭제 : " + (String) hash.get("DCNT") + "건");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "권한 사용자 저장도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* saveAuthorityAll - 권한 및 권한별 사원정보를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {}
|
||||
* dlt_authority ( 상태인( C,U,D ) 권한 리스트 ), dlt_authorityMember (
|
||||
* 상태인( C,U,D ) 권한별 등록사원 리스트 )
|
||||
* @returns mv dlt_result (입력,수정,삭제된 건수 및 상태)
|
||||
* @author Inswave
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/authority/saveAuthorityAll")
|
||||
public @ResponseBody Map<String, Object> saveAuthorityAll(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = authorityService.saveAuthorityAll((List) param.get("dlt_authority"),
|
||||
(List) param.get("dlt_authorityMember"));
|
||||
|
||||
result.setData("dma_result_All", hash);
|
||||
result.setMsg(result.STATUS_SUCESS,
|
||||
"권한 및 권한별 사원정보 정보가 저장 되었습니다. 입력 권한 건수: " + (String) hash.get("ICNT_AUTH") + "건 :: 입력 권한별사원 건수: "
|
||||
+ (String) hash.get("ICNT_MEM") + "건 :: 수정 권한 건수: " + (String) hash.get("UCNT_AUTH")
|
||||
+ "건 :: 수정 권한별사원 건수: " + (String) hash.get("UCNT_MEM") + "건 :: 삭제 권한 건수: "
|
||||
+ (String) hash.get("DCNT_AUTH") + "건 :: 삭제 권한별사원 건수: " + (String) hash.get("DCNT_MEM")
|
||||
+ "건");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "권한 및 권한별 사원정보 삭제도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,271 @@
|
||||
package com.inswave.template.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.template.service.CommonService;
|
||||
import com.inswave.util.Result;
|
||||
import com.inswave.util.UserInfo;
|
||||
|
||||
@Controller
|
||||
public class CommonController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(CommonController.class);
|
||||
|
||||
@Autowired
|
||||
private CommonService commonService;
|
||||
|
||||
@Autowired
|
||||
private UserInfo user;
|
||||
|
||||
/**
|
||||
* selectCommonSearchItem - 공통코드 아이템 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} 없음
|
||||
* @returns mv dlt_commonSearchItem ( 공통코드 아이템 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/common/selectCommonSearchItem")
|
||||
public @ResponseBody Map<String, Object> selectCommonSearchItem() {
|
||||
Result result = new Result();
|
||||
|
||||
try {
|
||||
result.setData("dlt_commonSearchItem", commonService.selectCommonSearchItem());
|
||||
result.setMsg(result.STATUS_SUCESS, "공통코드 아이템 리스트가 조회 되었습니다.");
|
||||
} catch(SQLException ex){
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "공통코드 아이템 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* CommonCode - 모든 공통코드를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} 없음
|
||||
* @returns mv List : 공통코드 전체 리스트
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/common/selectCommonCode")
|
||||
public @ResponseBody Map<String, Object> selectCommonCode() {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_commonCode", commonService.selectCommonCodeAll());
|
||||
result.setMsg(result.STATUS_SUCESS, "공통코드 전체가 조회되었습니다.");
|
||||
} catch(SQLException ex){
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "공통코드 정보를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* selectMenuList - 조회조건에 따른 메뉴 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dma_userInfo { EMP_CD :"사용자 ID" }
|
||||
* @returns mv List ( 사용자의 메뉴 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/common/selectMenuList")
|
||||
public @ResponseBody Map<String, Object> selectMenuList() {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_menu", commonService.selectMenuList(user.getUserInfo()));
|
||||
result.setMsg(result.STATUS_SUCESS, "메뉴정보가 정상 조회되었습니다.");
|
||||
} catch(SQLException ex){
|
||||
logger.error("SQLException",ex);
|
||||
//result.setMsg(result.STATUS_ERROR, "메뉴정보 조회도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* CommonCodeList - 조회조건에 따른 공통코드 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dma_commonGrp { GRP_CD : "공통그룹 코드" }
|
||||
* @returns mv dlt_commonCode ( 공통코드 리스트 );
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/common/selectCommonCodeList")
|
||||
public @ResponseBody Map<String, Object> selectCommonCodeList(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_commonCode", commonService.selectCommonCodeList((Map) param.get("dma_commonGrp")));
|
||||
result.setMsg(result.STATUS_SUCESS, "공통코드(" + ((Map) param.get("dma_commonGrp")).get("GRP_CD") + ") 리스트가 조회되었습니다.");
|
||||
} catch(SQLException ex){
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "공통코드 정보(" + ((Map) param.get("dma_commonGrp")).get("GRP_CD") + ")를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping("/common/selectCommonGroup")
|
||||
public @ResponseBody Map<String, Object> selectCommonGroup(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_commonGrp", commonService.selectCommonGroup((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "공통코드 그룹 리스트가 조회되었습니다.");
|
||||
} catch(SQLException ex){
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "공통코드 그룹 리스트를 가져오는 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* updateCommonGrpAll - 공통그룹 리스트 및 하위 코드정보를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dlt_commonGrp ( 공통코드그룹 상태인( C,U,D ) 리스트 ), dlt_commonCode ( 공통코드 상태인( C,U,D ) 리스트 )
|
||||
* @returns mv dlt_result (입력,수정,삭제된 건수 및 상태)
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/common/updateCommonGrpAll")
|
||||
public @ResponseBody Map<String, Object> updateCommonGrpAll(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = commonService.saveCodeGrpListAll((List) param.get("dlt_commonGrp"), (List) param.get("dlt_commonCode"));
|
||||
|
||||
result.setData("dma_result_All", hash);
|
||||
result.setMsg(result.STATUS_SUCESS,
|
||||
"공통그룹 리스트 및 하위 코드 정보가 저장 되었습니다. 입력 그룹코드 건수: " + (String) hash.get("ICNT_GRP") + "건 :: 입력 세부코드 건수: " + (String) hash.get("ICNT_CODE")
|
||||
+ "건 :: 수정 그룹코드 건수: " + (String) hash.get("UCNT_GRP") + "건 :: 수정 세부코드 건수: " + (String) hash.get("UCNT_CODE")
|
||||
+ "건 :: 삭제 그룹코드 건수: " + (String) hash.get("DCNT_GRP") + "건 :: 삭제 세부코드 건수: " + (String) hash.get("DCNT_CODE") + "건");
|
||||
} catch(SQLException ex){
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "공통그룹 리스트 및 하위 코드 정보 저장 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* updateCommonGrp - 공통그룹 리스트를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dlt_commonGrp ( 공통코드그룹 상태인( C,U,D ) 리스트 ), dma_search ( 조회조건 )
|
||||
* @returns mv dlt_result (입력,수정,삭제된 건수 및 상태), dlt_commonGrp ( 공통코드 그룹 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/common/updateCommonGrp")
|
||||
public @ResponseBody Map<String, Object> updateCommonGrp(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = commonService.saveCodeGrpList((List) param.get("dlt_commonGrp"));
|
||||
result.setData("dma_result", hash);
|
||||
result.setData("dlt_commonGrp", commonService.selectCommonGroup((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "공통 코드 그룹이 저장 되었습니다. 입력 : " + (String) hash.get("ICNT") + "건, 수정 : " + (String) hash.get("UCNT") + "건, 삭제 : "
|
||||
+ (String) hash.get("DCNT") + "건");
|
||||
} catch(SQLException ex){
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "공통 코드 그룹 저장도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* CommonCodeUpdate - 공통그룹코드 리스트를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dlt_commonCode ( 공통코드 상태인( C,U,D ) 리스트 ), dma_commonGrp ( 조회조건 )
|
||||
* @returns mv dma_result ( 입력,수정,삭제된 건수 및 상태 ), dlt_commonCode ( 공통코드 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/common/selectCommonCodeUpdate")
|
||||
public @ResponseBody Map<String, Object> selectCommonCodeUpdate(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = commonService.saveCodeList((List) param.get("dlt_commonCode"));
|
||||
result.setData("dma_result", hash);
|
||||
result.setData("dlt_commonCode", commonService.selectCommonCodeList((Map) param.get("dma_commonGrp")));
|
||||
result.setMsg(result.STATUS_SUCESS, "공통 코드가 저장 되었습니다. 입력 : " + (String) hash.get("ICNT") + "건, 수정 : " + (String) hash.get("UCNT") + "건, 삭제 : "
|
||||
+ (String) hash.get("DCNT") + "건");
|
||||
} catch(SQLException ex){
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "공통 코드 저장도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* GetCodeList - 공통코드 조회 dma_commonCode : {GRP_CD:"02,01", DATA_PREFIX:"dlt_code"} <String> GRP_CD : 코드값,코드값 <String> DATA_PREFIX :
|
||||
* "Data객체의 ID prefix 없을 경우 dlt_commonCode_"
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param param {dma_commonCode : {GRP_CD:"02,01", DATA_PREFIX:"dlt_code"}}
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/common/selectCodeList")
|
||||
public @ResponseBody Map<String, Object> selectCodeList(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
Map commonCode;
|
||||
String GRP_CD;
|
||||
String dataIdPrefix;
|
||||
String[] selectCodeList;
|
||||
try {
|
||||
commonCode = (Map) param.get("dma_commonCode");
|
||||
GRP_CD = (String) commonCode.get("GRP_CD");
|
||||
dataIdPrefix = (String) commonCode.get("DATA_PREFIX");
|
||||
|
||||
if (dataIdPrefix == null) {
|
||||
dataIdPrefix = "dlt_commonCode_";
|
||||
}
|
||||
selectCodeList = GRP_CD.split(",");
|
||||
commonCode.put("CODE", selectCodeList);
|
||||
|
||||
List codeList = commonService.selectCodeList(commonCode);
|
||||
|
||||
int size = codeList.size();
|
||||
String preCode = "";
|
||||
List codeGrpList = null;
|
||||
for (int i = 0; i < size; i++) {
|
||||
Map codeMap = (Map) codeList.remove(0);
|
||||
String grp_cd = (String) codeMap.get("GRP_CD");
|
||||
if (!preCode.equals(grp_cd)) {
|
||||
if (codeGrpList != null) {
|
||||
result.setData(dataIdPrefix + preCode, codeGrpList);
|
||||
}
|
||||
preCode = grp_cd;
|
||||
codeGrpList = new ArrayList();
|
||||
codeGrpList.add(codeMap);
|
||||
} else {
|
||||
codeGrpList.add(codeMap);
|
||||
}
|
||||
|
||||
if (i == size - 1) {
|
||||
result.setData(dataIdPrefix + preCode, codeGrpList);
|
||||
}
|
||||
}
|
||||
|
||||
result.setMsg(result.STATUS_SUCESS, "공통코드 조회가 완료되었습니다.");
|
||||
} catch(SQLException ex){
|
||||
logger.error("SQLException",ex);
|
||||
result.setMsg(result.STATUS_ERROR, "공통코드 조회중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,238 @@
|
||||
package com.inswave.template.controller;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.sql.Blob;
|
||||
import java.sql.SQLException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpServletResponseWrapper;
|
||||
import javax.sql.rowset.serial.SerialBlob;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.util.FileCopyUtils;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
|
||||
|
||||
import com.inswave.template.service.FileService;
|
||||
import com.inswave.util.Result;
|
||||
|
||||
@Controller
|
||||
public class FileController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(FileController.class);
|
||||
|
||||
@Autowired
|
||||
private FileService fileService;
|
||||
|
||||
// 파일그룹 조회
|
||||
@RequestMapping("/file/selectFileGrp")
|
||||
public @ResponseBody Map<String, Object> selectFileGrp(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_fileGroup", fileService.selectFileGrp((Map) param.get("dma_fileGrp")));
|
||||
result.setMsg(result.STATUS_SUCESS, "조회가 완료되었습니다.");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "조회 중에 오류가 발생했습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
// 파일그룹 insert
|
||||
@RequestMapping("/file/insertFileGrp")
|
||||
public @ResponseBody Map<String, Object> insertFileGrp(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
fileService.insertFileGrp((Map) param.get("dma_fileGrp"));
|
||||
result.setMsg(result.STATUS_SUCESS, "저장이 완료되었습니다.");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "저장 중에 오류가 발생했습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
// 파일목록 insert
|
||||
@RequestMapping("/file/insertFileList")
|
||||
public @ResponseBody Map<String, Object> insertFileList(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
// Map hash = new HashMap();
|
||||
try {
|
||||
// dlt_insertList (request)
|
||||
fileService.insertFileList((List) param.get("dlt_insertList"));
|
||||
|
||||
// fileService.insertFileList((Map) param.get("dma_fileGrp"));
|
||||
// hash.put("family", service.saveMemberFamily((List)
|
||||
// param.get("family")));
|
||||
// result.setData("data", hash);
|
||||
// fileService.insertFileList((Map) param.get("dma_fileInfo")); //
|
||||
// dlt_insertList
|
||||
|
||||
// fileService.insertFileList((List) param.get("aa")); //
|
||||
// dlt_insertList
|
||||
//
|
||||
//
|
||||
// result.setMsg(result.STATUS_SUCESS, "저장이 완료되었습니다.");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "저장 중에 오류가 발생했습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
// 파일 목록 조회
|
||||
@RequestMapping("/file/searchFileList")
|
||||
public @ResponseBody Map<String, Object> searchFileList(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
fileService.searchFileList((Map) param.get("dma_searchFile"));
|
||||
result.setMsg(result.STATUS_SUCESS, "조회가 완료되었습니다.");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "조회 중에 오류가 발생했습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
// 파일 다운로드
|
||||
// TODO
|
||||
@RequestMapping("/file/downloadFile")
|
||||
public @ResponseBody Map<String, Object> downloadFile(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
// 실제 파일명 조회 후
|
||||
// 실제 파일명이 1건인 경우 파일 다운로드, 2건 이상일 경우 zip 파일 다운로드
|
||||
// result.setData("dlt_menu", menuService.selectMenu((Map)
|
||||
// param.get("dma_search")));
|
||||
// result.setMsg(result.STATUS_SUCESS, "메뉴 리스트가 조회되었습니다.");
|
||||
// result.setMsg(result.STATUS_ERROR, "메뉴 리스트를 가져오는 도중 오류가 발생하였습니다.",
|
||||
// ex);
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping("/file/uploadFile")
|
||||
public void uploadFile(MultipartHttpServletRequest request, HttpServletResponse res) {
|
||||
String reaultFileName = "";
|
||||
String OriginalfileName = "";
|
||||
String uploadDate = "";
|
||||
int cnt = 0;
|
||||
try {
|
||||
StringBuilder stb1 = new StringBuilder();
|
||||
Iterator<String> iter = request.getFileNames();
|
||||
|
||||
while (iter.hasNext()) {
|
||||
SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat ("yyyyMMddHHmmss", Locale.KOREA );
|
||||
Date currentTime = new Date ();
|
||||
|
||||
Random random = new Random(System.currentTimeMillis());
|
||||
String sNewFileName = random.nextInt(888888888)+100000000+"";
|
||||
uploadDate = mSimpleDateFormat.format(currentTime);
|
||||
|
||||
String uploadFileName = iter.next();
|
||||
MultipartFile mfile = (MultipartFile) request.getFile(uploadFileName);
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
OriginalfileName = mfile.getOriginalFilename();
|
||||
OriginalfileName = new String(OriginalfileName.getBytes("8859_1"), "utf-8");
|
||||
int index = OriginalfileName.lastIndexOf(".");
|
||||
String fileExtension = "." + OriginalfileName.substring(index + 1);
|
||||
String fileName = OriginalfileName.substring(0, index);
|
||||
reaultFileName = fileName +"_"+ sNewFileName + fileExtension;
|
||||
map.put("FILE_NAME",reaultFileName);
|
||||
map.put("UPLOAD_DATE",uploadDate);
|
||||
map.put("FILE_CONTENT",IOUtils.toByteArray(mfile.getInputStream()));
|
||||
cnt = fileService.uploadFile(map);
|
||||
|
||||
}
|
||||
|
||||
stb1.append("<script>window.onload = doInit;function doInit() {");
|
||||
stb1.append("parent.uploadCallback(\"<ret>");
|
||||
stb1.append("<key>/file/imageShow/"+uploadDate+"/</key>");
|
||||
stb1.append("<storedFileList>"+reaultFileName+"</storedFileList>");
|
||||
stb1.append("<localfileList>"+OriginalfileName+"</localfileList>");
|
||||
stb1.append("<fileSizeList></fileSizeList>");
|
||||
stb1.append("<maxUploadSize></maxUploadSize>");
|
||||
stb1.append("<deniedList></deniedList>");
|
||||
|
||||
if(cnt > 0){
|
||||
stb1.append("<deniedCodeList>101</deniedCodeList>");
|
||||
}else{
|
||||
stb1.append("<deniedCodeList>102</deniedCodeList>");
|
||||
}
|
||||
|
||||
stb1.append("</ret>\");}</script>");
|
||||
|
||||
HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper(res);
|
||||
wrapper.setContentType("text/html;charset=UTF-8");
|
||||
wrapper.setHeader("Content-length", "" + stb1.toString().getBytes().length);
|
||||
|
||||
logger.info(stb1.toString());
|
||||
res.getWriter().print(stb1.toString());
|
||||
} catch (SQLException | RuntimeException | IOException ex) {
|
||||
logger.error("SQLException | RuntimeException | IOException", ex);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/file/imageShow/{uploadDate}/{fileName:.+}")
|
||||
public void imageShow(@PathVariable("uploadDate") String uploadDate,
|
||||
@PathVariable("fileName") String fileName, HttpServletResponse response){
|
||||
OutputStream outputStream = null;
|
||||
try{
|
||||
logger.info("UPLOAD_DATE = "+ uploadDate);
|
||||
logger.info("fileName = "+ fileName);
|
||||
Map<String, Object> param = new HashMap<>();
|
||||
param.put("UPLOAD_DATE", uploadDate);
|
||||
param.put("FILE_NAME", fileName);
|
||||
Map<String, Object> map = fileService.imageShow(param);
|
||||
outputStream = response.getOutputStream();
|
||||
Blob blob = (Blob) map.get("FILE_CONTENT");
|
||||
SerialBlob sblob = new SerialBlob(blob);
|
||||
IOUtils.copy(sblob.getBinaryStream(), outputStream);
|
||||
}catch(IOException | RuntimeException | SQLException ex){
|
||||
logger.error("IOException | RuntimeException | SQLException ",ex);
|
||||
}finally {
|
||||
if(outputStream != null){
|
||||
try {
|
||||
outputStream.flush();
|
||||
outputStream.close();
|
||||
} catch (IOException e) {
|
||||
logger.error("IOException ",e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("/file/download")
|
||||
@ResponseBody
|
||||
public byte[] downProcess(HttpServletResponse response, @RequestBody Map<String, Object> param) throws IOException{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("fileName");
|
||||
File file = new File("c:/work/upload/" + map.get("filename"));
|
||||
System.out.println(map.get("filename").getClass().getName());
|
||||
byte[] bytes = FileCopyUtils.copyToByteArray(file);
|
||||
System.out.println(bytes);
|
||||
String fn = new String(file.getName().getBytes(), "iso_8859_1");
|
||||
|
||||
response.setHeader("Content-Disposition", "attachment;filename=\"" + fn + "\"");
|
||||
response.setContentLength(bytes.length);
|
||||
return bytes;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,165 @@
|
||||
package com.inswave.template.controller;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
import java.util.Iterator;
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.inswave.template.service.MemberService;
|
||||
import com.inswave.util.PageURIUtil;
|
||||
import com.inswave.util.UserInfo;
|
||||
|
||||
@Controller
|
||||
public class InitController {
|
||||
|
||||
@Autowired
|
||||
private MemberService service;
|
||||
|
||||
@Autowired
|
||||
private UserInfo userInfo;
|
||||
|
||||
public InitController() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 다국어 처리 Root Url 처리
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @author Inswave
|
||||
* @example websquare 진입 후 세션과 설정 값에 따른 화면 xml 분기를 위한 controller. 고려 대상은 websquare.jsp와 I18N.jsp. 화면 페이지의 정보는 properties파일에서 일괄 관리.
|
||||
* @todo 차후 interceptor에서 일괄 처리 가능한지 체크 해야 함.
|
||||
*/
|
||||
@RequestMapping("/I18N")
|
||||
public String indexMultiLang(HttpServletRequest request, HttpServletResponse response, Model model) throws RuntimeException {
|
||||
model.addAttribute("movePage", getLoginPage(request.getParameter("w2xPath")));
|
||||
return "websquare/I18N";
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 기본 Root Url 처리
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @author Inswave
|
||||
* @todo url의 경로가 /(root)인 경우 웹스퀘어 엔진에서 하위 컨텐츠 로딩 부분의 특이사항이 발견되어 redirect로 처리.수정 및 개선 필요.
|
||||
*/
|
||||
@RequestMapping(value = "/", method = RequestMethod.GET)
|
||||
public String IndexBase(HttpServletRequest request, Model model) throws RuntimeException {
|
||||
String initParam = request.getParameter("initp");
|
||||
if("bot".equals(initParam)){
|
||||
model.addAttribute("movePage", getAlwaysLoginPage(request.getParameter("w2xPath")));
|
||||
}else{
|
||||
model.addAttribute("movePage", getLoginPage(request.getParameter("w2xPath")));
|
||||
}
|
||||
|
||||
return "websquare/websquare";
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* WebSquare Url 처리한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @author Inswave
|
||||
* @todo url의 경로가 /(root)인 경우 웹스퀘어 엔진에서 하위 컨텐츠 로딩 부분의 특이사항이 발견되어 redirect로 처리.수정 및 개선 필요.
|
||||
*/
|
||||
@RequestMapping(value = "/ws", method = RequestMethod.GET)
|
||||
public String IndexWebSquare(HttpServletRequest request, Model model) throws RuntimeException {
|
||||
return "websquare/websquare";
|
||||
}
|
||||
|
||||
/**
|
||||
* SPA IFrame에서 호출하는 Blank 페이지를 반환하다.
|
||||
* @param request
|
||||
* @param model
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/blank.xml", method = RequestMethod.GET)
|
||||
public String callBlankPage(HttpServletRequest request, Model model) throws RuntimeException {
|
||||
return "websquare/blank";
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/cmw/test", method = RequestMethod.GET)
|
||||
public String cmwtest(HttpServletRequest request, Model model) throws RuntimeException {
|
||||
return "test";
|
||||
}
|
||||
|
||||
/**
|
||||
* 로그인 페이지 Url을 반환한다.
|
||||
*
|
||||
* @param w2xPath w2xPath 파라미터
|
||||
* @return 로그인 페이지 Url
|
||||
*/
|
||||
private String getLoginPage(String w2xPath) {
|
||||
String movePage = w2xPath;
|
||||
// session이 없을 경우 login 화면으로 이동.
|
||||
if (!userInfo.isLogined()) {
|
||||
// session이 있고 w2xPath가 없을 경우 index화면으로 이동.
|
||||
movePage = PageURIUtil.getLoginPage();
|
||||
} else {
|
||||
if (movePage == null) {
|
||||
// DB 설정조회 초기 page 구성
|
||||
movePage = PageURIUtil.getIndexPageURI(userInfo.getMainLayoutCode());
|
||||
|
||||
// DB에 값이 저장되어 있지 않은 경우 기본 index화면으로 이동
|
||||
if (movePage == null) {
|
||||
movePage = PageURIUtil.getIndexPageURI();
|
||||
}
|
||||
}
|
||||
}
|
||||
return movePage;
|
||||
}
|
||||
|
||||
private String getAlwaysLoginPage(String w2xPath) {
|
||||
|
||||
String movePage = PageURIUtil.getLoginPage();
|
||||
|
||||
if (!userInfo.isLogined()) {
|
||||
// session이 있고 w2xPath가 없을 경우 index화면으로 이동.
|
||||
movePage = PageURIUtil.getLoginPage();
|
||||
} else {
|
||||
movePage = PageURIUtil.getIndexPageURI(userInfo.getMainLayoutCode());
|
||||
}
|
||||
return movePage;
|
||||
}
|
||||
|
||||
/**
|
||||
* 로그인 페이지 Url을 반환한다.
|
||||
*
|
||||
* @param w2xPath w2xPath 파라미터
|
||||
* @return 로그인 페이지 Url
|
||||
*/
|
||||
private String getIndexPage(String w2xPath) {
|
||||
String movePage = w2xPath;
|
||||
|
||||
movePage = PageURIUtil.getIndexPageURI("W");
|
||||
return movePage;
|
||||
}
|
||||
|
||||
/**
|
||||
* refresh
|
||||
* @param request
|
||||
* @param model
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/refresh", method = RequestMethod.GET)
|
||||
public String callRefreshPage(HttpServletRequest request, Model model) {
|
||||
return "websquare/refresh";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,342 @@
|
||||
package com.inswave.template.controller;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.io.Reader;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.annotation.Resources;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import com.google.gson.JsonParser;
|
||||
import com.google.gson.JsonSyntaxException;
|
||||
import com.inswave.template.service.CommonService;
|
||||
import com.inswave.template.service.LoginService;
|
||||
import com.inswave.util.Result;
|
||||
import com.inswave.util.UserInfo;
|
||||
|
||||
@Controller
|
||||
public class LoginController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(LoginController.class);
|
||||
|
||||
@Autowired
|
||||
private LoginService loginService;
|
||||
|
||||
@Autowired
|
||||
private CommonService commonService;
|
||||
|
||||
@Autowired
|
||||
private UserInfo user;
|
||||
|
||||
/**
|
||||
* logout session 삭제 성공 : redirect로 기본 페이지 이동. session 삭제 오류 : 기존 화면으로 오류
|
||||
* 메세지 전송
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @returns modelAndView
|
||||
* @author Inswave
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping(value = "/main/logout")
|
||||
public @ResponseBody Map<String, Object> logout(HttpServletRequest request, HttpServletResponse response)
|
||||
throws RuntimeException {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setMsg(Result.STATUS_SUCESS, "정상적으로 로그아웃 되었습니다.");
|
||||
} catch (RuntimeException ex) {
|
||||
logger.error("RuntimeException", ex);
|
||||
result.setMsg(Result.STATUS_ERROR, "로그아웃 도중 오류가 발생하였습니다.", ex);
|
||||
} finally {
|
||||
request.getSession().invalidate();
|
||||
user.init();
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* login - 요청받은 아이디, 비밀번호를 회원DB와 비교한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param dma_loginCheck
|
||||
* { EMP_CD:"사원코드", PASSWORD:"비밀번호" }
|
||||
* @returns mv dma_resLoginCheck { EMP_CD:"사원코드", EMP_NM:"사원명", LOGIN:"상태" }
|
||||
* @author Inswave
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping(value = "/main/login")
|
||||
public @ResponseBody Map<String, Object> login(@RequestBody Map<String, Object> param, HttpServletRequest request,
|
||||
HttpServletResponse response) {
|
||||
HttpSession session = request.getSession();
|
||||
Map<String, Object> memberMap = new HashMap<String, Object>();
|
||||
String status = null;
|
||||
Map loginParam = null;
|
||||
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
|
||||
|
||||
|
||||
// loginParam은 param(EMP_CD/PW)의 값을 꺼내는 용도
|
||||
loginParam = (Map) param.get("dma_loginCheck");
|
||||
|
||||
// memberMap = loginService.selectMemberInfoForLogin(loginParam);
|
||||
/* if("green".equals(loginParam.get("PASSWORD")) && "bigdata".equals(loginParam.get("EMP_CD"))){
|
||||
memberMap.put("LOGIN", "success");
|
||||
status = (String) memberMap.get("LOGIN");
|
||||
}else{
|
||||
status = "error";
|
||||
}*/
|
||||
memberMap.put("LOGIN", "success");
|
||||
status = (String) memberMap.get("LOGIN");
|
||||
// 로그인 성공
|
||||
if (status.equals("success")) {
|
||||
|
||||
memberMap.put("USER_ID", loginParam.get("EMP_CD"));
|
||||
//logger.info(loginParam.get("EMP_CD")+"userid로그인기훈");
|
||||
memberMap.put("EMP_CD", loginParam.get("EMP_CD"));
|
||||
//logger.info(loginParam.get("EMP_CD")+"empcd로그인기훈");
|
||||
memberMap.put("PASSWORD", loginParam.get("PASSWORD"));
|
||||
//logger.info(loginParam.get("EMP_CD")+"pass로그인기훈");
|
||||
//memberMap.put("USER_ID", "bds");
|
||||
//개발 bds ,123 운영 bigdata,green
|
||||
//
|
||||
//memberMap.put("EMP_CD", "bds");
|
||||
//memberMap.put("PASSWORD","123");
|
||||
memberMap.put("FAVORITE_STORAGE", "D");
|
||||
memberMap.put("MAIN_LAYOUT_PAGE_CODE", "W");
|
||||
|
||||
String mainLayout = (String) memberMap.get("MAIN_LAYOUT_PAGE_CODE");
|
||||
|
||||
// main setting에 값이 저장되어 있지 않는 경우 insert.
|
||||
if (mainLayout == null) {
|
||||
mainLayout = user.getDefaultMainLayoutCode();
|
||||
}
|
||||
|
||||
session.setAttribute("EMP_CD", memberMap.get("EMP_CD"));
|
||||
session.setAttribute("USER_ID", memberMap.get("USER_ID"));
|
||||
session.setAttribute("EMP_NM", memberMap.get("EMP_NM"));
|
||||
session.setAttribute("MAIN_LAYOUT_PAGE_CODE", mainLayout);
|
||||
|
||||
// 로그인한 아이디가 시스템 관리자인지 여부를 체크한다.
|
||||
// 시스템 관리자 아이디는 websquareConfig.properties 파일의 system.admin.id
|
||||
// 속성에 정의하면 된다.
|
||||
// 시스템 관자자 아이디가 여러 개일 경우 콤마(",") 구분해서 작성할 수 있다.
|
||||
// boolean isAdmin = loginService.isAdmin((String)
|
||||
// memberMap.get("EMP_CD"));
|
||||
boolean isAdmin = true;
|
||||
session.setAttribute("IS_ADMIN", isAdmin);
|
||||
|
||||
// 클라이언트(UI)에 전달하는 IS_ADMIN 정보는 관리자인지의 여부에 따라 화면 제어가 필요한 로직 처리를
|
||||
// 위해서만 사용한다.
|
||||
// 서버 서비스에서의 로직 처리는 보안을 위해서 클라이언트에서 전달하는 IS_ADMIN 정보가 아닌
|
||||
// 서버 서비스에서 관리하는 UserInfo.getIsAdmin()에서 관리자 여부를 받아와서 판단해야 한다.
|
||||
|
||||
// 메뉴 정보 가져오기
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("USER_ID", memberMap.get("USER_ID"));
|
||||
List sessionMList = commonService.selectComMenuList(map);
|
||||
session.setAttribute("MENU_LIST", (List) sessionMList);
|
||||
user.setUserInfo(session);
|
||||
|
||||
result.setMsg(Result.STATUS_SUCESS, "로그인 성공");
|
||||
} else if (status.equals("error")) {
|
||||
result.setMsg(Result.STATUS_ERROR, "로그인 실패(패스워드 불일치)");
|
||||
} else {
|
||||
result.setMsg(Result.STATUS_ERROR, "사용자 정보가 존재하지 않습니다.");
|
||||
}
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(Result.STATUS_ERROR, "처리도중 시스템 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* 로그인한 사용자의 비밀번호를 변경한다.
|
||||
*
|
||||
* @date 2018.11.29
|
||||
* @param dma_password
|
||||
* { PASSWORD: "현재 비밀번호", NEW_PASSWORD: "새로운 비밀번호",
|
||||
* RETRY_PASSWORD: "새로운 비밀번호(재입력)" }
|
||||
* @returns mv dlt_result { FOCUS:"포커스를 이동할 컬럼 아이디" }
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/main/updatePassword")
|
||||
public @ResponseBody Map<String, Object> updatePassword(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
|
||||
try {
|
||||
Map passwordMap = (Map) param.get("dma_password");
|
||||
boolean checkCurrPassword = false;
|
||||
|
||||
// 시스템 관리자인 경우에는 현재 비밀번호 체크를 하지 않고 비밀번호를 변경한다.
|
||||
if (user.getIsAdmin()) {
|
||||
checkCurrPassword = true;
|
||||
|
||||
// 일반 사용자인 경우에는 현재 비밀번호를 체크하고 비밀번호를 변경한다.
|
||||
} else {
|
||||
// Map memberMap =
|
||||
// loginService.selectMemberInfoForLogin(passwordMap);
|
||||
Map memberMap = new HashMap<>();
|
||||
|
||||
memberMap.put("EMP_CD", "100001");
|
||||
memberMap.put("EMP_NM", "윤세진");
|
||||
memberMap.put("PASSWORD", "1234");
|
||||
memberMap.put("FAVORITE_STORAGE", "D");
|
||||
memberMap.put("MAIN_LAYOUT_PAGE_CODE", "W");
|
||||
memberMap.put("LOGIN", "success");
|
||||
|
||||
String status = (String) memberMap.get("LOGIN");
|
||||
|
||||
// 현재 비밀번호 정상 입력 여부 확인
|
||||
if (status.equals("success")) {
|
||||
checkCurrPassword = true;
|
||||
} else {
|
||||
Map resultMap = new HashMap<String, Object>();
|
||||
// TODO : FOCUS 정보가 정상적으로 Response에 담기지 않음
|
||||
resultMap.put("FOCUS", "PASSWORD");
|
||||
result.setData("dma_result", resultMap);
|
||||
result.setMsg(result.STATUS_ERROR, "현재 비밀번호를 잘못 입력하셨습니다.");
|
||||
return result.getResult();
|
||||
}
|
||||
}
|
||||
|
||||
String newPassword = (String) passwordMap.get("NEW_PASSWORD");
|
||||
String retryPassword = (String) passwordMap.get("RETRY_PASSWORD");
|
||||
|
||||
if (newPassword.equals(retryPassword)) {
|
||||
loginService.updatePassword(passwordMap);
|
||||
result.setMsg(result.STATUS_SUCESS, "비밀번호 변경에 성공했습니다.");
|
||||
} else {
|
||||
Map resultMap = new HashMap<String, Object>();
|
||||
resultMap.put("FOCUS", "NEW_PASSWORD");
|
||||
result.setData("dma_result", resultMap);
|
||||
result.setMsg(result.STATUS_ERROR, "신규 비밀번호와 신규 비밀번호(재입력) 항목의 비밀번호가 다르게 입력 되었습니다.");
|
||||
}
|
||||
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "비밀번호 변경 중 오류가 발생했습니다.", ex);
|
||||
}
|
||||
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : sso 연동 로그인 <pre> @author : kdw @Date : 2019. 10. 16.
|
||||
* </pre>
|
||||
*
|
||||
* @param String @return Map<String, Object> @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/com/ssologin/{access_token}", method = RequestMethod.GET)
|
||||
public String ssologin(@PathVariable String access_token, HttpServletRequest request,
|
||||
HttpServletResponse response) {
|
||||
Map<String, Object> memberMap = new HashMap<String, Object>();
|
||||
Result result = new Result();
|
||||
OutputStreamWriter wr = null;
|
||||
BufferedReader br = null;
|
||||
// 로그인시 토큰 생성
|
||||
try {
|
||||
Properties properties = new Properties();
|
||||
InputStream stream = getClass().getClassLoader().getResourceAsStream("inswave/config/db.properties");
|
||||
properties.load(stream);
|
||||
|
||||
String ssoUrl = properties.getProperty("login.url");
|
||||
|
||||
String strUrl = ssoUrl + "/api/users?access_token=" + access_token;
|
||||
URL url = new URL(strUrl);
|
||||
HttpURLConnection con = (HttpURLConnection) url.openConnection();
|
||||
con.setConnectTimeout(50000); // 서버에 연결되는 Timeout 시간 설정
|
||||
con.setReadTimeout(50000); // InputStream 읽어 오는 Timeout 시간 설정
|
||||
|
||||
con.setRequestMethod("POST");
|
||||
|
||||
// json으로 message를 전달하고자 할 때
|
||||
con.setRequestProperty("Content-Type", "application/json");
|
||||
con.setDoInput(true);
|
||||
con.setDoOutput(true); // POST 데이터를 OutputStream으로 넘겨 주겠다는 설정
|
||||
con.setUseCaches(false);
|
||||
con.setDefaultUseCaches(false);
|
||||
|
||||
wr = new OutputStreamWriter(con.getOutputStream());
|
||||
wr.flush();
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (con.getResponseCode() == HttpURLConnection.HTTP_OK) {
|
||||
// Stream을 처리해줘야 하는 귀찮음이 있음.
|
||||
br = new BufferedReader(new InputStreamReader(con.getInputStream(), "utf-8"));
|
||||
String line;
|
||||
while ((line = br.readLine()) != null) {
|
||||
sb.append(line).append("\n");
|
||||
}
|
||||
|
||||
JsonParser jsonParser = new JsonParser();
|
||||
JsonObject jsonObject = (JsonObject) jsonParser.parse(sb.toString());
|
||||
JsonObject member = (JsonObject) jsonObject.get("member");
|
||||
|
||||
HttpSession session = request.getSession();
|
||||
|
||||
String mainLayout = user.getDefaultMainLayoutCode();
|
||||
|
||||
memberMap.put("USER_ID", member.get("USER_ID").toString().replaceAll("\"", ""));
|
||||
|
||||
List sessionMList = commonService.selectComMenuList(memberMap);
|
||||
|
||||
session.setAttribute("IS_ADMIN", true);
|
||||
session.setAttribute("MENU_LIST", (List) sessionMList);
|
||||
session.setAttribute("MAIN_LAYOUT_PAGE_CODE", user.getDefaultMainLayoutCode());
|
||||
session.setAttribute("USER_ID", (String) memberMap.get("USER_ID"));
|
||||
session.setAttribute("EMP_CD", (String) memberMap.get("USER_ID"));
|
||||
user.setUserInfo(session);
|
||||
} else {
|
||||
return "redirect:"+ssoUrl;
|
||||
}
|
||||
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(Result.STATUS_ERROR, "로그인 실패");
|
||||
} catch (JsonSyntaxException | IOException e) {
|
||||
logger.error("JsonSyntaxException | IOException", e);
|
||||
result.setMsg(Result.STATUS_ERROR, "로그인 실패");
|
||||
}finally{
|
||||
try {
|
||||
if(br != null){
|
||||
br.close();
|
||||
}
|
||||
if(wr != null){
|
||||
wr.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
logger.error("IOException", e);
|
||||
}
|
||||
|
||||
}
|
||||
return "redirect:/";
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,277 @@
|
||||
package com.inswave.template.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.template.service.CommonService;
|
||||
import com.inswave.template.service.MainService;
|
||||
import com.inswave.util.Result;
|
||||
import com.inswave.util.UserInfo;
|
||||
|
||||
@Controller
|
||||
public class MainController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(MainController.class);
|
||||
|
||||
@Autowired
|
||||
private UserInfo user;
|
||||
|
||||
@Autowired
|
||||
private CommonService commonService;
|
||||
|
||||
@Autowired
|
||||
private MainService mainService;
|
||||
|
||||
@Value("${main.setting.code.DB}")
|
||||
private String dbCode;
|
||||
|
||||
@Value("${main.setting.code.LS}")
|
||||
private String lsCode;
|
||||
|
||||
@RequestMapping("/main/init")
|
||||
public @ResponseBody Map<String, Object> getInitMainInfo() {
|
||||
Result result = new Result();
|
||||
Map memberParam = null;
|
||||
Map setInfo = null;
|
||||
List menuList = null;
|
||||
Map defInfo = null;
|
||||
|
||||
try {
|
||||
memberParam = user.getUserInfoByBase();
|
||||
defInfo = new HashMap();
|
||||
defInfo.put("EMP_CD", user.getUserId());
|
||||
defInfo.put("EMP_NM", user.getUserName());
|
||||
if (user.getIsAdmin()) {
|
||||
defInfo.put("IS_ADMIN", "Y");
|
||||
} else {
|
||||
defInfo.put("IS_ADMIN", "N");
|
||||
}
|
||||
// result.setData("dlt_menu", commonService.selectMenuList(memberParam));
|
||||
result.setData("dlt_menu", commonService.selectComMenuList(memberParam));
|
||||
result.setData("dlt_fav", commonService.selectFavListByEmpCd(user.getUserId()));
|
||||
result.setData("dma_defInfo", defInfo);
|
||||
// result.setData("dlt_programAuthority", commonService.selectProgramAuthorityList(memberParam));
|
||||
// result.setMsg(result.STATUS_SUCESS, "메뉴정보가 조회 되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, null, ex);
|
||||
}
|
||||
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* 로그인된 사용자의 메인 설정 정보를 가져온다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @author InswaveSystems
|
||||
* @example 샘플 코드
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
@RequestMapping("/main/selectBmMainSetting")
|
||||
public @ResponseBody Map<String, Object> selectBmMainSetting() {
|
||||
Result result = new Result();
|
||||
|
||||
try {
|
||||
result.setData("dma_setting", commonService.selectBmMainSetting(user.getUserInfo()));
|
||||
result.setMsg(result.STATUS_SUCESS, "정상적으로 조회가 완료되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, null, ex);
|
||||
}
|
||||
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* MAIN 화면에 관련된 설정 정보 업데이트
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {Object} argument 파라미터 정보
|
||||
* @returns {Object} 반환 변수 및 객체
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
@RequestMapping("/main/updateBmMainSetting")
|
||||
public @ResponseBody Map<String, Object> updateBmMainSetting(@RequestBody Map<String, Object> param, HttpServletRequest request,
|
||||
HttpServletResponse response) {
|
||||
|
||||
int rsNum = 0;
|
||||
Result result = new Result();
|
||||
Map<String, String> paramMap = (Map) param.get("dma_setting");
|
||||
|
||||
try {
|
||||
paramMap.put("EMP_CD", user.getUserId());
|
||||
rsNum = commonService.updateBmMainSetting(paramMap);
|
||||
if (rsNum == 1) {
|
||||
user.updateMainLayoutCode(request.getSession(), (String) paramMap.get("MAIN_LAYOUT_PAGE_CODE"));
|
||||
result.setData("dma_setting", (Map) param.get("dma_setting"));
|
||||
result.setMsg(result.STATUS_SUCESS);
|
||||
} else {
|
||||
result.setMsg(result.STATUS_ERROR, "업데이트 정보가 저장도중 오류가 발생하였습니다.");
|
||||
}
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "저장 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* get favorites list
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param argument 파라미터 정보
|
||||
* @returns <ModelAndView> 반환 변수 및 객체
|
||||
* @author InswaveSystems
|
||||
* @example 샘플 코드
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
@RequestMapping("/main/selectFavList")
|
||||
public @ResponseBody Map<String, Object> selectFavList() {
|
||||
Result result = new Result();
|
||||
|
||||
try {
|
||||
result.setData("dlt_fav", commonService.selectFavListByEmpCd(user.getUserId()));
|
||||
result.setMsg(result.STATUS_SUCESS, "메뉴정보가 정상 조회되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "메뉴정보 조회도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* 즐겨찾기 메뉴정보를 입력, 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @returns mv
|
||||
* @author Inswave
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/main/updateFav")
|
||||
public @ResponseBody Map<String, Object> updateFav(@RequestBody Map<String, Object> param) {
|
||||
int rsInt = 0;
|
||||
Map dbParam = null;
|
||||
String updateStatus = null;
|
||||
Result result = new Result();
|
||||
|
||||
try {
|
||||
dbParam = (Map) param.get("dma_fav");
|
||||
updateStatus = (String) dbParam.get("STATUS");
|
||||
if (updateStatus == null) {
|
||||
throw new NullPointerException("상태값이 누락되었습니다.");
|
||||
}
|
||||
dbParam.put("EMP_CD", user.getUserId());
|
||||
|
||||
rsInt = commonService.updateBmFavorite(dbParam);
|
||||
if (rsInt > 0) {
|
||||
result.setData("updateResult", updateStatus + ":" + rsInt);
|
||||
} else {
|
||||
result.setMsg(result.STATUS_ERROR, "업데이트 도중 오류가 발생하였습니다. 잠시 후 다시 시도해주시기 바랍니다.");
|
||||
}
|
||||
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "업데이트 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* 메인 화면의 업데이트 내용을 가져온다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} Map : { EMP_CD :"사용자 ID" }
|
||||
* @returns mv List (사용자의 메뉴 리스트 )
|
||||
* @author Inswave
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/main/selectReleaseForMain")
|
||||
public @ResponseBody Map<String, Object> selectReleaseForMain(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map dbParam = (Map) param.get("dma_search");
|
||||
String totalSearch_Yn = (String) dbParam.get("TOTAL_YN"); // 총건수 조회 여부
|
||||
Map totalCnt = null;
|
||||
|
||||
if ((String) dbParam.get("START_NUM") == null) {
|
||||
dbParam.put("START_NUM", 0);
|
||||
}
|
||||
|
||||
if ((String) dbParam.get("END_NUM") == null) {
|
||||
dbParam.put("END_NUM", 5);
|
||||
}
|
||||
|
||||
if ((String) dbParam.get("IS_USE") == null) {
|
||||
dbParam.put("IS_USE", 'Y');
|
||||
}
|
||||
|
||||
if ((String) dbParam.get("SEQ_ORDER") == null) {
|
||||
dbParam.put("SEQ_ORDER", "DESC");
|
||||
}
|
||||
|
||||
if ((String) dbParam.get("selectType") == null) {
|
||||
dbParam.put("selectType", "S");// 요약
|
||||
}
|
||||
|
||||
if (totalSearch_Yn == null) {
|
||||
Map initMap = null;
|
||||
result.setData("TOTAL_CNT", initMap);
|
||||
} else {
|
||||
if (totalSearch_Yn.equals("Y")) {
|
||||
totalCnt = mainService.selectReleaseCnt();
|
||||
result.setData("TOTAL_CNT", totalCnt);
|
||||
} else {
|
||||
Map initMap = null;
|
||||
result.setData("TOTAL_CNT", initMap);
|
||||
}
|
||||
}
|
||||
result.setData("dlt_release", mainService.selectRelease(dbParam));
|
||||
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, null, ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* ReleaseUpdate - 메인화면의 release 리스트를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dlt_release ( Release 관리 상태인( C,U,D ) 리스트 )
|
||||
* @returns mv dlt_result ( 입력,수정,삭제된 건수 및 상태 ), dlt_release ( 메뉴관리 리스트 ) author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/main/saveReleaseForMain")
|
||||
public @ResponseBody Map<String, Object> saveReleaseForMain(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map release = mainService.saveRelease((List) param.get("dlt_release"));
|
||||
result.setData("dma_result", release);
|
||||
result.setMsg(result.STATUS_SUCESS, "Release관리 정보가 저장 되었습니다. 입력 : " + (String) release.get("ICNT") + "건, 수정 : " + (String) release.get("UCNT")
|
||||
+ "건, 삭제 : " + (String) release.get("DCNT") + "건");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "Release관리 정보 저장도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,238 @@
|
||||
package com.inswave.template.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.template.service.MemberService;
|
||||
import com.inswave.util.Result;
|
||||
|
||||
@Controller
|
||||
public class MemberController {
|
||||
private static final Logger logger = Logger.getLogger(MemberController.class);
|
||||
|
||||
@Autowired
|
||||
private MemberService service;
|
||||
|
||||
/**
|
||||
* searchMemberBasicOrganization - 조회조건에 따른 인사기본관리 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @returns mv dlt_memberOrganization ( 인사관리 소속 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/member/searchMemberBasicOrganization")
|
||||
public @ResponseBody Map<String, Object> searchMemberBasicOrganization() {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_memberOrganization", service.selectMemberBasicOrganization());
|
||||
result.setMsg(result.STATUS_SUCESS, "인사기본 소속 리스트가 조회되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "인사기본 소속 리스트를 가져오는 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* selectMemberSearchItem - 인사기본관리 아이템 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} 없음
|
||||
* @returns mv dlt_memberSearchItem ( 인사기본관리 아이템 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/member/selectMemberSearchItem")
|
||||
public @ResponseBody Map<String, Object> selectMemberSearchItem() {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_memberSearchItem", service.selectMemberSearchItem());
|
||||
result.setMsg(result.STATUS_SUCESS, "인사기본관리 아이템 리스트가 조회 되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "인사기본관리 아이템 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* searchMemberBasic - 조회조건에 따른 인사기본관리 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dma_search { TYPE:"사원명 또는 사원코드 또는 직위 또는 소속", CONTENTS:"검색어", IS_USE:"사용여부" }
|
||||
* @returns mv dlt_memberBasic ( 인사기본관리 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/member/searchMemberBasic")
|
||||
public @ResponseBody Map<String, Object> searchMemberBasic(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_memberBasic", service.selectMemberBasic((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "인사기본관리 리스트가 조회되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "인사기본관리 리스트를 가져오는 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* updateMemberBasic - 인사관리 리스트를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dlt_memberBasic ( 인사기본관리 상태인( C,U,D ) 리스트 )
|
||||
* @returns mv dlt_result ( 입력,수정,삭제된 건수 및 상태 ), dlt_memberBasic ( 인사기본관리 리스트 )
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/member/updateMemberBasic")
|
||||
public @ResponseBody Map<String, Object> updateMemberBasic(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = service.saveMemberBasicList((List) param.get("dlt_memberBasic"));
|
||||
result.setData("dma_result", hash);
|
||||
result.setData("dlt_memberBasic", service.selectMemberBasic((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "인사기본관리 정보가 저장 되었습니다. 입력 : " + (String) hash.get("ICNT") + "건, 수정 : " + (String) hash.get("UCNT") + "건, 삭제 : "
|
||||
+ (String) hash.get("DCNT") + "건");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "인사기본관리 정보 저장도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* 개인 기본 데이터를 조회한다.
|
||||
*
|
||||
* @param param 클라이언트에서 전달한 데이터 맵 객체
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/member/selectMemberOragn")
|
||||
public @ResponseBody Map<String, Object> selectMemberOragn(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("data", service.selectMemberOragn((Map) param.get("dma_memberBasic")));
|
||||
result.setMsg(result.STATUS_SUCESS, "개인 기본 데이터가 조회 되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "개인 기본 데이터 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* 가족정보 데이터를 조회한다.
|
||||
*
|
||||
* @param param 클라이언트에서 전달한 데이터 맵 객체
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/member/selectMemberFamily")
|
||||
public @ResponseBody Map<String, Object> selectMemberFamily(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("data", service.selectMemberFamilyList((Map) param.get("dma_memberBasic")));
|
||||
result.setMsg(result.STATUS_SUCESS, "개인 기본 데이터가 조회 되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "개인 기본 데이터 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* 프로젝트 데이터를 조회한다.
|
||||
*
|
||||
* @param param 클라이언트에서 전달한 데이터 맵 객체
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/member/selectMemberProject")
|
||||
public @ResponseBody Map<String, Object> selectMemberProject(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("data", service.selectMemberProjectList((Map) param.get("dma_memberBasic")));
|
||||
result.setMsg(result.STATUS_SUCESS, "개인 기본 데이터가 조회 되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "개인 기본 데이터 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/member/saveMemberInfo")
|
||||
public @ResponseBody Map<String, Object> saveMemberInfo(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
Map hash = new HashMap();
|
||||
try {
|
||||
hash.put("basic", service.saveMemberBasic((Map) param.get("basic")));
|
||||
|
||||
result.setData("data", hash);
|
||||
result.setMsg(result.STATUS_SUCESS, "개인 기본 데이터가 수정되었습니다..");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "개인 기본 데이터 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/member/saveMemberProject")
|
||||
public @ResponseBody Map<String, Object> saveMemberProject(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
Map hash = new HashMap();
|
||||
try {
|
||||
hash.put("project", service.saveMemberProject((List) param.get("project")));
|
||||
|
||||
result.setData("data", hash);
|
||||
result.setMsg(result.STATUS_SUCESS, "프로젝트 정보 데이터가 수정되었습니다..");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "프로젝트 정보 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/member/saveMemberFamily")
|
||||
public @ResponseBody Map<String, Object> saveMemberFamily(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
Map hash = new HashMap();
|
||||
try {
|
||||
hash.put("family", service.saveMemberFamily((List) param.get("family")));
|
||||
|
||||
result.setData("data", hash);
|
||||
result.setMsg(result.STATUS_SUCESS, "가족 정보 데이터가 수정되었습니다..");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "가족 데이터 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 데이터를 조회한다.
|
||||
*
|
||||
* @param param 클라이언트에서 전달한 데이터 맵 객체
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/member/selectZipCodeList")
|
||||
public @ResponseBody Map<String, Object> selectZipCodeList(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("data", service.selectZipCodeList((Map) param.get("param")));
|
||||
result.setMsg(result.STATUS_SUCESS, "우편번호 데이터를 조회하였습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "우편번호 데이터 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.inswave.template.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.template.service.MenuService;
|
||||
import com.inswave.util.Result;
|
||||
|
||||
@Controller
|
||||
public class MenuController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(MenuController.class);
|
||||
|
||||
@Autowired
|
||||
private MenuService menuService;
|
||||
|
||||
/**
|
||||
* searchMenu - 조회조건에 따른 메뉴관리 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dma_search { TYPE:"메뉴명 또는 메뉴코드 또는 부모메뉴명 또는 메뉴레벨", CONTENTS:"검색어", IS_USE:"사용여부" }
|
||||
* @returns mv dlt_menu ( 메뉴관리 리스트 ) author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/menu/searchMenu")
|
||||
public @ResponseBody Map<String, Object> searchMenu(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_menu", menuService.selectMenu((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "메뉴 리스트가 조회되었습니다.");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "메뉴 리스트를 가져오는 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* updateMenu - 메뉴관리 리스트를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dlt_menu ( 메뉴관리 상태인( C,U,D ) 리스트 ), dma_search { TYPE:"메뉴명 또는 메뉴코드 또는 부모메뉴명 또는 메뉴레벨", CONTENTS:"검색어" }
|
||||
* @returns mv dlt_result ( 입력,수정,삭제된 건수 및 상태 ), dlt_menu ( 메뉴관리 리스트 ) author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/menu/updateMenu")
|
||||
public @ResponseBody Map<String, Object> updateMenu(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = menuService.saveMenu((List) param.get("dlt_menu"));
|
||||
result.setData("dma_result", hash);
|
||||
result.setData("dlt_menu", menuService.selectMenu((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "메뉴관리 정보가 저장 되었습니다. 입력 : " + (String) hash.get("ICNT") + "건, 수정 : " + (String) hash.get("UCNT") + "건, 삭제 : "
|
||||
+ (String) hash.get("DCNT") + "건");
|
||||
} catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "메뉴관리 정보 저장도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,112 @@
|
||||
package com.inswave.template.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.template.service.OrganizationService;
|
||||
import com.inswave.util.Result;
|
||||
|
||||
@Controller
|
||||
public class OrganizationController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(OrganizationController.class);
|
||||
|
||||
@Autowired
|
||||
private OrganizationService service;
|
||||
|
||||
/**
|
||||
* selectOrganizaionSearchItem - 조직관리 아이템 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @returns mv dlt_organizaionSearchItem ( 조직관리 아이템 리스트 )
|
||||
* @author Inswave
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/organization/selectOrganizaionSearchItem")
|
||||
public @ResponseBody Map<String, Object> selectOrganizaionSearchItem() {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_organizationSearchItem", service.selectOrganizaionSearchItem());
|
||||
result.setData("dlt_organizationBoss", service.selectOrganizationBoss());
|
||||
result.setMsg(result.STATUS_SUCESS, "조직관리 아이템 리스트가 조회 되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "조직관리 아이템 리스트를 가져오는 도중 오류가 발생하였습니다,", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* searchOrganization - 조회조건에 따른 조직기본관리 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dma_search { TYPE:"소속명칭 또는 소속코드 또는 상위소속명 또는 직책자", CONTENTS:"검색어", IS_USE:"사용여부" }
|
||||
* @returns mv dlt_organizationBasic ( 조직관리 리스트 )
|
||||
* @author Inswave
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/organization/searchOrganization")
|
||||
public @ResponseBody Map<String, Object> searchOrganization(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_organizationBasic", service.selectOrganization((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "조직기본관리 리스트가 조회되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "조직기본관리 리스트를 가져오는 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* updateOrganizationBasic
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dlt_organizationBasic ( 조직기본관리 상태인( C,U,D ) 리스트 )
|
||||
* @returns mv dlt_result ( 입력,수정,삭제된 건수 및 상태 ), dlt_organizationBasic ( 조직기본관리 리스트 )
|
||||
* @author Inswave
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/organization/updateOrganizationBasic")
|
||||
public @ResponseBody Map<String, Object> updateOrganizationBasic(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = service.saveOrganizaionBasicList((List) param.get("dlt_organizationBasic"));
|
||||
result.setData("dma_result", hash);
|
||||
result.setData("dlt_organizationBasic", service.selectOrganization((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "인사기본관리 정보가 저장 되었습니다. 입력 : " + (String) hash.get("ICNT") + "건, 수정 : " + (String) hash.get("UCNT") + "건, 삭제 : "
|
||||
+ (String) hash.get("DCNT") + "건");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "인사기본관리 정보 저장도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* 조직 데이터를 조회한다.
|
||||
*
|
||||
* @param param 클라이언트에서 전달한 데이터 맵 객체
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/organization/selectOrganBasicList")
|
||||
public @ResponseBody Map<String, Object> getOrganBasicList(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("data", service.selectOrganizaionBasicList((Map) param.get("dlt_organizationBasic")));
|
||||
result.setMsg(result.STATUS_SUCESS, "조직 정보를 조회하였습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "조직 정보를 조회하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,160 @@
|
||||
package com.inswave.template.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.template.service.ProgramService;
|
||||
import com.inswave.util.Result;
|
||||
|
||||
@Controller
|
||||
public class ProgramController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(ProgramController.class);
|
||||
@Autowired
|
||||
private ProgramService programService;
|
||||
|
||||
/**
|
||||
* searchProgram - 조회조건에 따른 프로그램관리 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dma_search { TYPE:"프로그램명 또는 프로그램코드 또는 부모프로그램명 또는 프로그램레벨", CONTENTS:"검색어", IS_USE:"사용여부" }
|
||||
* @returns mv dlt_program ( 프로그램관리 리스트 ) author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/program/searchProgram")
|
||||
public @ResponseBody Map<String, Object> searchProgram(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_program", programService.selectProgram((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "프로그램 리스트가 조회되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "프로그램 리스트를 가져오는 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* updateProgram - 프로그램관리 리스트를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dlt_program ( 프로그램관리 상태인( C,U,D ) 리스트 ), dma_search { TYPE:"프로그램명 또는 프로그램코드 또는 부모프로그램명 또는 프로그램레벨", CONTENTS:"검색어" }
|
||||
* @returns mv dlt_result ( 입력,수정,삭제된 건수 및 상태 ), dlt_program ( 프로그램관리 리스트 ) author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/program/updateProgram")
|
||||
public @ResponseBody Map<String, Object> updateProgram(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = programService.saveProgram((List) param.get("dlt_program"));
|
||||
result.setData("dma_result", hash);
|
||||
result.setData("dlt_program", programService.selectProgram((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "프로그램관리 정보가 저장 되었습니다. 입력 : " + (String) hash.get("ICNT") + "건, 수정 : " + (String) hash.get("UCNT") + "건, 삭제 : "
|
||||
+ (String) hash.get("DCNT") + "건");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "프로그램관리 정보 저장도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* updateProgram - 프로그램관리 리스트를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dlt_program ( 상태인( C,U,D ) 프로그램 리스트 ), dlt_programAuthority ( 상태인( C,U,D ) 프로그램별 권한 리스트 )
|
||||
* @returns mv dlt_result ( 입력,수정,삭제된 건수 및 상태 ), dlt_program ( 프로그램관리 리스트 ) author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/program/saveProgramAll")
|
||||
public @ResponseBody Map<String, Object> saveProgramAll(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = programService.saveProgramAll((List) param.get("dlt_program"), (List) param.get("dlt_programAuthority"));
|
||||
|
||||
result.setData("dma_result_All", hash);
|
||||
result.setMsg(result.STATUS_SUCESS,
|
||||
"프로그램 별 권한 정보가 저장 되었습니다. 입력 프로그램 건수: " + (String) hash.get("ICNT_MENU") + "건 :: 입력 프로그램 권한 건수: " + (String) hash.get("ICNT_ACCESS")
|
||||
+ "건 :: 수정 프로그램 건수: " + (String) hash.get("UCNT_MENU") + "건 :: 수정 프로그램 권한 건수: " + (String) hash.get("UCNT_ACCESS")
|
||||
+ "건 :: 삭제 프로그램 건수: " + (String) hash.get("DCNT_MENU") + "건 :: 삭제 프로그램 권한 건수: " + (String) hash.get("DCNT_ACCESS") + "건");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "권한 및 권한별 사원정보 삭제도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* searchProgramAuthority - 조회조건에 따른 프로그램별 접근 프로그램 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dma_program ( 프로그램관리 리스트 )
|
||||
* @returns mv dlt_programAuthority ( 프로그램별 권한 리스트 ) author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/program/searchProgramAuthority")
|
||||
public @ResponseBody Map<String, Object> searchProgramAuthority(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_programAuthority", programService.selectProgramAuthority((Map) param.get("dma_program")));
|
||||
result.setMsg(result.STATUS_SUCESS, "프로그램별 권한 리스트가 조회되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "프로그램별 권한 리스트를 가져오는 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* updateProgramAuthority - 프로그램별 접근 프로그램 리스트를 등록 수정 삭제 한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dlt_programAuthority ( 프로그램관리 상태인( C,U,D ) 리스트 ), dma_program { MENU_CD:"프로그램코드" }
|
||||
* @returns mv dlt_result ( 입력,수정,삭제된 건수 및 상태 ), dlt_programAuthority ( 프로그램별 접근 프로그램 리스트 ) author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/program/updateProgramAuthority")
|
||||
public @ResponseBody Map<String, Object> updateProgramAuthority(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map hash = programService.saveProgramAuthority((List) param.get("dlt_programAuthority"));
|
||||
result.setData("dma_result", hash);
|
||||
result.setData("dlt_programAuthority", programService.selectProgramAuthority((Map) param.get("dma_program")));
|
||||
result.setMsg(result.STATUS_SUCESS, "프로그램별 권한 리스트가 저장 되었습니다. 입력 : " + (String) hash.get("ICNT") + "건, 수정 : " + (String) hash.get("UCNT")
|
||||
+ "건, 삭제 : " + (String) hash.get("DCNT") + "건");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "프로그램별 권한 리스트 저장도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* excludeSelectProgramAuthority - 조회조건에 따른 프로그램별 접근 프로그램 등록 리스트를 조회한다.
|
||||
*
|
||||
* @date 2017.12.22
|
||||
* @param {} dma_program { TYPE:"권한명 또는 권한코드", CONTENTS:"검색어", MENU_CD:"프로그램코드" }
|
||||
* @returns mv dlt_programAuthority ( 프로그램별 접근 프로그램 리스트 ) author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
@RequestMapping("/program/excludeSelectProgramAuthority")
|
||||
public @ResponseBody Map<String, Object> excludeSelectProgramAuthority(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setData("dlt_programAuthority", programService.excludeSelectProgramAuthority((Map) param.get("dma_search")));
|
||||
result.setMsg(result.STATUS_SUCESS, "프로그램별 권한 리스트가 조회되었습니다.");
|
||||
}catch (SQLException ex) {
|
||||
logger.error("SQLException", ex);
|
||||
result.setMsg(result.STATUS_ERROR, "프로그램별 권한 리스트를 가져오는 도중 오류가 발생하였습니다.", ex);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package com.inswave.template.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
@Mapper("authorityDao")
|
||||
public interface AuthorityDao {
|
||||
|
||||
// 권한이 부여되지 않은 직원 리스트
|
||||
public List<Map> excludeSelectAuthorityMemberList(Map param) throws SQLException;
|
||||
|
||||
// 권한리스트 조회
|
||||
public List<Map> selectAuthorityList(Map param) throws SQLException;
|
||||
|
||||
public List<Map> selectAuthoritySearchItem() throws SQLException;
|
||||
|
||||
// 권한이 부여된 사용자 리스트 조회
|
||||
public List<Map> selectAuthorityMemberList(Map param) throws SQLException;
|
||||
|
||||
// 권한 등록
|
||||
public int insertAuthority(Map param) throws SQLException;
|
||||
|
||||
// 권한 삭제
|
||||
public int deleteAuthority(Map param) throws SQLException;
|
||||
|
||||
// 권한 수정
|
||||
public int updateAuthority(Map param) throws SQLException;
|
||||
|
||||
// 권한별 등록사원 입력
|
||||
public int insertAuthorityMember(Map param) throws SQLException;
|
||||
|
||||
// 권한별 등록사원 삭제
|
||||
public int deleteAuthorityMember(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* 권한코드로 권한별 등록사원 정보 한번에 삭제하기
|
||||
*
|
||||
* @date 2016. 12. 05.
|
||||
* @param
|
||||
* @returns
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public int deleteAuthorityMemberAll(Map param) throws SQLException;
|
||||
}
|
||||
@ -0,0 +1,130 @@
|
||||
package com.inswave.template.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface CommonDao {
|
||||
|
||||
// 메뉴 조회 (로그인 사용자에게 권한이 있는 메뉴만 조회함)
|
||||
public List<HashMap<String, Object>> selectMenuList(Map param) throws SQLException;
|
||||
|
||||
// 사용자별 프로그램 권한 리스트 조회 (로그인 사용자에게 권한이 있는 프로그램 권한만 조회함)
|
||||
public List selectProgramAuthorityList(Map param) throws SQLException;
|
||||
|
||||
public List selectCommonSearchItem() throws SQLException;
|
||||
|
||||
// 공통코드 및 코드 그룹 조회
|
||||
public List selectCommonGroup(Map param) throws SQLException;
|
||||
|
||||
public List selectCommonCode() throws SQLException;
|
||||
|
||||
public List selectCommonCodeList(Map param) throws SQLException;
|
||||
|
||||
// 공통코드 그룹 C, U, D
|
||||
public int deleteCommonGrp(Map param) throws SQLException;
|
||||
|
||||
public int insertCommonGrp(Map param) throws SQLException;
|
||||
|
||||
public int updateCommonGrp(Map param) throws SQLException;
|
||||
|
||||
// 공통코드 C, U, D
|
||||
public int deleteCommonCode(Map param) throws SQLException;
|
||||
|
||||
public int insertCommonCode(Map param) throws SQLException;
|
||||
|
||||
public int updateCommonCode(Map param) throws SQLException;
|
||||
|
||||
// 공통코드
|
||||
public List<Map> selectCodeList(Map param) throws SQLException;
|
||||
|
||||
// 사용자별 즐겨찾기 리스트
|
||||
public List<Map> selectFavListByEmpCd(String empCd) throws SQLException;
|
||||
|
||||
/**
|
||||
* insert bmFavorite
|
||||
*
|
||||
* @date 2016. 8. 24.
|
||||
* @param <MAP> #{EMP_CD}, #{MENU_CD}
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public int insertBmFavorite(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* delete bmFavorite
|
||||
*
|
||||
* @date 2016. 8. 24.
|
||||
* @param <MAP> #{EMP_CD}, #{MENU_CD}
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public int deleteBmFavorite(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* update bmFavorite
|
||||
*
|
||||
* @date 2016. 8. 24.
|
||||
* @param <MAP> #{EMP_CD}, #{MENU_CD}
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public int updateBmFavorite(Map param) throws SQLException;
|
||||
|
||||
// MAIN SETTING 관리
|
||||
public int insertBmMainSetting(Map param) throws SQLException;
|
||||
|
||||
public int updateBmMainSetting(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* select BM_MAIN_SETTING by EMP_CD
|
||||
*
|
||||
* @date 2016. 8. 10.
|
||||
* @param param EMP_CD가 담긴 MAP
|
||||
* @returns <Map> 단건 BM_MAIN_SETTING - FAVORITE_STORAGE, MAIN_LAYOUT_PAGE_CODE
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public Map selectBmMainSetting(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* 그룹코드로 세부코드 정보 한번에 삭제하기
|
||||
*
|
||||
* @date 2016. 12. 05.
|
||||
* @param
|
||||
* @returns
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public int deleteCommonCodeAll(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 공통 - 메뉴 리스트
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 10. 16.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> selectComMenuList(Map<String, Object> map) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 공통 - 프로그램 리스트
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 10. 16.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> selectComProgramList(Map<String, Object> map) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.inswave.template.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
@Mapper("fileDao")
|
||||
public interface FileDao {
|
||||
|
||||
public List<Map> selectFileGrp(Map param) throws SQLException;
|
||||
|
||||
public int insertFileGrp(Map param) throws SQLException;
|
||||
|
||||
public int insertFileList(Map param) throws SQLException;
|
||||
|
||||
public List<Map> searchFileList(Map param) throws SQLException;
|
||||
|
||||
int uploadFile(Map<String, Object> map) throws SQLException;
|
||||
|
||||
Map<String, Object> imageShow(Map<String, Object> map) throws SQLException;
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.inswave.template.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
@Mapper("loginDao")
|
||||
public interface LoginDao {
|
||||
|
||||
// 사용자 정보 조회 (로그인 체크용도로 사용 )
|
||||
public Map selectMemberInfoForLogin(Map param) throws SQLException;
|
||||
|
||||
// 사용자의 비밀번호를 업데이트한다.
|
||||
public int updatePassword(Map param) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
package com.inswave.template.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
@Mapper("memberDao")
|
||||
public interface MemberDao {
|
||||
|
||||
// 사용자 권한 정보 조회 (로그인시 )
|
||||
public List<Map> selectLoginAuthCheck(Map param) throws SQLException;
|
||||
|
||||
// 인사기본관리 조회
|
||||
public List<Map> selectMemberBasicOrganization() throws SQLException;
|
||||
|
||||
public List<Map> selectMemberBasic(Map param) throws SQLException;
|
||||
|
||||
public List<Map> selectMemberSearchItem() throws SQLException;
|
||||
|
||||
public List<Map> selectMemberOragn(Map param) throws SQLException;
|
||||
|
||||
public List<Map> getLoginInfo(Map param) throws SQLException;
|
||||
|
||||
public int insertMemberBasic(Map param) throws SQLException;
|
||||
|
||||
public int updateMemberBasic(Map param) throws SQLException;
|
||||
|
||||
public int deleteMemberBasic(Map param) throws SQLException;
|
||||
|
||||
// 가족 정보
|
||||
public List<Map> selectMemberFamilyList(Map param) throws SQLException;
|
||||
|
||||
public int selectMemberFamilyMaxSeq(Map param) throws SQLException;
|
||||
|
||||
public int insertMemberFamily(Map param) throws SQLException;
|
||||
|
||||
public int updateMemberFamily(Map param) throws SQLException;
|
||||
|
||||
public int deleteMemberFamily(Map param) throws SQLException;
|
||||
|
||||
// 프로젝트 정보
|
||||
public List<Map> selectMemberProjectList(Map param) throws SQLException;
|
||||
|
||||
public int selectMemberProjectMaxSeq(Map param) throws SQLException;
|
||||
|
||||
public int insertMemberProject(Map param) throws SQLException;
|
||||
|
||||
public int updateMemberProject(Map param) throws SQLException;
|
||||
|
||||
public int deleteMemberProject(Map param) throws SQLException;
|
||||
|
||||
// 우편번호 조회
|
||||
public List<Map> selectZipCodeList(Map param) throws SQLException;
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
package com.inswave.template.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
@Mapper("menuDao")
|
||||
public interface MenuDao {
|
||||
|
||||
// 메뉴관리 조회
|
||||
public List<Map> selectMenu(Map param) throws SQLException;
|
||||
|
||||
// 메뉴관리 C, U, D
|
||||
public int insertMenu(Map param) throws SQLException;
|
||||
|
||||
public int deleteMenu(Map param) throws SQLException;
|
||||
|
||||
public int updateMenu(Map param) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package com.inswave.template.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
@Mapper("organizationDao")
|
||||
public interface OrganizationDao {
|
||||
|
||||
// 조직기본관리 조회
|
||||
public List<Map> selectOrganizaion(Map param) throws SQLException;
|
||||
|
||||
public List<Map> selectOrganizaionBoss() throws SQLException;
|
||||
|
||||
public List<Map> selectOrganizaionSearchItem() throws SQLException;
|
||||
|
||||
public List<Map> selectOrganizaionBasicList(Map param) throws SQLException;
|
||||
|
||||
// 조직기본관리 C, U, D
|
||||
public int insertOrganizaionBasic(Map param) throws SQLException;
|
||||
|
||||
public int updateOrganizaionBasic(Map param) throws SQLException;
|
||||
|
||||
public int deleteOrganizaionBasic(Map param) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.inswave.template.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
@Mapper("programDao")
|
||||
public interface ProgramDao {
|
||||
|
||||
// 프로그램관리 조회
|
||||
public List<Map> selectProgram(Map param) throws SQLException;
|
||||
|
||||
// 프로그램관리 C, U, D
|
||||
public int insertProgram(Map param) throws SQLException;
|
||||
|
||||
public int deleteProgram(Map param) throws SQLException;
|
||||
|
||||
public int updateProgram(Map param) throws SQLException;
|
||||
|
||||
// 프로그램별 접근프로그램 조회
|
||||
public List<Map> selectProgramAuthority(Map param) throws SQLException;
|
||||
|
||||
public List<Map> excludeSelectProgramAuthority(Map param) throws SQLException;
|
||||
|
||||
// 프로그램별 접근프로그램 C, D
|
||||
public int insertProgramAuthority(Map param) throws SQLException;
|
||||
|
||||
public int updateProgramAuthority(Map param) throws SQLException;
|
||||
|
||||
public int deleteProgramAuthority(Map param) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.inswave.template.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
@Mapper("spReleaseInfoDao")
|
||||
public interface SpReleaseInfoDao {
|
||||
/**
|
||||
* release 게시판용
|
||||
*
|
||||
* @date 2016. 8. 25.
|
||||
* @param <Map> #{IS_USE}, #{START_NUM} , #{END_NUM}, SEQ_ORDER
|
||||
* @returns <List> 반환 변수 및 객체
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
List selectReleaseForSummary(Map param) throws SQLException;
|
||||
|
||||
// 메뉴관리 C, U, D
|
||||
public int insertRelease(Map param) throws SQLException;
|
||||
|
||||
public int deleteRelease(Map param) throws SQLException;
|
||||
|
||||
public int updateRelease(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* release 게시판용
|
||||
*
|
||||
* @date 2016. 9. 12.
|
||||
* @param <Map>
|
||||
* @returns <List> 총 건수
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public Map selectReleaseCnt() throws SQLException;
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
package com.inswave.template.provider;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.json.simple.parser.JSONParser;
|
||||
import org.json.simple.parser.ParseException;
|
||||
import org.springframework.web.context.WebApplicationContext;
|
||||
import org.springframework.web.context.support.WebApplicationContextUtils;
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
import com.inswave.util.MapUtil;
|
||||
|
||||
import websquare.http.WebSquareContext;
|
||||
import websquare.http.controller.grid.excel.write.IExternalGridDataProvider;
|
||||
import websquare.util.XMLUtil;
|
||||
|
||||
public class ExcelDown implements IExternalGridDataProvider {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(ExcelDown.class);
|
||||
|
||||
public String[] getData(Document requestObj) throws RuntimeException {
|
||||
|
||||
// Get WebApplicationContext
|
||||
WebSquareContext context = WebSquareContext.getContext();
|
||||
HttpServletRequest request = context.getRequest();
|
||||
HttpSession httpSession = request.getSession();
|
||||
ServletContext sc = httpSession.getServletContext();
|
||||
WebApplicationContext wContext = WebApplicationContextUtils.getWebApplicationContext(sc);
|
||||
|
||||
List<LinkedHashMap<String, String>> resultList = null;
|
||||
|
||||
// Loading Parameter
|
||||
String serviceId = XMLUtil.getText(requestObj, "service");
|
||||
String methodId = XMLUtil.getText(requestObj, "method");
|
||||
try {
|
||||
JSONParser parse = new JSONParser();
|
||||
Map paramData = (Map) parse.parse(XMLUtil.getText(requestObj, "param"));
|
||||
paramData.put("OFFSET_ROW", 0);
|
||||
paramData.put("PAGE_SIZE", 10000);
|
||||
|
||||
// Call the method of the service
|
||||
Object service = wContext.getBean(serviceId);
|
||||
Method method = service.getClass().getMethod(methodId, Map.class);
|
||||
resultList = (List<LinkedHashMap<String, String>>) method.invoke(service, paramData);
|
||||
|
||||
if ((resultList != null) && (resultList.size() > 0)) {
|
||||
return MapUtil.hashMapValuesToArray(resultList);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
} catch (ParseException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
|
||||
logger.error("ParseException | NoSuchMethodException | IllegalAccessException | InvocationTargetException",e);
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.inswave.template.provider;
|
||||
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
import websquare.http.controller.grid.excel.write.IExternalGridDataProvider;
|
||||
|
||||
public class ExcelDownHeader implements IExternalGridDataProvider {
|
||||
|
||||
public String[] getData(Document requestObj) throws RuntimeException {
|
||||
String[] returnData = { "" };
|
||||
return returnData;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.inswave.template.provider;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.json.simple.parser.JSONParser;
|
||||
import org.json.simple.parser.ParseException;
|
||||
import org.springframework.web.context.WebApplicationContext;
|
||||
import org.springframework.web.context.support.WebApplicationContextUtils;
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
import com.inswave.util.MapUtil;
|
||||
|
||||
import websquare.http.WebSquareContext;
|
||||
import websquare.http.controller.grid.excel.write.IExternalSplitProvider;
|
||||
import websquare.util.XMLUtil;
|
||||
|
||||
public class ExcelSplitDown implements IExternalSplitProvider {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(ExcelSplitDown.class);
|
||||
|
||||
int offsetRow = 0;
|
||||
boolean isEnd = false;
|
||||
|
||||
/**
|
||||
* getData에서 데이터 생성시 OutOfMemory 가 발생하지 않도록 적정선의 데이터를 생성하여 리턴한다.
|
||||
*
|
||||
* @param requestObj
|
||||
* The Document Object of the Request Object
|
||||
* @return String[] 문자열 배열
|
||||
* @throws ParseException
|
||||
* @throws NoSuchMethodException
|
||||
* @throws InvocationTargetException
|
||||
* @throws IllegalAccessException
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public String[] getData(Document requestObj) throws RuntimeException {
|
||||
|
||||
// // 시작 메모리 측정
|
||||
// System.gc();
|
||||
// long startMemory = Runtime.getRuntime().totalMemory() -
|
||||
// Runtime.getRuntime().freeMemory();
|
||||
//
|
||||
// // 시작 시간 측정
|
||||
// long startTime = System.currentTimeMillis();
|
||||
|
||||
// Get WebApplicationContext
|
||||
WebSquareContext context = WebSquareContext.getContext();
|
||||
HttpServletRequest request = context.getRequest();
|
||||
HttpSession httpSession = request.getSession();
|
||||
ServletContext sc = httpSession.getServletContext();
|
||||
WebApplicationContext wContext = WebApplicationContextUtils.getWebApplicationContext(sc);
|
||||
|
||||
List<LinkedHashMap<String, String>> resultList = new ArrayList<>();
|
||||
|
||||
// Loading Parameter
|
||||
String serviceId = XMLUtil.getText(requestObj, "service");
|
||||
String methodId = XMLUtil.getText(requestObj, "method");
|
||||
try {
|
||||
JSONParser parse = new JSONParser();
|
||||
Map paramData = (Map) parse.parse(XMLUtil.getText(requestObj, "param"));
|
||||
paramData.put("OFFSET_ROW", offsetRow);
|
||||
paramData.put("PAGE_SIZE", 1000);
|
||||
// Call the method of the service
|
||||
Object service = wContext.getBean(serviceId);
|
||||
Method method = service.getClass().getMethod(methodId, Map.class);
|
||||
resultList = (List<LinkedHashMap<String, String>>) method.invoke(service, paramData);
|
||||
|
||||
if ((resultList != null && resultList.size() <= 0) || offsetRow >= 9000) {
|
||||
isEnd = true;
|
||||
} else {
|
||||
offsetRow += 1000;
|
||||
}
|
||||
|
||||
if ((resultList != null) && (resultList.size() > 0)) {
|
||||
return MapUtil.hashMapValuesToArray(resultList);
|
||||
|
||||
// String[] resultArray =
|
||||
// MapUtil.hashMapValuesToArray(resultList);
|
||||
//
|
||||
// // 종료 메모리 측정
|
||||
// System.gc();
|
||||
// long endMemory = Runtime.getRuntime().totalMemory() -
|
||||
// Runtime.getRuntime().freeMemory();
|
||||
//
|
||||
// // 종료 시작 측정
|
||||
// long endtTime = System.currentTimeMillis();
|
||||
//
|
||||
// return resultArray;
|
||||
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
} catch (ParseException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
|
||||
logger.error("ParseException | NoSuchMethodException | IllegalAccessException | InvocationTargetException",e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* sendCompleted 가 true를 리턴하면 getData() 를 더 호출하지 않고 종료된다
|
||||
*/
|
||||
public boolean sendCompleted() throws RuntimeException {
|
||||
return isEnd;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.inswave.template.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface AuthorityService {
|
||||
|
||||
//권한리스트 조회
|
||||
public List selectAuthorityList(Map param) throws SQLException;
|
||||
public List<Map> selectAuthoritySearchItem() throws SQLException;
|
||||
|
||||
//권한 부여 사용자 조회
|
||||
public List selectAuthorityMemberList(Map param) throws SQLException;
|
||||
|
||||
//권한이 부여되지 않은 사용자 조회
|
||||
public List<Map> excludeSelectAuthorityMemberList(Map param) throws SQLException;
|
||||
|
||||
//권한리스트 저장, 등록, 삭제
|
||||
public Map saveAuthority(List param) throws SQLException;
|
||||
|
||||
//권한별 등록사원 입력, 수정, 삭제
|
||||
public Map saveAuthorityMember(List param) throws SQLException;
|
||||
|
||||
//권한리스트 및 권한별 사원리스트 입력, 수정, 삭제
|
||||
public Map saveAuthorityAll(List paramAuth, List paramAuthMember) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,85 @@
|
||||
package com.inswave.template.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface CommonService {
|
||||
|
||||
// 사용자별 메뉴 리스트 조회 (로그인 사용자에게 권한이 있는 메뉴만 조회함)
|
||||
public List selectMenuList(Map param) throws SQLException;
|
||||
|
||||
// 사용자별 프로그램 권한 리스트 조회 (로그인 사용자에게 권한이 있는 프로그램 권한만 조회함)
|
||||
public List selectProgramAuthorityList(Map param) throws SQLException;
|
||||
|
||||
// 공통코드관리 조회
|
||||
public List selectCommonGroup(Map param) throws SQLException;
|
||||
|
||||
public List selectCommonCodeAll() throws SQLException;
|
||||
|
||||
public List selectCommonCodeList(Map param) throws SQLException;
|
||||
|
||||
public List selectCommonSearchItem() throws SQLException;
|
||||
|
||||
// 공통관리 코드그룹 저장
|
||||
public Map saveCodeGrpList(List param) throws SQLException;
|
||||
|
||||
// 공통관리 코드 저장
|
||||
public Map saveCodeList(List param) throws SQLException;
|
||||
|
||||
// 공통관리 코드그룹 저장
|
||||
public Map saveCodeGrpListAll(List paramCodeGrp, List paramCode) throws SQLException;
|
||||
|
||||
// 공통코드 조회
|
||||
public List<Map> selectCodeList(Map param) throws SQLException;
|
||||
|
||||
// Main Setting 저장
|
||||
public int insertBmMainSetting(Map param) throws SQLException;
|
||||
|
||||
// Main Setting 업데이트
|
||||
public int updateBmMainSetting(Map param) throws SQLException;
|
||||
|
||||
// EMP_CD로 단건 BmMainSetting 조회
|
||||
public Map selectBmMainSetting(Map param) throws SQLException;
|
||||
|
||||
// 즐겨찾기 삭제
|
||||
public int deleteBmFavorite(Map param) throws SQLException;
|
||||
|
||||
// 즐겨찾기 추가
|
||||
public int insertBmFavorite(Map param) throws SQLException;
|
||||
|
||||
// select 사용자별 즐겨찾기 리스트
|
||||
public List selectFavListByEmpCd(String empCd) throws SQLException;
|
||||
|
||||
// 상태 값에 따라 즐겨찾기 추가/삭제/업데이트
|
||||
public int updateBmFavorite(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 공통 - 메뉴 리스트
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 10. 16.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> selectComMenuList(Map<String, Object> map) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 공통 - 프로그램 리스트
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 10. 16.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> selectComProgramList(Map<String, Object> map) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.inswave.template.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface FileService {
|
||||
|
||||
public List<Map> selectFileGrp(Map param) throws SQLException;
|
||||
|
||||
public int insertFileGrp(Map param) throws SQLException;
|
||||
|
||||
public Map insertFileList(List param) throws SQLException;
|
||||
//public int insertFileList(List param);
|
||||
|
||||
public List<Map> searchFileList(Map param) throws SQLException;
|
||||
|
||||
int uploadFile(Map<String, Object> map) throws SQLException;
|
||||
|
||||
Map<String, Object> imageShow(Map<String, Object> map) throws SQLException;
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.inswave.template.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface LoginService {
|
||||
|
||||
// 사용자 정보 조회 (로그인 체크용도로 사용 )
|
||||
public Map selectMemberInfoForLogin(Map param) throws SQLException;
|
||||
|
||||
// 해당 사용자 아이디가 관리자 아이디인지를 검사한다.
|
||||
public boolean isAdmin(String userId) throws SQLException;
|
||||
|
||||
// 사용자의 비밀번호를 업데이트한다.
|
||||
public int updatePassword(Map param) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.inswave.template.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface MainService {
|
||||
/**
|
||||
* Release 게시판 항목을 가져온다. selectType으로 실행할 query를 분기처리.
|
||||
*
|
||||
* @date 2016.08.26
|
||||
* @param param selectType, #{IS_USE}, #{START_NUM} , #{END_NUM}, SEQ_ORDER
|
||||
* @author InswaveSystems
|
||||
* @example selectType == "S" : 요약본.
|
||||
*/
|
||||
public List selectRelease(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* Release 게시판 항목을 수정한다. selectType으로 실행할 query를 분기처리.
|
||||
*
|
||||
* @date 2016.09.09
|
||||
* @param param
|
||||
* @author InswaveSystems
|
||||
* @example selectType == "U" : 요약본.
|
||||
*/
|
||||
public Map saveRelease(List param) throws SQLException;
|
||||
|
||||
/**
|
||||
* Release 게시판의 총 건수를 구한다.
|
||||
*
|
||||
* @date 2016.09.12
|
||||
* @param param
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
*/
|
||||
public Map selectReleaseCnt() throws SQLException;
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
package com.inswave.template.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
public interface MemberService {
|
||||
|
||||
// 인사기본관리(기본정보) 조회
|
||||
public List<Map> selectMemberBasicOrganization() throws SQLException;
|
||||
|
||||
public List<Map> selectMemberBasic(Map param) throws SQLException;
|
||||
|
||||
public List<Map> selectMemberSearchItem() throws SQLException;
|
||||
|
||||
// 인사기본관리 저장(기본정보) 저장
|
||||
public Map saveMemberBasicList(List param) throws SQLException;
|
||||
|
||||
public List<Map> selectMemberOragn(Map param) throws SQLException;
|
||||
|
||||
public List<Map> getLoginInfo(Map param) throws SQLException;
|
||||
|
||||
public Map saveMemberBasic(Map param) throws SQLException;
|
||||
|
||||
public List<Map> selectMemberFamilyList(Map param) throws SQLException;
|
||||
|
||||
public int selectMemberFamilyMaxSeq(Map param) throws SQLException;
|
||||
|
||||
public Map saveMemberFamily(List param) throws SQLException;
|
||||
|
||||
public List<Map> selectMemberProjectList(Map param) throws SQLException;
|
||||
|
||||
public int selectMemberProjectMaxSeq(Map param) throws SQLException;
|
||||
|
||||
public Map saveMemberProject(List param) throws SQLException;
|
||||
|
||||
public List<Map> selectZipCodeList(Map param) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.inswave.template.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface MenuService {
|
||||
|
||||
// 메뉴관리 조회
|
||||
public List<Map> selectMenu(Map param) throws SQLException;
|
||||
|
||||
// 메뉴관리 저장(기본정보)
|
||||
public Map saveMenu(List param) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.inswave.template.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface OrganizationService {
|
||||
|
||||
// 조직기본관리 정보 조회
|
||||
public List<Map> selectOrganization(Map param) throws SQLException;
|
||||
|
||||
public List<Map> selectOrganizationBoss() throws SQLException;
|
||||
|
||||
public List<Map> selectOrganizaionSearchItem() throws SQLException;
|
||||
|
||||
public List<Map> selectOrganizaionBasicList(Map param) throws SQLException;
|
||||
|
||||
// 조직기본관리 저장(기본정보)
|
||||
public Map saveOrganizaionBasicList(List param) throws SQLException;
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.inswave.template.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface ProgramService {
|
||||
|
||||
// 프로그램관리 조회
|
||||
public List<Map> selectProgram(Map param) throws SQLException;
|
||||
|
||||
// 프로그램관리 저장(기본정보)
|
||||
public Map saveProgram(List param) throws SQLException;
|
||||
|
||||
// 프로그램별 접근권한 조회
|
||||
public List<Map> selectProgramAuthority(Map param) throws SQLException;
|
||||
|
||||
public List<Map> excludeSelectProgramAuthority(Map param) throws SQLException;
|
||||
|
||||
// 프로그램별 접근권한 저장(기본정보)
|
||||
public Map saveProgramAuthority(List param) throws SQLException;
|
||||
|
||||
// 프로그램리스트 및 프로그램별 접근권한 리스트 입력, 수정, 삭제
|
||||
public Map saveProgramAll(List paramProgram, List paramProgramAcess) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,175 @@
|
||||
package com.inswave.template.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.inswave.template.dao.AuthorityDao;
|
||||
import com.inswave.template.service.AuthorityService;
|
||||
|
||||
@Service
|
||||
public class AuthorityServiceImpl implements AuthorityService {
|
||||
|
||||
@Resource(name = "authorityDao")
|
||||
private AuthorityDao authorityDao;
|
||||
|
||||
/**
|
||||
* 권한관리 조회
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List selectAuthorityList(Map param) throws SQLException {
|
||||
return authorityDao.selectAuthorityList(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 권한별 등록사원 조회
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List selectAuthorityMemberList(Map param) throws SQLException {
|
||||
return authorityDao.selectAuthorityMemberList(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 아직 권한부여가 되지 않은 등록사원 조회
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> excludeSelectAuthorityMemberList(Map param) throws SQLException {
|
||||
return authorityDao.excludeSelectAuthorityMemberList(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 권한관리 조회(검색어)
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectAuthoritySearchItem() throws SQLException{
|
||||
return authorityDao.selectAuthoritySearchItem();
|
||||
}
|
||||
|
||||
/**
|
||||
* 여러 건의 메뉴 권한 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveAuthority(List param) throws SQLException {
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
iCnt += authorityDao.insertAuthority(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
uCnt += authorityDao.updateAuthority(data);
|
||||
} else if (rowStatus.equals("D")) {
|
||||
dCnt += authorityDao.deleteAuthority(data);
|
||||
}
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 여러 건의 권한별 사원 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveAuthorityMember(List param) throws SQLException {
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
iCnt += authorityDao.insertAuthorityMember(data);
|
||||
} else if (rowStatus.equals("D")) {
|
||||
dCnt += authorityDao.deleteAuthorityMember(data);
|
||||
}
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 권한정보 삭제시 하위의 권한별 사원 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param Client 전달한 데이터 리스트 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveAuthorityAll(List paramAuth, List paramAuthMember) throws SQLException {
|
||||
|
||||
int iCnt_grp = 0; // 등록한 그룹코드 건수
|
||||
int iCnt_code = 0; // 등록한 세부코드 건수
|
||||
int uCnt_grp = 0; // 수정한 그룹코드 건수
|
||||
int uCnt_code = 0; // 수정한 세부코드 건수
|
||||
int dCnt_grp = 0; // 삭제한 그룹코드 건수
|
||||
int dCnt_code = 0; // 삭제한 세부코드 건수
|
||||
|
||||
for (int i = 0; i < paramAuth.size(); i++) {
|
||||
Map dataAuth = (Map) paramAuth.get(i);
|
||||
String rowStatusAuth = (String) dataAuth.get("rowStatus");
|
||||
if (rowStatusAuth.equals("C")) {
|
||||
iCnt_grp += authorityDao.insertAuthority(dataAuth);
|
||||
|
||||
for (int j = 0; j < paramAuthMember.size(); j++) {
|
||||
Map dataAuthMember = (Map) paramAuthMember.get(j);
|
||||
String rowStatusAuthMember = (String) dataAuthMember.get("rowStatus");
|
||||
if (rowStatusAuthMember.equals("C")) {
|
||||
iCnt_code += authorityDao.insertAuthorityMember(dataAuthMember);
|
||||
}
|
||||
}
|
||||
} else if (rowStatusAuth.equals("U")) {
|
||||
for (int j = 0; j < paramAuthMember.size(); j++) {
|
||||
Map dataAuthMember = (Map) paramAuthMember.get(j);
|
||||
String rowStatusAuthMember = (String) dataAuthMember.get("rowStatus");
|
||||
if (rowStatusAuthMember.equals("C")) {
|
||||
iCnt_code += authorityDao.insertAuthorityMember(dataAuthMember);
|
||||
} else if (rowStatusAuthMember.equals("D")) {
|
||||
dCnt_code += authorityDao.deleteAuthorityMember(dataAuthMember);
|
||||
}
|
||||
}
|
||||
uCnt_grp += authorityDao.updateAuthority(dataAuth);
|
||||
// 상위 코드가 삭제이면 하위코드는 모두 삭제
|
||||
} else if (rowStatusAuth.equals("D")) {
|
||||
authorityDao.deleteAuthorityMemberAll(dataAuth); // 하위 코드 정보는 전체 삭제
|
||||
dCnt_grp += authorityDao.deleteAuthority(dataAuth);
|
||||
}
|
||||
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT_AUTH", String.valueOf(iCnt_grp));
|
||||
result.put("ICNT_MEM", String.valueOf(iCnt_code));
|
||||
result.put("UCNT_AUTH", String.valueOf(uCnt_grp));
|
||||
result.put("UCNT_MEM", String.valueOf(uCnt_code));
|
||||
result.put("DCNT_AUTH", String.valueOf(dCnt_grp));
|
||||
result.put("DCNT_MEM", String.valueOf(dCnt_code));
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,347 @@
|
||||
package com.inswave.template.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.inswave.template.dao.CommonDao;
|
||||
import com.inswave.template.service.CommonService;
|
||||
|
||||
@Service
|
||||
public class CommonServiceImpl implements CommonService {
|
||||
|
||||
@Resource(name = "commonDao")
|
||||
private CommonDao commonDao;
|
||||
|
||||
/**
|
||||
* 헤더메뉴, 사이드메뉴 조회 (로그인 사용자에게 권한이 있는 메뉴만 조회함)
|
||||
*
|
||||
* @param param
|
||||
* 사용자 로그인 아이디가 저장된 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List selectMenuList(Map map) throws SQLException {
|
||||
|
||||
List<HashMap<String, Object>> list = new ArrayList<>();
|
||||
list = commonDao.selectMenuList(map);
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 사용자별 프로그램 권한 리스트 조회 (로그인 사용자에게 권한이 있는 프로그램 권한만 조회함)
|
||||
*
|
||||
* @param param
|
||||
* 사용자 로그인 아이디가 저장된 맵 객체
|
||||
*/
|
||||
public List selectProgramAuthorityList(Map param) throws SQLException{
|
||||
return commonDao.selectProgramAuthorityList(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 공통그룹 조회
|
||||
*
|
||||
* @param param
|
||||
* Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List selectCommonGroup(Map param) throws SQLException {
|
||||
return commonDao.selectCommonGroup(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 모든 공통코드 조회
|
||||
*
|
||||
* @param param
|
||||
* Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List selectCommonCodeAll() throws SQLException {
|
||||
return commonDao.selectCommonCode();
|
||||
}
|
||||
|
||||
/**
|
||||
* 공통코드 조회
|
||||
*
|
||||
* @param param
|
||||
* Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List selectCommonCodeList(Map param) throws SQLException {
|
||||
return commonDao.selectCommonCodeList(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 공통코드 조회
|
||||
*
|
||||
* @param param
|
||||
* Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectCodeList(Map param) throws SQLException {
|
||||
return commonDao.selectCodeList(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 공통관리 조회(검색어)
|
||||
*
|
||||
* @param param
|
||||
* Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List selectCommonSearchItem() throws SQLException {
|
||||
return commonDao.selectCommonSearchItem();
|
||||
}
|
||||
|
||||
/**
|
||||
* 여러 건의 코드 그룹 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param
|
||||
* Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveCodeGrpList(List param) throws SQLException {
|
||||
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
iCnt += commonDao.insertCommonGrp(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
uCnt += commonDao.updateCommonGrp(data);
|
||||
} else if (rowStatus.equals("D")) {
|
||||
dCnt += commonDao.deleteCommonGrp(data);
|
||||
}
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 여러 건의 코드 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param
|
||||
* Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveCodeList(List param) throws SQLException {
|
||||
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
iCnt += commonDao.insertCommonCode(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
uCnt += commonDao.updateCommonCode(data);
|
||||
} else if (rowStatus.equals("D")) {
|
||||
dCnt += commonDao.deleteCommonCode(data);
|
||||
}
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* update Main Setting update된 것이 없을 경우 (입력된 정보가 없을 경우) insert.
|
||||
*
|
||||
* @date 2016.08.08
|
||||
* @param <Map>
|
||||
* FAVORITE_STORAGE, MAIN_LAYOUT_PAGE_CODE, UPDATED_ID, EMP_CD
|
||||
* @returns <int> 0일 경우 실패
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public int updateBmMainSetting(Map param) throws SQLException {
|
||||
int rs = 0;
|
||||
rs = commonDao.updateBmMainSetting(param);
|
||||
if (rs == 0) {
|
||||
rs = commonDao.insertBmMainSetting(param);
|
||||
}
|
||||
return rs;
|
||||
}
|
||||
|
||||
/**
|
||||
* update Main Setting update된 것이 없을 경우 (입력된 정보가 없을 경우) insert.
|
||||
*
|
||||
* @date 2016.08.08
|
||||
* @param <Map>
|
||||
* FAVORITE_STORAGE, MAIN_LAYOUT_PAGE_CODE, UPDATED_ID, EMP_CD
|
||||
* @returns <int> 0일 경우 실패
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public int insertBmMainSetting(Map param) throws SQLException {
|
||||
return commonDao.insertBmMainSetting(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* EMP_CD로 단건 BmMainSetting 조회
|
||||
*
|
||||
* @date 2016. 8. 10.
|
||||
* @param <Map>
|
||||
* EMP_CD가 담긴 Map
|
||||
* @returns <Map> BmMainSetting - FAVORITE_STORAGE, MAIN_LAYOUT_PAGE_CODE
|
||||
* @author InswaveSystems
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
public Map selectBmMainSetting(Map param) throws SQLException {
|
||||
return commonDao.selectBmMainSetting(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* select 사용자별 즐겨찾기 리스트
|
||||
*
|
||||
* @date 2016. 8. 24.
|
||||
* @param String
|
||||
* #{EMP_CD}
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
@Override
|
||||
public List selectFavListByEmpCd(String empCd) throws SQLException {
|
||||
return commonDao.selectFavListByEmpCd(empCd);
|
||||
}
|
||||
|
||||
/**
|
||||
* insert bmFavorite
|
||||
*
|
||||
* @date 2016. 8. 24.
|
||||
* @param <MAP>
|
||||
* #{EMP_CD}, #{MENU_CD}
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public int insertBmFavorite(Map param) throws SQLException {
|
||||
return commonDao.insertBmFavorite(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* delete bmFavorite
|
||||
*
|
||||
* @date 2016. 8. 24.
|
||||
* @param <MAP>
|
||||
* #{EMP_CD}, #{MENU_CD}
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public int deleteBmFavorite(Map param) throws SQLException {
|
||||
return commonDao.insertBmFavorite(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* STATUS의 값에 따라 insert,delete,update 실행.
|
||||
*
|
||||
* @date 2016. 8. 24.
|
||||
* @param <MAP>
|
||||
* #{EMP_CD}, #{MENU_CD}, STATUS:[I|D|U]
|
||||
* @author InswaveSystems
|
||||
*/
|
||||
public int updateBmFavorite(Map param) throws SQLException{
|
||||
int rs = 0;
|
||||
String status = (String) param.get("STATUS");
|
||||
if (status != null) {
|
||||
if (status.equals("I")) {
|
||||
commonDao.deleteBmFavorite(param);
|
||||
rs = commonDao.insertBmFavorite(param);
|
||||
} else if (status.equals("D")) {
|
||||
rs = commonDao.deleteBmFavorite(param);
|
||||
} else if (status.equals("U")) {
|
||||
rs = commonDao.updateBmFavorite(param);
|
||||
}
|
||||
}
|
||||
return rs;
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴관리정보 삭제시 하위의 메뉴 접근 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param
|
||||
* Client 전달한 데이터 리스트 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveCodeGrpListAll(List paramCodeGrp, List paramCode) throws SQLException {
|
||||
|
||||
int iCnt_grp = 0; // 등록한 그룹코드 건수
|
||||
int iCnt_code = 0; // 등록한 세부코드 건수
|
||||
int uCnt_grp = 0; // 수정한 그룹코드 건수
|
||||
int uCnt_code = 0; // 수정한 세부코드 건수
|
||||
int dCnt_grp = 0; // 삭제한 그룹코드 건수
|
||||
int dCnt_code = 0; // 삭제한 세부코드 건수
|
||||
|
||||
for (int i = 0; i < paramCodeGrp.size(); i++) {
|
||||
Map dataGrp = (Map) paramCodeGrp.get(i);
|
||||
String rowStatusGrp = (String) dataGrp.get("rowStatus");
|
||||
if (rowStatusGrp.equals("C")) {
|
||||
iCnt_grp += commonDao.insertCommonGrp(dataGrp);
|
||||
|
||||
for (int j = 0; j < paramCode.size(); j++) {
|
||||
Map dataGrpCode = (Map) paramCode.get(j);
|
||||
String rowStatusMenuAuth = (String) dataGrpCode.get("rowStatus");
|
||||
if (rowStatusMenuAuth.equals("C")) {
|
||||
iCnt_code += commonDao.insertCommonCode(dataGrpCode);
|
||||
}
|
||||
}
|
||||
} else if (rowStatusGrp.equals("U")) {
|
||||
for (int j = 0; j < paramCode.size(); j++) {
|
||||
Map dataGrpCode = (Map) paramCode.get(j);
|
||||
String rowStatusMenuAuth = (String) dataGrpCode.get("rowStatus");
|
||||
if (rowStatusMenuAuth.equals("C")) {
|
||||
iCnt_code += commonDao.insertCommonCode(dataGrpCode);
|
||||
} else if (rowStatusMenuAuth.equals("U")) {
|
||||
uCnt_code += commonDao.updateCommonCode(dataGrpCode);
|
||||
} else if (rowStatusMenuAuth.equals("D")) {
|
||||
dCnt_code += commonDao.deleteCommonCode(dataGrpCode);
|
||||
}
|
||||
}
|
||||
uCnt_grp += commonDao.updateCommonGrp(dataGrp);
|
||||
} else if (rowStatusGrp.equals("D")) {
|
||||
commonDao.deleteCommonCodeAll(dataGrp); // 하위 코드 정보는 전체 삭제
|
||||
dCnt_grp += commonDao.deleteCommonGrp(dataGrp);
|
||||
}
|
||||
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT_GRP", String.valueOf(iCnt_grp));
|
||||
result.put("ICNT_CODE", String.valueOf(iCnt_code));
|
||||
result.put("UCNT_GRP", String.valueOf(uCnt_grp));
|
||||
result.put("UCNT_CODE", String.valueOf(uCnt_code));
|
||||
result.put("DCNT_GRP", String.valueOf(dCnt_grp));
|
||||
result.put("DCNT_CODE", String.valueOf(dCnt_code));
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> selectComMenuList(Map<String, Object> map) throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return commonDao.selectComMenuList(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> selectComProgramList(Map<String, Object> map) throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return commonDao.selectComProgramList(map);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.inswave.template.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.inswave.template.dao.FileDao;
|
||||
import com.inswave.template.service.FileService;
|
||||
|
||||
@Service
|
||||
public class FileServiceImpl implements FileService{
|
||||
@Resource(name = "fileDao")
|
||||
private FileDao fileDao;
|
||||
|
||||
@Override
|
||||
public List<Map> selectFileGrp(Map param) throws SQLException {
|
||||
return fileDao.selectFileGrp(param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertFileGrp(Map param) throws SQLException {
|
||||
return fileDao.insertFileGrp(param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map insertFileList(List param) throws SQLException {
|
||||
int iCnt = 0;
|
||||
// for loop
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
Map data = (Map) param.get(i);
|
||||
fileDao.insertFileList(data);
|
||||
iCnt++;
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
//result.put("UCNT", String.valueOf(uCnt));
|
||||
//result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
//Map result = new HashMap();
|
||||
//result.put("STATUS", "S");
|
||||
//result.put("ICNT", String.valueOf(iCnt));
|
||||
// return iCnt;
|
||||
//return fileDao.insertFileList(param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> searchFileList(Map param) throws SQLException {
|
||||
return fileDao.searchFileList(param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int uploadFile(Map<String, Object> map) throws SQLException{
|
||||
// TODO Auto-generated method stub
|
||||
return fileDao.uploadFile(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> imageShow(Map<String, Object> map) throws SQLException{
|
||||
// TODO Auto-generated method stub
|
||||
return fileDao.imageShow(map);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.inswave.template.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.inswave.template.dao.LoginDao;
|
||||
import com.inswave.template.dao.MemberDao;
|
||||
import com.inswave.template.service.LoginService;
|
||||
|
||||
@Service
|
||||
public class LoginServiceImpl implements LoginService {
|
||||
|
||||
@Resource(name = "loginDao")
|
||||
private LoginDao loginDao;
|
||||
|
||||
@Resource(name = "memberDao")
|
||||
private MemberDao memberDao;
|
||||
|
||||
@Value("${system.admin.id}")
|
||||
private String adminId;
|
||||
|
||||
/**
|
||||
* 사용자 정보 조회 (로그인 체크용도로 사용 )
|
||||
*/
|
||||
@Override
|
||||
public Map selectMemberInfoForLogin(Map param) throws SQLException {
|
||||
Map memberMap = loginDao.selectMemberInfoForLogin(param);
|
||||
|
||||
// 사용자가 존재하지 않을 경우
|
||||
if (memberMap == null) {
|
||||
memberMap = new HashMap();
|
||||
memberMap.put("LOGIN", "notexist");
|
||||
|
||||
// 사용자가 존재할 경우
|
||||
} else {
|
||||
String PASSWORD = (String) memberMap.get("PASSWORD");
|
||||
String reqPASSWORD = (String) param.get("PASSWORD");
|
||||
|
||||
// 패스워드 일치
|
||||
if (PASSWORD.equals(reqPASSWORD)) {
|
||||
|
||||
memberMap.put("PASSWORD", "");
|
||||
memberMap.put("LOGIN", "success");
|
||||
|
||||
} else { // 패스워드 불일치
|
||||
memberMap.put("LOGIN", "error");
|
||||
}
|
||||
}
|
||||
return memberMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 해당 사용자 아이디가 관리자 아이디인지를 검사한다.
|
||||
*/
|
||||
@Override
|
||||
public boolean isAdmin(String userId) throws SQLException {
|
||||
String[] adminIdList = adminId.split(",");
|
||||
|
||||
for (String adminId : adminIdList) {
|
||||
if (adminId.trim().equals(userId)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 사용자의 비밀번호를 업데이트한다.
|
||||
*/
|
||||
@Override
|
||||
public int updatePassword(Map param) throws SQLException {
|
||||
return loginDao.updatePassword(param);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
package com.inswave.template.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.inswave.template.dao.SpReleaseInfoDao;
|
||||
import com.inswave.template.service.MainService;
|
||||
|
||||
@Service("mainService")
|
||||
public class MainServiceImpl implements MainService {
|
||||
|
||||
@Resource(name = "spReleaseInfoDao")
|
||||
private SpReleaseInfoDao spReleaseDao;
|
||||
|
||||
/**
|
||||
* selectType=="S" : 요약본
|
||||
*/
|
||||
public List selectRelease(Map param) throws SQLException {
|
||||
|
||||
List rs = null;
|
||||
String selectType = (String) param.get("selectType");
|
||||
|
||||
if (selectType == "S") {
|
||||
rs = spReleaseDao.selectReleaseForSummary(param);
|
||||
}
|
||||
|
||||
return rs;
|
||||
}
|
||||
|
||||
/**
|
||||
* 여러 건의 Release관리 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveRelease(List param) throws SQLException {
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
iCnt += spReleaseDao.insertRelease(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
uCnt += spReleaseDao.updateRelease(data);
|
||||
} else if (rowStatus.equals("D")) {
|
||||
dCnt += spReleaseDao.deleteRelease(data);
|
||||
}
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
}
|
||||
|
||||
public Map selectReleaseCnt() throws SQLException {
|
||||
return spReleaseDao.selectReleaseCnt();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,265 @@
|
||||
package com.inswave.template.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.apache.ibatis.session.SqlSession;
|
||||
import org.apache.ibatis.session.SqlSessionFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.PlatformTransactionManager;
|
||||
|
||||
import com.inswave.template.dao.MemberDao;
|
||||
import com.inswave.template.service.MemberService;
|
||||
|
||||
@Service
|
||||
public class MemberServiceImpl implements MemberService {
|
||||
|
||||
@Resource(name = "memberDao")
|
||||
private MemberDao memberDao;
|
||||
|
||||
@Autowired
|
||||
private PlatformTransactionManager transactionManager;
|
||||
|
||||
@Autowired
|
||||
private SqlSessionFactory sqlSessionFactory;
|
||||
|
||||
private int familySeq = 0;
|
||||
|
||||
private int projectSeq = 0;
|
||||
|
||||
|
||||
/**
|
||||
* 대용량 정보 조회시 필요합니다.
|
||||
*/
|
||||
@Autowired
|
||||
private SqlSession sqlsession;
|
||||
|
||||
/**
|
||||
* 인사기본관리(소속)
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectMemberBasicOrganization() throws SQLException {
|
||||
return memberDao.selectMemberBasicOrganization();
|
||||
}
|
||||
|
||||
/**
|
||||
* 인사기본관리(개인기본정보)
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectMemberBasic(Map param) throws SQLException {
|
||||
return memberDao.selectMemberBasic(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 인사기본관리(사용자 EMP_CD, EMP_NM)
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectMemberSearchItem() throws SQLException {
|
||||
return memberDao.selectMemberSearchItem();
|
||||
}
|
||||
|
||||
/**
|
||||
* 여러 건의 인사기본관리(개인기본정보) 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveMemberBasicList(List param) throws SQLException {
|
||||
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
iCnt += memberDao.insertMemberBasic(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
uCnt += memberDao.updateMemberBasic(data);
|
||||
} else if (rowStatus.equals("D")) {
|
||||
memberDao.deleteMemberFamily(data);
|
||||
memberDao.deleteMemberProject(data);
|
||||
dCnt += memberDao.deleteMemberBasic(data);
|
||||
}
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 개인 정보를 저장한다.
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Map saveMemberBasic(Map param) throws SQLException{
|
||||
|
||||
int uCnt = 0;
|
||||
Map result = new HashMap();
|
||||
|
||||
String rowStatus = (String) param.get("rowStatus");
|
||||
uCnt += memberDao.updateMemberBasic(param);
|
||||
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 가족 정보를 저장한다.
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Map saveMemberFamily(List param) throws SQLException {
|
||||
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
Map result = new HashMap();
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
int SEQ = memberDao.selectMemberFamilyMaxSeq(data);
|
||||
data.put("SEQ", SEQ + 1);
|
||||
iCnt += memberDao.insertMemberFamily(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
uCnt += memberDao.updateMemberFamily(data);
|
||||
} else if (rowStatus.equals("D") || rowStatus.equals("E")) {
|
||||
dCnt += memberDao.deleteMemberFamily(data);
|
||||
}
|
||||
}
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 프로젝트 정보를 저장한다.
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Map saveMemberProject(List param) throws SQLException{
|
||||
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
Map result = new HashMap();
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
int SEQ = memberDao.selectMemberProjectMaxSeq(data);
|
||||
data.put("SEQ", SEQ + 1);
|
||||
iCnt += memberDao.insertMemberProject(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
uCnt += memberDao.updateMemberProject(data);
|
||||
} else if (rowStatus.equals("D") || rowStatus.equals("E")) {
|
||||
dCnt += memberDao.deleteMemberProject(data);
|
||||
}
|
||||
}
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 개인 기본 정보 데이터 정보를 조회한다.
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectMemberOragn(Map param) throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return memberDao.selectMemberOragn(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 로그인 정보를 조회한다.
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public List<Map> getLoginInfo(Map param) throws SQLException {
|
||||
return memberDao.getLoginInfo(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 개인별 가족 데이터를 조회한다.
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public List<Map> selectMemberFamilyList(Map param) throws SQLException {
|
||||
return memberDao.selectMemberFamilyList(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 개인별 가족 최대 순번을 조회한다.
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int selectMemberFamilyMaxSeq(Map param) throws SQLException {
|
||||
return memberDao.selectMemberFamilyMaxSeq(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 개인별 프로젝트 데이터를 조회한다.
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public List<Map> selectMemberProjectList(Map param) throws SQLException {
|
||||
return memberDao.selectMemberProjectList(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 개인별 프로젝트 최대 순번을 조회한다.
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int selectMemberProjectMaxSeq(Map param) throws SQLException {
|
||||
return memberDao.selectMemberProjectMaxSeq(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호를 검색한다.
|
||||
*
|
||||
* @param param
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectZipCodeList(Map param) throws SQLException {
|
||||
return memberDao.selectZipCodeList(param);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.inswave.template.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.inswave.template.dao.MenuDao;
|
||||
import com.inswave.template.service.MenuService;
|
||||
|
||||
@Service
|
||||
public class MenuServiceImpl implements MenuService {
|
||||
|
||||
@Resource(name = "menuDao")
|
||||
private MenuDao menuDao;
|
||||
|
||||
/**
|
||||
* 메뉴관리 조회
|
||||
*
|
||||
* @param param
|
||||
* Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectMenu(Map param) throws SQLException {
|
||||
return menuDao.selectMenu(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 여러 건의 메뉴관리(개인기본정보) 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param
|
||||
* Client 전달한 데이터 리스트 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveMenu(List param) throws SQLException {
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
iCnt += menuDao.insertMenu(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
uCnt += menuDao.updateMenu(data);
|
||||
} else if (rowStatus.equals("D")) {
|
||||
dCnt += menuDao.deleteMenu(data);
|
||||
}
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package com.inswave.template.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.inswave.template.dao.OrganizationDao;
|
||||
import com.inswave.template.service.OrganizationService;
|
||||
|
||||
@Service
|
||||
public class OrganizationServiceImpl implements OrganizationService {
|
||||
|
||||
@Resource(name = "organizationDao")
|
||||
private OrganizationDao organizationDao;
|
||||
|
||||
/**
|
||||
* 조직기본관리(기본정보)
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectOrganization(Map param) throws SQLException {
|
||||
return organizationDao.selectOrganizaion(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 조직기본관리(책임자)
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectOrganizationBoss() throws SQLException {
|
||||
return organizationDao.selectOrganizaionBoss();
|
||||
}
|
||||
|
||||
/**
|
||||
* 조직기본관리 조회(검색어)
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectOrganizaionSearchItem() throws SQLException {
|
||||
return organizationDao.selectOrganizaionSearchItem();
|
||||
}
|
||||
|
||||
/**
|
||||
* 조직선택 조회(검색어)
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectOrganizaionBasicList(Map param) throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return organizationDao.selectOrganizaionBasicList(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 여러 건의 조직기본관리(개인기본정보) 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveOrganizaionBasicList(List param) throws SQLException {
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
iCnt += organizationDao.insertOrganizaionBasic(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
uCnt += organizationDao.updateOrganizaionBasic(data);
|
||||
} else if (rowStatus.equals("D")) {
|
||||
dCnt += organizationDao.deleteOrganizaionBasic(data);
|
||||
}
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,168 @@
|
||||
package com.inswave.template.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.inswave.template.dao.ProgramDao;
|
||||
import com.inswave.template.service.ProgramService;
|
||||
|
||||
@Service
|
||||
public class ProgramServiceImpl implements ProgramService {
|
||||
|
||||
@Resource(name = "programDao")
|
||||
private ProgramDao programDao;
|
||||
|
||||
/**
|
||||
* 메뉴관리 조회
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectProgram(Map param) throws SQLException {
|
||||
return programDao.selectProgram(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴별 접근 메뉴 조회
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> selectProgramAuthority(Map param) throws SQLException {
|
||||
return programDao.selectProgramAuthority(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴별 접근 메뉴 등록
|
||||
*
|
||||
* @param param Client 전달한 데이터 맵 객체
|
||||
*/
|
||||
@Override
|
||||
public List<Map> excludeSelectProgramAuthority(Map param) throws SQLException {
|
||||
return programDao.excludeSelectProgramAuthority(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 여러 건의 메뉴관리(개인기본정보) 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param Client 전달한 데이터 리스트 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveProgram(List param) throws SQLException {
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
iCnt += programDao.insertProgram(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
uCnt += programDao.updateProgram(data);
|
||||
} else if (rowStatus.equals("D")) {
|
||||
dCnt += programDao.deleteProgram(data);
|
||||
}
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 여러 건의 메뉴별 접근 메뉴 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param Client 전달한 데이터 리스트 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveProgramAuthority(List param) throws SQLException {
|
||||
int iCnt = 0;
|
||||
int uCnt = 0;
|
||||
int dCnt = 0;
|
||||
for (int i = 0; i < param.size(); i++) {
|
||||
|
||||
Map data = (Map) param.get(i);
|
||||
String rowStatus = (String) data.get("rowStatus");
|
||||
if (rowStatus.equals("C")) {
|
||||
iCnt += programDao.insertProgramAuthority(data);
|
||||
} else if (rowStatus.equals("U")) {
|
||||
dCnt += programDao.updateProgramAuthority(data);
|
||||
} else if (rowStatus.equals("D")) {
|
||||
dCnt += programDao.deleteProgramAuthority(data);
|
||||
}
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT", String.valueOf(iCnt));
|
||||
result.put("UCNT", String.valueOf(uCnt));
|
||||
result.put("DCNT", String.valueOf(dCnt));
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴정보 삭제시 하위의 메뉴별 접근권한 데이터를 변경(등록, 수정, 삭제)한다.
|
||||
*
|
||||
* @param param Client 전달한 데이터 리스트 객체
|
||||
*/
|
||||
@Override
|
||||
public Map saveProgramAll(List paramProgram, List paramProgramAcess) throws SQLException {
|
||||
|
||||
int iCnt_menu = 0; // 등록한 메뉴 건수
|
||||
int iCnt_access = 0; // 등록한 메뉴별 접근권한 건수
|
||||
int uCnt_menu = 0; // 수정한 메뉴 건수
|
||||
int uCnt_access = 0; // 수정한 메뉴별 접근권한 건수
|
||||
int dCnt_menu = 0; // 삭제한 메뉴 건수
|
||||
int dCnt_access = 0; // 삭제한 메뉴별 접근권한 건수
|
||||
|
||||
for (int i = 0; i < paramProgram.size(); i++) {
|
||||
Map dataProgram = (Map) paramProgram.get(i);
|
||||
String rowStatusProgram = (String) dataProgram.get("rowStatus");
|
||||
if (rowStatusProgram.equals("C")) {
|
||||
iCnt_menu += programDao.insertProgram(dataProgram);
|
||||
|
||||
for (int j = 0; j < paramProgramAcess.size(); j++) {
|
||||
Map dataProgramAcess = (Map) paramProgramAcess.get(j);
|
||||
String rowStatusProgramAuthority = (String) dataProgramAcess.get("rowStatus");
|
||||
if (rowStatusProgramAuthority.equals("C")) {
|
||||
iCnt_access += programDao.insertProgramAuthority(dataProgramAcess);
|
||||
}
|
||||
}
|
||||
} else if (rowStatusProgram.equals("U")) {
|
||||
for (int j = 0; j < paramProgramAcess.size(); j++) {
|
||||
Map dataProgramAcess = (Map) paramProgramAcess.get(j);
|
||||
String rowStatusProgramAuthority = (String) dataProgramAcess.get("rowStatus");
|
||||
if (rowStatusProgramAuthority.equals("C")) {
|
||||
iCnt_access += programDao.insertProgramAuthority(dataProgramAcess);
|
||||
} else if (rowStatusProgramAuthority.equals("D")) {
|
||||
dCnt_access += programDao.deleteProgramAuthority(dataProgramAcess);
|
||||
}
|
||||
}
|
||||
uCnt_menu += programDao.updateProgram(dataProgram);
|
||||
// 상위 메뉴가 삭제이면 하위메뉴별 접근권한은 모두 삭제
|
||||
} else if (rowStatusProgram.equals("D")) {
|
||||
programDao.deleteProgramAuthority(dataProgram); // 하위 코드 정보는 전체 삭제
|
||||
dCnt_menu += programDao.deleteProgram(dataProgram);
|
||||
}
|
||||
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("STATUS", "S");
|
||||
result.put("ICNT_MENU", String.valueOf(iCnt_menu));
|
||||
result.put("ICNT_ACCESS", String.valueOf(iCnt_access));
|
||||
result.put("UCNT_MENU", String.valueOf(uCnt_menu));
|
||||
result.put("UCNT_ACCESS", String.valueOf(uCnt_access));
|
||||
result.put("DCNT_MENU", String.valueOf(dCnt_menu));
|
||||
result.put("DCNT_ACCESS", String.valueOf(dCnt_access));
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import websquare.http.controller.grid.excel.write.ICellDataProvider;
|
||||
|
||||
public class DataConvertDown implements ICellDataProvider {
|
||||
|
||||
@Override
|
||||
public String convertValue(String arg0) throws RuntimeException {
|
||||
// down받은 data중에서 변경할 부분을 replace한다.
|
||||
return arg0.replace("u00", "u00_Convert_");
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import websquare.http.controller.grid.excel.read.ICellDataProvider;
|
||||
|
||||
public class DataConvertUp implements ICellDataProvider {
|
||||
|
||||
public String convertValue(String cellvalue) throws RuntimeException {
|
||||
// down받은 data중에서 변경할 부분을 replace한다.
|
||||
return cellvalue.replace("u00_Convert_", "u00");
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,437 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
public class DateUtil {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(DateUtil.class);
|
||||
|
||||
/* private static Calendar oCal = null;
|
||||
private static SimpleDateFormat oFormat = null;*/
|
||||
|
||||
/*
|
||||
public DateUtil() {
|
||||
this.oCal = Calendar.getInstance();
|
||||
this.oFormat = new SimpleDateFormat();
|
||||
}
|
||||
*/
|
||||
|
||||
public static String convertDateFormat(String date, String srcFormat, String trgFormat) throws ParseException {
|
||||
|
||||
java.text.SimpleDateFormat dateFormatSource = new java.text.SimpleDateFormat(srcFormat);
|
||||
java.util.Date sourceDate = dateFormatSource.parse(date);
|
||||
java.text.SimpleDateFormat dateFormatTarget = new java.text.SimpleDateFormat(trgFormat);
|
||||
|
||||
return dateFormatTarget.format(sourceDate);
|
||||
}
|
||||
|
||||
public static String convertDateFormat(String date, String trgFormat) {
|
||||
|
||||
if (date == null)
|
||||
return null;
|
||||
|
||||
if (checkDate(date, "yyyy-MM-dd")) {
|
||||
java.text.SimpleDateFormat dateFormatSource = new java.text.SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
java.util.Date sourceDate;
|
||||
try {
|
||||
sourceDate = dateFormatSource.parse(date);
|
||||
} catch (ParseException e) {
|
||||
logger.error("ParseException",e);
|
||||
return null;
|
||||
}
|
||||
|
||||
java.text.SimpleDateFormat dateFormatTarget = new java.text.SimpleDateFormat("yyyyMMdd");
|
||||
return dateFormatTarget.format(sourceDate);
|
||||
} else if (checkDate(date, "yyyyMMdd")) {
|
||||
return date;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static Date convertStringToDate(String date, String format) throws ParseException {
|
||||
java.text.SimpleDateFormat dateFormatSource = new java.text.SimpleDateFormat(format);
|
||||
return dateFormatSource.parse(date);
|
||||
}
|
||||
|
||||
public static Date convertStringToDate(String date) throws ParseException {
|
||||
return convertStringToDate(date, "yyyy-MM-dd");
|
||||
}
|
||||
|
||||
/**
|
||||
* 현재 시스템의 시간을 반환한다.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static java.sql.Date getCurrentDate() {
|
||||
return new java.sql.Date(System.currentTimeMillis());
|
||||
}
|
||||
|
||||
/**
|
||||
* 현재 시간을 문자로 반환한다.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String getCurrentDate(String format) {
|
||||
Date currentDate = new Date();
|
||||
java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(format);
|
||||
return dateFormat.format(currentDate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 시간을 문자로 반환한다.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String convertDateToString(Date date, String format) {
|
||||
java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(format);
|
||||
return dateFormat.format(date);
|
||||
}
|
||||
|
||||
/**
|
||||
* 두 날짜의 차이 구하기
|
||||
*
|
||||
* @param cType char : 'S':초, 'M':분, 'H':시, 'D':날짜
|
||||
* @param szDateSrt String : 기준 날짜 (DATE1)
|
||||
* @param szDateEnd String : 기준 날짜 (DATE2)
|
||||
* @param szDateFormat String : 기준 날짜 포맷
|
||||
* @return
|
||||
*/
|
||||
public static long dateDifference(char cType, String szDateSrt, String szDateEnd, String szDateFormat) {
|
||||
|
||||
Date oDate1 = null;
|
||||
Date oDate2 = null;
|
||||
|
||||
long lnResult = 0;
|
||||
long lnConvBase = 0;
|
||||
SimpleDateFormat oFormat = new SimpleDateFormat();
|
||||
oFormat.applyPattern(szDateFormat);
|
||||
|
||||
try {
|
||||
oDate1 = oFormat.parse(szDateSrt);
|
||||
} catch (ParseException e) {
|
||||
logger.error("ParseException",e);
|
||||
}
|
||||
|
||||
try {
|
||||
oDate2 = oFormat.parse(szDateEnd);
|
||||
} catch (ParseException e) {
|
||||
logger.error("ParseException",e);
|
||||
}
|
||||
|
||||
switch (cType) {
|
||||
case 'S':
|
||||
lnConvBase = 1000;
|
||||
break;
|
||||
case 'M':
|
||||
lnConvBase = 1000 * 60;
|
||||
break;
|
||||
case 'H':
|
||||
lnConvBase = 1000 * 60 * 60;
|
||||
break;
|
||||
case 'D':
|
||||
lnConvBase = 1000 * 60 * 60 * 24;
|
||||
break;
|
||||
}
|
||||
try{
|
||||
lnResult = (oDate2.getTime() - oDate1.getTime()) / lnConvBase;
|
||||
}catch(NullPointerException e){
|
||||
logger.error("NullPointerException",e);
|
||||
}
|
||||
|
||||
return lnResult;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 날짜 더하기
|
||||
*
|
||||
* @param cType char : 'S':초, 'M':분, 'H':시, 'D':날짜
|
||||
* @param iAdd int : 더할 초/분/시/날짜
|
||||
* @param szDate String : 기준 날짜
|
||||
* @param szDateFormat String : 기준 날짜 포맷
|
||||
* @return
|
||||
*/
|
||||
public static Date dateAdd(char cType, int iAdd, String szDate, String szDateFormat) {
|
||||
|
||||
Date oDate1 = new Date();
|
||||
Date oDate2 = new Date();
|
||||
|
||||
long lnTimestamp = 0;
|
||||
long lnConvBase = 0;
|
||||
SimpleDateFormat oFormat = new SimpleDateFormat();
|
||||
oFormat.applyPattern(szDateFormat);
|
||||
|
||||
try {
|
||||
oDate1 = oFormat.parse(szDate);
|
||||
} catch (ParseException e) {
|
||||
logger.error("ParseException",e);
|
||||
}
|
||||
|
||||
lnTimestamp = oDate1.getTime();
|
||||
switch (cType) {
|
||||
case 'S':
|
||||
lnConvBase = 1000;
|
||||
break;
|
||||
case 'M':
|
||||
lnConvBase = 1000 * 60;
|
||||
break;
|
||||
case 'H':
|
||||
lnConvBase = 1000 * 60 * 60;
|
||||
break;
|
||||
case 'D':
|
||||
lnConvBase = 1000 * 60 * 60 * 24;
|
||||
break;
|
||||
}
|
||||
lnTimestamp = lnTimestamp + (lnConvBase * iAdd);
|
||||
|
||||
oDate2 = new Date(lnTimestamp);
|
||||
|
||||
return oDate2;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 날짜를 던져서 요일 알아내기
|
||||
*
|
||||
* @param cReturnType char : 'K'-한글, 'E'-영문, 'A'-영문1, 'B'-영문2
|
||||
* @param iYear int : 년
|
||||
* @param iMonth int : 월
|
||||
* @param iDay int : 일
|
||||
* @return
|
||||
*/
|
||||
public static String dayOfWeek(char cReturnType, int iYear, int iMonth, int iDay) {
|
||||
|
||||
String szDayOfWeek[][] = { { "일", "월", "화", "수", "목", "금", "토" }, { "S", "M", "T", "W", "T", "F", "S" },
|
||||
{ "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT" }, { "SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY" } };
|
||||
|
||||
String szResult = new String("");
|
||||
int iDayOfWeek = 0;
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.set(Calendar.YEAR, iYear);
|
||||
calendar.set(Calendar.MONTH, iMonth - 1);
|
||||
calendar.set(Calendar.DAY_OF_MONTH, iDay);
|
||||
|
||||
iDayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);
|
||||
|
||||
switch (cReturnType) {
|
||||
case 'K':
|
||||
szResult = szDayOfWeek[0][iDayOfWeek - 1];
|
||||
break;
|
||||
case 'E':
|
||||
szResult = szDayOfWeek[1][iDayOfWeek - 1];
|
||||
break;
|
||||
case 'A':
|
||||
szResult = szDayOfWeek[2][iDayOfWeek - 1];
|
||||
break;
|
||||
case 'B':
|
||||
szResult = szDayOfWeek[3][iDayOfWeek - 1];
|
||||
break;
|
||||
default:
|
||||
szResult = Integer.toString(iDayOfWeek);
|
||||
}
|
||||
|
||||
return szResult;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 날짜 포맷 변경
|
||||
*
|
||||
* @param szVictim String 포맷 변경할 날짜
|
||||
* @param szFormatCur String 현재 포맷 형태
|
||||
* @param szFormatNew String 새로운 포맷 형태
|
||||
* @return
|
||||
*/
|
||||
public static String reformatDate(String szVictim, String szFormatCur, String szFormatNew) {
|
||||
|
||||
Date oDate1 = null;
|
||||
|
||||
String szResult = new String("");
|
||||
SimpleDateFormat oDateFormat = new SimpleDateFormat();
|
||||
|
||||
oDateFormat.applyPattern(szFormatCur);
|
||||
|
||||
try {
|
||||
oDate1 = oDateFormat.parse(szVictim);
|
||||
} catch (ParseException e) {
|
||||
logger.error("ParseException",e);
|
||||
}
|
||||
|
||||
oDateFormat.applyPattern(szFormatNew);
|
||||
szResult = oDateFormat.format(oDate1);
|
||||
|
||||
return szResult;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 날짜, 시간 유효성 체크 문자열 형식의 날짜 값과 Format 형태를 넘기면, 해당 날짜를 파싱해보고 파싱 에러가 나면 잘못된 날짜 파싱 에러가 나지 않으면 정상 날짜
|
||||
*
|
||||
* @param szDate String : 체크할 날짜
|
||||
* @param szFormat String : 체크할 날짜 포맷
|
||||
* @return 날짜 유효성 통과 여부
|
||||
*/
|
||||
public static boolean checkDate(String szDate, String szFormat) {
|
||||
|
||||
boolean bResult = true;
|
||||
SimpleDateFormat oDateFormat = new SimpleDateFormat();
|
||||
|
||||
oDateFormat.applyPattern(szFormat);
|
||||
oDateFormat.setLenient(false); // 엄밀하게 검사한다는 옵션 (반드시 있어야 한다)
|
||||
|
||||
try {
|
||||
oDateFormat.parse(szDate);
|
||||
} catch (ParseException e) {
|
||||
bResult = false;
|
||||
logger.error("ParseException",e);
|
||||
}
|
||||
|
||||
return bResult;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 지정된 포맷으로 날짜를 가져온다.
|
||||
*
|
||||
* @param iAddDay int : 몇일전 or 몇일후 날짜를 가져올까? (0 으로 설정하면 오늘 날짜 가져옴)
|
||||
* @param szFormat String : 날짜 포맷 (yyyy-MM-dd)
|
||||
* @return 요청한 날짜 -
|
||||
*/
|
||||
public static String getDate(int iAddDay, String szFormat) {
|
||||
|
||||
DecimalFormat oDf = new DecimalFormat("00");
|
||||
|
||||
szFormat = (szFormat.length() <= 0) ? "yyyyMMdd" : szFormat;
|
||||
Calendar oCal = Calendar.getInstance();
|
||||
oCal.add(oCal.DATE, iAddDay);
|
||||
|
||||
String szYear = Integer.toString(oCal.get(Calendar.YEAR));
|
||||
String szMonth = oDf.format(oCal.get(Calendar.MONTH) + 1);
|
||||
String szDay = oDf.format(oCal.get(Calendar.DATE));
|
||||
|
||||
int iAmpm = oCal.get(Calendar.AM_PM);
|
||||
int iHour = oCal.get(Calendar.HOUR);
|
||||
|
||||
String szHour = oDf.format(iHour + (iAmpm * 12));
|
||||
String szMinute = oDf.format(oCal.get(Calendar.MINUTE));
|
||||
String szSecond = oDf.format(oCal.get(Calendar.SECOND));
|
||||
|
||||
return reformatDate(szYear + szMonth + szDay + " " + szHour + szMinute + szSecond, "yyyyMMdd HHmmss", szFormat);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 초(sec)를 인자로 받아 Human Readable Format 으로 리턴해 준다. 177981 초 -> 2.01:26:21 (2일 01시간 26분 21초) -
|
||||
*/
|
||||
public static String makeHRDate(long lnSeconds) {
|
||||
|
||||
String szResult = new String("");
|
||||
|
||||
String szDay = new String("");
|
||||
String szHour = new String("");
|
||||
String szMin = new String("");
|
||||
String szSec = new String("");
|
||||
|
||||
long lnValue = 0;
|
||||
long lnRemain = 0;
|
||||
|
||||
int iOneDay = 60 * 60 * 24;
|
||||
int iOneHour = 60 * 60;
|
||||
int iOneMin = 60;
|
||||
|
||||
lnRemain = lnSeconds;
|
||||
|
||||
lnValue = lnRemain / iOneDay;
|
||||
lnRemain = lnRemain % iOneDay;
|
||||
szDay = Long.toString(lnValue);
|
||||
|
||||
lnValue = lnRemain / iOneHour;
|
||||
lnRemain = lnRemain % iOneHour;
|
||||
szHour = Long.toString(lnValue);
|
||||
|
||||
lnValue = lnRemain / iOneMin;
|
||||
lnRemain = lnRemain % iOneMin;
|
||||
szMin = Long.toString(lnValue);
|
||||
|
||||
szSec = Long.toString(lnRemain);
|
||||
|
||||
szResult = szDay + "." + makeLen(szHour, 2, '0') + ":" + makeLen(szMin, 2, '0') + ":" + makeLen(szSec, 2, '0');
|
||||
|
||||
return szResult;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 문자열 길이를 맞춘다 (5 -> 0005)
|
||||
*
|
||||
* @param szVictim String : 길이를 맞출 원본 문자열
|
||||
* @param iLength int : 몇자리 길이로 만들 것인가?
|
||||
* @param cMarker char : 빈 자리를 채울 문자
|
||||
* @return 만들어진 문자열 -
|
||||
*/
|
||||
public static String makeLen(String szVictim, int iLength, char cMarker) {
|
||||
|
||||
String szResult = new String("");
|
||||
int iAddLen = 0;
|
||||
|
||||
if (szVictim.length() < iLength) {
|
||||
|
||||
iAddLen = iLength - szVictim.length();
|
||||
|
||||
for (int iIdx = 0; iIdx < iAddLen; iIdx++) {
|
||||
szResult += cMarker;
|
||||
}
|
||||
|
||||
szResult += szVictim;
|
||||
|
||||
} else {
|
||||
|
||||
szResult = szVictim;
|
||||
|
||||
}
|
||||
|
||||
return szResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* 년/월 을 인자로 넘겨 해당 년/월의 마지막 날짜를 리턴한다.
|
||||
*
|
||||
* @param iYear
|
||||
* @param iMonth
|
||||
* @return 해당 월의 마지막 날짜
|
||||
*/
|
||||
public static int getLastDay(int iYear, int iMonth) {
|
||||
|
||||
int iDay = 0;
|
||||
Calendar oCal = Calendar.getInstance();
|
||||
try {
|
||||
oCal.set(Calendar.YEAR, iYear);
|
||||
oCal.set(Calendar.MONTH, iMonth - 1);
|
||||
iDay = oCal.getActualMaximum(Calendar.DAY_OF_MONTH);
|
||||
} catch (RuntimeException e) {
|
||||
iDay = 30;
|
||||
logger.error("RuntimeException",e);
|
||||
}
|
||||
|
||||
return iDay;
|
||||
}
|
||||
|
||||
public static java.sql.Date tryParseDate(Object value) {
|
||||
java.util.Date date = null;
|
||||
try {
|
||||
java.text.SimpleDateFormat dateFormatSource = new java.text.SimpleDateFormat("yyyyMMdd");
|
||||
date = dateFormatSource.parse((String) value);
|
||||
} catch (ParseException e) {
|
||||
logger.error("ParseException",e);
|
||||
}
|
||||
return new java.sql.Date(date.getTime());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import java.io.File;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import kr.seoul.green.bds.manage.controller.EvtManageController;
|
||||
import websquare.http.MultiPartHttpServletRequest;
|
||||
import websquare.http.WebSquareContext;
|
||||
import websquare.upload.handl.AbstractUploadFileDefiner;
|
||||
import websquare.upload.handl.AbstractUploadImageDefiner;
|
||||
|
||||
public class DefaultUploadImageDefinerImpl extends AbstractUploadImageDefiner {
|
||||
|
||||
private static Logger logger = Logger.getLogger(DefaultUploadImageDefinerImpl.class);
|
||||
|
||||
@Override
|
||||
public String getFileName(String clientFileName, String originalFileName) throws RuntimeException {
|
||||
// 파일명에 대한 별도 변경 처리시 추가한다.
|
||||
return originalFileName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFilePath(String filePath) throws RuntimeException {
|
||||
// 파일업로드는 WAS의 공유볼륨에 저장된다. 파일 저장위치는
|
||||
// {websquare_home}/config/websquare.xml 의 baseDir에 위치한다.)
|
||||
// 업로드컴퍼넌트의 useDir 파라메타가 있을때 baseDir 하위에 폴더를 생성하고 저장한다.
|
||||
HttpServletRequest request = WebSquareContext.getContext().getRequest();
|
||||
MultiPartHttpServletRequest multiPartRequest = (MultiPartHttpServletRequest) request;
|
||||
Map parmeterMap = multiPartRequest.getMultipartParameters();
|
||||
String[] useDir = (String[]) parmeterMap.get("useDir");
|
||||
String _filePath = filePath.substring(0, filePath.lastIndexOf(File.separator));
|
||||
StringBuffer rt = new StringBuffer(_filePath);
|
||||
if (useDir != null) {
|
||||
int iCnt = useDir.length;
|
||||
for (int idx = 0; idx < iCnt; idx++) {
|
||||
if (idx == 0)
|
||||
rt.append(File.separator);
|
||||
rt.append(useDir[idx]);
|
||||
}
|
||||
}
|
||||
|
||||
return rt.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,98 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import java.io.File;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.xml.crypto.Data;
|
||||
|
||||
import org.apache.commons.io.FilenameUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import kr.seoul.green.bds.manage.controller.EvtManageController;
|
||||
import websquare.http.MultiPartHttpServletRequest;
|
||||
import websquare.http.WebSquareContext;
|
||||
import websquare.upload.handl.AbstractUploadFileDefiner;
|
||||
|
||||
public class FileUploadDefinerImpl extends AbstractUploadFileDefiner {
|
||||
|
||||
private static Logger logger = Logger.getLogger(FileUploadDefinerImpl.class);
|
||||
|
||||
private String filePath;
|
||||
|
||||
/**
|
||||
* @param <String:Y> clientFileName : 클라이언트에서 선택한 파일명
|
||||
* @param <String:Y> originalFileName : 물리적으로 저장될 파일명
|
||||
* @desc 파일명을 변경한다.
|
||||
*/
|
||||
|
||||
@Override
|
||||
public String getFileName(String clientFileName, String originalFileName) throws RuntimeException {
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
|
||||
Calendar c1 = Calendar.getInstance();
|
||||
String strToday = sdf.format(c1.getTime());
|
||||
String extension = FilenameUtils.getExtension(clientFileName);
|
||||
// 랜덤 8자리
|
||||
Random random = new Random();
|
||||
int intRan = (int)(random.nextInt() * 100000000);
|
||||
String strRan = String.valueOf(intRan);
|
||||
if(strRan.length() != 8){
|
||||
strRan = "0" + strRan; // 7자리 + "0"
|
||||
}
|
||||
|
||||
// 물리적파일명 = 날짜 14자리 + 랜덤 8자리
|
||||
originalFileName = strToday + strRan+"."+extension;
|
||||
|
||||
logger.info("originalFileName"+originalFileName);
|
||||
logger.info("clientFileName"+clientFileName);
|
||||
// 파일명에 대한 별도 변경 처리시 추가한다.
|
||||
|
||||
File file = new File(filePath+"/"+originalFileName);
|
||||
logger.info("originalFileName 파일 존재 여부 = "+ file.isFile());
|
||||
File file1 = new File(filePath+"/"+clientFileName);
|
||||
logger.info("clientFileName 파일 존재 여부 = "+ file1.isFile());
|
||||
return originalFileName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param <String:Y> filePath : 물리적으로 저장될 파일 경로
|
||||
* @desc 파일 저장 경로를 변경한다.
|
||||
*/
|
||||
|
||||
@Override
|
||||
public String getFilePath(String filePath) throws RuntimeException {
|
||||
// 파일업로드는 WAS의 공유볼륨에 저장된다. 파일 저장위치는 {websquare_home}/config/websquare.xml 의 baseDir에 위치한다.)
|
||||
// 업로드컴퍼넌트의 useDir 파라메타가 있을때 baseDir 하위에 폴더를 생성하고 저장한다.
|
||||
HttpServletRequest request = WebSquareContext.getContext().getRequest();
|
||||
MultiPartHttpServletRequest multiPartRequest = (MultiPartHttpServletRequest)request;
|
||||
|
||||
Map parmeterMap = multiPartRequest.getMultipartParameters();
|
||||
|
||||
String[] useDir = (String[])parmeterMap.get("useDir");
|
||||
|
||||
|
||||
logger.info(request.getServletContext().getRealPath("/"));
|
||||
|
||||
// String _filePath = filePath.substring(0, filePath.lastIndexOf(File.separator));
|
||||
String _filePath = request.getServletContext().getRealPath("/")+"fileUpload";
|
||||
StringBuffer rt = new StringBuffer(_filePath);
|
||||
|
||||
if (useDir != null) {
|
||||
int iCnt = useDir.length;
|
||||
for (int idx = 0; idx < iCnt; idx++) {
|
||||
if (idx == 0) rt.append(File.separator);
|
||||
rt.append(useDir[idx]);
|
||||
}
|
||||
}
|
||||
logger.info("rt.toString()"+rt.toString());
|
||||
logger.info("_filePath"+_filePath);
|
||||
|
||||
filePath = rt.toString();
|
||||
return rt.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
public class MapUtil {
|
||||
private static final Logger logger = Logger.getLogger(MapUtil.class);
|
||||
|
||||
public static Map merge(Map source, Map target) {
|
||||
|
||||
return merge(source, target, false);
|
||||
}
|
||||
|
||||
public static Map merge(Map source, Map target, boolean exist) {
|
||||
|
||||
return merge(source, target, false, null);
|
||||
}
|
||||
|
||||
public static Map merge(Map<String, Object> source, Map target, boolean exist, String[] arg) {
|
||||
|
||||
if (arg == null) {
|
||||
for (Map.Entry entry : source.entrySet()) {
|
||||
Object key = entry.getKey();
|
||||
Object value = entry.getValue();
|
||||
if (exist) {
|
||||
if (target.containsKey(key)) {
|
||||
target.put(key, value);
|
||||
}
|
||||
|
||||
} else {
|
||||
target.put(key, value);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
for (int i = 0; i < arg.length; i++) {
|
||||
if (exist) {
|
||||
if (target.containsKey(arg[i])) {
|
||||
target.put(arg[i], source.get(arg[i]));
|
||||
}
|
||||
|
||||
} else {
|
||||
target.put(arg[i], source.get(arg[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
public static List merge(Map source, List target) {
|
||||
|
||||
return merge(source, target, false);
|
||||
}
|
||||
|
||||
public static List merge(Map source, List target, boolean exist) {
|
||||
|
||||
return merge(source, target, false, null);
|
||||
}
|
||||
|
||||
public static List merge(Map source, List target, boolean exist, String[] arg) {
|
||||
|
||||
int cnt = target.size();
|
||||
for (int i = 0; i < cnt; i++) {
|
||||
Map data = (Map) target.get(i);
|
||||
|
||||
data = merge(source, data, exist, arg);
|
||||
|
||||
target.set(i, data);
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/**
|
||||
* List 객체를 문자열 배열로 변환해서 반환한다.
|
||||
*
|
||||
* @param resultList 서비스의 메소드 실행 결과를 담은 List 객체
|
||||
* @return String[] 문자열 배열
|
||||
*/
|
||||
public static String[] hashMapValuesToArray(List<LinkedHashMap <String, String>> resultList) {
|
||||
if (resultList.size() > 0) {
|
||||
String strArr[] = new String[1];
|
||||
try {
|
||||
strArr = new String[resultList.size() * resultList.get(0).size()];
|
||||
int idx = 0;
|
||||
for (LinkedHashMap<String, String> map : resultList) {
|
||||
for (String value : map.values()) {
|
||||
if (value != null) {
|
||||
strArr[idx] = value;
|
||||
} else {
|
||||
strArr[idx] = "";
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
} catch (RuntimeException ex) {
|
||||
logger.error("RuntimeException", ex);
|
||||
}
|
||||
return strArr;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class PageURIUtil {
|
||||
private static String DEF_INDEX_PAGE;
|
||||
private static String TAB_INDEX;
|
||||
private static String WIN_INDEX;
|
||||
private static String LOGIN_PAGE;
|
||||
private static String AUTH_CHECK;
|
||||
|
||||
@Value("${w5xml.defIndex}")
|
||||
private void setDEF_INDEX_PAGE(String def_index) {
|
||||
DEF_INDEX_PAGE = def_index;
|
||||
}
|
||||
|
||||
@Value("${w5xml.main.tab}")
|
||||
private void setTAB_INDEX(String tab_index) {
|
||||
TAB_INDEX = tab_index;
|
||||
}
|
||||
|
||||
@Value("${w5xml.main.win}")
|
||||
private void setWIN_INDEX(String win_index) {
|
||||
WIN_INDEX = win_index;
|
||||
}
|
||||
|
||||
@Value("${w5xml.login}")
|
||||
private void setLOGIN_PAGE(String login_page) {
|
||||
LOGIN_PAGE = login_page;
|
||||
}
|
||||
|
||||
@Value("${w5xml.auth.check}")
|
||||
private void setAUTH_CHECK(String auth_check) {
|
||||
AUTH_CHECK = auth_check;
|
||||
}
|
||||
|
||||
/**
|
||||
* getIndexPageURI Main Layout URI 가져오기
|
||||
*
|
||||
* @date 2016. 08. 08
|
||||
* @param {String} [default:def, tab, win, null]URI정보를 가지고 오기 위한 string.
|
||||
* @returns {String} properties에 등록된 main layout URI정보를 가져온다. default값은 w5xml.defIndex에 등록된 값이다.
|
||||
* @author InswaveSytems
|
||||
* @example getIndexPageURI("def"); return 예시 : "/test/test.xml"
|
||||
*/
|
||||
public static String getIndexPageURI(String pageNm) {
|
||||
String rsURI = DEF_INDEX_PAGE;
|
||||
if (pageNm != null) {
|
||||
if (pageNm.equals("T")) {
|
||||
rsURI = TAB_INDEX;
|
||||
} else if (pageNm.equals("W")) {
|
||||
rsURI = WIN_INDEX;
|
||||
}
|
||||
}
|
||||
return rsURI;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default Main Layout URI 가져오기
|
||||
*
|
||||
* @date 2016. 08. 08
|
||||
* @returns {String} properties에 등록된 default main layout URI정보를 가져온다. default값은 w5xml.defIndex에 등록된 값이다.
|
||||
* @author InswaveSytems
|
||||
* @example getIndexPageURI(); return 예시 : "/test/test.xml"
|
||||
*/
|
||||
public static String getIndexPageURI() {
|
||||
return getIndexPageURI("T");
|
||||
}
|
||||
|
||||
/**
|
||||
* Default login page URI 가져오기
|
||||
*
|
||||
* @date 2016. 08. 08
|
||||
* @returns {String} login page uri
|
||||
* @author InswaveSystems
|
||||
* @example getLoginPage(); return 예시 : "/test/test.xml"
|
||||
*/
|
||||
public static String getLoginPage() {
|
||||
return LOGIN_PAGE;
|
||||
}
|
||||
|
||||
/**
|
||||
* 권한없는 페이지 호출시 보여주는 page url 가져오기
|
||||
*
|
||||
* @date 2016. 09. 12
|
||||
* @returns {String} 권한없는 페이지 호출시 보여주는 page url
|
||||
* @author InswaveSystems
|
||||
* @example getLoginPage(); return 예시 : "/test/test.xml"
|
||||
*/
|
||||
public static String getAuthCheck() {
|
||||
return AUTH_CHECK;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,199 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
public class Result {
|
||||
private static final Logger logger = Logger.getLogger(Result.class);
|
||||
|
||||
private Map<String, Object> resultMap = new HashMap<>();
|
||||
|
||||
// 성공메세지
|
||||
public final static String STATUS_SUCESS = "S";
|
||||
|
||||
// 성공 메세지
|
||||
public final static String STATUS_SUCESS_MESSAGE = "정상 처리되었습니다.";
|
||||
|
||||
// 오류메세지
|
||||
public final static String STATUS_ERROR = "E";
|
||||
|
||||
// 기본 에러 상세 코드
|
||||
public final static String STATUS_ERROR_DEFAULT_DETAIL_CODE = "E9999";
|
||||
|
||||
// 오류메세지
|
||||
public final static String STATUS_ERROR_MESSAGE = "처리 도중 오류가 발생되었습니다.";
|
||||
|
||||
// 경고메세지
|
||||
public final static String STATUS_WARNING = "W";
|
||||
|
||||
// 경고메세지
|
||||
public final static String STATUS_WARNING_MESSAGE = "처리 도중 오류가 발생되었습니다.";
|
||||
|
||||
// 기본(map 타입) 웹스퀘어 view
|
||||
public final static String VIEW_DEFAULT = "wqView";
|
||||
|
||||
// 결과값에 대한 메세지 key명
|
||||
public final static String MESSAGE_KEY = "rsMsg";
|
||||
|
||||
// viewType이 VIEW_STRING 일 경우 참조하는 key
|
||||
public final static String RESULT_KEY_DEFAULT = "result";
|
||||
|
||||
|
||||
public void setData(String id, String data) {
|
||||
resultMap.put(id, data);
|
||||
}
|
||||
|
||||
public void setData(String id, Map data) {
|
||||
resultMap.put(id, data);
|
||||
}
|
||||
|
||||
public void setData(String id, List data) {
|
||||
resultMap.put(id, data);
|
||||
}
|
||||
|
||||
public void setDataObject(String id, Object data) {
|
||||
if(data == null){
|
||||
|
||||
}else{
|
||||
Map map = new HashMap();
|
||||
Field[] fields = data.getClass().getDeclaredFields();
|
||||
for(int i=0; i <fields.length; i++){
|
||||
fields[i].setAccessible(true);
|
||||
try {
|
||||
map.put(fields[i].getName(), fields[i].get(data));
|
||||
} catch (IllegalArgumentException | IllegalAccessException e) {
|
||||
logger.error("IllegalArgumentException | IllegalAccessException",e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
resultMap.put(id, map);
|
||||
}
|
||||
}
|
||||
|
||||
public Map<String, Object> getResult() {
|
||||
if (resultMap.get(MESSAGE_KEY) == null) {
|
||||
setMsg(STATUS_SUCESS);
|
||||
}
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.putAll(this.resultMap);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 메세지 처리 - 상태 기본 메세지 처리
|
||||
*
|
||||
* @date 2017.12.02
|
||||
* @memberOf
|
||||
* @param {} status : 메세지 상태
|
||||
* @returns void
|
||||
* @author Inswave
|
||||
* @example WqModel.setMsg( STATUS_SUCCESS );
|
||||
*/
|
||||
public void setMsg(String status) {
|
||||
String msg = "";
|
||||
if (status.equals(STATUS_ERROR)) {
|
||||
msg = STATUS_ERROR_MESSAGE;
|
||||
} else if (status.equals(STATUS_SUCESS)) {
|
||||
msg = STATUS_SUCESS_MESSAGE;
|
||||
} else if (status.equals(STATUS_WARNING)) {
|
||||
msg = STATUS_WARNING_MESSAGE;
|
||||
}
|
||||
setMsg(status, msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* 메세지 처리
|
||||
*
|
||||
* @date 2017.12.02
|
||||
* @memberOf
|
||||
* @param {} status : 메세지 상태, message : 메세지 내용
|
||||
* @returns void
|
||||
* @author Inswave
|
||||
* @example WqModel.setMsg( STATUS_SUCCESS, "정상 처리되었습니다." );
|
||||
*/
|
||||
public void setMsg(String status, String message) {
|
||||
setMsg(status, message, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 메세지 처리
|
||||
*
|
||||
* @date 2017.12.02
|
||||
* @memberOf
|
||||
* @param {} status : 메세지 상태, message : 메세지 내용
|
||||
* @returns void
|
||||
* @author Inswave
|
||||
* @example WqModel.setMsg(returnData, MsgUtil.STATUS_SUCCESS, "정상 처리되었습니다." , exception 객체);
|
||||
*/
|
||||
public void setMsg(String status, String message, Exception ex) {
|
||||
|
||||
Map<String, Object> result = new HashMap<String, Object>();
|
||||
|
||||
if (status.equals(STATUS_SUCESS)) {
|
||||
result.put("statusCode", STATUS_SUCESS);
|
||||
result.put("message", getDefaultStatusMessage(message, STATUS_SUCESS_MESSAGE));
|
||||
} else if (status.equals(STATUS_WARNING)) {
|
||||
result.put("statusCode", STATUS_WARNING);
|
||||
result.put("message", getDefaultStatusMessage(message, STATUS_WARNING_MESSAGE));
|
||||
} else if (status.equals(STATUS_ERROR)) {
|
||||
setErrorMsg(STATUS_ERROR_DEFAULT_DETAIL_CODE, message, ex);
|
||||
return;
|
||||
}
|
||||
|
||||
if (ex != null) {
|
||||
result.put("messageDetail", ex.getMessage());
|
||||
}
|
||||
|
||||
resultMap.put(MESSAGE_KEY, result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 오류 메세지 처리
|
||||
*
|
||||
* @date 2017.12.02
|
||||
* @memberOf
|
||||
* @param {} errorCode : 오류코드, message : 메세지 내용
|
||||
* @returns void
|
||||
* @author Inswave
|
||||
* @example WqModel.setErrorMsg("E0001", "세션이없습니다." );
|
||||
*/
|
||||
public void setErrorMsg(String errorCode, String message) {
|
||||
setErrorMsg(errorCode, message, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 오류 메세지 처리
|
||||
*
|
||||
* @date 2017.12.02
|
||||
* @memberOf
|
||||
* @param {} errorCode : 오류코드, message : 메세지 내용
|
||||
* @returns void
|
||||
* @author Inswave
|
||||
* @example WqModel.setErrorMsg("E0001", "세션이없습니다." , exception 객체);
|
||||
*/
|
||||
public void setErrorMsg(String errorCode, String message, Exception ex) {
|
||||
Map<String, Object> result = new HashMap<String, Object>();
|
||||
|
||||
result.put("statusCode", STATUS_ERROR);
|
||||
result.put("errorCode", errorCode);
|
||||
result.put("message", getDefaultStatusMessage(message, STATUS_ERROR_MESSAGE));
|
||||
|
||||
if (ex != null) {
|
||||
result.put("messageDetail", "" + ex.getMessage());
|
||||
}
|
||||
resultMap.put(MESSAGE_KEY, result);
|
||||
}
|
||||
|
||||
public String getDefaultStatusMessage(String message, String defMessage) {
|
||||
if (message == null) {
|
||||
return defMessage;
|
||||
}
|
||||
return message;
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,206 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.context.annotation.ScopedProxyMode;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
|
||||
public class UserInfo implements Serializable {
|
||||
|
||||
// EMP_CD
|
||||
private String userId;
|
||||
|
||||
// EMP_NM
|
||||
private String userName;
|
||||
|
||||
// 시스템 관리자 여부
|
||||
private boolean isAdmin;
|
||||
|
||||
// MAIN_LAYOUT_PAGE_CODE - 메인화면 layout
|
||||
private String mainLayoutCode;
|
||||
|
||||
// FAVORITE_STORAGE - 즐겨찾기 저장 위치
|
||||
private String favoriteStorage;
|
||||
|
||||
@Value("${main.setting.default.layout}")
|
||||
private String defaultMainLayoutCode;
|
||||
|
||||
@Value("${main.setting.default.favoriteLocation}")
|
||||
private String defaultFavoriteStorage;
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
private void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
private void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public boolean getIsAdmin() {
|
||||
return isAdmin;
|
||||
}
|
||||
|
||||
public void setIsAdmin(boolean isAdmin) {
|
||||
this.isAdmin = isAdmin;
|
||||
}
|
||||
|
||||
public String getMainLayoutCode() {
|
||||
return mainLayoutCode;
|
||||
}
|
||||
|
||||
public void setMainLayoutCode(String mainLayoutCode) {
|
||||
if (mainLayoutCode == null || mainLayoutCode.equals("")) {
|
||||
this.mainLayoutCode = this.defaultMainLayoutCode;
|
||||
} else {
|
||||
this.mainLayoutCode = mainLayoutCode;
|
||||
}
|
||||
}
|
||||
|
||||
public String getFavoriteStorage() {
|
||||
return favoriteStorage;
|
||||
}
|
||||
|
||||
public void setFavoriteStorage(String favoriteStorage) {
|
||||
if (favoriteStorage == null || favoriteStorage.equals("")) {
|
||||
this.mainLayoutCode = this.defaultFavoriteStorage;
|
||||
} else {
|
||||
this.favoriteStorage = favoriteStorage;
|
||||
}
|
||||
}
|
||||
|
||||
public String getDefaultMainLayoutCode() {
|
||||
return this.defaultMainLayoutCode;
|
||||
}
|
||||
|
||||
public String getDefaultFavoriteStorage() {
|
||||
return this.defaultFavoriteStorage;
|
||||
}
|
||||
|
||||
public Map<String, Object> getUserInfo() {
|
||||
Map<String, Object> userInfo = new HashMap<String, Object>();
|
||||
userInfo.put("EMP_CD", this.getUserId());
|
||||
userInfo.put("EMP_NM", this.getUserName());
|
||||
userInfo.put("MAIN_LAYOUT", this.getMainLayoutCode());
|
||||
userInfo.put("FV_STORAGE", this.getFavoriteStorage());
|
||||
return userInfo;
|
||||
}
|
||||
|
||||
public Map<String, Object> getUserInfoWithoutUserID() {
|
||||
Map<String, Object> userInfo = new HashMap<String, Object>();
|
||||
userInfo.put("EMP_NM", this.getUserName());
|
||||
userInfo.put("MAIN_LAYOUT", this.getMainLayoutCode());
|
||||
userInfo.put("FV_STORAGE", this.getFavoriteStorage());
|
||||
return userInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Map객체에 사원번호만 담아서 return한다.
|
||||
*
|
||||
* @date 2016.08.22
|
||||
* @returns <Map> EMP_CD가 담긴 map
|
||||
* @author InswaveSystems
|
||||
* @example 샘플 코드
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
public Map getUserInfoByBase() {
|
||||
Map<String, Object> userInfo = new HashMap<String, Object>();
|
||||
userInfo.put("EMP_CD", this.getUserId());
|
||||
userInfo.put("USER_ID", this.getUserId());
|
||||
return userInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* session 값을 참조하여 dataSetting
|
||||
*
|
||||
* @date 2016.08.19
|
||||
* @param session 사용자 정보가 담긴 session객체
|
||||
* @author InswaveSystems
|
||||
* @example 샘플 코드
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
public void setUserInfo(HttpSession session) {
|
||||
this.setUserId((String) session.getAttribute("EMP_CD"));
|
||||
this.setUserName((String) session.getAttribute("EMP_NM"));
|
||||
this.setIsAdmin((boolean) session.getAttribute("IS_ADMIN"));
|
||||
this.setMainLayoutCode((String) session.getAttribute("MAIN_LAYOUT_PAGE_CODE"));
|
||||
}
|
||||
|
||||
/**
|
||||
* session 값을 참조하여 dataSetting
|
||||
*
|
||||
* @date 2016. 8. 19.
|
||||
* @param session 사용자 정보가 담긴 session객체
|
||||
* @author InswaveSystems
|
||||
* @example 샘플 코드
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
public void updateMainLayoutCode(HttpSession session, String mainLayoutPageCode) {
|
||||
this.setMainLayoutCode(mainLayoutPageCode);
|
||||
session.setAttribute("MAIN_LAYOUT_PAGE_CODE", this.getMainLayoutCode());
|
||||
}
|
||||
|
||||
/**
|
||||
* Map값을 참조하여 dataSetting
|
||||
*
|
||||
* @date 2016. 8. 19.
|
||||
* @param memberInfo 사용자 정보가 담긴 map객체
|
||||
* @author InswaveSystems
|
||||
* @example 샘플 코드
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
public void setUserInfo(Map memberInfo) {
|
||||
this.setUserId((String) memberInfo.get("EMP_CD"));
|
||||
this.setUserName((String) memberInfo.get("EMP_NM"));
|
||||
this.setMainLayoutCode((String) memberInfo.get("MAIN_LAYOUT_PAGE_CODE"));
|
||||
this.setFavoriteStorage((String) memberInfo.get("FAVORITE_STORAGE"));
|
||||
}
|
||||
|
||||
/**
|
||||
* data 초기화
|
||||
*
|
||||
* @date 2016. 8. 19.
|
||||
* @returns <void> 반환 변수 및 객체
|
||||
* @author InswaveSystems
|
||||
* @example 샘플 코드
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
public void init() {
|
||||
this.setUserId(null);
|
||||
this.setUserName(null);
|
||||
this.setMainLayoutCode(null);
|
||||
this.setFavoriteStorage(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 사용자(로그인) 정보가 있는 경우
|
||||
*
|
||||
* @date 2016. 8. 19.
|
||||
* @returns <Boolean> 반환 변수 및 객체
|
||||
* @author InswaveSystems
|
||||
* @example 샘플 코드
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
public Boolean isLogined() {
|
||||
String userId = this.getUserId();
|
||||
if (userId == null || userId.equals("")) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.ibatis.session.ResultContext;
|
||||
import org.apache.ibatis.session.ResultHandler;
|
||||
|
||||
public class WqExcelProviderHandler implements ResultHandler {
|
||||
|
||||
private ArrayList<Object> dataArr = null;
|
||||
private String[] keyCode = new String[0];
|
||||
|
||||
/**
|
||||
* Data객체는 getResult()를 호출하여 반환받는다.
|
||||
*/
|
||||
public WqExcelProviderHandler() {
|
||||
dataArr = new ArrayList();
|
||||
}
|
||||
|
||||
public void setKeyCode(String[] keys) {
|
||||
keyCode = keys.clone();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleResult(ResultContext context) {
|
||||
HashMap data = (HashMap)context.getResultObject();
|
||||
|
||||
for (int i = 0; i < keyCode.length; i++) {
|
||||
String key = keyCode[i];
|
||||
if (data.get(key) == null) {
|
||||
dataArr.add("");
|
||||
} else {
|
||||
dataArr.add(String.valueOf(data.get(key)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* String[] 데이타를 반환한다.
|
||||
*
|
||||
* @date 2016.08.17
|
||||
* @returns <Object> String[]
|
||||
* @author InswaveSystems
|
||||
* @example
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
public Object getResult() {
|
||||
/*
|
||||
returnData = new String[dataArr.size()];
|
||||
for (int i = 0; i < dataArr.size(); i++) {
|
||||
returnData[i] = String.valueOf(dataArr.get(i));
|
||||
}
|
||||
*/
|
||||
String returnData[] = new String[dataArr.size()];
|
||||
dataArr.toArray(returnData);
|
||||
return returnData;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
ArrayList<Object> list = new ArrayList<>();
|
||||
list.add(this.dataArr);
|
||||
return list.size();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.inswave.util;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.ibatis.session.ResultContext;
|
||||
import org.apache.ibatis.session.ResultHandler;
|
||||
|
||||
public class WqLargeResultHandler implements ResultHandler {
|
||||
|
||||
private int totRowCount = 0;
|
||||
private int totColCount = 0;
|
||||
private ArrayList<String> columnArr = null;
|
||||
private ArrayList<Object> dataArr = null;
|
||||
private Map<String, Object> result = null;
|
||||
|
||||
/**
|
||||
* Data객체는 getResult()를 호출하여 반환받는다.
|
||||
*/
|
||||
public WqLargeResultHandler() {
|
||||
dataArr = new ArrayList<Object>();
|
||||
result = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleResult(ResultContext context) {
|
||||
mapTypeRowHandler((LinkedHashMap) context.getResultObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Map타입의 실 data를 생성.
|
||||
*
|
||||
* @date 2016.08.17
|
||||
* @param rowMap row단위의 Map객체
|
||||
* @author InswaveSystems
|
||||
* @example 샘플 코드
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
private void mapTypeRowHandler(LinkedHashMap rowMap) {
|
||||
if (totRowCount == 0) {
|
||||
columnArr = new ArrayList<String>();
|
||||
Set keySet = rowMap.keySet();
|
||||
Iterator<String> keys = keySet.iterator();
|
||||
totColCount = keySet.size();
|
||||
|
||||
while (keys.hasNext()) {
|
||||
String key = (String) keys.next();
|
||||
columnArr.add(key);
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < totColCount; i++) {
|
||||
dataArr.add(rowMap.get(columnArr.get(i)));
|
||||
}
|
||||
totRowCount++;
|
||||
}
|
||||
|
||||
/**
|
||||
* resultType에 따른 Data객체를 반환한다.
|
||||
*
|
||||
* @date 2016.08.17
|
||||
* @returns <Object> [Map, String]반환 받은 뒤 type변환 필요.
|
||||
* @author InswaveSystems
|
||||
* @example new LargeDataHandler()<br/>
|
||||
* - return Map 객체 : {columnInfo:[],data:[],rowCount:0,colCount:0}<br/>
|
||||
* @todo 추가해야 할 작업
|
||||
*/
|
||||
public Object getResult() {
|
||||
result.put("columnInfo", columnArr);
|
||||
result.put("data", dataArr);
|
||||
result.put("rowCount", "" + totRowCount);
|
||||
result.put("colCount", "" + totColCount);
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.putAll(this.result);
|
||||
return map;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,88 @@
|
||||
/*
|
||||
* @(#)BdsApiEnum.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* kdw, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author kdw
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.api;
|
||||
|
||||
/**
|
||||
* @Description : api 제공에 사용되는 열거형 데이터
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @author kdw
|
||||
*/
|
||||
public enum BdsApiEnum {
|
||||
|
||||
_bhfList(901, "시민시장실_지점마스터"),
|
||||
_cctvList(902, "시민시장실_CCTV마스터"),
|
||||
_bhfMappingList(903, "시민시장실_지점매핑"),
|
||||
// 우선 연린 관장 데이터를 따라서 작성.
|
||||
bhfList(10,"시민시장실_지점마스터"),
|
||||
cctvList(11,"시민시장실_CCTV마스터"),
|
||||
bhfMappingList(12,"시민시장실_지점매핑"),
|
||||
popltnInfo(13,"시민시장실_인구수"),
|
||||
enfsnInfo(14,"시민시장실_종사자수"),
|
||||
bsnesInfo(18,"시민시장실_사업체수"),
|
||||
gtpaNormalInfo(15,"시민시장실_등록차량지표"),
|
||||
recogInfoWithCamera(16,"시민시장실_카메라인식정보"),
|
||||
recogInfoWithID(17,"시민시장실_아이디인식정보"),
|
||||
apiAvgSpd(19,"시민시장실_평균속도"),
|
||||
apiTraffic(20,"시민시장실_대중교통이용객"),
|
||||
apiFaCnt(21,"시민시장실_시설품"),
|
||||
apiPasngStat(22,"시민시장실_한양도성진출입통계"),
|
||||
apiRegltStat(23,"시민시장실_한양도성단속통계"),
|
||||
|
||||
// 치명적이지 않은 결과 값 반환 데이터
|
||||
INFO000(000,"정상 처리되었습니다"),
|
||||
INFO100(100,"인증키가 유효하지 않습니다.\n인증키가 없는 경우, 관리자에게 인증키를 신청하십시오."),
|
||||
INFO200(200,"해당하는 데이터가 없습니다."),
|
||||
|
||||
// 치명적인 결과 값 반환 데이터
|
||||
ERROR300(300,"필수 값이 잘못되어 있습니다.\n요청인자를 참고 하십시오"),
|
||||
ERROR310(310,"해당하는 서비스를 찾을 수 없습니다.\n요청인자 중 SERVICE를 확인하십시오."),
|
||||
ERROR500(300,"서버 오류입니다.\n지속적으로 발생시 관리자에게 문의 바랍니다.");
|
||||
|
||||
/** service, info, error 코드 */
|
||||
private int code;
|
||||
|
||||
/** service, info, error 코드에 따른 메시지 또는 서비스명 */
|
||||
private String str;
|
||||
|
||||
/**
|
||||
* BdsApiEnum 생성자
|
||||
*
|
||||
* @param code
|
||||
* @param str
|
||||
*/
|
||||
private BdsApiEnum(int code,String str) {
|
||||
this.code = code;
|
||||
this.str = str;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getStr() {
|
||||
return str;
|
||||
}
|
||||
|
||||
public void setStr(String str) {
|
||||
this.str = str;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,331 @@
|
||||
/*
|
||||
* @(#)BdsApiController.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* kdw, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author kdw
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.api.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import kr.seoul.green.bds.api.BdsApiEnum;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiBhfCctvMappingVO;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiBhfVO;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiCctvVO;
|
||||
import kr.seoul.green.bds.api.serivce.BdsApiService;
|
||||
import kr.seoul.green.bds.dashboard.service.MainDashBoardService;
|
||||
import kr.seoul.green.bds.manage.service.SysManageService;
|
||||
import kr.seoul.green.bds.pasngix.service.DailPasngIxService;
|
||||
import kr.seoul.green.bds.stats.service.SbepService;
|
||||
|
||||
/**
|
||||
* @Description : Open Api 제공 Controller
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 11.
|
||||
* @author kdw
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/Api")
|
||||
public class BdsApiController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(BdsApiController.class);
|
||||
|
||||
/** 현재 제공되지 않는 데이터를 제공하기 위한 Service */
|
||||
@Autowired
|
||||
private BdsApiService bdsApiService;
|
||||
|
||||
/** 통계 데이터를 제공하기 위한 Service */
|
||||
@Autowired
|
||||
private SbepService sbepService;
|
||||
|
||||
@Autowired
|
||||
private MainDashBoardService mainDashBoardService;
|
||||
|
||||
@Autowired
|
||||
private DailPasngIxService dailPasngIxService;
|
||||
|
||||
/** 운영관리 SERVICE (API KEY 조회 가능) */
|
||||
@Autowired
|
||||
private SysManageService sysManageService;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 데이터 조회시 파라메터가 필요하지 않은 서비스 제공용
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Type : key - String, service - String
|
||||
* @return Type : Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/{key}/{service}", method = RequestMethod.GET)
|
||||
public @ResponseBody Map<String, Object> getData(@PathVariable("key") String key,
|
||||
@PathVariable("service") String service) {
|
||||
List<Map<String, Object>> resultData = null;
|
||||
try {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
Date date = calendar.getTime();
|
||||
SimpleDateFormat formatter=new SimpleDateFormat("yyyyMMdd");
|
||||
map.put("API_KEY", key);
|
||||
// 키 값을 조회
|
||||
map.put("EXPIRED_DT_CHK", formatter.format(date));
|
||||
List<Map<String, Object>> list = sysManageService.keyManage(map);
|
||||
|
||||
// 사용가능한 키일때
|
||||
if (list != null && list.size() > 0) {
|
||||
map.put("STDDE", formatter.format(date));
|
||||
map.put("API_CONNECT_SE", "1");
|
||||
formatter.applyPattern("yyyyMMddHHmmss");
|
||||
map.put("BEGIN_TIME", formatter.format(Calendar.getInstance().getTime()));
|
||||
|
||||
//resultData = bdsApiService.getApiData(Service);
|
||||
switch (BdsApiEnum.valueOf(service).getCode()) {
|
||||
case 10:
|
||||
resultData = bdsApiService.getApiBhfList();
|
||||
map.put("API_TY", BdsApiEnum.bhfList);
|
||||
break;
|
||||
case 11:
|
||||
resultData = bdsApiService.getApiCctvList();
|
||||
map.put("API_TY", BdsApiEnum.cctvList);
|
||||
break;
|
||||
case 12:
|
||||
resultData = bdsApiService.getApiBhfMappingCctvData();
|
||||
map.put("API_TY", BdsApiEnum.bhfMappingList);
|
||||
break;
|
||||
case 13:
|
||||
resultData = bdsApiService.ApiPopltn();
|
||||
map.put("API_TY", BdsApiEnum.popltnInfo);
|
||||
break;
|
||||
case 14:
|
||||
resultData = bdsApiService.ApiEnfsn();
|
||||
map.put("API_TY", BdsApiEnum.enfsnInfo);
|
||||
break;
|
||||
case 15:
|
||||
resultData = bdsApiService.ApiRegistVhcleIx();
|
||||
map.put("API_TY", BdsApiEnum.gtpaNormalInfo);
|
||||
break;
|
||||
case 18:
|
||||
resultData = bdsApiService.ApiBsnes();
|
||||
map.put("API_TY", BdsApiEnum.bsnesInfo);
|
||||
break;
|
||||
case 19:
|
||||
resultData = bdsApiService.ApiAvgSpd();
|
||||
map.put("API_TY", BdsApiEnum.apiAvgSpd);
|
||||
break;
|
||||
case 20:
|
||||
resultData = bdsApiService.ApiTraffic();
|
||||
map.put("API_TY", BdsApiEnum.apiTraffic);
|
||||
break;
|
||||
case 21:
|
||||
resultData = bdsApiService.ApiFaCnt();
|
||||
map.put("API_TY", BdsApiEnum.apiFaCnt);
|
||||
break;
|
||||
case 22:
|
||||
resultData = bdsApiService.ApiPasngStat();
|
||||
map.put("API_TY", BdsApiEnum.apiPasngStat);
|
||||
break;
|
||||
case 23:
|
||||
resultData = bdsApiService.ApiRegltStat();
|
||||
map.put("API_TY", BdsApiEnum.apiRegltStat);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 해당 데이터가 없습니다.
|
||||
if(resultData == null){
|
||||
return resultMap(BdsApiEnum.INFO200.getCode(), BdsApiEnum.INFO200.getStr(), null);
|
||||
}
|
||||
map.put("TOT_CNT", resultData.size());
|
||||
map.put("END_TIME", formatter.format(Calendar.getInstance().getTime()));
|
||||
|
||||
int cnt = bdsApiService.setApiTrnsmitInfoLog(map);
|
||||
logger.info("insert 성공 처리 결과 = " + cnt);
|
||||
|
||||
} else {
|
||||
// 인증키 값 오류
|
||||
return resultMap(BdsApiEnum.INFO100.getCode(), BdsApiEnum.INFO100.getStr(), null);
|
||||
}
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
// 서비스에 등록되지 않은 오류가 나왔을때.
|
||||
return resultMap(BdsApiEnum.ERROR300.getCode(), BdsApiEnum.ERROR300.getStr(), null);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
// 서비스에 등록되지 않은 오류가 나왔을때.
|
||||
return resultMap(BdsApiEnum.ERROR300.getCode(), BdsApiEnum.ERROR300.getStr(), null);
|
||||
}
|
||||
// 정상 반환
|
||||
return resultMap(BdsApiEnum.INFO000.getCode(), BdsApiEnum.INFO000.getStr(),resultData);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 데이터 조회시 파라메터가 필요한 서비스 제공용
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Type : key - String, service - String, param - String
|
||||
* @return Type : Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/{key}/{service}/{param}", method = RequestMethod.GET)
|
||||
public @ResponseBody Map<String, Object> getData(@PathVariable("key") String key,
|
||||
@PathVariable("service") String service, @PathVariable("param") String param) {
|
||||
List<Map<String, Object>> resultData = null;
|
||||
try {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
Date date = calendar.getTime();
|
||||
SimpleDateFormat formatter=new SimpleDateFormat("yyyyMMdd");
|
||||
map.put("API_KEY", key);
|
||||
// 키 값을 조회
|
||||
map.put("EXPIRED_DT_CHK", formatter.format(date));
|
||||
List<Map<String, Object>> list = sysManageService.keyManage(map);
|
||||
// 사용가능한 키일때
|
||||
if (list != null && list.size() > 0) {
|
||||
|
||||
//resultData = bdsApiService.getApiData(Service);
|
||||
switch (BdsApiEnum.valueOf(service).getCode()) {
|
||||
case 16:
|
||||
Map params1 = new HashMap();
|
||||
params1.put("cameraId", param);
|
||||
|
||||
if(param == null || param.equals("")){
|
||||
return resultMap(BdsApiEnum.ERROR300.getCode(), BdsApiEnum.ERROR300.getStr(), null);
|
||||
}
|
||||
|
||||
resultData = bdsApiService.ApiPasageInfoWithCameraID(params1);
|
||||
break;
|
||||
case 17:
|
||||
Map params2 = new HashMap();
|
||||
params2.put("recogId", param);
|
||||
|
||||
if(param == null || param.equals("")){
|
||||
return resultMap(BdsApiEnum.ERROR300.getCode(), BdsApiEnum.ERROR300.getStr(), null);
|
||||
}
|
||||
|
||||
resultData = bdsApiService.ApiPasageInfoWithRecogID(params2);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 해당 데이터가 없습니다.
|
||||
if(resultData == null){
|
||||
return resultMap(BdsApiEnum.INFO200.getCode(), BdsApiEnum.INFO200.getStr(), null);
|
||||
}
|
||||
|
||||
} else {
|
||||
// 인증키 값 오류
|
||||
return resultMap(BdsApiEnum.INFO100.getCode(), BdsApiEnum.INFO100.getStr(), null);
|
||||
}
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
// 서비스에 등록되지 않은 오류가 나왔을때.
|
||||
return resultMap(BdsApiEnum.ERROR300.getCode(), BdsApiEnum.ERROR300.getStr(), null);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
// 서비스에 등록되지 않은 오류가 나왔을때.
|
||||
return resultMap(BdsApiEnum.ERROR300.getCode(), BdsApiEnum.ERROR300.getStr(), null);
|
||||
}
|
||||
// 정상 반환
|
||||
return resultMap(BdsApiEnum.INFO000.getCode(), BdsApiEnum.INFO000.getStr(),resultData);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/sample/{key}/{service}", method = RequestMethod.GET)
|
||||
public @ResponseBody Map<String, Object> getSampleData(@PathVariable("key") String key,
|
||||
@PathVariable("service") String service) {
|
||||
List<Map<String, Object>> resultData = null;
|
||||
try {
|
||||
//String keyName = new String(Base64.decodeBase64(key),"UTF-8");
|
||||
|
||||
if("testkey".equals(key)){
|
||||
String Service = BdsApiEnum.valueOf(service).getStr();
|
||||
if(BdsApiEnum.bhfList.getStr().equals(Service)){
|
||||
List<Map<String, Object>>apiBhfList = this.bdsApiService.getApiBhfList();
|
||||
return resultMap(BdsApiEnum.INFO000.getCode(), BdsApiEnum.INFO000.getStr(),apiBhfList);
|
||||
}else if(BdsApiEnum.cctvList.getStr().equals(Service)){
|
||||
List<Map<String, Object>> apiCctvList = this.bdsApiService.getApiCctvList();
|
||||
return resultMap(BdsApiEnum.INFO000.getCode(), BdsApiEnum.INFO000.getStr(),apiCctvList);
|
||||
}else if(BdsApiEnum.bhfMappingList.getStr().equals(Service)){
|
||||
List<Map<String, Object>> apiBhfMappingCctvList = this.bdsApiService.getApiBhfMappingCctvData();
|
||||
return resultMap(BdsApiEnum.INFO000.getCode(), BdsApiEnum.INFO000.getStr(),apiBhfMappingCctvList);
|
||||
}
|
||||
|
||||
} else {
|
||||
// 인증키 값 오류
|
||||
return resultMap(BdsApiEnum.INFO100.getCode(), BdsApiEnum.INFO100.getStr(), null);
|
||||
}
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
// 서비스에 등록되지 않은 오류가 나왔을때.
|
||||
return resultMap(BdsApiEnum.ERROR300.getCode(), BdsApiEnum.ERROR300.getStr(), null);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
// 서비스에 등록되지 않은 오류가 나왔을때.
|
||||
return resultMap(BdsApiEnum.ERROR300.getCode(), BdsApiEnum.ERROR300.getStr(), null);
|
||||
}
|
||||
// 정상 반환
|
||||
return resultMap(BdsApiEnum.INFO000.getCode(), BdsApiEnum.INFO000.getStr(),resultData);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : API 요청 결과 포멧 생성용
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Type : code - int(결과 코드), msg - String(코드의 메시지), data - Object(데이터)
|
||||
* @return Type : Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
private Map<String, Object> resultMap(int code, String msg, Object data) {
|
||||
|
||||
Map<String, Object> result = new HashMap<String, Object>();
|
||||
result.put("resultCode", code);
|
||||
result.put("resultMessage", msg);
|
||||
if (data != null) {
|
||||
result.put("data", data);
|
||||
if(data instanceof List){
|
||||
result.put("totalDataCount", ((List)data).size());
|
||||
}else{
|
||||
result.put("totalDataCount", "1");
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,153 @@
|
||||
/*
|
||||
* @(#)DailReportDao.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* 이름, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author 이름
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.api.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiBhfCctvMappingVO;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiBhfVO;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiCctvVO;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 10.
|
||||
* @author
|
||||
*/
|
||||
@Mapper("apiDao")
|
||||
public interface ApiDao {
|
||||
|
||||
/**
|
||||
* @Description : 녹색교통 지점 정보를 가져온다.
|
||||
* <pre>
|
||||
* @author : 최민욱
|
||||
* @Date : 2019. 9. 23.
|
||||
* </pre>
|
||||
*
|
||||
* @return 지점정보
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> getApiBhfData() throws SQLException;
|
||||
List<Map<String, Object>> getApiCctvData() throws SQLException;
|
||||
List<Map<String, Object>> getApiBhfMappingCctvData() throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 인구수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiPopltn() throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 종사자 수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiEnfsn() throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 사업체 수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiBsnes() throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 등록차량 지표
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiRegistVhcleIx() throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 카메라단위 5분동안 최신의 차량 통행 정보
|
||||
* <pre>
|
||||
* @author : cmw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiPasageInfoWithCameraID(Map params) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 카메라단위 5분동안 최신의 차량 통행 정보
|
||||
* <pre>
|
||||
* @author : cmw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiPasageInfoWithRecogID(Map params) throws SQLException;
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 송신 정보를 로그에 기록
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 12. 3.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return int
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
int setApiTrnsmitInfoLog(Map<String, Object> map) throws SQLException;
|
||||
List<Map<String, Object>> ApiAvgSpd();
|
||||
List<Map<String, Object>> ApiTraffic();
|
||||
List<Map<String, Object>> ApiFaCnt();
|
||||
List<Map<String, Object>> ApiPasngStat();
|
||||
List<Map<String, Object>> ApiRegltStat();
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package kr.seoul.green.bds.api.dao.model;
|
||||
|
||||
public class ApiBhfCctvMappingVO {
|
||||
private String bhf_id;
|
||||
private String mapng_id;
|
||||
private String fclts_id;
|
||||
public String getBhf_id() {
|
||||
return bhf_id;
|
||||
}
|
||||
public void setBhf_id(String bhf_id) {
|
||||
this.bhf_id = bhf_id;
|
||||
}
|
||||
public String getMapng_id() {
|
||||
return mapng_id;
|
||||
}
|
||||
public void setMapng_id(String mapng_id) {
|
||||
this.mapng_id = mapng_id;
|
||||
}
|
||||
public String getFclts_id() {
|
||||
return fclts_id;
|
||||
}
|
||||
public void setFclts_id(String fclts_id) {
|
||||
this.fclts_id = fclts_id;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
package kr.seoul.green.bds.api.dao.model;
|
||||
|
||||
public class ApiBhfVO {
|
||||
private String bhf_manage_id;
|
||||
private String bhf_id;
|
||||
private String bhf_nm;
|
||||
private String instl_adres;
|
||||
private String instl_la;
|
||||
private String instl_lo;
|
||||
private String cartrkco;
|
||||
private String rn;
|
||||
private String sort_ordr;
|
||||
private String regist_dt;
|
||||
private String updt_dt;
|
||||
public String getBhf_manage_id() {
|
||||
return bhf_manage_id;
|
||||
}
|
||||
public void setBhf_manage_id(String bhf_manage_id) {
|
||||
this.bhf_manage_id = bhf_manage_id;
|
||||
}
|
||||
public String getBhf_id() {
|
||||
return bhf_id;
|
||||
}
|
||||
public void setBhf_id(String bhf_id) {
|
||||
this.bhf_id = bhf_id;
|
||||
}
|
||||
public String getBhf_nm() {
|
||||
return bhf_nm;
|
||||
}
|
||||
public void setBhf_nm(String bhf_nm) {
|
||||
this.bhf_nm = bhf_nm;
|
||||
}
|
||||
public String getInstl_adres() {
|
||||
return instl_adres;
|
||||
}
|
||||
public void setInstl_adres(String instl_adres) {
|
||||
this.instl_adres = instl_adres;
|
||||
}
|
||||
public String getInstl_la() {
|
||||
return instl_la;
|
||||
}
|
||||
public void setInstl_la(String instl_la) {
|
||||
this.instl_la = instl_la;
|
||||
}
|
||||
public String getInstl_lo() {
|
||||
return instl_lo;
|
||||
}
|
||||
public void setInstl_lo(String instl_lo) {
|
||||
this.instl_lo = instl_lo;
|
||||
}
|
||||
public String getCartrkco() {
|
||||
return cartrkco;
|
||||
}
|
||||
public void setCartrkco(String cartrkco) {
|
||||
this.cartrkco = cartrkco;
|
||||
}
|
||||
public String getRn() {
|
||||
return rn;
|
||||
}
|
||||
public void setRn(String rn) {
|
||||
this.rn = rn;
|
||||
}
|
||||
public String getSort_ordr() {
|
||||
return sort_ordr;
|
||||
}
|
||||
public void setSort_ordr(String sort_ordr) {
|
||||
this.sort_ordr = sort_ordr;
|
||||
}
|
||||
public String getRegist_dt() {
|
||||
return regist_dt;
|
||||
}
|
||||
public void setRegist_dt(String regist_dt) {
|
||||
this.regist_dt = regist_dt;
|
||||
}
|
||||
public String getUpdt_dt() {
|
||||
return updt_dt;
|
||||
}
|
||||
public void setUpdt_dt(String updt_dt) {
|
||||
this.updt_dt = updt_dt;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,97 @@
|
||||
package kr.seoul.green.bds.api.dao.model;
|
||||
|
||||
public class ApiCctvVO {
|
||||
private String cctv_id;
|
||||
private String cctv_nm;
|
||||
private String cctv_ty;
|
||||
private String conect_id;
|
||||
private String conect_password;
|
||||
private String conect_port;
|
||||
private String ip_adres;
|
||||
private String rm;
|
||||
private String url;
|
||||
private String url_hls;
|
||||
private String url_rtmp;
|
||||
private String url_rtsp;
|
||||
private String use_at;
|
||||
public String getCctv_id() {
|
||||
return cctv_id;
|
||||
}
|
||||
public void setCctv_id(String cctv_id) {
|
||||
this.cctv_id = cctv_id;
|
||||
}
|
||||
public String getCctv_nm() {
|
||||
return cctv_nm;
|
||||
}
|
||||
public void setCctv_nm(String cctv_nm) {
|
||||
this.cctv_nm = cctv_nm;
|
||||
}
|
||||
public String getCctv_ty() {
|
||||
return cctv_ty;
|
||||
}
|
||||
public void setCctv_ty(String cctv_ty) {
|
||||
this.cctv_ty = cctv_ty;
|
||||
}
|
||||
public String getConect_id() {
|
||||
return conect_id;
|
||||
}
|
||||
public void setConect_id(String conect_id) {
|
||||
this.conect_id = conect_id;
|
||||
}
|
||||
public String getConect_password() {
|
||||
return conect_password;
|
||||
}
|
||||
public void setConect_password(String conect_password) {
|
||||
this.conect_password = conect_password;
|
||||
}
|
||||
public String getConect_port() {
|
||||
return conect_port;
|
||||
}
|
||||
public void setConect_port(String conect_port) {
|
||||
this.conect_port = conect_port;
|
||||
}
|
||||
public String getIp_adres() {
|
||||
return ip_adres;
|
||||
}
|
||||
public void setIp_adres(String ip_adres) {
|
||||
this.ip_adres = ip_adres;
|
||||
}
|
||||
public String getRm() {
|
||||
return rm;
|
||||
}
|
||||
public void setRm(String rm) {
|
||||
this.rm = rm;
|
||||
}
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
public String getUrl_hls() {
|
||||
return url_hls;
|
||||
}
|
||||
public void setUrl_hls(String url_hls) {
|
||||
this.url_hls = url_hls;
|
||||
}
|
||||
public String getUrl_rtmp() {
|
||||
return url_rtmp;
|
||||
}
|
||||
public void setUrl_rtmp(String url_rtmp) {
|
||||
this.url_rtmp = url_rtmp;
|
||||
}
|
||||
public String getUrl_rtsp() {
|
||||
return url_rtsp;
|
||||
}
|
||||
public void setUrl_rtsp(String url_rtsp) {
|
||||
this.url_rtsp = url_rtsp;
|
||||
}
|
||||
public String getUse_at() {
|
||||
return use_at;
|
||||
}
|
||||
public void setUse_at(String use_at) {
|
||||
this.use_at = use_at;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,137 @@
|
||||
/*
|
||||
* @(#)BdsApiService.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* kdw, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author kdw
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.api.serivce;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import kr.seoul.green.bds.api.dao.model.ApiBhfCctvMappingVO;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiBhfVO;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiCctvVO;
|
||||
|
||||
/**
|
||||
* @Description : Open APi Service Interface
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @author kdw
|
||||
*/
|
||||
public interface BdsApiService {
|
||||
|
||||
List<Map<String, Object>> getApiBhfList() throws SQLException;
|
||||
List<Map<String, Object>> getApiCctvList() throws SQLException;
|
||||
List<Map<String, Object>> getApiBhfMappingCctvData() throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 인구수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiPopltn() throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 종사자 수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiEnfsn() throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 사업체 수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiBsnes() throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 등록차량 지표
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiRegistVhcleIx() throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 카메라단위 5분동안 최신의 차량 통행 정보
|
||||
* <pre>
|
||||
* @author : cmw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiPasageInfoWithCameraID(Map params) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 카메라단위 5분동안 최신의 차량 통행 정보
|
||||
* <pre>
|
||||
* @author : cmw
|
||||
* @Date : 2019. 11. 21.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> ApiPasageInfoWithRecogID(Map params) throws SQLException;
|
||||
/**
|
||||
* @Description : 송신 정보를 로그에 기록
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 12. 3.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return int
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
int setApiTrnsmitInfoLog(Map<String, Object> map) throws SQLException;
|
||||
List<Map<String, Object>> ApiAvgSpd();
|
||||
List<Map<String, Object>> ApiTraffic();
|
||||
List<Map<String, Object>> ApiFaCnt();
|
||||
List<Map<String, Object>> ApiPasngStat();
|
||||
List<Map<String, Object>> ApiRegltStat();
|
||||
}
|
||||
@ -0,0 +1,130 @@
|
||||
/*
|
||||
* @(#)BdsApiServiceImpl.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* kdw, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author kdw
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.api.serivce.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
|
||||
import kr.seoul.green.bds.api.dao.ApiDao;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiBhfCctvMappingVO;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiBhfVO;
|
||||
import kr.seoul.green.bds.api.dao.model.ApiCctvVO;
|
||||
import kr.seoul.green.bds.api.serivce.BdsApiService;
|
||||
|
||||
/**
|
||||
* @Description : Open APi Service
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @author kdw
|
||||
*/
|
||||
@Service
|
||||
public class BdsApiServiceImpl extends EgovAbstractServiceImpl implements BdsApiService {
|
||||
|
||||
@Autowired private ApiDao apiDao;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> getApiBhfList() throws SQLException {
|
||||
return apiDao.getApiBhfData();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> getApiCctvList() throws SQLException {
|
||||
return apiDao.getApiCctvData();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> getApiBhfMappingCctvData() throws SQLException {
|
||||
return apiDao.getApiBhfMappingCctvData();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiPopltn() throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.ApiPopltn();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiEnfsn() throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.ApiEnfsn();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiBsnes() throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.ApiBsnes();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiRegistVhcleIx() throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.ApiRegistVhcleIx();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiPasageInfoWithCameraID(Map params) throws SQLException {
|
||||
return apiDao.ApiPasageInfoWithCameraID(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiPasageInfoWithRecogID(Map params) throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.ApiPasageInfoWithRecogID(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int setApiTrnsmitInfoLog(Map<String, Object> map) throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.setApiTrnsmitInfoLog(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiAvgSpd() {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.ApiAvgSpd();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiTraffic() {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.ApiTraffic();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiFaCnt() {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.ApiFaCnt();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiPasngStat() {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.ApiPasngStat();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> ApiRegltStat() {
|
||||
// TODO Auto-generated method stub
|
||||
return apiDao.ApiRegltStat();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
/*
|
||||
* @(#)BdsProvider.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* 추윤지, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author 추윤지
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.common;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
import websquare.http.WebSquareContext;
|
||||
import websquare.http.controller.grid.excel.write.IExternalGridDataProvider;
|
||||
import websquare.util.XMLUtil;
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 10.
|
||||
* @author 추윤지
|
||||
*/
|
||||
public class BdsProvider implements IExternalGridDataProvider {
|
||||
|
||||
@Override
|
||||
public String[] getData(Document requestObj) throws RuntimeException {
|
||||
WebSquareContext websquareContext = WebSquareContext.getContext();
|
||||
HttpServletRequest request = websquareContext.getRequest();
|
||||
|
||||
// advancedExcelDownUrl 속성을 통해서 전달한 파라미터 값을 가져옵니다.
|
||||
//int cellCount = Integer.parseInt(request.getParameter("param1"));
|
||||
|
||||
// requestObj는 options.providerRequestXml에서 전달한 XML 문자열을 Document Object로 변환한 객체입니다.
|
||||
String actionId = XMLUtil.getText(requestObj, "actionId");
|
||||
// 테스트를 위해서 actionId별로 사용할 임시 데이터를 생성하는 코드 입니다.
|
||||
String[] returnStrArr = new String[5];
|
||||
String[] returnStrArr1 = {"a", "1000", "b", "2000", "c", "3000", "d", "4000"};
|
||||
String[] returnStrArr2 = {"a", "1000", "c", "3000"};
|
||||
|
||||
if (actionId.equals("A001")) {
|
||||
returnStrArr = returnStrArr1;
|
||||
|
||||
} else if (actionId.equals("A002")) {
|
||||
returnStrArr = returnStrArr2;
|
||||
}
|
||||
return returnStrArr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
sys_ty_code = 20
|
||||
@ -0,0 +1,43 @@
|
||||
package kr.seoul.green.bds.common.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.util.Result;
|
||||
|
||||
import kr.seoul.green.bds.common.service.BdsManualService;
|
||||
|
||||
|
||||
@Controller
|
||||
public class BdsManualController {
|
||||
private static final Logger logger = Logger.getLogger(BdsManualController.class);
|
||||
|
||||
@Autowired
|
||||
private BdsManualService bdsManualService;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/common/bds_Mnl", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> Bds_Mnl(@RequestBody Map<String, Object> param){
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dtl_ProgramCD");
|
||||
map.put("PROGRAM_CD", map.get("PROGRAM_CD"));
|
||||
result.setData("dtl_Bds_Mnl", bdsManualService.Bds_Mnl(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* @(#)BdsCommonDao.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* 추윤지, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author 추윤지
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.common.dao;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
import kr.seoul.green.bds.common.model.AliveVO;
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 10.
|
||||
* @author
|
||||
*/
|
||||
@Mapper("bdsCommonDao")
|
||||
public interface BdsCommonDao {
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param AliveVO
|
||||
* @return
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
void aliveRegist(AliveVO aliveVO);
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
package kr.seoul.green.bds.common.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
@Mapper("bdsManualDao")
|
||||
public interface BdsManualDao {
|
||||
List<Map<String,Object>> Bds_Mnl(Map<String,Object> map) throws SQLException;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package kr.seoul.green.bds.common.model;
|
||||
|
||||
public class AliveVO {
|
||||
private String sysTyCode;
|
||||
private String sysSttusCode;
|
||||
private String register;
|
||||
public String getSysTyCode() {
|
||||
return sysTyCode;
|
||||
}
|
||||
public void setSysTyCode(String sysTyCode) {
|
||||
this.sysTyCode = sysTyCode;
|
||||
}
|
||||
public String getSysSttusCode() {
|
||||
return sysSttusCode;
|
||||
}
|
||||
public void setSysSttusCode(String sysSttusCode) {
|
||||
this.sysSttusCode = sysSttusCode;
|
||||
}
|
||||
public String getRegister() {
|
||||
return register;
|
||||
}
|
||||
public void setRegister(String register) {
|
||||
this.register = register;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* @(#)AliveService.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* 추윤지, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author 추윤지
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.common.service;
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 10.
|
||||
* @author 추윤지
|
||||
*/
|
||||
public interface AliveService {
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
void sender();
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
package kr.seoul.green.bds.common.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface BdsManualService {
|
||||
|
||||
List<Map<String,Object>> Bds_Mnl(Map<String,Object> map) throws SQLException;
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
/*
|
||||
* @(#)AliveSenderImpl.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* 추윤지, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author 추윤지
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.common.service.impl;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.context.ConfigurableWebApplicationContext;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import kr.seoul.green.bds.common.dao.BdsCommonDao;
|
||||
import kr.seoul.green.bds.common.model.AliveVO;
|
||||
import kr.seoul.green.bds.common.service.AliveService;
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 10.
|
||||
* @author 추윤지
|
||||
*/
|
||||
@Service
|
||||
public class AliveSenderImpl extends EgovAbstractServiceImpl implements AliveService{
|
||||
private static final String BDS_A = "bds_a";
|
||||
private static final String BDS_B = "bds_b";
|
||||
|
||||
@Resource(name = "bdsCommonDao")
|
||||
private BdsCommonDao bdsCommonDao;
|
||||
|
||||
@Autowired
|
||||
private ConfigurableWebApplicationContext subContext;
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
// @Override
|
||||
// public void sender() {
|
||||
// String[] profiles = subContext.getEnvironment().getActiveProfiles();
|
||||
// if(profiles != null && profiles.length > 0){
|
||||
// String pName = profiles[0];
|
||||
//
|
||||
//
|
||||
// if(pName == null){
|
||||
//
|
||||
// }else{
|
||||
// AliveVO aliveVO = null;
|
||||
// if(pName.equals(BDS_A)){
|
||||
// aliveVO = new AliveVO();
|
||||
// aliveVO.setRegister(BDS_A);
|
||||
// aliveVO.setSysTyCode("20");
|
||||
// aliveVO.setSysSttusCode("2");
|
||||
// }else{
|
||||
// aliveVO = new AliveVO();
|
||||
// aliveVO.setRegister(BDS_B);
|
||||
// aliveVO.setSysTyCode("21");
|
||||
// aliveVO.setSysSttusCode("2");
|
||||
// }
|
||||
//
|
||||
// bdsCommonDao.aliveRegist(aliveVO);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
@Override
|
||||
public void sender() {
|
||||
AliveVO aliveVO = null;
|
||||
aliveVO = new AliveVO();
|
||||
aliveVO.setRegister(BDS_B);
|
||||
aliveVO.setSysTyCode("21");
|
||||
aliveVO.setSysSttusCode("2");
|
||||
bdsCommonDao.aliveRegist(aliveVO);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package kr.seoul.green.bds.common.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import kr.seoul.green.bds.common.dao.BdsManualDao;
|
||||
import kr.seoul.green.bds.common.service.BdsManualService;
|
||||
|
||||
@Service
|
||||
public class BdsManualServiceImpl extends EgovAbstractServiceImpl implements BdsManualService {
|
||||
|
||||
@Resource(name = "bdsManualDao")
|
||||
private BdsManualDao bdsManualDao;
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> Bds_Mnl(Map<String, Object> map) throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return bdsManualDao.Bds_Mnl(map);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,392 @@
|
||||
package kr.seoul.green.bds.cps.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.util.Result;
|
||||
|
||||
import kr.seoul.green.bds.cps.dao.model.BhfVO;
|
||||
import kr.seoul.green.bds.cps.service.PbtrnspService;
|
||||
import kr.seoul.green.bds.dashboard.controller.GreenTrnsportController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 23.
|
||||
* @author
|
||||
*/
|
||||
@Controller
|
||||
public class PbtrnspController {
|
||||
private static final Logger logger = Logger.getLogger(PbtrnspController.class);
|
||||
|
||||
@Autowired
|
||||
private PbtrnspService pbtrnspService;
|
||||
|
||||
/**
|
||||
* @Description : 설명
|
||||
* <pre>
|
||||
* @author : 이름
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/Cps/getBhfAreaData", method=RequestMethod.GET)
|
||||
public @ResponseBody Map<String, Object> getBhfAreaData() {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<BhfVO> bhfList = pbtrnspService.getBhfData();
|
||||
result.setData("dtl_bhf", bhfList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/sttnList", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> sttnList(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> sttnList = pbtrnspService.sttnList((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_sttnList", sttnList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/busPnsgerInfo", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> busPnsgerInfo(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> busPnsgerInfo = pbtrnspService.busPnsgerInfo((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_busPnsger", busPnsgerInfo);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/subwayPnsgerInfo", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> subwayPnsgerInfo(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> subwayPnsgerInfo = pbtrnspService.subwayPnsgerInfo((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_subwayPnsger", subwayPnsgerInfo);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/timePnsgerList", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> timePnsgerList(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> timePnsgerList = pbtrnspService.timePnsgerList((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_timePnsgerList", timePnsgerList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/bhfPasngListWithStdde", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> bhfPasngListWithStdde(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> bhfPasngList = pbtrnspService.bhfPasngListWithStdde((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_bhfPasngList", bhfPasngList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/routeListWithBhfId", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> routeListWithBhfId(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getRouteListWithBhfId((Map) param.get("dma_searchBhfId"));
|
||||
result.setData("dtl_routeList", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/trfWithStddeByDay", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> trfWithStddeByDay(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getTrfWithStddeByDay((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_trfday", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/trfWIthStddeByTime", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> trfWIthStddeByTime(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getTrfWIthStddeByTime((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_trftime", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/Cps/bhfPasngWIthStddeByTime", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> bhfPasngWIthStddeByTime(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getBhfPasngWIthStddeByTime((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_bhftime", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/Cps/linkAvgSpd", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> linkAvgSpd(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getLinkAvgSpd((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_linkspd", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/linkSpdWIthStddeByTime", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> linkSpdWIthStddeByTime(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getLinkAvgSpdWithStddeByTime((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_linkspdtime", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/weatherWithPasngWithStdde", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> weatherWithPasngWithStdde(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getWeatherWithPasngWithStdde((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_weather", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/weatherWithPasngWithStddeForGraph", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> weatherWithPasngWithStddeForGraph(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getWeatherWithPasngWithStddeForGraph((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_weatherGraph", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/weatherWithPasngWithStddeForDailyGraph", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> weatherWithPasngWithStddeForDailyGraph(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getWeatherWithPasngWithStddeForDailyGraph((Map) param.get("dma_param"));
|
||||
result.setData("dtl_weatherDailyGraph", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/Cps/routePnsgerWithBhf", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> routePnsgerWithBhf(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getRoutePnsgerWithBhf((Map) param.get("dma_searchDateAndBhfId"));
|
||||
result.setData("dtl_routePnsgerWithBhf", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Cps/subwayWithBhf", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> subwayWithBhf(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> routeList = pbtrnspService.getSubwayWithBhf((Map) param.get("dma_searchDateAndBhfId"));
|
||||
result.setData("dtl_subwayWithBhf", routeList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
/* 김민정 작업 취합*/
|
||||
@RequestMapping(value = "/Ns/nstunPasng", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> nstunPasng(@RequestBody Map<String, Object> param) {
|
||||
logger.info("NS통행량");
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> nstunPasng = pbtrnspService.nstunPasng((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_nstunPasng", nstunPasng);
|
||||
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Ns/nstunPasngAvg", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> nstunPasngAvg(@RequestBody Map<String, Object> param) {
|
||||
logger.info("NS통행량 평균");
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> nstunPasngAvg = pbtrnspService.nstunPasngAvg((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_nstunPasngAvg", nstunPasngAvg);
|
||||
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Ns/nstunPasngTmsres", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> nstunPasngTmsres(@RequestBody Map<String, Object> param) {
|
||||
logger.info("NS통행량 시계열");
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> nstunPasngTmsres = pbtrnspService.nstunPasngTmsres((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_nstunPasngTmsres", nstunPasngTmsres);
|
||||
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Ns/nstunPasngVe", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> nstunPasngVe(@RequestBody Map<String, Object> param) {
|
||||
logger.info("NS속도");
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> nstunPasngVe = pbtrnspService.nstunPasngVe((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_nstunPasngVe", nstunPasngVe);
|
||||
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Ns/nstunPasngVeAvg", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> nstunPasngVeAvg(@RequestBody Map<String, Object> param) {
|
||||
logger.info("NS속도 평균");
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> nstunPasngVeAvg = pbtrnspService.nstunPasngVeAvg((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_nstunPasngVeAvg", nstunPasngVeAvg);
|
||||
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/Ns/nstunPasngVeTmsres", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> nstunPasngVeTmsres(@RequestBody Map<String, Object> param) {
|
||||
logger.info("NS속도 시계열");
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> nstunPasngVeTmsres = pbtrnspService.nstunPasngVeTmsres((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_nstunPasngVeTmsres", nstunPasngVeTmsres);
|
||||
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/* 끝*/
|
||||
|
||||
@RequestMapping(value = "/Cps/eventData", method=RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> eventData(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map> nstunPasngVeTmsres = pbtrnspService.getEventData((Map) param.get("dma_searchDates"));
|
||||
result.setData("dtl_eventData", nstunPasngVeTmsres);
|
||||
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
/*
|
||||
* @(#)DailReportDao.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* 이름, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author 이름
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.cps.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
import kr.seoul.green.bds.cps.dao.model.BhfVO;
|
||||
import kr.seoul.green.bds.cps.dao.model.PublicTotPsngerVO;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 10.
|
||||
* @author
|
||||
*/
|
||||
@Mapper("pbtrnspDao")
|
||||
public interface PbtrnspDao {
|
||||
|
||||
/**
|
||||
* @Description : 녹색교통 지점 정보를 가져온다.
|
||||
* <pre>
|
||||
* @author : 최민욱
|
||||
* @Date : 2019. 9. 23.
|
||||
* </pre>
|
||||
*
|
||||
* @return 지점ㅈ
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
List<BhfVO> getBhfData() throws SQLException;
|
||||
PublicTotPsngerVO selectPublicTotalPsnger(String stdde) throws SQLException;
|
||||
List<Map> sttnList(Map params) throws SQLException;
|
||||
List<Map> busPnsgerInfo(Map params);
|
||||
List<Map> subwayPnsgerInfo(Map params);
|
||||
List<Map> timePnsgerList(Map params);
|
||||
List<Map> bhfPasngListWithStdde(Map map);
|
||||
List<Map> getRouteListWithBhfId(Map map);
|
||||
List<Map> getTrfWithStddeByDay(Map map);
|
||||
List<Map> getBhfPasngWIthStddeByTime(Map map);
|
||||
List<Map> getTrfWIthStddeByTime(Map map);
|
||||
List<Map> getLinkAvgSpd(Map map);
|
||||
List<Map> getLinkAvgSpdWithStddeByTime(Map map);
|
||||
List<Map> getWeatherWithPasngWithStdde(Map map);
|
||||
List<Map> getWeatherWithPasngWithStddeForGraph(Map map);
|
||||
List<Map> getWeatherWithPasngWithStddeForDailyGraph(Map map);
|
||||
List<Map> nstunPasng(Map params);
|
||||
List<Map> nstunPasngVe(Map params);
|
||||
List<Map> nstunPasngAvg(Map params);
|
||||
List<Map> nstunPasngVeAvg(Map params);
|
||||
List<Map> nstunPasngTmsres(Map params);
|
||||
List<Map> nstunPasngVeTmsres(Map params);
|
||||
List<Map> getEventData(Map map);
|
||||
List<Map> getRoutePnsgerWithBhf(Map map);
|
||||
List<Map> getSubwayWithBhf(Map map);
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package kr.seoul.green.bds.cps.dao.model;
|
||||
|
||||
public class BhfVO {
|
||||
private String bhfManageId;
|
||||
private String bhfNm;
|
||||
private String instlLo;
|
||||
private String instlLa;
|
||||
public String getBhfManageId() {
|
||||
return bhfManageId;
|
||||
}
|
||||
public void setBhfManageId(String bhfManageId) {
|
||||
this.bhfManageId = bhfManageId;
|
||||
}
|
||||
public String getBhfNm() {
|
||||
return bhfNm;
|
||||
}
|
||||
public void setBhfNm(String bhfNm) {
|
||||
this.bhfNm = bhfNm;
|
||||
}
|
||||
public String getInstlLo() {
|
||||
return instlLo;
|
||||
}
|
||||
public void setInstlLo(String instlLo) {
|
||||
this.instlLo = instlLo;
|
||||
}
|
||||
public String getInstlLa() {
|
||||
return instlLa;
|
||||
}
|
||||
public void setInstlLa(String instlLa) {
|
||||
this.instlLa = instlLa;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package kr.seoul.green.bds.cps.dao.model;
|
||||
|
||||
public class PublicTotPsngerVO {
|
||||
private int total_psnger_cnt;
|
||||
private int bus_psnger_cnt;
|
||||
private int station_psnger_cnt;
|
||||
public int getTotal_psnger_cnt() {
|
||||
return total_psnger_cnt;
|
||||
}
|
||||
public void setTotal_psnger_cnt(int total_psnger_cnt) {
|
||||
this.total_psnger_cnt = total_psnger_cnt;
|
||||
}
|
||||
public int getBus_psnger_cnt() {
|
||||
return bus_psnger_cnt;
|
||||
}
|
||||
public void setBus_psnger_cnt(int bus_psnger_cnt) {
|
||||
this.bus_psnger_cnt = bus_psnger_cnt;
|
||||
}
|
||||
public int getStation_psnger_cnt() {
|
||||
return station_psnger_cnt;
|
||||
}
|
||||
public void setStation_psnger_cnt(int station_psnger_cnt) {
|
||||
this.station_psnger_cnt = station_psnger_cnt;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
package kr.seoul.green.bds.cps.dao.model;
|
||||
|
||||
public class StaInGTVO {
|
||||
private String sttn_id;
|
||||
private String sttn_nm;
|
||||
private String sttn_no;
|
||||
private String crdnt_x;
|
||||
private String crdnt_y;
|
||||
private String ride_pnsger_cnt;
|
||||
private String algh_pnsger_cnt;
|
||||
public String getSttn_id() {
|
||||
return sttn_id;
|
||||
}
|
||||
public void setSttn_id(String sttn_id) {
|
||||
this.sttn_id = sttn_id;
|
||||
}
|
||||
public String getSttn_nm() {
|
||||
return sttn_nm;
|
||||
}
|
||||
public void setSttn_nm(String sttn_nm) {
|
||||
this.sttn_nm = sttn_nm;
|
||||
}
|
||||
public String getSttn_no() {
|
||||
return sttn_no;
|
||||
}
|
||||
public void setSttn_no(String sttn_no) {
|
||||
this.sttn_no = sttn_no;
|
||||
}
|
||||
public String getCrdnt_x() {
|
||||
return crdnt_x;
|
||||
}
|
||||
public void setCrdnt_x(String crdnt_x) {
|
||||
this.crdnt_x = crdnt_x;
|
||||
}
|
||||
public String getCrdnt_y() {
|
||||
return crdnt_y;
|
||||
}
|
||||
public void setCrdnt_y(String crdnt_y) {
|
||||
this.crdnt_y = crdnt_y;
|
||||
}
|
||||
public String getRide_pnsger_cnt() {
|
||||
return ride_pnsger_cnt;
|
||||
}
|
||||
public void setRide_pnsger_cnt(String ride_pnsger_cnt) {
|
||||
this.ride_pnsger_cnt = ride_pnsger_cnt;
|
||||
}
|
||||
public String getAlgh_pnsger_cnt() {
|
||||
return algh_pnsger_cnt;
|
||||
}
|
||||
public void setAlgh_pnsger_cnt(String algh_pnsger_cnt) {
|
||||
this.algh_pnsger_cnt = algh_pnsger_cnt;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package kr.seoul.green.bds.cps.service;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import kr.seoul.green.bds.cps.dao.model.BhfVO;
|
||||
|
||||
public interface PbtrnspService {
|
||||
List<BhfVO> getBhfData() throws SQLException;
|
||||
List<Map> sttnList(Map map) throws SQLException;
|
||||
List<Map> busPnsgerInfo(Map params);
|
||||
List<Map> subwayPnsgerInfo(Map params);
|
||||
List<Map> timePnsgerList(Map params);
|
||||
List<Map> bhfPasngListWithStdde(Map map);
|
||||
List<Map> getRouteListWithBhfId(Map map);
|
||||
List<Map> getTrfWithStddeByDay(Map map);
|
||||
List<Map> getBhfPasngWIthStddeByTime(Map map);
|
||||
List<Map> getTrfWIthStddeByTime(Map map);
|
||||
List<Map> getLinkAvgSpd(Map map);
|
||||
List<Map> getLinkAvgSpdWithStddeByTime(Map map);
|
||||
List<Map> getWeatherWithPasngWithStdde(Map map);
|
||||
List<Map> getWeatherWithPasngWithStddeForGraph(Map map);
|
||||
List<Map> getWeatherWithPasngWithStddeForDailyGraph(Map map);
|
||||
List<Map> nstunPasng(Map params);
|
||||
List<Map> nstunPasngVe(Map params);
|
||||
List<Map> nstunPasngAvg(Map params);
|
||||
List<Map> nstunPasngVeAvg(Map params);
|
||||
List<Map> nstunPasngTmsres(Map params);
|
||||
List<Map> nstunPasngVeTmsres(Map params);
|
||||
List<Map> getEventData(Map map);
|
||||
List<Map> getRoutePnsgerWithBhf(Map map);
|
||||
List<Map> getSubwayWithBhf(Map map);
|
||||
}
|
||||
@ -0,0 +1,154 @@
|
||||
package kr.seoul.green.bds.cps.service.impl;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import kr.seoul.green.bds.cps.dao.PbtrnspDao;
|
||||
import kr.seoul.green.bds.cps.dao.model.BhfVO;
|
||||
import kr.seoul.green.bds.cps.service.PbtrnspService;
|
||||
|
||||
@Service
|
||||
public class PbtrnspServiceImpl implements PbtrnspService{
|
||||
|
||||
@Autowired
|
||||
private PbtrnspDao pbtrnspDao;
|
||||
|
||||
@Override
|
||||
public List<BhfVO> getBhfData() throws SQLException{
|
||||
return pbtrnspDao.getBhfData();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> sttnList(Map params) throws SQLException{
|
||||
return pbtrnspDao.sttnList(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> busPnsgerInfo(Map params) {
|
||||
return pbtrnspDao.busPnsgerInfo(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> subwayPnsgerInfo(Map params) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.subwayPnsgerInfo(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> timePnsgerList(Map params) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.timePnsgerList(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> bhfPasngListWithStdde(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.bhfPasngListWithStdde(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getRouteListWithBhfId(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getRouteListWithBhfId(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getTrfWithStddeByDay(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getTrfWithStddeByDay(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getBhfPasngWIthStddeByTime(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getBhfPasngWIthStddeByTime(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getTrfWIthStddeByTime(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getTrfWIthStddeByTime(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getLinkAvgSpd(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getLinkAvgSpd(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getLinkAvgSpdWithStddeByTime(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getLinkAvgSpdWithStddeByTime(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getWeatherWithPasngWithStdde(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getWeatherWithPasngWithStdde(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getWeatherWithPasngWithStddeForGraph(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getWeatherWithPasngWithStddeForGraph(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getWeatherWithPasngWithStddeForDailyGraph(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getWeatherWithPasngWithStddeForDailyGraph(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> nstunPasng(Map params) {
|
||||
return pbtrnspDao.nstunPasng(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> nstunPasngVe(Map params) {
|
||||
return pbtrnspDao.nstunPasngVe(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> nstunPasngAvg(Map params) {
|
||||
return pbtrnspDao.nstunPasngAvg(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> nstunPasngVeAvg(Map params) {
|
||||
return pbtrnspDao.nstunPasngVeAvg(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> nstunPasngTmsres(Map params) {
|
||||
return pbtrnspDao.nstunPasngTmsres(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> nstunPasngVeTmsres(Map params) {
|
||||
return pbtrnspDao.nstunPasngVeTmsres(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getEventData(Map map) {
|
||||
return pbtrnspDao.getEventData(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getRoutePnsgerWithBhf(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getRoutePnsgerWithBhf(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getSubwayWithBhf(Map map) {
|
||||
// TODO Auto-generated method stub
|
||||
return pbtrnspDao.getSubwayWithBhf(map);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,423 @@
|
||||
/*
|
||||
* @(#)GreenTrnsportController.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* kdw, 1.0, 2019. 11. 10. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author kdw
|
||||
* @version 1.0, 2019. 11. 10.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.dashboard.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.util.Result;
|
||||
|
||||
import kr.seoul.green.bds.dashboard.service.GreenTrnsportService;
|
||||
import kr.seoul.green.bds.manage.service.SysManageService;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 11. 10.
|
||||
* @author kdw
|
||||
*/
|
||||
@Controller
|
||||
public class GreenTrnsportController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(GreenTrnsportController.class);
|
||||
|
||||
@Autowired
|
||||
private GreenTrnsportService greenTrnsportService;
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 인구수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/hanyangWallPopltn", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> hanyangWallPopltn(@RequestBody Map<String, Object> param){
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
map.put("STDYY", map.get("STDDE").toString().substring(0, 4));
|
||||
result.setData("dtl_hanyangWallPopltn", greenTrnsportService.hanyangWallPopltn(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 종사자 수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/hanyangWallEnfsn", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> hanyangWallEnfsn(@RequestBody Map<String, Object> param){
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
map.put("STDYY", map.get("STDDE").toString().substring(0, 4));
|
||||
result.setData("dtl_hanyangWallEnfsn", greenTrnsportService.hanyangWallEnfsn(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 사업체 수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/hanyangWallBsnes", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> hanyangWallBsnes(@RequestBody Map<String, Object> param){
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
map.put("STDYY", map.get("STDDE").toString().substring(0, 4));
|
||||
result.setData("dtl_hanyangWallBsnes", greenTrnsportService.hanyangWallBsnes(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 보행자 교통사고 발생건수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/hanyangWallTfcacdCnt", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> hanyangWallTfcacdCnt(@RequestBody Map<String, Object> param){
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
map.put("STDYY", map.get("STDDE").toString().substring(0, 4));
|
||||
result.setData("dtl_hanyangWallTfcacdCnt", greenTrnsportService.hanyangWallTfcacdCnt(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 교통사고 사망자 수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/hanyangWallTfcacdDprs", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> hanyangWallTfcacdDprs(@RequestBody Map<String, Object> param){
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
map.put("STDYY", map.get("STDDE").toString().substring(0, 4));
|
||||
result.setData("dtl_hanyangWallTfcacdDprs", greenTrnsportService.hanyangWallTfcacdDprs(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 기타 통계
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/hanyangWallEtcStats", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> hanyangWallEtcStats(@RequestBody Map<String, Object> param){
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
map.put("STDYY", map.get("STDDE").toString().substring(0, 4));
|
||||
result.setData("dtl_hanyangWallEtcStats", greenTrnsportService.hanyangWallEtcStats(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 지점 통행량
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/hanyangWallSpotPasng", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> hanyangWallSpotPasng(@RequestBody Map<String, Object> param){
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
map.put("STDYY", map.get("STDDE").toString().substring(0, 4));
|
||||
result.setData("dtl_hanyangWallSpotPasng", greenTrnsportService.hanyangWallSpotPasng(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 진출/입 통행량
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/hanyangWallCmgPasng", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> hanyangWallCmgPasng(@RequestBody Map<String, Object> param){
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_hanyangWallCmgPasng", greenTrnsportService.hanyangWallCmgPasng(map));
|
||||
logger.info(greenTrnsportService.hanyangWallCmgPasng(map)+"기훈2============");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 서울, 한양도성 차량 평균 속도
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/dailAvgSpd", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> dailAvgSpd(@RequestBody Map<String, Object> param){
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_dailAvgSpd", greenTrnsportService.dailAvgSpd(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 대중교통 이용객
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/dailPbtrnspuUser", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> dailPbtrnspuUser(@RequestBody Map<String, Object> param){
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_dailPbtrnspuUser", greenTrnsportService.dailPbtrnspuUser(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 버스 노선별 노선수/운행대수/운행횟수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 12.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/dailBusRoute", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> dailBusRoute(@RequestBody Map<String, Object> param){
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_dailBusRoute", greenTrnsportService.dailBusRoute(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/dataEtc", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> dataEtc(@RequestBody Map<String, Object> param){
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_dataEtc", greenTrnsportService.dataEtc(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(value = "/dashboard/grid_1", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> grid_1(@RequestBody Map<String, Object> param){
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_grid_1", greenTrnsportService.grid_1(map));
|
||||
result.setData("dtl_grid_3", greenTrnsportService.grid_3(map));
|
||||
result.setData("dtl_grid_4", greenTrnsportService.grid_4(map));
|
||||
result.setData("dtl_grid_5", greenTrnsportService.grid_5(map));
|
||||
result.setData("dtl_grid_6", greenTrnsportService.grid_6(map));
|
||||
result.setData("dtl_grid_7", greenTrnsportService.grid_7(map));
|
||||
result.setData("dtl_grid_8", greenTrnsportService.grid_8(map));
|
||||
result.setData("dtl_grid_9", greenTrnsportService.grid_9(map));
|
||||
result.setData("dtl_grid_10", greenTrnsportService.grid_10(map));
|
||||
result.setData("dtl_grid_11", greenTrnsportService.grid_11(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private String substr(Object object, int i, int j) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,943 @@
|
||||
/*
|
||||
* @(#)MainDashBoardController.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* 추윤지, 1.0, 2019. 6. 11. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author 추윤지
|
||||
* @version 1.0, 2019. 6. 11.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.dashboard.controller;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.inswave.util.Result;
|
||||
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.AdvncPasngBhfTop5VO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.BhfPasngVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailRdcxptExpectAmountVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailRdcxptVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailRegltVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailStayVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailTotPasngVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DalyPasngVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DataVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.EntryAdvncPasngBhfTop5VO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.EntryPasngBhfTop5VO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.EvrfrndGradAcctoPasngVO;
|
||||
import kr.seoul.green.bds.dashboard.service.MainDashBoardService;
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 총괄대시보드 전용 컨트롤러
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 6. 11.
|
||||
* @author 추윤지
|
||||
*/
|
||||
@Controller
|
||||
public class MainDashBoardController {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(MainDashBoardController.class);
|
||||
|
||||
@Autowired
|
||||
private MainDashBoardService mainDashBoardService;
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 진입 통행량 지점 TOP5
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/entryPasngBhfTop5", method = RequestMethod.POST)
|
||||
public @ResponseBody Map<String, Object> getEntryPasngBhfTop5(@RequestBody Map<String, Object> param) {
|
||||
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<EntryPasngBhfTop5VO> entryPasngBhfTop5 = mainDashBoardService.getEntryPasngBhfTop5((Map) param.get("dma_searchDate"));
|
||||
|
||||
result.setData("dtl_entryRank", entryPasngBhfTop5);
|
||||
//result.setMsg(result.STATUS_SUCESS, "진입지점 TOP5를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 진출 통행량 지점 TOP5
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/advncPasngBhfTop5")
|
||||
public @ResponseBody Map<String, Object> getAdvncPasngBhfTop5(@RequestBody Map<String, Object> param) {
|
||||
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<AdvncPasngBhfTop5VO> advncPasngBhfTop5 = mainDashBoardService
|
||||
.getAdvncPasngBhfTop5((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_advncRank", advncPasngBhfTop5);
|
||||
//result.setMsg(result.STATUS_SUCESS, "진출지점 TOP5를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 진입-진출 통행량 지점OD TOP5
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/entryAdvncPasngBhfTop5")
|
||||
public @ResponseBody Map<String, Object> getEntryAdvncPasngBhfTop5(@RequestBody Map<String, Object> param) {
|
||||
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<EntryAdvncPasngBhfTop5VO> entryAdvncPasngBhfTop5 = mainDashBoardService
|
||||
.getEntryAdvncPasngBhfTop5((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_entryAdvncRank", entryAdvncPasngBhfTop5);
|
||||
//result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 친환경 등급별 통행량
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/evrfrndGradAcctoPasng")
|
||||
public @ResponseBody Map<String, Object> getEvrfrndGradAcctoPasng(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<EvrfrndGradAcctoPasngVO> evrfrndGradAcctoPasng = mainDashBoardService
|
||||
.getEvrfrndGradAcctoPasng((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_evrGradRank", evrfrndGradAcctoPasng);
|
||||
// result.setMsg(result.STATUS_SUCESS, "친환경등급를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 통행
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/dailTotPasng")
|
||||
public @ResponseBody Map<String, Object> getDailTotPasng(@RequestBody Map<String, Object> param) {
|
||||
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
DailTotPasngVO dailTotPasng = mainDashBoardService.getDailTotPasng((Map) param.get("dma_searchDate"));
|
||||
result.setDataObject("dma_totPasng", dailTotPasng);
|
||||
// result.setMsg(result.STATUS_SUCESS, "총교통량 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 체류
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/dailStay")
|
||||
public @ResponseBody Map<String, Object> getDailStay(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
DailStayVO dailStay = mainDashBoardService.getDailStay((Map) param.get("dma_searchDate"));
|
||||
result.setDataObject("dma_stay", dailStay);
|
||||
// result.setMsg(result.STATUS_SUCESS, "체류량 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 단속
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/dailReglt")
|
||||
public @ResponseBody Map<String, Object> getDailReglt(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
DailRegltVO dailReglt = mainDashBoardService.getDailReglt((Map) param.get("dma_searchDate"));
|
||||
result.setDataObject("dma_reglt", dailReglt);
|
||||
// result.setMsg(result.STATUS_SUCESS, "단속량 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 일일 감면료 예상 청구액
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param
|
||||
* @return DailRdcxptExpectAmountVO
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/dailRdcxptExpectAmount")
|
||||
public @ResponseBody DailRdcxptExpectAmountVO getDailRdcxptExpectAmount() {
|
||||
String yyyyMMdd = "";
|
||||
Result result = new Result();
|
||||
DailRdcxptExpectAmountVO dailRdcxptExpectAmount = null;
|
||||
try{
|
||||
dailRdcxptExpectAmount = mainDashBoardService.getDailRdcxptExpectAmount(null);
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
|
||||
return dailRdcxptExpectAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/pasngTimeGragh")
|
||||
public @ResponseBody Map<String, Object> getPasngTimeGragh(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<Map<String, Object>> pasngList = mainDashBoardService.pasngForTime((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_pasngTimeGraph", pasngList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/stayTimeGragh")
|
||||
public @ResponseBody Map<String, Object> getStayTimeGragh(@RequestBody Map<String, Object> param) {
|
||||
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<DataVO> stayList = mainDashBoardService.stayForTime((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_stayTimeGraph", stayList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/regltTimeGragh")
|
||||
public @ResponseBody Map<String, Object> getRegltTimeGragh(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<DataVO> pasngList = mainDashBoardService.regltForTime((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_regltTimeGraph", pasngList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 이름
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/rdcxptTimeGragh")
|
||||
public @ResponseBody Map<String, Object> getRdcxptTimeGragh(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<DataVO> pasngList = mainDashBoardService.rdcxptForTime((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_rdcxptTimeGraph", pasngList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "진입-진출지점 TOP5를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 일자별 교통량
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/dalyPasngGraph")
|
||||
public @ResponseBody Map<String, Object> getDalyPasngGraph(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<DalyPasngVO> dalyPasngList = mainDashBoardService.getDalyPasng((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_dalyPasng", dalyPasngList);
|
||||
// result.setMsg(result.STATUS_SUCESS, "일자별 교통량를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 지점별 교통량
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/bhfPasngGraph")
|
||||
public @ResponseBody Map<String, Object> getbhfPasngGraph(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try {
|
||||
List<BhfPasngVO> bhfPasngList = mainDashBoardService.getBhfPasng((Map) param.get("dma_searchDate"));
|
||||
result.setData("dtl_bhfPasng", bhfPasngList);
|
||||
//result.setMsg(result.STATUS_SUCESS, "지점별 교통량를 조회하였습니다.");
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 감면
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/dailRdcxpt")
|
||||
public @ResponseBody Map<String, Object> getDailRdcxpt(@RequestBody Map<String, Object> param) throws SQLException {
|
||||
DailRdcxptVO dailRdcxpt = mainDashBoardService.getDailRdcxpt((Map) param.get("dma_searchDate"));
|
||||
if (dailRdcxpt == null){
|
||||
dailRdcxpt = new DailRdcxptVO(String.valueOf(((Map) param.get("dma_searchDate")).get("stdde")));
|
||||
}
|
||||
Result result = new Result();
|
||||
try {
|
||||
result.setDataObject("dma_rdcxpt", dailRdcxpt);
|
||||
// result.setMsg(result.STATUS_SUCESS, "감면량 조회하였습니다.");
|
||||
} catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 일일 총 단속량
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/DailTotRegltQy")
|
||||
public @ResponseBody Map<String, Object> dailTotRegltQy(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map<String, Object> map = mainDashBoardService.dailTotRegltQy((Map) param.get("dma_searchDate"));
|
||||
result.setData("dma_totReglt", map);
|
||||
} catch (RuntimeException e2) {
|
||||
logger.info("RuntimeException",e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : : 한양도성 진출/입 통행량
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/HanyangWallCmgPasng")
|
||||
public @ResponseBody Map<String, Object> hanyangWallCmgPasng(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_hanyangWallCmgPasng", mainDashBoardService.hanyangWallCmgPasng(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 5등급 진입 차량
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/Grad5EntryVhcle")
|
||||
public @ResponseBody Map<String, Object> grad5EntryVhcle(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_grad5EntryVhcle", mainDashBoardService.grad5EntryVhcle(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 감면 / 유예 유형
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/RdcxptPostpneTy")
|
||||
public @ResponseBody Map<String, Object> rdcxptPostpneTy(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_rdcxptPostpneTy", mainDashBoardService.rdcxptPostpneTy(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 한양 도성 등록 차량 지표 / 5등급 비율
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/HanyangWallRegistVhcle")
|
||||
public @ResponseBody Map<String, Object> hanyangWallRegistVhcle(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_hanyangWallRegistVhcleRate", mainDashBoardService.hanyangWallRegistVhcleRate(map));
|
||||
result.setData("dtl_hanyangWallRegistVhcle", mainDashBoardService.hanyangWallRegistVhcle(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 등록지별 통행량
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/RegistAreaPasngQy")
|
||||
public @ResponseBody Map<String, Object> registAreaPasngQy(@RequestBody Map<String, Object> param) {
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_registAreaPasngQy", mainDashBoardService.registAreaPasngQy(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 등록지별 통행량
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/pasngGraph")
|
||||
public @ResponseBody Map<String, Object> pasngGraph(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_pasngGraph", mainDashBoardService.pasngGraph(map));
|
||||
}catch(SQLException e1){
|
||||
logger.error("SQLException",e1);
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 버스노선
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/pbtrnspOpratInfo")
|
||||
public @ResponseBody Map<String, Object> pbtrnspOpratInfo(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_pbtrnspOprat", mainDashBoardService.getPbtrnspOpratInfo(map));
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description : 대중교통 이용객
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/pbtrnspUseInfo")
|
||||
public @ResponseBody Map<String, Object> pbtrnspUseInfo(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_pbtrnspUse", mainDashBoardService.getPbtrnspUseInfo(map));
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 검지기 교통량
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/vdsPasngWithStdde")
|
||||
public @ResponseBody Map<String, Object> vdsPasngWithStdde(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_vdsPasng", mainDashBoardService.getVdsPasngWithStdde(map));
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 도로별 속도
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/roadSpdWithStdde")
|
||||
public @ResponseBody Map<String, Object> roadSpdWithStdde(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_roadSpd", mainDashBoardService.getRoadSpdWithStdde(map));
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 속도
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SmrizeDash/avgSpdWithStdde")
|
||||
public @ResponseBody Map<String, Object> avgSpdWithStdde(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
result.setData("dtl_avgSpd", mainDashBoardService.getAvgSpdWithStdde(map));
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 12월 1일 이후 일일보고
|
||||
* <pre>
|
||||
* @author : 최민욱
|
||||
* @Date : 2019. 12. 04.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/SpecialReport/DailSpaReport")
|
||||
public @ResponseBody Map<String, Object> dailSpaReport(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
|
||||
List<Map> rst1_1 = mainDashBoardService.rst1_1(map);
|
||||
List<Map> rst1_2 = mainDashBoardService.rst1_2(map);
|
||||
List<Map> rst2_1 = mainDashBoardService.rst2_1(map);
|
||||
List<Map> rst2_2 = mainDashBoardService.rst2_2(map);
|
||||
List<Map> rst2_3 = mainDashBoardService.rst2_3(map);
|
||||
List<Map> rst2_4 = mainDashBoardService.rst2_4(map);
|
||||
List<Map> rst2_5 = mainDashBoardService.rst2_5(map);
|
||||
List<Map> rst2_6 = mainDashBoardService.rst2_6(map);
|
||||
|
||||
|
||||
result.setData("dtl_data1_1", rst1_1);
|
||||
result.setData("dtl_data1_2", rst1_2);
|
||||
result.setData("dtl_data2_1", rst2_1);
|
||||
result.setData("dtl_data2_2", rst2_2);
|
||||
result.setData("dtl_data2_3", rst2_3);
|
||||
result.setData("dtl_data2_4", rst2_4);
|
||||
result.setData("dtl_data2_5", rst2_5);
|
||||
result.setData("dtl_data2_6", rst2_6);
|
||||
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/SpecialReport/RangeSpaReport")
|
||||
public @ResponseBody Map<String, Object> RangeSpaReport(@RequestBody Map<String, Object> param) {
|
||||
|
||||
Result result = new Result();
|
||||
try{
|
||||
Map<String, Object> map = (Map<String, Object>)param.get("dma_searchDate");
|
||||
|
||||
List<Map> rst1_1 = mainDashBoardService.rst1_1_P1(map);
|
||||
List<Map> rst1_2 = mainDashBoardService.rst1_2_P1(map);
|
||||
List<Map> rst2_1 = mainDashBoardService.rst2_1_P1(map);
|
||||
List<Map> rst2_2 = mainDashBoardService.rst2_2_P1(map);
|
||||
List<Map> rst2_3 = mainDashBoardService.rst2_3_P1(map);
|
||||
List<Map> rst2_4 = mainDashBoardService.rst2_4_P1(map);
|
||||
List<Map> rst2_5 = mainDashBoardService.rst2_5_P1(map);
|
||||
List<Map> rst2_6 = mainDashBoardService.rst2_6_P1(map);
|
||||
|
||||
|
||||
result.setData("dtl_data1_1", rst1_1);
|
||||
result.setData("dtl_data1_2", rst1_2);
|
||||
result.setData("dtl_data2_1", rst2_1);
|
||||
result.setData("dtl_data2_2", rst2_2);
|
||||
result.setData("dtl_data2_3", rst2_3);
|
||||
result.setData("dtl_data2_4", rst2_4);
|
||||
result.setData("dtl_data2_5", rst2_5);
|
||||
result.setData("dtl_data2_6", rst2_6);
|
||||
|
||||
}catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException",e2);
|
||||
//result.setMsg(Result.STATUS_ERROR, "데이터가 존재하지 않습니다.");
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
@RequestMapping({"/SmrizeDash/pasngWithResType"})
|
||||
@ResponseBody
|
||||
public Map<String, Object> pasngWithResType(@RequestBody Map<String, Object> param)
|
||||
{
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map<String, Object> map = (Map)param.get("dma_searchDate");
|
||||
result.setData("dtl_getPansgWithResType", mainDashBoardService.getPansgWithResType(map));
|
||||
} catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException", e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping({"/SmrizeDash/regltWithResType"})
|
||||
@ResponseBody
|
||||
public Map<String, Object> regltWithResType(@RequestBody Map<String, Object> param)
|
||||
{
|
||||
Result result = new Result();
|
||||
try {
|
||||
Map<String, Object> map = (Map)param.get("dma_searchDate");
|
||||
result.setData("dtl_regltWithResType", mainDashBoardService.getRegltWithResType(map));
|
||||
} catch (RuntimeException e2) {
|
||||
logger.error("RuntimeException", e2);
|
||||
}
|
||||
return result.getResult();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,209 @@
|
||||
/*
|
||||
* @(#)GreenTrnsportDao.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* kdw, 1.0, 2019. 11. 10. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author kdw
|
||||
* @version 1.0, 2019. 11. 10.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.dashboard.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 11. 10.
|
||||
* @author kdw
|
||||
*/
|
||||
@Mapper("greenTrnsportDao")
|
||||
public interface GreenTrnsportDao {
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 인구
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
Map<String, Object> hanyangWallPopltn(Map<String, Object> map) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 종사자
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
Map<String, Object> hanyangWallEnfsn(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 사업체수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
Map<String, Object> hanyangWallBsnes(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 보행자 교통사고 발생건수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
Map<String, Object> hanyangWallTfcacdCnt(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 교통사고 사망자 수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
Map<String, Object> hanyangWallTfcacdDprs(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 기타 통계
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> hanyangWallEtcStats(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 지점 통행량
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> hanyangWallSpotPasng(Map<String, Object> map)throws SQLException;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 진출/입 통행량
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> hanyangWallCmgPasng(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 서울, 한양도성 차량 평균 속도
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> dailAvgSpd(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 대중교통 이용객
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> dailPbtrnspuUser(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 버스 노선별 노선수/운행대수/운행횟수
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> dailBusRoute(Map<String, Object> map)throws SQLException;
|
||||
|
||||
List<Map<String, Object>> dataEtc(Map<String, Object> map)throws SQLException;
|
||||
|
||||
List<Map<String,Object>> grid_1(Map<String,Object> map) throws SQLException;
|
||||
|
||||
List<Map<String,Object>> grid_3(Map<String,Object> map) throws SQLException;
|
||||
|
||||
List<Map<String,Object>> grid_4(Map<String,Object> map) throws SQLException;
|
||||
|
||||
List<Map<String,Object>> grid_5(Map<String,Object> map) throws SQLException;
|
||||
|
||||
List<Map<String,Object>> grid_6(Map<String,Object> map) throws SQLException;
|
||||
|
||||
List<Map<String,Object>> grid_7(Map<String,Object> map) throws SQLException;
|
||||
|
||||
List<Map<String,Object>> grid_8(Map<String,Object> map) throws SQLException;
|
||||
|
||||
List<Map<String,Object>> grid_9(Map<String,Object> map) throws SQLException;
|
||||
|
||||
List<Map<String,Object>> grid_10(Map<String,Object> map) throws SQLException;
|
||||
|
||||
List<Map<String,Object>> grid_11(Map<String,Object> map) throws SQLException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,421 @@
|
||||
/*
|
||||
* @(#)MainDashBoardDao.java
|
||||
*
|
||||
* <pre>
|
||||
* <b>History:</b>
|
||||
* 추윤지, 1.0, 2019. 9. 9. 초기 작성
|
||||
* </pre>
|
||||
*
|
||||
* @author 추윤지
|
||||
* @version 1.0, 2019. 9. 9.
|
||||
* @see None
|
||||
*/
|
||||
package kr.seoul.green.bds.dashboard.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.AdvncPasngBhfTop5VO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.BhfAcctoPasngVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.BhfPasngVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailAvrgStayTimeVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailFflngExpectRqestAmountVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailRdcxptVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailRdcxptExpectAmountVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailRegltVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailStayVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailTotArpltnDscamtVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DailTotPasngVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DalyAcctoPasngVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DalyPasngVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.DataVO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.EntryAdvncPasngBhfTop5VO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.EntryPasngBhfTop5VO;
|
||||
import kr.seoul.green.bds.dashboard.dao.model.maindashboard.EvrfrndGradAcctoPasngVO;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
*
|
||||
*
|
||||
* @version 1.0, 2019. 9. 10.
|
||||
* @author 추윤지
|
||||
*/
|
||||
@Mapper("mainDashBoardDao")
|
||||
public interface MainDashBoardDao {
|
||||
|
||||
/**
|
||||
* @Description : 통행
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return DailTotPasngVO
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
DailTotPasngVO dailTotPasng(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 체류
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return DailStayVO
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
DailStayVO dailStay(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 단속
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return DailRegltVO
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
DailRegltVO dailReglt(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 일일 감면료 예상 청구액
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return DailRdcxptExpectAmountVO
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
DailRdcxptExpectAmountVO dailRdcxptExpectAmount(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 진입-진출 통행량 지점OD TOP5
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return List<EntryAdvncPasngBhfTop5VO>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<EntryAdvncPasngBhfTop5VO> entryAdvncPasngBhfTop5(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 진입 통행량 지점 TOP5
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return List<EntryPasngBhfTop5VO>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<EntryPasngBhfTop5VO> entryPasngBhfTop5(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 진출 통행량 지점 TOP5
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return List<AdvncPasngBhfTop5VO>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<AdvncPasngBhfTop5VO> advncPasngBhfTop5(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 친환경 등급별 통행량
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return List<EvrfrndGradAcctoPasngVO>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<EvrfrndGradAcctoPasngVO> evrfrndGradAcctoPasng(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return List<DataVO>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> pasngTimeList(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return List<DataVO>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<DataVO> stayTimeList(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return List<DataVO>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<DataVO> regltTimeList(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 설명이필요
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return List<DataVO>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<DataVO> rdcxptTimeList(Map param) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 일자별 교통량
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return List<DalyPasngVO>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<DalyPasngVO> dalyPasngList(Map map) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 총괄 대시보드 지점별 교통량
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return List<BhfPasngVO>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<BhfPasngVO> bhfPasngList(Map map) throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 감면
|
||||
* <pre>
|
||||
* @author : 추윤지
|
||||
* @Date : 2019. 9. 11.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map
|
||||
* @return DailRdcxptVO
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
DailRdcxptVO dailRdcxpt(Map param);
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 일일 총 단속량
|
||||
* <pre>
|
||||
* @author : 김동우
|
||||
* @Date : 2019. 11. 29.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object>
|
||||
* @return Map<String, Object>
|
||||
* @exception
|
||||
*
|
||||
*/
|
||||
Map<String, Object> dailTotRegltQy(Map<String, Object> map);
|
||||
|
||||
/**
|
||||
* @Description : 한양도성 진출/입 통행량
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return Map<String, Object> map
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> hanyangWallCmgPasng(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 5등급 진입 차량
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> grad5EntryVhcle(Map<String, Object> map)throws SQLException;
|
||||
|
||||
|
||||
/**
|
||||
* @Description : 감면 / 유예 유형
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> rdcxptPostpneTy(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 한양 도성 등록 차량 지표 - 5등급 비율
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> hanyangWallRegistVhcleRate(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 한양 도성 등록 차량 지표
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> hanyangWallRegistVhcle(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 등록지역별 통행량
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> registAreaPasngQy(Map<String, Object> map)throws SQLException;
|
||||
|
||||
/**
|
||||
* @Description : 그래프 통행량
|
||||
* <pre>
|
||||
* @author : kdw
|
||||
* @Date : 2019. 11. 10.
|
||||
* </pre>
|
||||
*
|
||||
* @param Map<String, Object> map
|
||||
* @return List<Map<String, Object>>
|
||||
* @exception SQLException
|
||||
*
|
||||
*/
|
||||
List<Map<String, Object>> pasngGraph(Map<String, Object> map);
|
||||
|
||||
List<Map> rst1_1(Map<String, Object> map);
|
||||
|
||||
List<Map> rst1_2(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_1(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_2(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_3(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_4(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_5(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_6(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_7(Map<String, Object> map);
|
||||
|
||||
List<Map> rst1_1_P1(Map<String, Object> map);
|
||||
|
||||
List<Map> rst1_2_P1(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_1_P1(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_2_P1(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_3_P1(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_4_P1(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_5_P1(Map<String, Object> map);
|
||||
|
||||
List<Map> rst2_6_P1(Map<String, Object> map);
|
||||
|
||||
List<Map> getPbtrnspOpratInfo(Map<String, Object> map);
|
||||
|
||||
List<Map> getPbtrnspUseInfo(Map<String, Object> map);
|
||||
|
||||
List<Map> getVdsPasngWithStdde(Map<String, Object> map);
|
||||
|
||||
List<Map> getRoadSpdWithStdde(Map<String, Object> map);
|
||||
|
||||
List<Map> getAvgSpdWithStdde(Map<String, Object> map);
|
||||
|
||||
List<Map> getPansgWithResType(Map<String, Object> map);
|
||||
|
||||
List<Map> getRegltWithResType(Map<String, Object> map);
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("DateVhclePasng")
|
||||
public class DateVhclePasngVO {
|
||||
String col1;
|
||||
private String confirm_yn;
|
||||
|
||||
int col2;
|
||||
int col3;
|
||||
int col4;
|
||||
int col5;
|
||||
|
||||
int col6;
|
||||
int col7;
|
||||
int col8;
|
||||
|
||||
int col9;
|
||||
int col10;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public int getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(int col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public int getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(int col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public int getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(int col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public int getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(int col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public int getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(int col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public int getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(int col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public int getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(int col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public int getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(int col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public int getCol10() {
|
||||
return col10;
|
||||
}
|
||||
|
||||
public void setCol10(int col10) {
|
||||
this.col10 = col10;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("DfkVhclePasng")
|
||||
public class DfkVhclePasngVO {
|
||||
String col1;
|
||||
String col2;
|
||||
private String confirm_yn;
|
||||
|
||||
int col3;
|
||||
int col4;
|
||||
int col5;
|
||||
|
||||
int col6;
|
||||
int col7;
|
||||
int col8;
|
||||
|
||||
int col9;
|
||||
int col10;
|
||||
int col11;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public int getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(int col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public int getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(int col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public int getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(int col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public int getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(int col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public int getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(int col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public int getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(int col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public int getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(int col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public int getCol10() {
|
||||
return col10;
|
||||
}
|
||||
|
||||
public void setCol10(int col10) {
|
||||
this.col10 = col10;
|
||||
}
|
||||
|
||||
public int getCol11() {
|
||||
return col11;
|
||||
}
|
||||
|
||||
public void setCol11(int col11) {
|
||||
this.col11 = col11;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,118 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("Evrfrnd")
|
||||
public class EvrfrndVO {
|
||||
String col1;
|
||||
String col2;
|
||||
private String confirm_yn;
|
||||
|
||||
int col3;
|
||||
int col4;
|
||||
int col5;
|
||||
int col6;
|
||||
|
||||
int col7;
|
||||
int col8;
|
||||
int col9;
|
||||
int col10;
|
||||
int col11;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public int getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(int col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public int getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(int col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public int getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(int col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public int getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(int col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public int getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(int col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public int getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(int col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public int getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(int col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public int getCol10() {
|
||||
return col10;
|
||||
}
|
||||
|
||||
public void setCol10(int col10) {
|
||||
this.col10 = col10;
|
||||
}
|
||||
|
||||
public int getCol11() {
|
||||
return col11;
|
||||
}
|
||||
|
||||
public void setCol11(int col11) {
|
||||
this.col11 = col11;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,101 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("Grade5CountAndStayTime")
|
||||
public class Grade5CountAndStayTimeVO {
|
||||
String col1;
|
||||
String col2;
|
||||
private String confirm_yn;
|
||||
|
||||
String col3;
|
||||
String col4;
|
||||
String col5;
|
||||
|
||||
String col6;
|
||||
String col7;
|
||||
String col8;
|
||||
String col9;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public String getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(String col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public String getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(String col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public String getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(String col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public String getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(String col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public String getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(String col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public String getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(String col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public String getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(String col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,137 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("Grade5NumberEntry")
|
||||
public class Grade5NumberEntryVO {
|
||||
String col1;
|
||||
String col2;
|
||||
private String confirm_yn;
|
||||
|
||||
String col3;
|
||||
String col4;
|
||||
String col5;
|
||||
|
||||
String col6;
|
||||
String col7;
|
||||
String col8;
|
||||
String col9;
|
||||
String col10;
|
||||
String col11;
|
||||
String col12;
|
||||
String col13;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public String getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(String col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public String getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(String col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public String getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(String col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public String getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(String col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public String getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(String col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public String getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(String col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public String getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(String col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public String getCol10() {
|
||||
return col10;
|
||||
}
|
||||
|
||||
public void setCol10(String col10) {
|
||||
this.col10 = col10;
|
||||
}
|
||||
|
||||
public String getCol11() {
|
||||
return col11;
|
||||
}
|
||||
|
||||
public void setCol11(String col11) {
|
||||
this.col11 = col11;
|
||||
}
|
||||
|
||||
public String getCol12() {
|
||||
return col12;
|
||||
}
|
||||
|
||||
public void setCol12(String col12) {
|
||||
this.col12 = col12;
|
||||
}
|
||||
|
||||
public String getCol13() {
|
||||
return col13;
|
||||
}
|
||||
|
||||
public void setCol13(String col13) {
|
||||
this.col13 = col13;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("Grade5Region")
|
||||
public class Grade5RegionVO {
|
||||
String col1;
|
||||
String col2;
|
||||
private String confirm_yn;
|
||||
|
||||
int col3;
|
||||
int col4;
|
||||
int col5;
|
||||
|
||||
int col6;
|
||||
int col7;
|
||||
int col8;
|
||||
int col9;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public int getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(int col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public int getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(int col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public int getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(int col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public int getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(int col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public int getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(int col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public int getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(int col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public int getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(int col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,146 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("PasageStayTime")
|
||||
public class PasageStayTimeVO {
|
||||
String col1;
|
||||
String col2;
|
||||
private String confirm_yn;
|
||||
|
||||
String col3;
|
||||
String col4;
|
||||
String col5;
|
||||
String col6;
|
||||
String col7;
|
||||
String col8;
|
||||
String col9;
|
||||
String col10;
|
||||
String col11;
|
||||
String col12;
|
||||
String col13;
|
||||
String col14;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public String getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(String col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public String getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(String col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public String getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(String col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public String getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(String col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public String getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(String col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public String getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(String col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public String getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(String col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public String getCol10() {
|
||||
return col10;
|
||||
}
|
||||
|
||||
public void setCol10(String col10) {
|
||||
this.col10 = col10;
|
||||
}
|
||||
|
||||
public String getCol11() {
|
||||
return col11;
|
||||
}
|
||||
|
||||
public void setCol11(String col11) {
|
||||
this.col11 = col11;
|
||||
}
|
||||
|
||||
public String getCol12() {
|
||||
return col12;
|
||||
}
|
||||
|
||||
public void setCol12(String col12) {
|
||||
this.col12 = col12;
|
||||
}
|
||||
|
||||
public String getCol13() {
|
||||
return col13;
|
||||
}
|
||||
|
||||
public void setCol13(String col13) {
|
||||
this.col13 = col13;
|
||||
}
|
||||
|
||||
public String getCol14() {
|
||||
return col14;
|
||||
}
|
||||
|
||||
public void setCol14(String col14) {
|
||||
this.col14 = col14;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("RegistAcctoPasng")
|
||||
public class RegistAcctoPasngVO {
|
||||
String col1;
|
||||
private String confirm_yn;
|
||||
|
||||
int col2;
|
||||
int col3;
|
||||
int col4;
|
||||
int col5;
|
||||
int col6;
|
||||
|
||||
int col7;
|
||||
int col8;
|
||||
int col9;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public int getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(int col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public int getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(int col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public int getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(int col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public int getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(int col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public int getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(int col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public int getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(int col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public int getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(int col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public int getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(int col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,150 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("TmzonAndRoadAccto")
|
||||
public class TmzonAndRoadAcctoVO {
|
||||
String col1;
|
||||
String col2;
|
||||
private String confirm_yn;
|
||||
|
||||
String col3;
|
||||
String col4;
|
||||
String col5;
|
||||
String col6;
|
||||
|
||||
String col7;
|
||||
String col8;
|
||||
String col9;
|
||||
|
||||
String col10;
|
||||
String col11;
|
||||
String col12;
|
||||
String col13;
|
||||
String col14;
|
||||
|
||||
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public String getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(String col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public String getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(String col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public String getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(String col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public String getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(String col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public String getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(String col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public String getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(String col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public String getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(String col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public String getCol10() {
|
||||
return col10;
|
||||
}
|
||||
|
||||
public void setCol10(String col10) {
|
||||
this.col10 = col10;
|
||||
}
|
||||
|
||||
public String getCol11() {
|
||||
return col11;
|
||||
}
|
||||
|
||||
public void setCol11(String col11) {
|
||||
this.col11 = col11;
|
||||
}
|
||||
|
||||
public String getCol12() {
|
||||
return col12;
|
||||
}
|
||||
|
||||
public void setCol12(String col12) {
|
||||
this.col12 = col12;
|
||||
}
|
||||
|
||||
public String getCol13() {
|
||||
return col13;
|
||||
}
|
||||
|
||||
public void setCol13(String col13) {
|
||||
this.col13 = col13;
|
||||
}
|
||||
|
||||
public String getCol14() {
|
||||
return col14;
|
||||
}
|
||||
|
||||
public void setCol14(String col14) {
|
||||
this.col14 = col14;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,128 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("VhctyPosesnPasng")
|
||||
public class VhctyPosesnPasngVO {
|
||||
String col1;
|
||||
String col2;
|
||||
String col3;
|
||||
private String confirm_yn;
|
||||
|
||||
String col4;
|
||||
String col5;
|
||||
String col6;
|
||||
|
||||
String col7;
|
||||
String col8;
|
||||
String col9;
|
||||
|
||||
String col10;
|
||||
String col11;
|
||||
String col12;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public String getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(String col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public String getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(String col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public String getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(String col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public String getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(String col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public String getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(String col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public String getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(String col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public String getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(String col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public String getCol10() {
|
||||
return col10;
|
||||
}
|
||||
|
||||
public void setCol10(String col10) {
|
||||
this.col10 = col10;
|
||||
}
|
||||
|
||||
public String getCol11() {
|
||||
return col11;
|
||||
}
|
||||
|
||||
public void setCol11(String col11) {
|
||||
this.col11 = col11;
|
||||
}
|
||||
|
||||
public String getCol12() {
|
||||
return col12;
|
||||
}
|
||||
|
||||
public void setCol12(String col12) {
|
||||
this.col12 = col12;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,157 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("VhctyVmtcEntry")
|
||||
public class VhctyVmtcEntryVO {
|
||||
String col1;
|
||||
String col2;
|
||||
String col3;
|
||||
private String confirm_yn;
|
||||
|
||||
String col4;
|
||||
String col5;
|
||||
String col6;
|
||||
|
||||
String col7;
|
||||
String col8;
|
||||
String col9;
|
||||
String col10;
|
||||
|
||||
String col11;
|
||||
String col12;
|
||||
String col13;
|
||||
String col14;
|
||||
String col15;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public String getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(String col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public String getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(String col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public String getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(String col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public String getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(String col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public String getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(String col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public String getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(String col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public String getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(String col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public String getCol10() {
|
||||
return col10;
|
||||
}
|
||||
|
||||
public void setCol10(String col10) {
|
||||
this.col10 = col10;
|
||||
}
|
||||
|
||||
public String getCol11() {
|
||||
return col11;
|
||||
}
|
||||
|
||||
public void setCol11(String col11) {
|
||||
this.col11 = col11;
|
||||
}
|
||||
|
||||
public String getCol12() {
|
||||
return col12;
|
||||
}
|
||||
|
||||
public void setCol12(String col12) {
|
||||
this.col12 = col12;
|
||||
}
|
||||
|
||||
public String getCol13() {
|
||||
return col13;
|
||||
}
|
||||
|
||||
public void setCol13(String col13) {
|
||||
this.col13 = col13;
|
||||
}
|
||||
|
||||
public String getCol14() {
|
||||
return col14;
|
||||
}
|
||||
|
||||
public void setCol14(String col14) {
|
||||
this.col14 = col14;
|
||||
}
|
||||
|
||||
public String getCol15() {
|
||||
return col15;
|
||||
}
|
||||
|
||||
public void setCol15(String col15) {
|
||||
this.col15 = col15;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,155 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("VhctyVmtc")
|
||||
public class VhctyVmtcVO {
|
||||
String col1;
|
||||
String col2;
|
||||
String col3;
|
||||
private String confirm_yn;
|
||||
|
||||
String col4;
|
||||
String col5;
|
||||
String col6;
|
||||
String col7;
|
||||
|
||||
String col8;
|
||||
String col9;
|
||||
String col10;
|
||||
String col11;
|
||||
|
||||
String col12;
|
||||
String col13;
|
||||
String col14;
|
||||
String col15;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public String getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(String col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public String getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(String col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public String getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(String col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public String getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(String col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public String getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(String col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public String getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(String col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public String getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(String col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public String getCol10() {
|
||||
return col10;
|
||||
}
|
||||
|
||||
public void setCol10(String col10) {
|
||||
this.col10 = col10;
|
||||
}
|
||||
|
||||
public String getCol11() {
|
||||
return col11;
|
||||
}
|
||||
|
||||
public void setCol11(String col11) {
|
||||
this.col11 = col11;
|
||||
}
|
||||
|
||||
public String getCol12() {
|
||||
return col12;
|
||||
}
|
||||
|
||||
public void setCol12(String col12) {
|
||||
this.col12 = col12;
|
||||
}
|
||||
|
||||
public String getCol13() {
|
||||
return col13;
|
||||
}
|
||||
|
||||
public void setCol13(String col13) {
|
||||
this.col13 = col13;
|
||||
}
|
||||
|
||||
public String getCol14() {
|
||||
return col14;
|
||||
}
|
||||
|
||||
public void setCol14(String col14) {
|
||||
this.col14 = col14;
|
||||
}
|
||||
|
||||
public String getCol15() {
|
||||
return col15;
|
||||
}
|
||||
|
||||
public void setCol15(String col15) {
|
||||
this.col15 = col15;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.common;
|
||||
|
||||
import org.apache.ibatis.type.Alias;
|
||||
|
||||
@Alias("WikEntryVhcle")
|
||||
public class WikEntryVhcleVO {
|
||||
String col1;
|
||||
String col2;
|
||||
|
||||
String col3;
|
||||
String col4;
|
||||
String col5;
|
||||
String col6;
|
||||
|
||||
String col7;
|
||||
String col8;
|
||||
String col9;
|
||||
String col10;
|
||||
|
||||
private String confirm_yn;
|
||||
|
||||
public String getCol1() {
|
||||
return col1;
|
||||
}
|
||||
|
||||
public void setCol1(String col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
|
||||
public String getCol2() {
|
||||
return col2;
|
||||
}
|
||||
|
||||
public void setCol2(String col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
|
||||
public String getCol3() {
|
||||
return col3;
|
||||
}
|
||||
|
||||
public void setCol3(String col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
|
||||
public String getCol4() {
|
||||
return col4;
|
||||
}
|
||||
|
||||
public void setCol4(String col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
|
||||
public String getCol5() {
|
||||
return col5;
|
||||
}
|
||||
|
||||
public void setCol5(String col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
|
||||
public String getCol6() {
|
||||
return col6;
|
||||
}
|
||||
|
||||
public void setCol6(String col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
public String getCol7() {
|
||||
return col7;
|
||||
}
|
||||
|
||||
public void setCol7(String col7) {
|
||||
this.col7 = col7;
|
||||
}
|
||||
|
||||
public String getCol8() {
|
||||
return col8;
|
||||
}
|
||||
|
||||
public void setCol8(String col8) {
|
||||
this.col8 = col8;
|
||||
}
|
||||
|
||||
public String getCol9() {
|
||||
return col9;
|
||||
}
|
||||
|
||||
public void setCol9(String col9) {
|
||||
this.col9 = col9;
|
||||
}
|
||||
|
||||
public String getCol10() {
|
||||
return col10;
|
||||
}
|
||||
|
||||
public void setCol10(String col10) {
|
||||
this.col10 = col10;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,188 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.dailyidx;
|
||||
|
||||
public class Bhf5PasngVO {
|
||||
private String ty;
|
||||
|
||||
private int grad_5_pasng;
|
||||
|
||||
private String type_info;
|
||||
|
||||
private int seoul;
|
||||
private int h_in;
|
||||
private float h_out;
|
||||
private float k;
|
||||
private float i;
|
||||
private float etc;
|
||||
|
||||
private float seoul_rate;
|
||||
private float h_in_rate;
|
||||
private float h_out_rate;
|
||||
private float k_rate;
|
||||
private float i_rate;
|
||||
private float etc_rate;
|
||||
|
||||
private int nrd_pasng_cnt;
|
||||
private int nrd_entry_cnt;
|
||||
private int nrd_advnc_cnt;
|
||||
private int nrd_total_cnt;
|
||||
|
||||
private String seoul_value;
|
||||
private String h_in_value;
|
||||
private String h_out_value;
|
||||
private String k_value;
|
||||
private String i_value;
|
||||
private String etc_value;
|
||||
public String getTy() {
|
||||
return ty;
|
||||
}
|
||||
public void setTy(String ty) {
|
||||
this.ty = ty;
|
||||
}
|
||||
public int getGrad_5_pasng() {
|
||||
return grad_5_pasng;
|
||||
}
|
||||
public void setGrad_5_pasng(int grad_5_pasng) {
|
||||
this.grad_5_pasng = grad_5_pasng;
|
||||
}
|
||||
public String getType_info() {
|
||||
return type_info;
|
||||
}
|
||||
public void setType_info(String type_info) {
|
||||
this.type_info = type_info;
|
||||
}
|
||||
public int getSeoul() {
|
||||
return seoul;
|
||||
}
|
||||
public void setSeoul(int seoul) {
|
||||
this.seoul = seoul;
|
||||
}
|
||||
public int getH_in() {
|
||||
return h_in;
|
||||
}
|
||||
public void setH_in(int h_in) {
|
||||
this.h_in = h_in;
|
||||
}
|
||||
public float getH_out() {
|
||||
return h_out;
|
||||
}
|
||||
public void setH_out(float h_out) {
|
||||
this.h_out = h_out;
|
||||
}
|
||||
public float getK() {
|
||||
return k;
|
||||
}
|
||||
public void setK(float k) {
|
||||
this.k = k;
|
||||
}
|
||||
public float getI() {
|
||||
return i;
|
||||
}
|
||||
public void setI(float i) {
|
||||
this.i = i;
|
||||
}
|
||||
public float getEtc() {
|
||||
return etc;
|
||||
}
|
||||
public void setEtc(float etc) {
|
||||
this.etc = etc;
|
||||
}
|
||||
public float getSeoul_rate() {
|
||||
return seoul_rate;
|
||||
}
|
||||
public void setSeoul_rate(float seoul_rate) {
|
||||
this.seoul_rate = seoul_rate;
|
||||
}
|
||||
public float getH_in_rate() {
|
||||
return h_in_rate;
|
||||
}
|
||||
public void setH_in_rate(float h_in_rate) {
|
||||
this.h_in_rate = h_in_rate;
|
||||
}
|
||||
public float getH_out_rate() {
|
||||
return h_out_rate;
|
||||
}
|
||||
public void setH_out_rate(float h_out_rate) {
|
||||
this.h_out_rate = h_out_rate;
|
||||
}
|
||||
public float getK_rate() {
|
||||
return k_rate;
|
||||
}
|
||||
public void setK_rate(float k_rate) {
|
||||
this.k_rate = k_rate;
|
||||
}
|
||||
public float getI_rate() {
|
||||
return i_rate;
|
||||
}
|
||||
public void setI_rate(float i_rate) {
|
||||
this.i_rate = i_rate;
|
||||
}
|
||||
public float getEtc_rate() {
|
||||
return etc_rate;
|
||||
}
|
||||
public void setEtc_rate(float etc_rate) {
|
||||
this.etc_rate = etc_rate;
|
||||
}
|
||||
public String getSeoul_value() {
|
||||
return seoul_value;
|
||||
}
|
||||
public void setSeoul_value(String seoul_value) {
|
||||
this.seoul_value = seoul_value;
|
||||
}
|
||||
public String getH_in_value() {
|
||||
return h_in_value;
|
||||
}
|
||||
public void setH_in_value(String h_in_value) {
|
||||
this.h_in_value = h_in_value;
|
||||
}
|
||||
public String getH_out_value() {
|
||||
return h_out_value;
|
||||
}
|
||||
public void setH_out_value(String h_out_value) {
|
||||
this.h_out_value = h_out_value;
|
||||
}
|
||||
public String getK_value() {
|
||||
return k_value;
|
||||
}
|
||||
public void setK_value(String k_value) {
|
||||
this.k_value = k_value;
|
||||
}
|
||||
public String getI_value() {
|
||||
return i_value;
|
||||
}
|
||||
public void setI_value(String i_value) {
|
||||
this.i_value = i_value;
|
||||
}
|
||||
public String getEtc_value() {
|
||||
return etc_value;
|
||||
}
|
||||
public void setEtc_value(String etc_value) {
|
||||
this.etc_value = etc_value;
|
||||
}
|
||||
public int getNrd_pasng_cnt() {
|
||||
return nrd_pasng_cnt;
|
||||
}
|
||||
public void setNrd_pasng_cnt(int nrd_pasng_cnt) {
|
||||
this.nrd_pasng_cnt = nrd_pasng_cnt;
|
||||
}
|
||||
public int getNrd_entry_cnt() {
|
||||
return nrd_entry_cnt;
|
||||
}
|
||||
public void setNrd_entry_cnt(int nrd_entry_cnt) {
|
||||
this.nrd_entry_cnt = nrd_entry_cnt;
|
||||
}
|
||||
public int getNrd_advnc_cnt() {
|
||||
return nrd_advnc_cnt;
|
||||
}
|
||||
public void setNrd_advnc_cnt(int nrd_advnc_cnt) {
|
||||
this.nrd_advnc_cnt = nrd_advnc_cnt;
|
||||
}
|
||||
public int getNrd_total_cnt() {
|
||||
return nrd_total_cnt;
|
||||
}
|
||||
public void setNrd_total_cnt(int nrd_total_cnt) {
|
||||
this.nrd_total_cnt = nrd_total_cnt;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,224 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.dailyidx;
|
||||
|
||||
public class CarSpcfVO {
|
||||
private String stdde;
|
||||
private String ty;
|
||||
private String SPCF_1;
|
||||
private String SPCF_2;
|
||||
private String ty_nm;
|
||||
private String confirm_yn;
|
||||
|
||||
private int pasng_cnt;
|
||||
private int entry_cnt;
|
||||
private int advnc_cnt;
|
||||
private int total_cnt;
|
||||
private int reglt_cnt;
|
||||
private int rdcxpt_cnt;
|
||||
|
||||
private int nrd_pasng_cnt;
|
||||
private int nrd_entry_cnt;
|
||||
private int nrd_advnc_cnt;
|
||||
private int nrd_total_cnt;
|
||||
|
||||
private int sum_pasng_cnt;
|
||||
private int sum_entry_cnt;
|
||||
private int sum_advnc_cnt;
|
||||
private int sum_total_cnt;
|
||||
private int sum_reglt_cnt;
|
||||
private int sum_rdcxpt_cnt;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CarSpcf [stdde=" + stdde + ", ty=" + ty + ", SPCF_1=" + SPCF_1 + ", SPCF_2=" + SPCF_2 + ", ty_nm="
|
||||
+ ty_nm + ", pasng_cnt=" + pasng_cnt + ", entry_cnt=" + entry_cnt + ", advnc_cnt=" + advnc_cnt
|
||||
+ ", total_cnt=" + total_cnt + ", reglt_cnt=" + reglt_cnt + ", rdcxpt_cnt=" + rdcxpt_cnt
|
||||
+ ", sum_pasng_cnt=" + sum_pasng_cnt + ", sum_entry_cnt=" + sum_entry_cnt + ", sum_advnc_cnt="
|
||||
+ sum_advnc_cnt + ", sum_total_cnt=" + sum_total_cnt + ", sum_reglt_cnt=" + sum_reglt_cnt
|
||||
+ ", sum_rdcxpt_cnt=" + sum_rdcxpt_cnt + "]";
|
||||
}
|
||||
|
||||
public int getSum_pasng_cnt() {
|
||||
return sum_pasng_cnt;
|
||||
}
|
||||
|
||||
public void setSum_pasng_cnt(int sum_pasng_cnt) {
|
||||
this.sum_pasng_cnt = sum_pasng_cnt;
|
||||
}
|
||||
|
||||
public int getSum_entry_cnt() {
|
||||
return sum_entry_cnt;
|
||||
}
|
||||
|
||||
public void setSum_entry_cnt(int sum_entry_cnt) {
|
||||
this.sum_entry_cnt = sum_entry_cnt;
|
||||
}
|
||||
|
||||
public int getSum_advnc_cnt() {
|
||||
return sum_advnc_cnt;
|
||||
}
|
||||
|
||||
public void setSum_advnc_cnt(int sum_advnc_cnt) {
|
||||
this.sum_advnc_cnt = sum_advnc_cnt;
|
||||
}
|
||||
|
||||
public int getSum_total_cnt() {
|
||||
return sum_total_cnt;
|
||||
}
|
||||
|
||||
public void setSum_total_cnt(int sum_total_cnt) {
|
||||
this.sum_total_cnt = sum_total_cnt;
|
||||
}
|
||||
|
||||
public int getSum_reglt_cnt() {
|
||||
return sum_reglt_cnt;
|
||||
}
|
||||
|
||||
public void setSum_reglt_cnt(int sum_reglt_cnt) {
|
||||
this.sum_reglt_cnt = sum_reglt_cnt;
|
||||
}
|
||||
|
||||
public int getSum_rdcxpt_cnt() {
|
||||
return sum_rdcxpt_cnt;
|
||||
}
|
||||
|
||||
public void setSum_rdcxpt_cnt(int sum_rdcxpt_cnt) {
|
||||
this.sum_rdcxpt_cnt = sum_rdcxpt_cnt;
|
||||
}
|
||||
|
||||
public String getStdde() {
|
||||
return stdde;
|
||||
}
|
||||
|
||||
public void setStdde(String stdde) {
|
||||
this.stdde = stdde;
|
||||
}
|
||||
|
||||
public String getTy() {
|
||||
return ty;
|
||||
}
|
||||
|
||||
public void setTy(String ty) {
|
||||
this.ty = ty;
|
||||
}
|
||||
|
||||
public String getTy_nm() {
|
||||
return ty_nm;
|
||||
}
|
||||
|
||||
public void setTy_nm(String ty_nm) {
|
||||
this.ty_nm = ty_nm;
|
||||
}
|
||||
|
||||
public int getPasng_cnt() {
|
||||
return pasng_cnt;
|
||||
}
|
||||
|
||||
public void setPasng_cnt(int pasng_cnt) {
|
||||
this.pasng_cnt = pasng_cnt;
|
||||
}
|
||||
|
||||
public int getEntry_cnt() {
|
||||
return entry_cnt;
|
||||
}
|
||||
|
||||
public void setEntry_cnt(int entry_cnt) {
|
||||
this.entry_cnt = entry_cnt;
|
||||
}
|
||||
|
||||
public int getAdvnc_cnt() {
|
||||
return advnc_cnt;
|
||||
}
|
||||
|
||||
public void setAdvnc_cnt(int advnc_cnt) {
|
||||
this.advnc_cnt = advnc_cnt;
|
||||
}
|
||||
|
||||
public int getTotal_cnt() {
|
||||
return total_cnt;
|
||||
}
|
||||
|
||||
public void setTotal_cnt(int total_cnt) {
|
||||
this.total_cnt = total_cnt;
|
||||
}
|
||||
|
||||
public int getReglt_cnt() {
|
||||
return reglt_cnt;
|
||||
}
|
||||
|
||||
public void setReglt_cnt(int reglt_cnt) {
|
||||
this.reglt_cnt = reglt_cnt;
|
||||
}
|
||||
|
||||
public int getRdcxpt_cnt() {
|
||||
return rdcxpt_cnt;
|
||||
}
|
||||
|
||||
public void setRdcxpt_cnt(int rdcxpt_cnt) {
|
||||
this.rdcxpt_cnt = rdcxpt_cnt;
|
||||
}
|
||||
|
||||
public String getSPCF_1() {
|
||||
return SPCF_1;
|
||||
}
|
||||
|
||||
public void setSPCF_1(String sPCF_1) {
|
||||
SPCF_1 = sPCF_1;
|
||||
}
|
||||
|
||||
public String getSPCF_2() {
|
||||
return SPCF_2;
|
||||
}
|
||||
|
||||
public void setSPCF_2(String sPCF_2) {
|
||||
SPCF_2 = sPCF_2;
|
||||
}
|
||||
|
||||
public String getCONFIRM_YN() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setCONFIRM_YN(String cONFIRM_YN) {
|
||||
confirm_yn = cONFIRM_YN;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
public int getNrd_pasng_cnt() {
|
||||
return nrd_pasng_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_pasng_cnt(int nrd_pasng_cnt) {
|
||||
this.nrd_pasng_cnt = nrd_pasng_cnt;
|
||||
}
|
||||
|
||||
public int getNrd_entry_cnt() {
|
||||
return nrd_entry_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_entry_cnt(int nrd_entry_cnt) {
|
||||
this.nrd_entry_cnt = nrd_entry_cnt;
|
||||
}
|
||||
|
||||
public int getNrd_advnc_cnt() {
|
||||
return nrd_advnc_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_advnc_cnt(int nrd_advnc_cnt) {
|
||||
this.nrd_advnc_cnt = nrd_advnc_cnt;
|
||||
}
|
||||
|
||||
public int getNrd_total_cnt() {
|
||||
return nrd_total_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_total_cnt(int nrd_total_cnt) {
|
||||
this.nrd_total_cnt = nrd_total_cnt;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,225 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.dailyidx;
|
||||
|
||||
public class CarType5PasngVO {
|
||||
private String ty;
|
||||
|
||||
private String type_info;
|
||||
private int grad_5_pasng;
|
||||
private int ty_1;
|
||||
private int ty_2;
|
||||
private int ty_3;
|
||||
private int ty_4;
|
||||
private int ty_5;
|
||||
|
||||
private float ty_1_rate;
|
||||
private float ty_2_rate;
|
||||
private float ty_3_rate;
|
||||
private float ty_4_rate;
|
||||
private float ty_5_rate;
|
||||
|
||||
private int nrd_pasng_cnt;
|
||||
private int nrd_entry_cnt;
|
||||
private int nrd_advnc_cnt;
|
||||
private int nrd_total_cnt;
|
||||
|
||||
private String grad_5_pasng_value;
|
||||
private String ty_1_value;
|
||||
private String ty_2_value;
|
||||
private String ty_3_value;
|
||||
private String ty_4_value;
|
||||
private String ty_5_value;
|
||||
private String confirm_yn;
|
||||
|
||||
public String getType_info() {
|
||||
return type_info;
|
||||
}
|
||||
|
||||
public void setType_info(String type_info) {
|
||||
this.type_info = type_info;
|
||||
}
|
||||
|
||||
public String getGrad_5_pasng_value() {
|
||||
return grad_5_pasng_value;
|
||||
}
|
||||
|
||||
public void setGrad_5_pasng_value(String grad_5_pasng_value) {
|
||||
this.grad_5_pasng_value = grad_5_pasng_value;
|
||||
}
|
||||
|
||||
public String getTy_1_value() {
|
||||
return ty_1_value;
|
||||
}
|
||||
|
||||
public void setTy_1_value(String ty_1_value) {
|
||||
this.ty_1_value = ty_1_value;
|
||||
}
|
||||
|
||||
public String getTy_2_value() {
|
||||
return ty_2_value;
|
||||
}
|
||||
|
||||
public void setTy_2_value(String ty_2_value) {
|
||||
this.ty_2_value = ty_2_value;
|
||||
}
|
||||
|
||||
public String getTy_3_value() {
|
||||
return ty_3_value;
|
||||
}
|
||||
|
||||
public void setTy_3_value(String ty_3_value) {
|
||||
this.ty_3_value = ty_3_value;
|
||||
}
|
||||
|
||||
public String getTy_4_value() {
|
||||
return ty_4_value;
|
||||
}
|
||||
|
||||
public void setTy_4_value(String ty_4_value) {
|
||||
this.ty_4_value = ty_4_value;
|
||||
}
|
||||
|
||||
public String getTy_5_value() {
|
||||
return ty_5_value;
|
||||
}
|
||||
|
||||
public void setTy_5_value(String ty_5_value) {
|
||||
this.ty_5_value = ty_5_value;
|
||||
}
|
||||
|
||||
public String getTy() {
|
||||
return ty;
|
||||
}
|
||||
|
||||
public void setTy(String ty) {
|
||||
this.ty = ty;
|
||||
}
|
||||
|
||||
public int getGrad_5_pasng() {
|
||||
return grad_5_pasng;
|
||||
}
|
||||
|
||||
public void setGrad_5_pasng(int grad_5_pasng) {
|
||||
this.grad_5_pasng = grad_5_pasng;
|
||||
}
|
||||
|
||||
public int getTy_1() {
|
||||
return ty_1;
|
||||
}
|
||||
|
||||
public void setTy_1(int ty_1) {
|
||||
this.ty_1 = ty_1;
|
||||
}
|
||||
|
||||
public int getTy_2() {
|
||||
return ty_2;
|
||||
}
|
||||
|
||||
public void setTy_2(int ty_2) {
|
||||
this.ty_2 = ty_2;
|
||||
}
|
||||
|
||||
public int getTy_3() {
|
||||
return ty_3;
|
||||
}
|
||||
|
||||
public void setTy_3(int ty_3) {
|
||||
this.ty_3 = ty_3;
|
||||
}
|
||||
|
||||
public int getTy_4() {
|
||||
return ty_4;
|
||||
}
|
||||
|
||||
public void setTy_4(int ty_4) {
|
||||
this.ty_4 = ty_4;
|
||||
}
|
||||
|
||||
public int getTy_5() {
|
||||
return ty_5;
|
||||
}
|
||||
|
||||
public void setTy_5(int ty_5) {
|
||||
this.ty_5 = ty_5;
|
||||
}
|
||||
|
||||
public float getTy_1_rate() {
|
||||
return ty_1_rate;
|
||||
}
|
||||
|
||||
public void setTy_1_rate(float ty_1_rate) {
|
||||
this.ty_1_rate = ty_1_rate;
|
||||
}
|
||||
|
||||
public float getTy_2_rate() {
|
||||
return ty_2_rate;
|
||||
}
|
||||
|
||||
public void setTy_2_rate(float ty_2_rate) {
|
||||
this.ty_2_rate = ty_2_rate;
|
||||
}
|
||||
|
||||
public float getTy_3_rate() {
|
||||
return ty_3_rate;
|
||||
}
|
||||
|
||||
public void setTy_3_rate(float ty_3_rate) {
|
||||
this.ty_3_rate = ty_3_rate;
|
||||
}
|
||||
|
||||
public float getTy_4_rate() {
|
||||
return ty_4_rate;
|
||||
}
|
||||
|
||||
public void setTy_4_rate(float ty_4_rate) {
|
||||
this.ty_4_rate = ty_4_rate;
|
||||
}
|
||||
|
||||
public float getTy_5_rate() {
|
||||
return ty_5_rate;
|
||||
}
|
||||
|
||||
public void setTy_5_rate(float ty_5_rate) {
|
||||
this.ty_5_rate = ty_5_rate;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
public int getNrd_pasng_cnt() {
|
||||
return nrd_pasng_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_pasng_cnt(int nrd_pasng_cnt) {
|
||||
this.nrd_pasng_cnt = nrd_pasng_cnt;
|
||||
}
|
||||
|
||||
public int getNrd_entry_cnt() {
|
||||
return nrd_entry_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_entry_cnt(int nrd_entry_cnt) {
|
||||
this.nrd_entry_cnt = nrd_entry_cnt;
|
||||
}
|
||||
|
||||
public int getNrd_advnc_cnt() {
|
||||
return nrd_advnc_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_advnc_cnt(int nrd_advnc_cnt) {
|
||||
this.nrd_advnc_cnt = nrd_advnc_cnt;
|
||||
}
|
||||
|
||||
public int getNrd_total_cnt() {
|
||||
return nrd_total_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_total_cnt(int nrd_total_cnt) {
|
||||
this.nrd_total_cnt = nrd_total_cnt;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.dailyidx;
|
||||
|
||||
public class DailReportVO {
|
||||
private String title;
|
||||
private float col1;
|
||||
private float col2;
|
||||
private float col3;
|
||||
private float col4;
|
||||
private float col5;
|
||||
private float col6;
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public float getCol1() {
|
||||
return col1;
|
||||
}
|
||||
public void setCol1(float col1) {
|
||||
this.col1 = col1;
|
||||
}
|
||||
public float getCol2() {
|
||||
return col2;
|
||||
}
|
||||
public void setCol2(float col2) {
|
||||
this.col2 = col2;
|
||||
}
|
||||
public float getCol3() {
|
||||
return col3;
|
||||
}
|
||||
public void setCol3(float col3) {
|
||||
this.col3 = col3;
|
||||
}
|
||||
public float getCol4() {
|
||||
return col4;
|
||||
}
|
||||
public void setCol4(float col4) {
|
||||
this.col4 = col4;
|
||||
}
|
||||
public float getCol5() {
|
||||
return col5;
|
||||
}
|
||||
public void setCol5(float col5) {
|
||||
this.col5 = col5;
|
||||
}
|
||||
public float getCol6() {
|
||||
return col6;
|
||||
}
|
||||
public void setCol6(float col6) {
|
||||
this.col6 = col6;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,172 @@
|
||||
package kr.seoul.green.bds.dashboard.dao.model.dailyidx;
|
||||
|
||||
public class ManageIdxVO {
|
||||
private String ty;
|
||||
|
||||
private int bfrt_pasng;
|
||||
private int bfrt_entry;
|
||||
private int bfrt_advnc;
|
||||
|
||||
private int pasng;
|
||||
private int entry;
|
||||
private int advnc;
|
||||
private int nrd_pasng_cnt;
|
||||
private int nrd_entry_cnt;
|
||||
private int nrd_advnc_cnt;
|
||||
private int nrd_total_cnt;
|
||||
|
||||
private float pasng_rate;
|
||||
private float entry_rate;
|
||||
private float advnc_rate;
|
||||
|
||||
private String pasng_value;
|
||||
private String entry_value;
|
||||
private String advnc_value;
|
||||
private String confirm_yn;
|
||||
|
||||
|
||||
public String getTy() {
|
||||
return ty;
|
||||
}
|
||||
|
||||
public void setTy(String ty) {
|
||||
this.ty = ty;
|
||||
}
|
||||
|
||||
public int getBfrt_pasng() {
|
||||
return bfrt_pasng;
|
||||
}
|
||||
|
||||
public void setBfrt_pasng(int bfrt_pasng) {
|
||||
this.bfrt_pasng = bfrt_pasng;
|
||||
}
|
||||
|
||||
public int getBfrt_entry() {
|
||||
return bfrt_entry;
|
||||
}
|
||||
|
||||
public void setBfrt_entry(int bfrt_entry) {
|
||||
this.bfrt_entry = bfrt_entry;
|
||||
}
|
||||
|
||||
public int getBfrt_advnc() {
|
||||
return bfrt_advnc;
|
||||
}
|
||||
|
||||
public void setBfrt_advnc(int bfrt_advnc) {
|
||||
this.bfrt_advnc = bfrt_advnc;
|
||||
}
|
||||
|
||||
public int getPasng() {
|
||||
return pasng;
|
||||
}
|
||||
|
||||
public void setPasng(int pasng) {
|
||||
this.pasng = pasng;
|
||||
}
|
||||
|
||||
public int getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(int entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public int getAdvnc() {
|
||||
return advnc;
|
||||
}
|
||||
|
||||
public void setAdvnc(int advnc) {
|
||||
this.advnc = advnc;
|
||||
}
|
||||
|
||||
public float getPasng_rate() {
|
||||
return pasng_rate;
|
||||
}
|
||||
|
||||
public void setPasng_rate(float pasng_rate) {
|
||||
this.pasng_rate = pasng_rate;
|
||||
}
|
||||
|
||||
public float getEntry_rate() {
|
||||
return entry_rate;
|
||||
}
|
||||
|
||||
public void setEntry_rate(float entry_rate) {
|
||||
this.entry_rate = entry_rate;
|
||||
}
|
||||
|
||||
public float getAdvnc_rate() {
|
||||
return advnc_rate;
|
||||
}
|
||||
|
||||
public void setAdvnc_rate(float advnc_rate) {
|
||||
this.advnc_rate = advnc_rate;
|
||||
}
|
||||
|
||||
public String getPasng_value() {
|
||||
return pasng_value;
|
||||
}
|
||||
|
||||
public void setPasng_value(String pasng_value) {
|
||||
this.pasng_value = pasng_value;
|
||||
}
|
||||
|
||||
public String getEntry_value() {
|
||||
return entry_value;
|
||||
}
|
||||
|
||||
public void setEntry_value(String entry_value) {
|
||||
this.entry_value = entry_value;
|
||||
}
|
||||
|
||||
public String getAdvnc_value() {
|
||||
return advnc_value;
|
||||
}
|
||||
|
||||
public void setAdvnc_value(String advnc_value) {
|
||||
this.advnc_value = advnc_value;
|
||||
}
|
||||
|
||||
public String getConfirm_yn() {
|
||||
return confirm_yn;
|
||||
}
|
||||
|
||||
public void setConfirm_yn(String confirm_yn) {
|
||||
this.confirm_yn = confirm_yn;
|
||||
}
|
||||
|
||||
public int getNrd_pasng_cnt() {
|
||||
return nrd_pasng_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_pasng_cnt(int nrd_pasng_cnt) {
|
||||
this.nrd_pasng_cnt = nrd_pasng_cnt;
|
||||
}
|
||||
|
||||
public int getNrd_entry_cnt() {
|
||||
return nrd_entry_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_entry_cnt(int nrd_entry_cnt) {
|
||||
this.nrd_entry_cnt = nrd_entry_cnt;
|
||||
}
|
||||
|
||||
public int getNrd_advnc_cnt() {
|
||||
return nrd_advnc_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_advnc_cnt(int nrd_advnc_cnt) {
|
||||
this.nrd_advnc_cnt = nrd_advnc_cnt;
|
||||
}
|
||||
|
||||
public int getNrd_total_cnt() {
|
||||
return nrd_total_cnt;
|
||||
}
|
||||
|
||||
public void setNrd_total_cnt(int nrd_total_cnt) {
|
||||
this.nrd_total_cnt = nrd_total_cnt;
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue