Merge branch 'master' of

http://yongjoon.cho@vcs.iten.co.kr:9999/itnAdmin/koipa_edu_2025-1

Conflicts:
	src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-umt.xml
This commit is contained in:
myname 2025-08-21 11:14:02 +09:00
commit 311b87c0ba
23 changed files with 952 additions and 656 deletions

27
pom.xml
View File

@ -587,33 +587,6 @@
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>egovframework/sqlmap/config/altibase/*.xml</exclude>
<exclude>egovframework/sqlmap/config/cubrid/*.xml</exclude>
<exclude>egovframework/sqlmap/config/maria/*.xml</exclude>
<exclude>egovframework/sqlmap/config/mysql/*.xml</exclude>
<exclude>egovframework/sqlmap/config/oracle/*.xml</exclude>
<exclude>egovframework/sqlmap/config/tibero/*.xml</exclude>
<exclude>egovframework/sqlmap/config/postgresql/*.xml</exclude>
<exclude>egovframework/sqlmap/let/**/*.xml</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources/egovframework/sqlmap/config/${db.type}</directory>
<includes>
<include>*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources/egovframework/sqlmap/let</directory>
<includes>
<include>**/*SQL_${db.type}.xml</include>
</includes>
</resource>
</resources>
<defaultGoal>install</defaultGoal>
<directory>${basedir}/target</directory>
<finalName>ipedu</finalName>

View File

@ -1,31 +0,0 @@
package egovframework.migration.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
import com.ibatis.sqlmap.client.SqlMapClient;
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
@Repository("KcdfNewDAO")
public class KcdfNewDAO extends EgovAbstractDAO {
@Override
@Resource(name ="kcdfSqlMapClient")
public void setSuperSqlMapClient(SqlMapClient sqlMapClient) {
super.setSuperSqlMapClient(sqlMapClient);
}
public int selectKcdfBasicCount() {
return (int)select("KcdfNewDAO.selectKcdfBasicCount");
}
@SuppressWarnings("unchecked")
public List<KcdfNewBbsVO> selectKcdfBbsList(KcdfNewBbsVO tempKcdfNewBbsVO) throws Exception{
return (List<KcdfNewBbsVO>)list("KcdfNewDAO.selectKcdfBbsList", tempKcdfNewBbsVO);
}
}

View File

@ -1,126 +0,0 @@
package egovframework.migration.service;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
@Service("MariaMigrationService")
public class MariaMigrationService {
@Resource(name = "KcdfNewDAO")
private KcdfNewDAO kcdfNewDAO;
@Resource(name = "NcmsDAO")
private NcmsDAO ncmsDAO;
public int selectOracleBasicCount() {
// TODO Auto-generated method stub
return 0;
}
public int selectMariaBasicCount() {
// TODO Auto-generated method stub
return 0;
}
public int selectOraclePublishCount() {
// TODO Auto-generated method stub
return 0;
}
public int selectMariaPublishCount() {
// TODO Auto-generated method stub
return 0;
}
public int selectOracleFileCount() {
// TODO Auto-generated method stub
return 0;
}
public int selectMariaFileCount() {
// TODO Auto-generated method stub
return 0;
}
public int selectOracleResrvationCount() {
// TODO Auto-generated method stub
return 0;
}
public int selectMariaResrvationCount() {
// TODO Auto-generated method stub
return 0;
}
public void selectOracleBasicList() {
// TODO Auto-generated method stub
}
public void selectOraclePublishList() {
// TODO Auto-generated method stub
}
public void selectOracleFileList() {
// TODO Auto-generated method stub
}
public void selectOracleResrvationList() {
// TODO Auto-generated method stub
}
public int selectKcdfBasicCount() {
return kcdfNewDAO.selectKcdfBasicCount();
}
public void kcdfMigration() {
try {
int selectKcdfBasicCount = kcdfNewDAO.selectKcdfBasicCount();
List<KcdfNewBbsVO> list = new ArrayList<KcdfNewBbsVO>();
KcdfNewBbsVO tempKcdfNewBbsVO = new KcdfNewBbsVO(); //limit 위해 사용
int enterval = 100;
int i = 0;
if(selectKcdfBasicCount > enterval){
for(i=0; i< selectKcdfBasicCount; i++){ //enterval 개씩 끊어서 insert
if (i % enterval == 0 ){ //0
tempKcdfNewBbsVO.setRecordCountPerPage(enterval);
tempKcdfNewBbsVO.setFirstIndex(i);
list = kcdfNewDAO.selectKcdfBbsList(tempKcdfNewBbsVO);
for(int j=0; j< list.size(); j++){
ncmsDAO.insertNcmsBbsInfo(list.get(j));
}
}
}
/*if(selectKcdfBasicCount != tempKcdfNewBbsVO.getFirstIndex()) { // enterval 개씩 끊어서 insert 남은 데이터 insert
tempKcdfNewBbsVO.setFirstIndex(selectKcdfBasicCount);
tempKcdfNewBbsVO.setRecordCountPerPage(enterval);
list = kcdfNewDAO.selectKcdfBbsList(tempKcdfNewBbsVO);
for(i=0; i< list.size(); i++){
kcdfNewDAO.insertNcmsBbsInfo(list.get(i));
}
}*/
}else{ //enterval 미만
tempKcdfNewBbsVO.setFirstIndex(0);
tempKcdfNewBbsVO.setRecordCountPerPage(enterval);
list = kcdfNewDAO.selectKcdfBbsList(tempKcdfNewBbsVO);
for(i=0; i< selectKcdfBasicCount; i++){
ncmsDAO.insertNcmsBbsInfo(list.get(i));
}
}
} catch (Exception e) {
System.err.println("migration Exception Error");
}
}
}

View File

@ -1,81 +0,0 @@
package egovframework.migration.web;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import egovframework.migration.service.MariaMigrationService;
@Controller
public class MariaMigrationController {
@Resource(name = "MariaMigrationService")
private MariaMigrationService mariaMigrationService;
@RequestMapping(value="/maria/migration.do")
public String mariaTestPage(ModelMap model) throws Exception{
int selectKcdfBasicCount = mariaMigrationService.selectKcdfBasicCount();
mariaMigrationService.kcdfMigration();
/*List<OrcaleTestVO> list = orcalTestDAO.selectOracleBasicList();*/
mariaMigrationService.selectOracleBasicList();
int selectMariaBasicCount = mariaMigrationService.selectMariaBasicCount();
int selectOraclePublishCount = mariaMigrationService.selectOraclePublishCount();
int selectMariaPublishCount = mariaMigrationService.selectMariaPublishCount();
int selectOracleFileCount = mariaMigrationService.selectOracleFileCount();
int selectMariaFileCount = mariaMigrationService.selectMariaFileCount();
int selectOracleResrvationCount = mariaMigrationService.selectOracleResrvationCount();
int selectMariaResrvationCount = mariaMigrationService.selectMariaResrvationCount();
/*model.addAttribute("selectOracleBasicCount", selectOracleBasicCount );
model.addAttribute("selectMariaBasicCount", selectMariaBasicCount );
model.addAttribute("selectOraclePublishCount", selectOraclePublishCount );
model.addAttribute("selectMariaPublishCount", selectMariaPublishCount );
model.addAttribute("selectOracleFileCount", selectOracleFileCount );
model.addAttribute("selectMariaFileCount", selectMariaFileCount );
model.addAttribute("selectOracleResrvationCount", selectOracleResrvationCount );
model.addAttribute("selectMariaResrvationCount", selectMariaResrvationCount );*/
return "test/oracle/TestOracle";
}
@RequestMapping(value="/maria/dataBaseAjax.do")
public ModelAndView mariaDataBaseAjax(@RequestParam Map<String, Object> commandMap){
ModelAndView modelAndView = new ModelAndView();
modelAndView.setViewName("jsonView");
String type = (String) commandMap.get("type");
System.out.println("type : " + type);
if(type =="basic" || type.equals("basic")){
mariaMigrationService.selectOracleBasicList();
}else if(type =="Publish" || type.equals("Publish")){
mariaMigrationService.selectOraclePublishList();
}else if(type =="file" || type.equals("file")){
mariaMigrationService.selectOracleFileList();
}else if(type =="Resrvation" || type.equals("Resrvation")){
mariaMigrationService.selectOracleResrvationList();
}
modelAndView.addObject("result", "TEST");
return modelAndView;
}
}

