diff --git a/pom.xml b/pom.xml index f3ad856..234e77a 100644 --- a/pom.xml +++ b/pom.xml @@ -105,4 +105,18 @@ - + + + + + maven-snapshot + http://xit.xit-nexus.com:8081/repository/maven-snapshots/ + + + + maven-release + http://xit.xit-nexus.com:8081/repository/maven-releases/ + + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/utility.xml b/src/main/resources/sql/mapper/base/utility.xml index 6e39d6d..7748817 100644 --- a/src/main/resources/sql/mapper/base/utility.xml +++ b/src/main/resources/sql/mapper/base/utility.xml @@ -20,7 +20,9 @@ SELECT FOUND_ROWS() TOT_CNT -IFNULL(#{thisDay}, TO_CHAR(CURRENT_DATE, 'YYYYMMDD')) +DATE_FORMAT(CURRENT_TIMESTAMP(), '%Y%m%d%H%i%s') + +IFNULL(#{thisDay}, DATE_FORMAT(CURRENT_DATE, '%Y%m%d')) SELECTTHIS_DAY diff --git a/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml b/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml index 4792cce..8795fb2 100644 --- a/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml +++ b/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml @@ -3,7 +3,7 @@ /* vehicleInfoMapper.insertBasicInfo(자동차 기본사항 조회 로그 등록) */ -INSERT INTO TBL_BASIC_INFO_LOG ( +INSERT INTO TB_BASIC_INFO_LOG ( LOG_ID , PRYE , REGIST_DE @@ -93,7 +93,7 @@ INSERT INTO TBL_BASIC_INFO_LOG ( , CBD_HG , FRST_MXMM_LDG ) VALUES ( - TO_CHAR(CURRENT_TIMESTAMP(), 'YYMMDD-HH24MISS') + DATE_FORMAT(CURRENT_TIMESTAMP(), '%Y%m%d-%H%i%s') , #{prye} , #{regist_de} , #{ersr_regist_se_code} diff --git a/src/main/sql/lvis.sql b/src/main/sql/lvis.sql index 24497e5..d016d2b 100644 --- a/src/main/sql/lvis.sql +++ b/src/main/sql/lvis.sql @@ -1,4 +1,4 @@ -CREATE TABLE TBL_BASIC_INFO_LOG ( +CREATE TABLE TB_BASIC_INFO_LOG ( LOG_ID VARCHAR(15) NOT NULL COMMENT '로그 아이디', PRYE VARCHAR(4) COMMENT '연식', REGIST_DE VARCHAR(8) COMMENT '등록일(변경일)', diff --git a/src/test/java/cokr/xit/interfaces/lvis/service/VehicleInfoServiceTest.java b/src/test/java/cokr/xit/interfaces/lvis/service/VehicleInfoServiceTest.java index 56e80d4..17a8998 100644 --- a/src/test/java/cokr/xit/interfaces/lvis/service/VehicleInfoServiceTest.java +++ b/src/test/java/cokr/xit/interfaces/lvis/service/VehicleInfoServiceTest.java @@ -136,7 +136,7 @@ public class VehicleInfoServiceTest extends TestSupport { basicInfo.setFrst_mxmm_ldg("10"); vehicleInfoMapper.insertBasicInfo(basicInfo); - testDao.execDelete("DELETE FROM TBL_BASIC_INFO_LOG"); + testDao.execDelete("DELETE FROM TB_BASIC_INFO_LOG"); } @Test