--- pom.xml
+++ pom.xml
... | ... | @@ -201,6 +201,14 @@ |
201 | 201 |
<artifactId>commons-lang3</artifactId> |
202 | 202 |
<version>3.14.0</version> |
203 | 203 |
</dependency> |
204 |
+ |
|
205 |
+ <!-- oracle 추가 --> |
|
206 |
+ <dependency> |
|
207 |
+ <groupId>com.oracle.database.jdbc</groupId> |
|
208 |
+ <artifactId>ojdbc10</artifactId> |
|
209 |
+ <version>19.16.0.0</version> |
|
210 |
+ </dependency> |
|
211 |
+ |
|
204 | 212 |
</dependencies> |
205 | 213 |
|
206 | 214 |
<build> |
--- src/main/java/com/takensoft/CmsApplication.java
+++ src/main/java/com/takensoft/CmsApplication.java
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 |
import org.springframework.scheduling.annotation.EnableScheduling; |
7 | 7 |
|
8 | 8 |
@SpringBootApplication |
9 |
-@MapperScan(basePackages="com.takensoft.*.*.dao, com.takensoft.*.*.*.dao") |
|
9 |
+//@MapperScan(basePackages="com.takensoft.*.*.dao, com.takensoft.*.*.*.dao") |
|
10 | 10 |
@EnableScheduling |
11 | 11 |
public class CmsApplication { |
12 | 12 |
|
+++ src/main/java/com/takensoft/common/config/CmsDataSourceConfig.java
... | ... | @@ -0,0 +1,63 @@ |
1 | +package com.takensoft.common.config; | |
2 | + | |
3 | +import org.apache.ibatis.session.SqlSessionFactory; | |
4 | +import org.mybatis.spring.SqlSessionFactoryBean; | |
5 | +import org.mybatis.spring.SqlSessionTemplate; | |
6 | +import org.mybatis.spring.annotation.MapperScan; | |
7 | +import org.springframework.beans.factory.annotation.Qualifier; | |
8 | +import org.springframework.boot.context.properties.ConfigurationProperties; | |
9 | +import org.springframework.boot.jdbc.DataSourceBuilder; | |
10 | +import org.springframework.context.ApplicationContext; | |
11 | +import org.springframework.context.annotation.Bean; | |
12 | +import org.springframework.context.annotation.Configuration; | |
13 | +import org.springframework.context.annotation.Primary; | |
14 | + | |
15 | +import javax.sql.DataSource; | |
16 | + | |
17 | +@Configuration | |
18 | +@MapperScan(basePackages="com.takensoft.*.*.dao, com.takensoft.*.*.*.dao", sqlSessionFactoryRef = "cmsSqlSessionFactory") | |
19 | +public class CmsDataSourceConfig { | |
20 | + | |
21 | + @Primary | |
22 | + @Bean(name = "cmsDataSource") | |
23 | + @ConfigurationProperties(prefix = "spring.cms.datasource") | |
24 | + public DataSource cmsDataSource() { | |
25 | + return DataSourceBuilder.create().build(); | |
26 | + } | |
27 | + | |
28 | + @Primary | |
29 | + @Bean(name = "cmsSqlSessionFactory") | |
30 | + public SqlSessionFactory cmsSqlSessionFactory(@Qualifier("cmsDataSource") DataSource cmsDataSource, | |
31 | + ApplicationContext applicationContext) throws Exception { | |
32 | + SqlSessionFactoryBean sqlSessionFactoryBean = new SqlSessionFactoryBean(); | |
33 | + sqlSessionFactoryBean.setDataSource(cmsDataSource); | |
34 | + sqlSessionFactoryBean.setTypeAliasesPackage("com.takensoft.**.**.vo, com.takensoft.**.**.dto, com.takensoft.common"); | |
35 | + sqlSessionFactoryBean.setMapperLocations(applicationContext.getResources("classpath:mybatis/mapper/**/*-SQL.xml")); | |
36 | + | |
37 | + // MyBatis Configuration 설정 추가 | |
38 | + org.apache.ibatis.session.Configuration myBatisConfig = new org.apache.ibatis.session.Configuration(); | |
39 | + myBatisConfig.setCacheEnabled(true); | |
40 | + myBatisConfig.setLazyLoadingEnabled(false); | |
41 | + myBatisConfig.setMultipleResultSetsEnabled(true); | |
42 | + myBatisConfig.setUseColumnLabel(true); | |
43 | + myBatisConfig.setUseGeneratedKeys(false); | |
44 | + myBatisConfig.setDefaultExecutorType(org.apache.ibatis.session.ExecutorType.SIMPLE); | |
45 | + myBatisConfig.setDefaultStatementTimeout(25000); | |
46 | + myBatisConfig.setCallSettersOnNulls(true); | |
47 | + myBatisConfig.setMapUnderscoreToCamelCase(true); | |
48 | + | |
49 | + sqlSessionFactoryBean.setConfiguration(myBatisConfig); | |
50 | + | |
51 | + return sqlSessionFactoryBean.getObject(); | |
52 | + } | |
53 | + | |
54 | + @Primary | |
55 | + @Bean(name = "firstSessionTemplate") | |
56 | + public SqlSessionTemplate firstSqlSessionTemplate(@Qualifier("cmsSqlSessionFactory") SqlSessionFactory cmsSqlSessionFactory) { | |
57 | + return new SqlSessionTemplate(cmsSqlSessionFactory); | |
58 | + } | |
59 | +} | |
60 | + | |
61 | + | |
62 | + | |
63 | + |
+++ src/main/java/com/takensoft/common/config/UmsDataSourceConfig.java
... | ... | @@ -0,0 +1,56 @@ |
1 | +package com.takensoft.common.config; | |
2 | + | |
3 | + | |
4 | +import org.apache.ibatis.session.SqlSessionFactory; | |
5 | +import org.mybatis.spring.SqlSessionFactoryBean; | |
6 | +import org.mybatis.spring.SqlSessionTemplate; | |
7 | +import org.mybatis.spring.annotation.MapperScan; | |
8 | +import org.springframework.beans.factory.annotation.Qualifier; | |
9 | +import org.springframework.boot.context.properties.ConfigurationProperties; | |
10 | +import org.springframework.boot.jdbc.DataSourceBuilder; | |
11 | +import org.springframework.context.ApplicationContext; | |
12 | +import org.springframework.context.annotation.Bean; | |
13 | +import org.springframework.context.annotation.Configuration; | |
14 | +import org.springframework.web.context.WebApplicationContext; | |
15 | + | |
16 | +import javax.sql.DataSource; | |
17 | + | |
18 | +@Configuration | |
19 | +@MapperScan(basePackages="com.takensoft.ums.dao", sqlSessionFactoryRef = "umsSqlSessionFactory") | |
20 | +public class UmsDataSourceConfig { | |
21 | + @Bean(name = "umsDataSource") | |
22 | + @ConfigurationProperties(prefix="spring.ums.datasource") | |
23 | + public DataSource umsDataSource() { | |
24 | + return DataSourceBuilder.create().build(); | |
25 | + } | |
26 | + | |
27 | + @Bean(name = "umsSqlSessionFactory") | |
28 | + public SqlSessionFactory umsSqlSessionFactory(@Qualifier("umsDataSource") DataSource umsDataSource, | |
29 | + ApplicationContext applicationContext) throws Exception { | |
30 | + SqlSessionFactoryBean sqlSessionFactoryBean = new SqlSessionFactoryBean(); | |
31 | + sqlSessionFactoryBean.setDataSource(umsDataSource); | |
32 | + sqlSessionFactoryBean.setTypeAliasesPackage("com.takensoft.ums.vo"); | |
33 | + sqlSessionFactoryBean.setMapperLocations(applicationContext.getResources("classpath:mybatis/mapper-ora/**/*-SQL.xml")); | |
34 | + | |
35 | + // MyBatis Configuration 설정 추가 | |
36 | + org.apache.ibatis.session.Configuration myBatisConfig = new org.apache.ibatis.session.Configuration(); | |
37 | + myBatisConfig.setCacheEnabled(true); | |
38 | + myBatisConfig.setLazyLoadingEnabled(false); | |
39 | + myBatisConfig.setMultipleResultSetsEnabled(true); | |
40 | + myBatisConfig.setUseColumnLabel(true); | |
41 | + myBatisConfig.setUseGeneratedKeys(false); | |
42 | + myBatisConfig.setDefaultExecutorType(org.apache.ibatis.session.ExecutorType.SIMPLE); | |
43 | + myBatisConfig.setDefaultStatementTimeout(25000); | |
44 | + myBatisConfig.setCallSettersOnNulls(true); | |
45 | + myBatisConfig.setMapUnderscoreToCamelCase(true); | |
46 | + | |
47 | + sqlSessionFactoryBean.setConfiguration(myBatisConfig); | |
48 | + | |
49 | + return sqlSessionFactoryBean.getObject(); | |
50 | + } | |
51 | + | |
52 | + @Bean(name = "umsSessionTemplate") | |
53 | + public SqlSessionTemplate umsSqlSessionTemplate(@Qualifier("umsSqlSessionFactory") SqlSessionFactory umsSqlSessionFactory) { | |
54 | + return new SqlSessionTemplate(umsSqlSessionFactory); | |
55 | + } | |
56 | +} |
--- src/main/java/com/takensoft/portal/entDscsnAply/service/Impl/EntDscsnAplyServiceImpl.java
+++ src/main/java/com/takensoft/portal/entDscsnAply/service/Impl/EntDscsnAplyServiceImpl.java
... | ... | @@ -11,6 +11,7 @@ |
11 | 11 |
import com.takensoft.portal.entDscsnAply.dao.EntDscsnAplyDAO; |
12 | 12 |
import com.takensoft.portal.entDscsnAply.service.EntDscsnAplyService; |
13 | 13 |
import com.takensoft.portal.entDscsnAply.vo.EntDscsnAplyVO; |
14 |
+import com.takensoft.ums.service.UmsService; |
|
14 | 15 |
import lombok.RequiredArgsConstructor; |
15 | 16 |
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl; |
16 | 17 |
import org.springframework.stereotype.Service; |
... | ... | @@ -38,6 +39,7 @@ |
38 | 39 |
private final IdgenService entDscsnAplyIdgn; |
39 | 40 |
private final FileService fileService; |
40 | 41 |
private final CommonUtils commonUtils; |
42 |
+ private final UmsService umsService; |
|
41 | 43 |
|
42 | 44 |
/** |
43 | 45 |
* @author 박정하 |
... | ... | @@ -81,8 +83,12 @@ |
81 | 83 |
// 기업상담신청 등록 |
82 | 84 |
int insertResult = entDscsnAplyDAO.entDscsnAplyInsert(entDscsnAplyVO); |
83 | 85 |
|
86 |
+ // 기업 상담 등록 시 문자 메시지 발송 |
|
87 |
+// Map<String, Object> umsResult = umsService.save(); |
|
88 |
+ |
|
84 | 89 |
// 결과 반환 |
85 | 90 |
result.put("insertResult", insertResult); |
91 |
+// result.put("umsResult", umsResult); |
|
86 | 92 |
return result; |
87 | 93 |
} |
88 | 94 |
|
+++ src/main/java/com/takensoft/ums/dao/UmsDAO.java
... | ... | @@ -0,0 +1,24 @@ |
1 | +package com.takensoft.ums.dao; | |
2 | + | |
3 | +import com.takensoft.ums.vo.UmsVO; | |
4 | +import org.egovframe.rte.psl.dataaccess.mapper.Mapper; | |
5 | + | |
6 | +import java.util.HashMap; | |
7 | +import java.util.List; | |
8 | + | |
9 | +/** | |
10 | + * @author : 방선주 | |
11 | + * @since : 2024.06.25 | |
12 | + * | |
13 | + * 문자서비스 Mapper | |
14 | + */ | |
15 | +@Mapper | |
16 | +public interface UmsDAO { | |
17 | + /** | |
18 | + * 문자 메시지 목록 조회 | |
19 | + */ | |
20 | + public int save(UmsVO umsVO) throws Exception; | |
21 | + | |
22 | + public List<UmsVO> findAll() throws Exception; | |
23 | +} | |
24 | + |
+++ src/main/java/com/takensoft/ums/service/Impl/UmsServiceImpl.java
... | ... | @@ -0,0 +1,60 @@ |
1 | +package com.takensoft.ums.service.Impl; | |
2 | + | |
3 | +import com.takensoft.cms.mber.dto.AdmMbrDTO; | |
4 | +import com.takensoft.cms.mber.service.AdmMbrService; | |
5 | +import com.takensoft.cms.mber.vo.MberVO; | |
6 | +import com.takensoft.ums.dao.UmsDAO; | |
7 | +import com.takensoft.ums.service.UmsService; | |
8 | +import com.takensoft.ums.vo.UmsVO; | |
9 | +import lombok.RequiredArgsConstructor; | |
10 | +import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
11 | +import org.springframework.stereotype.Service; | |
12 | +import org.springframework.transaction.annotation.Transactional; | |
13 | + | |
14 | +import java.util.HashMap; | |
15 | +import java.util.List; | |
16 | +import java.util.Map; | |
17 | + | |
18 | +/** | |
19 | + * @author : 방선주 | |
20 | + * @since : 2024.06.25 | |
21 | + * | |
22 | + * UmsServiceImpl - 문자 메시지 전송을 위한 서비스 구현체 | |
23 | + */ | |
24 | + | |
25 | +@Service("umsService") | |
26 | +@RequiredArgsConstructor | |
27 | +public class UmsServiceImpl extends EgovAbstractServiceImpl implements UmsService { | |
28 | + | |
29 | + private final UmsDAO umsDAO; | |
30 | + private final AdmMbrService admMbrService; | |
31 | + | |
32 | + @Override | |
33 | + @Transactional | |
34 | + public Map<String, Object> save() throws Exception { | |
35 | + Map<String, Object> result = new HashMap<>(); | |
36 | + | |
37 | + // 슈퍼관리자 정보 찾아 가져오기 | |
38 | + String mbrId = "MBR_000000000000001"; | |
39 | + AdmMbrDTO admMbrDTO = admMbrService.mbrDetail(mbrId); | |
40 | + UmsVO umsVO = new UmsVO(); | |
41 | + umsVO.setUserId("mono_customer"); // 계정 전달 필요 | |
42 | + umsVO.setScheduleType("0"); // 즉시 전달 1: 예약 | |
43 | + umsVO.setTitle("온라인 상담 신규 접수"); // 제목 (null 가능) | |
44 | + umsVO.setMsgContent("신규 온라인 상담 신청 건이 등록 되었습니다. "); // 내용 | |
45 | + umsVO.setCallingNum("054-639-6161"); // 회신번호 | |
46 | + umsVO.setPhoneNum(admMbrDTO.getMblTelno()); // 슈퍼 관리자 전화번호 가져오기 | |
47 | + | |
48 | + | |
49 | + result.put("status", umsDAO.save(umsVO)); | |
50 | + return result; | |
51 | + } | |
52 | + | |
53 | + @Override | |
54 | + public Map<String, Object> findAll() throws Exception { | |
55 | + Map<String, Object> result = new HashMap<>(); | |
56 | + List<UmsVO> list = umsDAO.findAll(); | |
57 | + result.put("list", list); | |
58 | + return result; | |
59 | + } | |
60 | +} |
+++ src/main/java/com/takensoft/ums/service/UmsService.java
... | ... | @@ -0,0 +1,16 @@ |
1 | +package com.takensoft.ums.service; | |
2 | + | |
3 | +import java.util.Map; | |
4 | + | |
5 | +/** | |
6 | + * @author : 방선주 | |
7 | + * @since : 2024.06.25 | |
8 | + * | |
9 | + * UmsService - 문자 메시지 전송을 위한 서비스 | |
10 | + */ | |
11 | + | |
12 | +public interface UmsService { | |
13 | + public Map<String, Object> save() throws Exception; | |
14 | + | |
15 | + public Map<String, Object> findAll() throws Exception; | |
16 | +} |
+++ src/main/java/com/takensoft/ums/vo/UmsVO.java
... | ... | @@ -0,0 +1,87 @@ |
1 | +package com.takensoft.ums.vo; | |
2 | + | |
3 | +import lombok.AllArgsConstructor; | |
4 | +import lombok.Getter; | |
5 | +import lombok.Setter; | |
6 | + | |
7 | +/** | |
8 | + * @author : 방선주 | |
9 | + * @since : 2024.06.25 | |
10 | + * | |
11 | + * 게시판 관리 관련 VO | |
12 | + */ | |
13 | +@Setter | |
14 | +@Getter | |
15 | +@AllArgsConstructor | |
16 | +public class UmsVO { | |
17 | + /** | |
18 | + * 문자 메시지 아이디 | |
19 | + */ | |
20 | + private String id; | |
21 | + /** | |
22 | + * ums 로그인 아이디 | |
23 | + */ | |
24 | + private String userId; | |
25 | + /** | |
26 | + * 스케쥴 타입구분(0:즉시, 1:예약) | |
27 | + */ | |
28 | + private String scheduleType; | |
29 | + /** | |
30 | + * 제목 | |
31 | + */ | |
32 | + private String title; | |
33 | + /** | |
34 | + * 메시지 내용 | |
35 | + */ | |
36 | + private String msgContent; | |
37 | + /** | |
38 | + * 회신번호 | |
39 | + */ | |
40 | + private String callingNum; | |
41 | + /** | |
42 | + * 수신자 | |
43 | + */ | |
44 | + private String tgtNm; | |
45 | + /** | |
46 | + * 수신번호 | |
47 | + */ | |
48 | + private String phoneNum; | |
49 | + /** | |
50 | + * 상태코드 (0: 미전송, 1: 전송, 2:에러) | |
51 | + */ | |
52 | + private String stateCd; | |
53 | + /** | |
54 | + * STATE_CD 값이 ‘2’일 경우 상세 에러메시지 | |
55 | + */ | |
56 | + private String resultMsg; | |
57 | + /** | |
58 | + * 카카오 알림톡 전송 시 템플릿코드 입력(SMS일 | |
59 | + * 경우 NULL) | |
60 | + */ | |
61 | + private String templateCd; | |
62 | + /** | |
63 | + * 푸시전송여부 ‘Y’일경우 푸시로 전송 | |
64 | + */ | |
65 | + private String pushSendYn; | |
66 | + /** | |
67 | + * 푸시전송 시 식별자 아이디(앱아이디) | |
68 | + */ | |
69 | + private String pushId; | |
70 | + /** | |
71 | + * 카카오알림톡 재전송 후 실패 시 문자전송. | |
72 | + */ | |
73 | + private String pushResendTpCd; | |
74 | + /** | |
75 | + * 예약전송일시 | |
76 | + */ | |
77 | + private String reservDttm; | |
78 | + /** | |
79 | + * DB입력시간 | |
80 | + */ | |
81 | + private String regDttm; | |
82 | + | |
83 | + | |
84 | + public UmsVO() { | |
85 | + | |
86 | + } | |
87 | +} |
+++ src/main/java/com/takensoft/ums/web/UmsController.java
... | ... | @@ -0,0 +1,49 @@ |
1 | +package com.takensoft.ums.web; | |
2 | + | |
3 | +import com.takensoft.common.util.ResponseData; | |
4 | +import com.takensoft.ums.service.UmsService; | |
5 | +import lombok.RequiredArgsConstructor; | |
6 | +import lombok.extern.slf4j.Slf4j; | |
7 | +import org.springframework.http.HttpHeaders; | |
8 | +import org.springframework.http.HttpStatus; | |
9 | +import org.springframework.http.MediaType; | |
10 | +import org.springframework.http.ResponseEntity; | |
11 | +import org.springframework.web.bind.annotation.PostMapping; | |
12 | +import org.springframework.web.bind.annotation.RequestMapping; | |
13 | +import org.springframework.web.bind.annotation.RestController; | |
14 | + | |
15 | +import java.nio.charset.Charset; | |
16 | +import java.util.HashMap; | |
17 | +import java.util.Map; | |
18 | + | |
19 | +/** | |
20 | + * @author : 방선주 | |
21 | + * @since : 2024.06.25 | |
22 | + * | |
23 | + * UmsController - 문자 메시지 전송을 위한 컨트롤러 | |
24 | + */ | |
25 | +@RestController | |
26 | +@RequiredArgsConstructor | |
27 | +@Slf4j | |
28 | +@RequestMapping(value="/ums") | |
29 | +public class UmsController { | |
30 | + | |
31 | + private final UmsService umsService; | |
32 | + | |
33 | + // 문자 메시지 테이블 확인 | |
34 | + @PostMapping(value="/saveUmsInfo.json") | |
35 | + public ResponseEntity<?> saveUmsInfo() throws Exception { | |
36 | + // 목록 조회 | |
37 | +// Map<String, Object> result = umsService.findAll(); | |
38 | + Map<String, Object> result = umsService.save(); | |
39 | + | |
40 | + // 응답처리 | |
41 | + HttpHeaders headers = new HttpHeaders(); | |
42 | + headers.setContentType(new MediaType("application", "json", Charset.forName("UTF-8"))); | |
43 | + ResponseData responseData = new ResponseData(); | |
44 | + responseData.setStatus(HttpStatus.OK); | |
45 | + responseData.setMessage("정상적으로 조회가 처리되었습니다."); | |
46 | + responseData.setData(result); | |
47 | + return new ResponseEntity<>(responseData, headers, HttpStatus.OK); | |
48 | + } | |
49 | +} |
--- src/main/resources/application.yml
+++ src/main/resources/application.yml
... | ... | @@ -11,17 +11,36 @@ |
11 | 11 |
jpa: |
12 | 12 |
open-in-view: false |
13 | 13 |
#Datasource Configuration |
14 |
- datasource: |
|
15 |
- driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
|
16 |
- url: jdbc:log4jdbc:postgresql://210.180.118.83:5432/yj_cms?currentSchema=yj_cms |
|
17 |
- username: takensoft |
|
18 |
- password: tts96314728!@ |
|
14 |
+ cms: |
|
15 |
+ datasource: |
|
16 |
+ driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
|
17 |
+ jdbc-url: jdbc:log4jdbc:postgresql://210.180.118.83:5432/yj_cms?currentSchema=yj_cms |
|
18 |
+ username: takensoft |
|
19 |
+ password: tts96314728!@ |
|
20 |
+ |
|
19 | 21 |
# postgresql |
20 | 22 |
# mariaDB |
21 | 23 |
#driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
22 | 24 |
#url: jdbc:log4jdbc:mariadb://210.180.118.83/yj_portal |
23 | 25 |
#username: takensoft |
24 | 26 |
#password: tts96314728!@ |
27 |
+ |
|
28 |
+ # 오라클 설정 |
|
29 |
+# ums: |
|
30 |
+# datasource: |
|
31 |
+# driver-class-name: oracle.jdbc.OracleDriver |
|
32 |
+# jdbc-url: jdbc:oracle:thin:@localhost:1521:xe |
|
33 |
+# username: c##test1 |
|
34 |
+# password: 1234 |
|
35 |
+ |
|
36 |
+# # 오라클 설정 |
|
37 |
+# ums: |
|
38 |
+# datasource: |
|
39 |
+# driver-class-name: oracle.jdbc.OracleDriver |
|
40 |
+# jdbc-url: jdbc:oracle:thin:@111.6.1.32:1521:ora10 |
|
41 |
+# username: mono_customer |
|
42 |
+# password: mono_customer |
|
43 |
+ |
|
25 | 44 |
sql: |
26 | 45 |
init: |
27 | 46 |
platform: postgres |
... | ... | @@ -41,19 +60,19 @@ |
41 | 60 |
static-locations: file:///C:/uploadFiles/, classpath:/static/ |
42 | 61 |
|
43 | 62 |
# Mybatis settings |
44 |
-mybatis: |
|
45 |
- type-aliases-package: com.takensoft.**.**.vo, com.takensoft.**.**.dto, com.takensoft.common |
|
46 |
- mapper-locations: classpath:mybatis/mapper/**/*-SQL.xml |
|
47 |
- configuration: |
|
48 |
- cache-enabled: true # mapper 캐시 전역 사용여부 |
|
49 |
- lazy-loading-enabled: false # MyBatis 지연 로딩 사용여부 |
|
50 |
- multiple-result-sets-enabled: true # 한 개의 구문에서 여러 개의 ResultSet 허용 여부 |
|
51 |
- use-column-label: true # 컬럼명 대신 컬럼 라벨 사용 여부 |
|
52 |
- use-generated-keys: false # 키 자동 생성 |
|
53 |
- default-executor-type: SIMPLE |
|
54 |
- default-statement-timeout: 25000 |
|
55 |
- call-setters-on-nulls: true |
|
56 |
- map-underscore-to-camel-case: true # 카멜케이스 사용 |
|
63 |
+#mybatis: |
|
64 |
+# type-aliases-package: com.takensoft.**.**.vo, com.takensoft.**.**.dto, com.takensoft.common |
|
65 |
+# mapper-locations: classpath:mybatis/mapper/**/*-SQL.xml |
|
66 |
+# configuration: |
|
67 |
+# cache-enabled: true # mapper 캐시 전역 사용여부 |
|
68 |
+# lazy-loading-enabled: false # MyBatis 지연 로딩 사용여부 |
|
69 |
+# multiple-result-sets-enabled: true # 한 개의 구문에서 여러 개의 ResultSet 허용 여부 |
|
70 |
+# use-column-label: true # 컬럼명 대신 컬럼 라벨 사용 여부 |
|
71 |
+# use-generated-keys: false # 키 자동 생성 |
|
72 |
+# default-executor-type: SIMPLE |
|
73 |
+# default-statement-timeout: 25000 |
|
74 |
+# call-setters-on-nulls: true |
|
75 |
+# map-underscore-to-camel-case: true # 카멜케이스 사용 |
|
57 | 76 |
|
58 | 77 |
# jwt |
59 | 78 |
jwt: |
... | ... | @@ -68,8 +87,9 @@ |
68 | 87 |
# frontUrl |
69 | 88 |
front: |
70 | 89 |
#url: http://192.168.0.95 |
71 |
- url: http://165.229.169.115 |
|
72 |
-# url: http://192.168.0.96 |
|
90 |
+# url: http://165.229.169.115 |
|
91 |
+ url: http://192.168.0.96 |
|
92 |
+# url: http://165.229.169.114 |
|
73 | 93 |
# url: http://localhost |
74 | 94 |
|
75 | 95 |
# 암복호화 |
+++ src/main/resources/mybatis/mapper-ora/ums/ums-SQL.xml
... | ... | @@ -0,0 +1,29 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | +<mapper namespace="com.takensoft.ums.dao.UmsDAO"> | |
4 | + <insert id="save" parameterType="UmsVO"> | |
5 | + INSERT INTO CUSTOMER_SMS_SEND ( | |
6 | + USER_ID | |
7 | + , SCHEDULE_TYPE | |
8 | + , TITLE | |
9 | + ,MSG_CONTENT | |
10 | + , CALLING_NUM | |
11 | + ,PHONE_NUM | |
12 | + , RESERV_DTTM | |
13 | + , REG_DTTM | |
14 | + ) VALUES ( | |
15 | + #{userId}, | |
16 | + #{scheduleType}, | |
17 | + #{title}, | |
18 | + #{msgContent}, | |
19 | + #{callingNum}, | |
20 | + #{phoneNum}, | |
21 | + NULL, | |
22 | + TO_CHAR(SYSDATE, 'YYYYMMDDHH24MISS') | |
23 | + ) | |
24 | + </insert> | |
25 | + | |
26 | + <select id="findAll" resultType="UmsVO"> | |
27 | + SELECT * FROM CUSTOMER_SMS_SEND | |
28 | + </select> | |
29 | +</mapper>(파일 끝에 줄바꿈 문자 없음) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?