View File

@ -37,7 +37,6 @@ import kcc.kccadr.adjclsmgr.service.AdjClsMgrService;
import kcc.kccadr.adjclsmgr.service.AdjClsMgrVO;
import kcc.kccadr.cmm.CmmUtil;
import kcc.kccadr.cmm.KccadrConstants;
import kcc.kccadr.cmm.service.SMSOracleService;
import kcc.let.utl.fcc.service.EgovCryptoUtil;
/**
@ -79,11 +78,6 @@ public class AdjClsMgrController {
@Resource(name = "internalApprovManageService")
private InternalApprovManageService internalApprovManageService;
// SMS, Email 전송
@Resource(name = "SMSOracleService")
private SMSOracleService sMSOracleService;
@RequestMapping(value = "/kccadr/adjclsmgr/adjCloseMangeList.do")
public String adjCloseMangeList(@ModelAttribute("adjClsMgrVO") AdjClsMgrVO adjClsMgrVO, ModelMap model) throws Exception {
@ -341,7 +335,6 @@ public class AdjClsMgrController {
@RequestMapping(value = "/web/adjclsmgr/sendTestEmail2Ajax.do")
public void sendTestEmail2Ajax(HttpServletRequest request) throws Exception {
//sMSOracleService.insertEmailSend(null);
}
@RequestMapping(value = "/web/adjclsmgr/sendTestEmailAjax.do")

View File

@ -42,7 +42,6 @@ import kcc.com.utl.user.service.CheckAdrProcessUtil;
import kcc.kccadr.adjst.service.AdjstReqService;
import kcc.kccadr.adjst.service.AdjstReqVO;
import kcc.kccadr.cmm.KccadrConstants;
import kcc.kccadr.cmm.service.SMSOracleService;
import kcc.let.uat.uia.service.SsoLoginVO;
import kcc.let.utl.fcc.service.EgovCryptoUtil;
@ -68,10 +67,6 @@ public class AdjstReqWebController {
private static final Logger LOGGER = LoggerFactory.getLogger(AdjstReqWebController.class);
// 오라클 연동 테스트
@Resource(name = "SMSOracleService")
private SMSOracleService sMSOracleService;
// 교육신청 서비스단
@Resource(name = "AdjstReqService")
private AdjstReqService adjstReqService;
@ -204,13 +199,6 @@ public class AdjstReqWebController {
@RequestMapping("/web/kccadr/adjst/adjstReqRegistInformation.do")
public String adjstReqRegistInformation(@ModelAttribute("adjstReqVO") AdjstReqVO adjstReqVO, ModelMap model) throws Exception {
adjstReqVO.setStep(KccadrConstants.STEP0);
// 오라클 연동 테스트 > 여현준
// sMSOracleService.selectOracleTest();
// AdjReqMgrVO adjReqMgrVO = new AdjReqMgrVO();
// adjReqMgrVO.setAdrSeq("ADR_0000000000000381");
// adjReqMgrVO.setStatCd("104010");
// sMSOracleService.insertSmsSend(adjReqMgrVO);
return "/web/kccadr/adjst/adjstReqRegistInformation";
}

View File

@ -1,29 +0,0 @@
package kcc.kccadr.cmm.service;
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctVO;
/**
* 저작위 SMS서버를 사용하기 위한 서비스
* @author 여현준
* @since 2021.10.25
* @version 1.0
* @see
*
* <pre>
* << 개정이력(Modification Information) >>
*
* 수정일 수정자 수정내용
* ------- -------- ---------------------------
* 2021.10.25 여현준 최초 생성
*
* </pre>
*/
public interface SMSOracleService {
// 오라클 연동 테스트
public void selectOracleTest() throws Exception;
// SMS 전송(저작위 SMS서버 DB등록)
public String insertSmsSend(VEEduAplctVO vEEduAplctVO) throws Exception;
}

View File

@ -1,57 +0,0 @@
package kcc.kccadr.cmm.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
import com.ibatis.sqlmap.client.SqlMapClient;
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
import egovframework.rte.psl.dataaccess.util.EgovMap;
/**
* 저작위 SMS서버를 사용하기 위한 데이터 접근 클래스
* @author 여현준
* @since 2021.10.25
* @version 1.0
* @see
*
* <pre>
* << 개정이력(Modification Information) >>
*
* 수정일 수정자 수정내용
* ------- -------- ---------------------------
* 2021.10.25 여현준 최초 생성
*
* </pre>
*/
@Repository("SMSOracleDAO")
public class SMSOracleDAO extends EgovAbstractDAO {
@Override
@Resource(name ="oracleSqlMapClient")
public void setSuperSqlMapClient(SqlMapClient sqlMapClient) {
super.setSuperSqlMapClient(sqlMapClient);
}
// SMS 전송 등록
public void insertSmsSend(EgovMap egovMap) throws Exception{
insert("SMSOracleDAO.insertSmsSend", egovMap);
}
// MMS 전송 등록
public void insertMmsSend(EgovMap egovMap) throws Exception{
insert("SMSOracleDAO.insertMmsSend", egovMap);
}
// 연동 테스트
public int selectOracleTest() throws Exception{
return (int) select("SMSOracleDAO.selectOracleTest");
}
//test
public void insertSmsSendTest() throws Exception{
insert("SMSOracleDAO.insertSmsSendTest");
}
}

View File

@ -1,115 +0,0 @@
package kcc.kccadr.cmm.service.impl;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
import egovframework.rte.psl.dataaccess.util.EgovMap;
import kcc.kccadr.cmm.service.SMSOracleService;
import kcc.let.utl.fcc.service.EgovCryptoUtil;
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctVO;
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.impl.VEEduAplctSndHstryDAO;
/**
* 저작위 SMS서버를 사용하기 위한 서비스 구현 클래스
* @author 여현준
* @since 2021.10.25
* @version 1.0
* @see
*
* <pre>
* << 개정이력(Modification Information) >>
*
* 수정일 수정자 수정내용
* ------- -------- ---------------------------
* 2021.10.25 여현준 최초 생성
*
* </pre>
*/
@Service("SMSOracleService")
public class SMSOracleServiceImpl extends EgovAbstractServiceImpl implements SMSOracleService {
private static final Logger LOGGER = LoggerFactory.getLogger(SMSOracleServiceImpl.class);
@Value("#{globalSettings['Globals.SMSDB.SendTelNo']}")
private String sendTelNo; // 송신 전화번호
@Value("#{globalSettings['Globals.SMSDB.TrId']}")
private String trId; // 시스템 구분자
// SMS전송(SMS전송서버-오라클DB)
@Resource(name = "SMSOracleDAO")
private SMSOracleDAO smsOracleDAO;
//과정
@Resource(name="vEEduAplctSndHstryDAO")
private VEEduAplctSndHstryDAO vEEduAplctSndHstryDAO;
@Resource(name = "egovCryptoUtil")
EgovCryptoUtil egovCryptoUtil;
// 오라클 연동 테스트
public void selectOracleTest() throws Exception {
int test = 0;
try {
test = smsOracleDAO.selectOracleTest();
} catch (Exception e) {
System.out.println("Exception Occured!!!");
}
LOGGER.debug("테스트결과:" + test);
}
// SMS 전송(저작위 SMS서버 DB등록)
@Override
public String insertSmsSend(VEEduAplctVO vEEduAplctVO) throws Exception {
String result = "fail";
// LOGGER.debug("SMS 전송DB 등록");
try {
EgovMap map = new EgovMap();
// test 수신자 번호
//map.put("rpplPhone", "010-7544-2416");
map.put("rpplPhone", vEEduAplctVO.getClphone());
// test
map.put("sendTelNo", sendTelNo); // 송신자 번호
map.put("trId", trId); // 시스템 구분자
String sndCn = vEEduAplctVO.getSndCn();
//String sndCd = (String) map.get("sndCd");
int bytes = sndCn.getBytes("euc-kr").length;
if (bytes > 90) {
} else {
map.put("sendMsg", vEEduAplctVO.getSndCn());
//찾교는 단문만 지원
smsOracleDAO.insertSmsSend(map); // SMS 등록 단문 > SMS DB(오라클)
vEEduAplctSndHstryDAO.insert(vEEduAplctVO);; // SMS 이력 등록 단문
}
result = "succ";
} catch (Exception e) {
System.out.println("Exception Occured!!!");
}
LOGGER.debug("SMS 전송DB 등록 결과:[" + result +"]");
return result;
}
//test
public void insertSmsSendTest() throws Exception{
smsOracleDAO.insertSmsSendTest();
}
}

View File

@ -13,7 +13,6 @@ import kcc.com.cmm.util.StringUtil2;
import kcc.com.utl.user.service.CheckAdrProcessUtil;
import kcc.kccadr.adjreqmgr.service.AdjReqMgrVO;
import kcc.kccadr.adjreqmgr.service.impl.AdjReqMgrDAO;
import kcc.kccadr.cmm.service.SMSOracleService;
import kcc.kccadr.kccadrCom.service.KccadrMgrUdtService;
import kcc.let.sym.ccm.cde.service.CmmnDetailCodeVO;
import kcc.let.sym.ccm.cde.service.EgovCcmCmmnDetailCodeManageService;
@ -33,10 +32,6 @@ public class KccadrMgrUdtServiceImpl implements KccadrMgrUdtService{
@Resource(name = "checkAdrProcessUtil")
private CheckAdrProcessUtil checkAdrProcessUtil;
// SMS전송
@Resource(name = "SMSOracleService")
private SMSOracleService sMSOracleService;
//상세 코드 정보
@Resource(name = "CmmnDetailCodeManageService")
private EgovCcmCmmnDetailCodeManageService cmmnDetailCodeManageService;
@ -98,8 +93,6 @@ public class KccadrMgrUdtServiceImpl implements KccadrMgrUdtService{
// 알림(SMS) 전송
if ("real".equals(prodIsLocal)) {
LOGGER.debug("@@@ updateAdrMgrUdt 알림SMS 전송 yu3145 start");
//sMSOracleService.selectOracleTest(); // 연동 테스트. 콘솔 로그 확인
//sMSOracleService.insertSmsSend(adjReqMgrVO);
LOGGER.debug("@@@ updateAdrMgrUdt 알림SMS 전송 yu3145 end");
}

View File

@ -63,7 +63,6 @@ import kcc.com.cmm.captcha.CaptchaUtil;
import kcc.com.cmm.spring.data.util.ProfileUtil;
import kcc.com.cmm.util.WebUtil;
import kcc.com.utl.user.service.CheckLoginUtil;
import kcc.kccadr.cmm.service.SMSOracleService;
import kcc.let.sym.log.clg.service.EgovLoginLogService;
import kcc.let.sym.log.clg.service.LoginLog;
import kcc.let.sym.mnu.mpm.service.MenuManageJTreeVO;
@ -177,9 +176,6 @@ public class EgovLoginController {
@Resource(name = "mberManageService")
private EgovMberManageService mberManageService;
@Resource(name = "SMSOracleService")
private SMSOracleService sMSOracleService;
//강사 정보
@Resource(name="vEInstrService")
private VEInstrService vEInstrService;
@ -446,16 +442,11 @@ public class EgovLoginController {
//if (ProfileUtil.isProd()) {
LOGGER.debug("@ prod @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Start");
//sMSOracleService.selectOracleTest(); // 연동 테스트. 콘솔 로그 확인
//AdjReqMgrVO adjReqMgrVO = new AdjReqMgrVO();
//sMSOracleService.insertSmsSend(adjReqMgrVO);
//sMSOracleService.insertSmsSendTest();
LOGGER.debug("@ prod @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@End");
//}
//
//
// LOGGER.debug("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
// sMSOracleService.selectOracleTest(); // 연동 테스트. 콘솔 로그 확인
// LOGGER.debug("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
return "redirect:/web/main/mainPage.do";

View File

@ -25,7 +25,6 @@ import kcc.com.utl.user.service.CheckAdrProcessUtil;
import kcc.com.utl.user.service.CheckFileUtil;
import kcc.com.utl.user.service.CheckLoginUtil;
import kcc.kccadr.adjreqmgr.service.AdjReqMgrService;
import kcc.kccadr.cmm.service.SMSOracleService;
import kcc.kccadr.kccadrCom.service.KccadrMgrUdtService;
import kcc.let.sym.ccm.cde.service.EgovCcmCmmnDetailCodeManageService;
import kcc.let.uss.ion.cnt.service.CntManageVO;
@ -181,10 +180,6 @@ public class SndMngController {
@Resource(name = "sndGnrService")
private EgovIdGnrService sndGnrService;
//snd_hstry id gen
@Resource(name = "SMSOracleService")
private SMSOracleService smsOracleService;
@Resource(name = "egovCntManageService")
private EgovCntManageService egovCntManageService;
@ -295,7 +290,6 @@ public class SndMngController {
System.out.println(vEEduAplctVO.getSndFlag());
// returnMsg = smsOracleService.insertSmsSend(vEEduAplctVO);
//문자 발송 로그
/*String snd_sms_ord = sndGnrService.getNextStringId();
@ -344,7 +338,7 @@ public class SndMngController {
vEEduAplctVO.setSndId(loginVO.getUniqId());
//System.out.println("@@@@@@@ 오라클 시작 ----------------------------------");
returnMsg = smsOracleService.insertSmsSend(vEEduAplctVO);
// returnMsg = smsOracleService.insertSmsSend(vEEduAplctVO);
//System.out.println("@@@@@@@ 오라클 끝 ----------------------------------");
//System.out.println("@@@@@@@ 히스토리 시작 ----------------------------------");

View File

@ -19,97 +19,6 @@
<alias name="dataSource-${Globals.DbType}" alias="dataSource" />
<alias name="dataSource-${Globals.DbType}" alias="egov.dataSource" />
<!-- mysql -->
<bean id="dataSource-mysql-spied" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${Globals.DriverClassName}" />
<property name="url" value="${Globals.Url}" />
<property name="username" value="${Globals.UserName}" />
<property name="password" value="${Globals.Password}" />
<property name="initialSize" value="30" />
<property name="maxActive" value="100" />
<property name="maxWait" value="-1" />
<!-- 특정 시간마다 validationQuery를 실행 셋팅 시작 -->
<property name="validationQuery" value="select 1" />
<property name="testWhileIdle" value="true" />
<property name="timeBetweenEvictionRunsMillis" value="7200000" />
<!-- 특정 시간마다 validationQuery<72><79><EFBFBD> 실행 셋팅 끝 -->
</bean>
<bean id="dataSource-mysql" class="net.sf.log4jdbc.Log4jdbcProxyDataSource">
<constructor-arg ref="dataSource-mysql-spied" />
<property name="logFormatter">
<bean class="kcc.let.utl.log4j.Log4JdbcCustomFormatter">
<property name="loggingType" value="MULTI_LINE" />
<property name="margin" value="8" />
<property name="sqlPrefix" value="SQL:" />
</bean>
</property>
</bean>
<!-- Oracle -->
<bean id="dataSource-oracle" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${Globals.SMSDB.DriverClassName}" />
<property name="url" value="${Globals.SMSDB.Url}" />
<property name="username" value="${Globals.SMSDB.UserName}" />
<property name="password" value="${Globals.SMSDB.Password}" />
</bean>
<!-- kcdf migration db -->
<bean id="dataSource-kcdf" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="core.log.jdbc.driver.MysqlDriver" />
<property name="url" value="jdbc:mysql://121.163.40.153:3306/kcdf_new" />
<property name="username" value="kcdf_new" />
<property name="password" value="kcdf_new" />
</bean>
<!-- Oracle -->
<!-- 기존소스 -->
<!-- <bean id="dataSource-oracle" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="${Globals.DriverClassName}"/>
<property name="url" value="${Globals.Url}" /> <property name="username" value="${Globals.UserName}"/> <property name="password" value="${Globals.Password}"/> </bean> -->
<!-- Altibase -->
<bean id="dataSource-altibase" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${Globals.DriverClassName}" />
<property name="url" value="${Globals.Url}" />
<property name="username" value="${Globals.UserName}" />
<property name="password" value="${Globals.Password}" />
<property name="maxActive" value="10" />
</bean>
<!-- Tibero -->
<bean id="dataSource-tibero-spied" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${Globals.DriverClassName}" />
<property name="url" value="${Globals.Url}" />
<property name="username" value="${Globals.UserName}" />
<property name="password" value="${Globals.Password}" />
<!-- 특정 시간마다 validationQuery를 실행 셋팅 시작 -->
<property name="validationQuery" value="select 1 FROM DUAL" />
<property name="initialSize" value="10" />
<property name="minIdle" value="10" />
<property name="maxWait" value="30000" />
<property name="maxActive" value="100" />
<property name="maxIdle" value="100" />
<property name="minEvictableIdleTimeMillis" value="60000" />
<property name="removeAbandonedTimeout" value="60" />
<property name="timeBetweenEvictionRunsMillis" value="7200000" />
<property name="testOnBorrow" value="true" />
<property name="testWhileIdle" value="true" />
<!-- <property name="timeBetweenEvictionRunsMillis" value="7200000" /> -->
<!-- 특정 시간마다 validationQuery를 실행 셋팅 끝 -->
</bean>
<bean id="dataSource-tibero" class="net.sf.log4jdbc.Log4jdbcProxyDataSource">
<constructor-arg ref="dataSource-tibero-spied" />
<property name="logFormatter">
<bean class="kcc.let.utl.log4j.Log4JdbcCustomFormatter">
<property name="loggingType" value="MULTI_LINE" />
<property name="margin" value="8" />
<property name="sqlPrefix" value="SQL:" />
</bean>
</property>
</bean>
<!-- PostgreSQL -->
<bean id="dataSource-postgresql-spied" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${Globals.DriverClassName}" />
@ -143,12 +52,4 @@
</property>
</bean>
<!-- cubrid -->
<bean id="dataSource-cubrid" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${Globals.DriverClassName}" />
<property name="url" value="${Globals.Url}" />
<property name="username" value="${Globals.UserName}" />
<property name="password" value="${Globals.Password}" />
</bean>
</beans>

View File

@ -26,49 +26,4 @@
<property name="dataSource" ref="dataSource-${Globals.DbType}" />
<property name="lobHandler" ref="lobHandler" />
</bean>
<bean id="oracleSqlMapClient" class="egovframework.rte.psl.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocations">
<list>
<value>classpath:/egovframework/sqlmap/config/oracle/*.xml</value>
</list>
</property>
<property name="dataSource" ref="dataSource-oracle" />
<property name="lobHandler" ref="lobHandler" />
</bean>
<!-- kcdf maria migration -->
<bean id="kcdfSqlMapClient" class="egovframework.rte.psl.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocations">
<list>
<value>classpath:/egovframework/sqlmap/config/maria/*.xml</value>
</list>
</property>
<property name="dataSource" ref="dataSource-kcdf" />
<property name="lobHandler" ref="lobHandler" />
</bean>
<!-- Mybatis 설정 -->
<!-- <bean id="sqlSession" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource-${Globals.DbType}" />
<property name="configLocation" value="classpath:/egovframework/spring/com/mybatis-config.xml" />
<property name="mapperLocations">
<list>
<value>classpath:/egovframework/sqlmap/mappers/*.xml</value>
</list>
</property>
</bean>
<bean class="egovframework.rte.psl.dataaccess.mapper.MapperConfigurer">
<property name="basePackage" value="kcc.kccadr.adjPgrMgr" />
</bean> -->
</beans>

View File

@ -3,5 +3,5 @@
"http://www.ibatis.com/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
<sqlMap resource="egovframework/sqlmap/let/sym/ccm/notify/VEANotify_SQL_postgresql.xml"/>
<sqlMap resource="egovframework/sqlmap/let/sym/ccm/notify/VEANotify_SQL_Postgresql.xml"/>
</sqlMapConfig>

View File

@ -4,5 +4,5 @@
<sqlMapConfig>
<settings cacheModelsEnabled="true" useStatementNamespaces="true" />
<sqlMap resource="egovframework/sqlmap/let/sym/log/lgm/EgovSysLog_SQL_postgresql.xml"/>
<sqlMap resource="egovframework/sqlmap/let/sym/log/lgm/EgovSysLog_SQL_Postgresql.xml"/>
</sqlMapConfig>

View File

@ -5,9 +5,9 @@
<sqlMapConfig>
<sqlMap resource="egovframework/sqlmap/ve/prcs/VEPrcs_SQL_Postgresql.xml"/>
<sqlMap resource="egovframework/sqlmap/ve/prcs/VEPrcsOnlnCntnt_SQL_Postgresql.xml"/>
<sqlMap resource="egovframework/sqlmap/ve/prcs/VEPrcsAplctPrd_SQL_postgresql.xml"/>
<sqlMap resource="egovframework/sqlmap/ve/prcs/VEPrcsAplctPrd_SQL_Postgresql.xml"/>
<sqlMap resource="egovframework/sqlmap/ve/cndtn/cndtnTrgtInfoMng_SQL_Postgresql.xml"/>
<sqlMap resource="egovframework/sqlmap/ve/edu/VEEduAplct_SQL_postgresql.xml"/>
<sqlMap resource="egovframework/sqlmap/ve/edu/VEEduAplct_SQL_Postgresql.xml"/>
<sqlMap resource="egovframework/sqlmap/ve/instr/VEInstr_MIX_SQL_Postgresql.xml"/>
<!-- 강의복합쿼리 -->

View File

@ -0,0 +1,947 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap namespace="User">
<typeAlias alias="egovMap" type = "egovframework.rte.psl.dataaccess.util.EgovMap"/>
<typeAlias alias="userSearchVO" type = "kcc.let.uss.umt.service.UserDefaultVO"/>
<typeAlias alias="userVO" type = "kcc.let.uss.umt.service.UserManageVO"/>
<typeAlias alias="mberVO" type = "kcc.let.uss.umt.service.MberManageVO"/>
<typeAlias alias="siteManagerVO" type = "kcc.let.sym.site.service.SiteManagerVO"/>
<select id="userManageDAO.selectUserCount" resultClass="userSearchVO">
/* userManageDAO.selectUserCount */
SELECT
(SELECT COUNT(EMPLYR_ID) FROM LETTNEMPLYRINFO WHERE 1=1) as userTotailCount,
(SELECT COUNT(EMPLYR_ID) FROM LETTNEMPLYRINFO WHERE 1=1 AND EMPLYR_STTUS_CODE = 'A') as userNewCount,
(SELECT COUNT(EMPLYR_ID) FROM LETTNEMPLYRINFO WHERE 1=1 AND EMPLYR_STTUS_CODE = 'D') as userDeleteCount,
(SELECT COUNT(EMPLYR_ID) FROM LETTNEMPLYRINFO WHERE 1=1 AND EMPLYR_STTUS_CODE = 'B') as userNewBlock
</select>
<select id="userManageDAO.selectUserList_S" parameterClass="userSearchVO" resultClass="egovMap">
/* userManageDAO.selectUserList_S */
SELECT
COUNT(uniqId) OVER() AS "totCnt"
, uniqId AS "uniqId"
, userTy AS "userTy"
, userId AS "userId"
, userNm AS "userNm"
, emailAdres AS "emailAdres"
, areaNo AS "areaNo"
, middleTelno AS "middleTelno"
, endTelno AS "endTelno"
, moblphonNo AS "moblphonNo"
, groupId AS "groupId"
, sttus AS "sttus"
, offmTelno AS "offmTelno"
, TO_CHAR(sbscrbDe, 'YYYY-MM-DD') AS "sbscrbDe"
, B.AUTHOR_CODE as "authorCode"
, E.AUTHOR_NM as "authorCodeTxt"
, A.emplyrSttusCode AS "emplyrSttusCode"
, F.CODE_NM as "emplyrSttusCodeTxt"
, A.PART_IDX AS "partIdx"
, G.LOC_NM AS "partIdxTxt"
, A.OFCPS_NM AS "ofcpsNm"
, FXNUM AS "fxNum"
, USER_WORK AS "userWork"
FROM(
SELECT
ESNTL_ID uniqId,
'USR03' userTy,
EMPLYR_ID userId,
USER_NM userNm,
EMAIL_ADRES emailAdres,
AREA_NO areaNo,
HOUSE_MIDDLE_TELNO middleTelno,
HOUSE_END_TELNO endTelno,
MBTLNUM moblphonNo,
GROUP_ID groupId,
EMPLYR_STTUS_CODE sttus,
OFFM_TELNO offmTelno,
SBSCRB_DE sbscrbDe,
C.EMPLYR_STTUS_CODE AS emplyrSttusCode,
PART_IDX,
OFCPS_NM,
FXNUM ,
USER_WORK
FROM LETTNEMPLYRINFO C
WHERE 1=1
<isNotEmpty property="emplyrSttusCode">
AND C.EMPLYR_STTUS_CODE = #emplyrSttusCode#
</isNotEmpty>
) A LEFT JOIN LETTNEMPLYRSCRTYESTBS B ON A.uniqId = B.SCRTY_DTRMN_TRGET_ID
LEFT JOIN LETTNAUTHORINFO E ON B.AUTHOR_CODE = E.AUTHOR_CODE
LEFT JOIN
( SELECT CODE_NM , CODE FROM LETTCCMMNDETAILCODE WHERE USE_AT = 'Y' /** 회원상태 코드 */
AND CODE_ID = 'COM013'
) F ON A.emplyrSttusCode = F.CODE
LEFT JOIN ITSM_LOC G ON A.PART_IDX = G.LOC_NO
WHERE 1=1
<isNotEqual prepend="AND" property="sbscrbSttus" compareValue="0">
sttus = #sbscrbSttus#
</isNotEqual>
<isEqual prepend="AND" property="searchCondition" compareValue="0">
userId LIKE '%'||#searchKeyword#||'%'
</isEqual>
<isEqual prepend="AND" property="searchCondition" compareValue="1">
userNm LIKE '%'||#searchKeyword#||'%'
</isEqual>
<isEqual prepend="AND" property="searchCondition" compareValue="">
( userNm LIKE '%'||#searchKeyword#||'%' OR userId LIKE '%'||#searchKeyword#||'%')
</isEqual>
<isNotEmpty property="searchConditionSite">
AND A.siteId = #searchConditionSite#
</isNotEmpty>
ORDER BY 1
<isNotEmpty property="searchSortCnd">
,$searchSortCnd$
</isNotEmpty>
<isNotEmpty property="searchSortOrd">
$searchSortOrd$
</isNotEmpty>
/*
LIMIT recordCountPerPage OFFSET firstIndex
*/
OFFSET #firstIndex# ROWS FETCH NEXT #recordCountPerPage# ROWS ONLY;
</select>
<select id="userManageDAO.selectUserListTotCnt_S" parameterClass="userSearchVO" resultClass="int">
/* userManageDAO.selectUserListTotCnt_S */
SELECT COUNT(1) totcnt
FROM(
SELECT
ESNTL_ID uniqId,
'USR03' userTy,
EMPLYR_ID userId,
USER_NM userNm,
EMAIL_ADRES emailAdres,
AREA_NO areaNo,
HOUSE_MIDDLE_TELNO middleTelno,
HOUSE_END_TELNO endTelno,
MBTLNUM moblphonNo,
GROUP_ID groupId,
EMPLYR_STTUS_CODE sttus,
SBSCRB_DE sbscrbDe
FROM LETTNEMPLYRINFO
) A
LEFT JOIN
LETTNEMPLYRSCRTYESTBS B
ON A.uniqId = B.SCRTY_DTRMN_TRGET_ID
WHERE 1=1
<isNotEqual prepend="AND" property="sbscrbSttus" compareValue="0">
sttus = #sbscrbSttus#
</isNotEqual>
<isEqual prepend="AND" property="searchCondition" compareValue="0">
userId LIKE CONCAT('%',#searchKeyword#,'%')
</isEqual>
<isEqual prepend="AND" property="searchCondition" compareValue="1">
userNm LIKE CONCAT('%',#searchKeyword#,'%')
</isEqual>
<isEqual prepend="AND" property="searchCondition" compareValue="">
( userNm LIKE CONCAT('%',#searchKeyword#,'%') OR userId LIKE CONCAT('%',#searchKeyword#,'%'))
</isEqual>
<isEqual prepend="AND" property="searchCondition" compareValue="S">
A.siteId IN
( SELECT SITE_ID FROM SITEMANAGER
WHERE SITE_NM LIKE CONCAT('%',#searchKeyword#,'%')
)
</isEqual>
<isNotEmpty property="searchConditionSite">
AND A.siteId = #searchConditionSite#
</isNotEmpty>
<isNotEqual prepend="AND" property="adminYn" compareValue="N">
B.AUTHOR_CODE != 'ROLE_GNRL_USER'
</isNotEqual>
<isEqual prepend="AND" property="adminYn" compareValue="N">
B.AUTHOR_CODE = 'ROLE_GNRL_USER'
</isEqual>
</select>
<insert id="userManageDAO.insertUser_S">
/* userManageDAO.insertUser_S 운영자 */
INSERT INTO LETTNEMPLYRINFO
(
ESNTL_ID ,
EMPLYR_ID ,
USER_NM ,
PASSWORD ,
PASSWORD_HINT ,
PASSWORD_CNSR ,
EMPL_NO ,
IHIDNUM ,
SEXDSTN_CODE ,
BRTHDY ,
AREA_NO ,
HOUSE_MIDDLE_TELNO ,
HOUSE_END_TELNO ,
FXNUM ,
HOUSE_ADRES ,
DETAIL_ADRES ,
ZIP ,
OFFM_TELNO ,
MBTLNUM ,
EMAIL_ADRES ,
OFCPS_NM ,
GROUP_ID ,
ORGNZT_ID ,
PSTINST_CODE ,
EMPLYR_STTUS_CODE ,
SBSCRB_DE ,
<isNotEmpty property="partIdx">
PART_IDX ,
</isNotEmpty>
<isNotEmpty property="userWork">
USER_WORK ,
</isNotEmpty>
<isNotEmpty property="snsSite">
<isEqual property="snsSite" compareValue="kakao">
<![CDATA[
KAKAO_ID ,
KAKAO_EMAIL ,
]]>
</isEqual>
<isEqual property="snsSite" compareValue="naver">
<![CDATA[
NAVER_ID,
NAVER_EMAIL,
]]>
</isEqual>
</isNotEmpty>
CRTFC_DN_VALUE )
VALUES (
#uniqId# ,
#emplyrId# ,
#emplyrNm# ,
#password# ,
#passwordHint# ,
#passwordCnsr# ,
#emplNo# ,
#ihidnum# ,
#sexdstnCode# ,
#brth# ,
#areaNo# ,
#homemiddleTelno# ,
#homeendTelno# ,
#fxnum# ,
#homeadres# ,
#detailAdres# ,
#zip# ,
#offmTelno# ,
#moblphonNo# ,
#emailAdres# ,
#ofcpsNm# ,
#groupId# ,
#orgnztId# ,
#insttCode# ,
#emplyrSttusCode# ,
SYSDATE ,
<isNotEmpty property="partIdx">
#partIdx# ,
</isNotEmpty>
<isNotEmpty property="userWork">
#userWork# ,
</isNotEmpty>
<isNotEmpty property="snsSite">
#snsId# ,
#snsEmail# ,
</isNotEmpty>
#subDn# )
</insert>
<!-- <insert id="userManageDAO.insertUser_GNR">
INSERT
INTO lettngnrlmber
(
mber_id,
password,
mber_nm,
mber_sttus,
mbtlnum,
group_id,
sbscrb_de,
esntl_id,
dept,
mber_seq
)
VALUES
(
#emplyrId#
, '1'
, #emplyrNm#
, 'Y'
, #moblphonNo#
, NULL
, SYSDATE
, #uniqId#
, NULL
, #mberSeq#
)
</insert> -->
<insert id="userManageDAO.insertUser_GNR">
/* userManageDAO.insertUser_GNR 일반사용자 */
INSERT
INTO lettngnrlmber
(
mber_id,
password,
mber_nm,
mber_sttus,
mbtlnum,
group_id,
sbscrb_de,
esntl_id,
dept,
mber_seq,
frst_regist_pnttm,
last_updt_pnttm
)
VALUES
(
#uniqId#
, '1'
, #emplyrNm#
, #emplyrSttusCode#
, #moblphonNo#
, NULL
, SYSDATE
, #uniqId#
, NULL
, #mberSeq#
, SYSDATE
, SYSDATE
)
</insert>
<delete id="userManageDAO.deleteUser_S">
<![CDATA[
DELETE FROM LETTNEMPLYRINFO
WHERE ESNTL_ID=#delId#
]]>
</delete>
<select id="userManageDAO.selectUser_S" resultClass="userVO">
/* userManageDAO.selectUser_S */
<![CDATA[
SELECT
ESNTL_ID uniqId ,
'USR03' userTy,
EMPLYR_ID emplyrId ,
USER_NM emplyrNm ,
PASSWORD password ,
PASSWORD_HINT passwordHint ,
PASSWORD_CNSR passwordCnsr ,
EMPL_NO emplNo ,
IHIDNUM ihidnum ,
SEXDSTN_CODE sexdstnCode ,
BRTHDY brth ,
AREA_NO areaNo ,
HOUSE_MIDDLE_TELNO homemiddleTelno ,
HOUSE_END_TELNO homeendTelno ,
FXNUM fxnum ,
HOUSE_ADRES homeadres ,
DETAIL_ADRES detailAdres ,
ZIP zip ,
OFFM_TELNO offmTelno ,
MBTLNUM moblphonNo ,
EMAIL_ADRES emailAdres ,
OFCPS_NM ofcpsNm ,
GROUP_ID groupId ,
ORGNZT_ID orgnztId ,
PSTINST_CODE insttCode ,
EMPLYR_STTUS_CODE emplyrSttusCode ,
SBSCRB_DE sbscrbDe ,
CRTFC_DN_VALUE subDn ,
PART_IDX partIdx ,
AUTHOR_CODE authorCode ,
C.CODE_NM as emplyrSttusCodeTxt,
USER_WORK AS userWork
FROM LETTNEMPLYRINFO A LEFT JOIN
LETTNEMPLYRSCRTYESTBS B ON A.ESNTL_ID = B.SCRTY_DTRMN_TRGET_ID
LEFT JOIN
( SELECT CODE_NM , CODE FROM LETTCCMMNDETAILCODE WHERE USE_AT = 'Y'
AND CODE_ID = 'COM013'
) C ON A.EMPLYR_STTUS_CODE = C.CODE
WHERE ESNTL_ID=#uniqId#
]]>
</select>
<update id="userManageDAO.updateUser_S">
UPDATE LETTNEMPLYRINFO
SET EMPLYR_ID = #emplyrId# ,
<isNotNull property="passwordHint">
PASSWORD_HINT = #passwordHint# ,
</isNotNull>
<isNotNull property="emplyrSttusCode">
PASSWORD_CNSR = #passwordCnsr# ,
</isNotNull>
<isNotNull property="emplNo">
EMPL_NO = #emplNo# ,
</isNotNull>
<isNotNull property="ihidnum">
IHIDNUM = #ihidnum# ,
</isNotNull>
<isNotNull property="sexdstnCode">
SEXDSTN_CODE = #sexdstnCode# ,
</isNotNull>
<isNotNull property="brth">
BRTHDY = #brth# ,
</isNotNull>
<isNotNull property="areaNo">
AREA_NO = #areaNo# ,
</isNotNull>
<isNotNull property="homemiddleTelno">
HOUSE_MIDDLE_TELNO = #homemiddleTelno# ,
</isNotNull>
<isNotNull property="homeendTelno">
HOUSE_END_TELNO = #homeendTelno# ,
</isNotNull>
<isNotNull property="fxnum">
FXNUM = #fxnum# ,
</isNotNull>
<isNotNull property="homeadres">
HOUSE_ADRES = #homeadres# ,
</isNotNull>
<isNotNull property="detailAdres">
DETAIL_ADRES = #detailAdres# ,
</isNotNull>
<isNotNull property="zip">
ZIP = #zip# ,
</isNotNull>
<isNotNull property="offmTelno">
OFFM_TELNO = #offmTelno# ,
</isNotNull>
<isNotNull property="moblphonNo">
MBTLNUM = #moblphonNo# ,
</isNotNull>
<isNotNull property="emailAdres">
EMAIL_ADRES = #emailAdres# ,
</isNotNull>
<isNotNull property="ofcpsNm">
OFCPS_NM = #ofcpsNm# ,
</isNotNull>
<isNotNull property="groupId">
GROUP_ID = #groupId# ,
</isNotNull>
<isNotNull property="orgnztId">
ORGNZT_ID = #orgnztId# ,
</isNotNull>
<isNotNull property="insttCode">
PSTINST_CODE = #insttCode# ,
</isNotNull>
<isNotNull property="emplyrSttusCode">
EMPLYR_STTUS_CODE = #emplyrSttusCode# ,
</isNotNull>
<isNotNull property="partIdx">
PART_IDX = #partIdx# ,
</isNotNull>
<isNotNull property="subDn">
CRTFC_DN_VALUE = #subDn# ,
</isNotNull>
<isNotNull property="userWork">
USER_WORK = #userWork# ,
</isNotNull>
USER_NM = #emplyrNm#
WHERE ESNTL_ID = #uniqId#
</update>
<insert id="userManageDAO.insertUserHistory_S">
<![CDATA[
INSERT INTO LETTHEMPLYRINFOCHANGEDTLS
( EMPLYR_ID ,
EMPL_NO ,
SEXDSTN_CODE ,
BRTHDY ,
AREA_NO ,
HOUSE_MIDDLE_TELNO ,
HOUSE_END_TELNO ,
FXNUM ,
HOUSE_ADRES ,
DETAIL_ADRES ,
ZIP ,
OFFM_TELNO ,
MBTLNUM ,
EMAIL_ADRES ,
GROUP_ID ,
ORGNZT_ID ,
PSTINST_CODE ,
EMPLYR_STTUS_CODE ,
ESNTL_ID ,
CHANGE_DE )
SELECT
EMPLYR_ID ,
EMPL_NO ,
SEXDSTN_CODE ,
BRTHDY ,
AREA_NO ,
HOUSE_MIDDLE_TELNO ,
HOUSE_END_TELNO ,
FXNUM ,
HOUSE_ADRES ,
DETAIL_ADRES ,
ZIP ,
OFFM_TELNO ,
MBTLNUM ,
EMAIL_ADRES ,
GROUP_ID ,
ORGNZT_ID ,
PSTINST_CODE ,
EMPLYR_STTUS_CODE ,
ESNTL_ID ,
SYSDATE
FROM LETTNEMPLYRINFO
WHERE ESNTL_ID = #uniqId#
]]>
</insert>
<select id="userManageDAO.checkIdDplct_S" resultClass="int">
/* userManageDAO.checkIdDplct_S */
<![CDATA[
SELECT COUNT(1) usedCnt
FROM(
SELECT
EMPLYR_ID userId
FROM LETTNEMPLYRINFO
UNION ALL
SELECT
MBER_ID userId
FROM LETTNGNRLMBER
) A
WHERE userId = #checkId#
]]>
</select>
<select id="userManageDAO.selectUserIdAjax" parameterClass="userVO" resultClass="userVO">
/* userManageDAO.selectUserIdAjax */
SELECT
EMPLYR_ID AS emplyrId
FROM
LETTNEMPLYRINFO
WHERE
USER_NM = #emplyrNm#
AND
EMAIL_ADRES = #emailAdres#
</select>
<select id="userManageDAO.selectUserPWAjax" parameterClass="userVO" resultClass="int">
/* userManageDAO.selectUserPWAjax */
SELECT
count(*)
FROM
LETTNEMPLYRINFO
WHERE
EMPLYR_ID = #emplyrId#
AND
EMAIL_ADRES = #emailAdres#
</select>
<update id="userManageDAO.updateUserPWAjax" parameterClass="userVO">
UPDATE
LETTNEMPLYRINFO
SET
PASSWORD = #password#
WHERE
EMPLYR_ID = #emplyrId#
AND
EMAIL_ADRES = #emailAdres#
</update>
<update id="userManageDAO.updatePassword_S">
<![CDATA[
UPDATE LETTNEMPLYRINFO
SET
PASSWORD = #password#
WHERE ESNTL_ID = #uniqId#
]]>
</update>
<select id="userManageDAO.selectPassword_S" resultClass="userVO">
/* userManageDAO.selectPassword_S */
<![CDATA[
SELECT
PASSWORD password
FROM LETTNEMPLYRINFO
WHERE ESNTL_ID=#uniqId#
]]>
</select>
<insert id="insertMber_S_Itn">
<![CDATA[
INSERT INTO COMTNGNRLMBER
(
ESNTL_ID ,
MBER_ID ,
MBER_NM ,
PASSWORD ,
PASSWORD_HINT ,
PASSWORD_CNSR ,
IHIDNUM ,
SEXDSTN_CODE ,
ZIP ,
ADRES ,
AREA_NO ,
MBER_STTUS ,
DETAIL_ADRES ,
END_TELNO ,
MBTLNUM ,
GROUP_ID ,
MBER_FXNUM ,
MBER_EMAIL_ADRES ,
MIDDLE_TELNO ,
BIRTH_DAY ,
EMAIL_YN ,
SMS_YN ,
PHOTOFILE_ID ,
SBSCRB_DE )
VALUES(
#uniqId#,
#mberId#,
#mberNm#,
#password#,
#passwordHint#,
#passwordCnsr#,
#ihidnum#,
#sexdstnCode#,
#zip#,
#adres#,
#areaNo#,
#mberSttus#,
#detailAdres#,
#endTelno#,
#moblphonNo#,
#groupId#,
#mberFxnum#,
#mberEmailAdres#,
#middleTelno#,
#birth#,
#emailYN#,
#smsYN#,
#photofileId#,
SYSDATE )
]]>
</insert>
<update id="mberManageDAO.insertMberItn" parameterClass="mberVO" >
INSERT
INTO LETTNGNRLMBER
(
ESNTL_ID ,
MBER_ID ,
MBER_NM ,
PASSWORD ,
PASSWORD_HINT ,
PASSWORD_CNSR ,
IHIDNUM ,
ZIP ,
ADRES ,
AREA_NO ,
MBER_STTUS ,
DETAIL_ADRES ,
END_TELNO ,
MBTLNUM ,
GROUP_ID ,
MBER_FXNUM ,
MBER_EMAIL_ADRES ,
MIDDLE_TELNO ,
SEXDSTN_CODE,
BIRTH_DAY,
EMAIL_YN,
SMS_YN ,
PHOTOFILE_ID,
SBSCRB_DE
)
VALUES
(
#uniqId#,
#mberId#,
#mberNm#,
#password#,
#passwordHint#,
#passwordCnsr#,
#ihidnum#,
#zip#,
#adres#,
#areaNo#,
#mberSttus#,
#detailAdres#,
#endTelno#,
#moblphonNo#,
#groupId#,
#mberFxnum# ,
#mberEmailAdres#,
#middleTelno#,
#sexdstnCode#,
#birth#,
#emailYN#,
#smsYN#,
#photofileId#,
SYSDATE
)
</update>
<update id="mberManageDAO.insertMber" parameterClass="mberVO" >
INSERT
INTO LETTNGNRLMBER
(
ESNTL_ID ,
MBER_ID ,
MBER_NM ,
PASSWORD ,
PASSWORD_HINT ,
PASSWORD_CNSR ,
IHIDNUM ,
ZIP ,
ADRES ,
AREA_NO ,
MBER_STTUS ,
DETAIL_ADRES ,
END_TELNO ,
MBTLNUM ,
GROUP_ID ,
MBER_FXNUM ,
MBER_EMAIL_ADRES ,
MIDDLE_TELNO ,
SEXDSTN_CODE,
BIRTH_DAY,
EMAIL_YN,
SMS_YN ,
PHOTOFILE_ID,
<isNotEmpty property="snsSite">
<isEqual property="snsSite" compareValue="kakao">
<![CDATA[
KAKAO_ID ,
KAKAO_EMAIL ,
]]>
</isEqual>
<isEqual property="snsSite" compareValue="naver">
<![CDATA[
NAVER_ID,
NAVER_EMAIL,
]]>
</isEqual>
</isNotEmpty>
SBSCRB_DE
)
VALUES
(
#uniqId#,
#mberId#,
#mberNm#,
#password#,
#passwordHint#,
#passwordCnsr#,
#ihidnum#,
#zip#,
#adres#,
#areaNo#,
#mberSttus#,
#detailAdres#,
#endTelno#,
#moblphonNo#,
#groupId#,
#mberFxnum# ,
#mberEmailAdres#,
#middleTelno#,
#sexdstnCode#,
#birth#,
#emailYN#,
#smsYN#,
#photofileId#,
<isNotEmpty property="snsSite">
#snsId# ,
#snsEmail# ,
</isNotEmpty>
SYSDATE
)
</update>
<update id="userManageDAO.updateUserSttusCode" parameterClass="userVO">
UPDATE
LETTNEMPLYRINFO
SET
EMPLYR_STTUS_CODE = #emplyrSttusCode#
WHERE
ESNTL_ID = #esntlId#
</update>
<update id="userManageDAO.deleteMemberSchedule" parameterClass="siteManagerVO">
DELETE FROM LETTNEMPLYRINFO
WHERE EMPLYR_STTUS_CODE = 'D'
<isEqual property="idWithdrawCd" compareValue="6">
<![CDATA[
AND WITHDRAW_DE < DATE_ADD(CURDATE(), INTERVAL '-6' MONTH)
]]>
</isEqual>
</update>
<update id="userManageDAO.deleteAdminLogSchedule" parameterClass="siteManagerVO">
DELETE FROM LETTNADMINLOG
WHERE 1=1
<isNotEmpty property="adminlogKpCd">
AND CREAT_DT <![CDATA[ < ]]>
DATE_ADD(CURDATE(), INTERVAL -#adminlogKpCd# MONTH)
</isNotEmpty>
</update>
<select id="userManageDAO.selectRecentSearchWord" parameterClass="userVO" resultClass="userVO">
/* userManageDAO.selectRecentSearchWord */
SELECT
SEARCH_WORD AS searchWord
FROM
TB_RECENT_SEARCH
WHERE
EMPLYR_ID = #emplyrId#
</select>
<update id="userManageDAO.insertUpdateSearchWord" parameterClass="userVO">
INSERT INTO TB_RECENT_SEARCH (EMPLYR_ID, SEARCH_WORD) VALUES (#emplyrId#, #searchWord#)
ON DUPLICATE KEY UPDATE EMPLYR_ID =#emplyrId#, SEARCH_WORD=#searchWord#
</update>
<update id="userManageDAO.updateLocInfo">
UPDATE LOC_INFO
SET USER_NM = #emplyrNm# ,
<isNotNull property="offmTelno">
OFFM_TELNO = #offmTelno# ,
</isNotNull>
<isNotNull property="ofcpsNm">
OFCPS_NM = #ofcpsNm# ,
</isNotNull>
<isNotNull property="partIdx">
</isNotNull>
<isNotNull property="userWork">
USER_WORK = #userWork# ,
</isNotNull>
<isNotNull property="sort">
SORT = #sort# ,
</isNotNull>
PART_IDX = #partIdx#
WHERE LOC_INFO_ID = #locInfoId#
</update>
<insert id="userManageDAO.insertLocInfo">
INSERT
INTO LOC_INFO
(
LOC_INFO_ID,
USER_NM,
OFCPS_NM,
OFFM_TELNO,
PART_IDX,
USER_WORK
)
VALUES
(
#locInfoId#,
#userNm#,
#ofcpsNm#,
#offmTelno#,
#partIdx#,
#userWork#
)
</insert>
<select id="userManageDAO.selectKccadrUser" parameterClass="userVO" resultClass="userVO">
/* userManageDAO.selectKccadrUser */
SELECT a.mber_id AS emplyrId,
a.mber_seq AS mberSeq,
a.password AS password
FROM lettngnrlmber A
WHERE a.mber_seq = #mberSeq#
</select>
<update id="userManageDAO.updateUserNm" parameterClass="userVO" >
UPDATE
LETTNGNRLMBER
SET
MBER_NM = #emplyrNm#
WHERE
MBER_SEQ = #mberSeq#
</update>
<select id="userManageDAO.selectOffeduUser" parameterClass="userVO" resultClass="userVO">
/* 임시.*NOT_SQL_LOG.* userManageDAO.selectOffeduUser */
SELECT a.mber_id AS mberId,
a.esntl_Id AS esntlId
FROM lettngnrlmber a
WHERE a.mber_id = #mberId#
</select>
<insert id="userManageDAO.insertOffeduUser" parameterClass="userVO">
/* 임시.*NOT_SQL_LOG.* userManageDAO.insertOffeduUser */
INSERT
INTO lettngnrlmber
(
mber_id,
password,
mber_sttus,
sbscrb_de,
esntl_id,
frst_regist_pnttm,
last_updt_pnttm
)
VALUES
(
#mberId#,
#password#,
#emplyrSttusCode#,
SYSDATE,
#uniqId#,
SYSDATE,
SYSDATE
)
</insert>
<select id="userManageDAO.selectOffeduUserList" parameterClass="userVO" resultClass="userVO">
/* 임시.*NOT_SQL_LOG.* userManageDAO.selectOffeduUserList */
SELECT COUNT(mber_id) OVER() AS totCnt
, a.mber_id AS mberId
, a.esntl_id AS esntlId
FROM lettngnrlmber a
WHERE 1=1
<isNotEmpty property="searchWord" prepend="AND">
a.mber_id LIKE '%'||#searchWord#||'%'
OR
a.esntl_id LIKE '%'||#searchWord#||'%'
</isNotEmpty>
OFFSET #firstIndex# ROWS FETCH NEXT #recordCountPerPage# ROWS ONLY;
</select>
</sqlMap>