Compare commits
3 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
45dae549d7 | |
|
|
1580a8e424 | |
|
|
05284b66e9 |
219
doc/javadoc.xml
219
doc/javadoc.xml
File diff suppressed because one or more lines are too long
28
pom.xml
28
pom.xml
|
|
@ -87,7 +87,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>egovframework.rte</groupId>
|
<groupId>egovframework.rte</groupId>
|
||||||
<artifactId>egovframework.rte.psl.dataaccess</artifactId>
|
<artifactId>egovframework.rte.psl.dataaccess</artifactId>
|
||||||
<version>2.7.0</version>
|
<version>${egovframework.rte.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>egovframework.rte</groupId>
|
<groupId>egovframework.rte</groupId>
|
||||||
|
|
@ -197,27 +197,27 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- MySql -->
|
<!-- MySql -->
|
||||||
<dependency>
|
<!-- <dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
<version>5.1.31</version>
|
<version>5.1.31</version>
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Oracle -->
|
|
||||||
<!-- <dependency>
|
|
||||||
<groupId>ojdbc</groupId>
|
|
||||||
<artifactId>ojdbc14</artifactId>
|
|
||||||
<version>14</version>
|
|
||||||
<scope>system</scope>
|
|
||||||
<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ojdbc14-10.2.0.4.0.jar</systemPath>
|
|
||||||
</dependency> -->
|
</dependency> -->
|
||||||
|
|
||||||
<!-- PostgreSQL 9.1-901 -->
|
<!-- Oracle -->
|
||||||
|
<!-- https://mvnrepository.com/artifact/com.oracle.database.jdbc/ojdbc6 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
<groupId>com.oracle.database.jdbc</groupId>
|
||||||
|
<artifactId>ojdbc6</artifactId>
|
||||||
|
<version>11.2.0.4</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- PostgreSQL 9.1-901 -->
|
||||||
|
<!-- <dependency>
|
||||||
<groupId>postgresql</groupId>
|
<groupId>postgresql</groupId>
|
||||||
<artifactId>postgresql</artifactId>
|
<artifactId>postgresql</artifactId>
|
||||||
<version>9.1-901.jdbc4</version>
|
<version>9.1-901.jdbc4</version>
|
||||||
</dependency>
|
</dependency> -->
|
||||||
|
|
||||||
<!-- AspectJ -->
|
<!-- AspectJ -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
@ -329,7 +329,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>egovframework.rte</groupId>
|
<groupId>egovframework.rte</groupId>
|
||||||
<artifactId>egovframework.rte.fdl.property</artifactId>
|
<artifactId>egovframework.rte.fdl.property</artifactId>
|
||||||
<version>2.7.0</version>
|
<version>${egovframework.rte.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Log4j -->
|
<!-- Log4j -->
|
||||||
|
|
|
||||||
|
|
@ -86,11 +86,11 @@ public class LoginController {
|
||||||
@Resource(name="egovMessageSource")
|
@Resource(name="egovMessageSource")
|
||||||
EgovMessageSource egovMessageSource;
|
EgovMessageSource egovMessageSource;
|
||||||
|
|
||||||
@Autowired
|
/*@Autowired
|
||||||
private PlatformTransactionManager transactionManager;
|
private PlatformTransactionManager transactionManager;
|
||||||
|
|
||||||
DefaultTransactionDefinition def = null;
|
DefaultTransactionDefinition def = null;
|
||||||
TransactionStatus status = null;
|
TransactionStatus status = null;*/
|
||||||
|
|
||||||
private static boolean loginFlag = true;
|
private static boolean loginFlag = true;
|
||||||
private static MultiValueMap users = new MultiValueMap();
|
private static MultiValueMap users = new MultiValueMap();
|
||||||
|
|
@ -611,10 +611,10 @@ public class LoginController {
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
def = new DefaultTransactionDefinition();
|
/*def = new DefaultTransactionDefinition();
|
||||||
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
||||||
|
|
||||||
status = transactionManager.getTransaction(def);
|
status = transactionManager.getTransaction(def);*/
|
||||||
|
|
||||||
clientIp = request.getRemoteAddr();
|
clientIp = request.getRemoteAddr();
|
||||||
if(clientIp != "0:0:0:0:0:0:0:1") {
|
if(clientIp != "0:0:0:0:0:0:0:1") {
|
||||||
|
|
@ -965,21 +965,21 @@ public class LoginController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
transactionManager.commit(status);
|
// transactionManager.commit(status);
|
||||||
} catch(NumberFormatException e) {
|
} catch(NumberFormatException e) {
|
||||||
transactionManager.rollback(status);
|
// transactionManager.rollback(status);
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
affectRow = 0;
|
affectRow = 0;
|
||||||
} catch(MalformedURLException e) {
|
} catch(MalformedURLException e) {
|
||||||
transactionManager.rollback(status);
|
// transactionManager.rollback(status);
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
affectRow = 0;
|
affectRow = 0;
|
||||||
} catch(ParseException e) {
|
} catch(ParseException e) {
|
||||||
transactionManager.rollback(status);
|
// transactionManager.rollback(status);
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
affectRow = 0;
|
affectRow = 0;
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
transactionManager.rollback(status);
|
// transactionManager.rollback(status);
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
affectRow = 0;
|
affectRow = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,11 @@ public class LoginServiceImpl implements LoginService{
|
||||||
@Resource(name="loginMapper")
|
@Resource(name="loginMapper")
|
||||||
private LoginMapper loginMapper;
|
private LoginMapper loginMapper;
|
||||||
|
|
||||||
@Autowired
|
/*@Autowired
|
||||||
private PlatformTransactionManager transactionManager;
|
private PlatformTransactionManager transactionManager;
|
||||||
|
|
||||||
DefaultTransactionDefinition def = null;
|
DefaultTransactionDefinition def = null;
|
||||||
TransactionStatus status = null;
|
TransactionStatus status = null;*/
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> selectWebDupMember(Map<String, Object> map) throws Exception {
|
public Map<String, Object> selectWebDupMember(Map<String, Object> map) throws Exception {
|
||||||
|
|
@ -337,9 +337,9 @@ public class LoginServiceImpl implements LoginService{
|
||||||
map.put("idx", request.getParameter("idx"));
|
map.put("idx", request.getParameter("idx"));
|
||||||
if(request.getParameter("content") != null) map.put("content", request.getParameter("content")); // 추후삭제
|
if(request.getParameter("content") != null) map.put("content", request.getParameter("content")); // 추후삭제
|
||||||
|
|
||||||
def = new DefaultTransactionDefinition();
|
/*def = new DefaultTransactionDefinition();
|
||||||
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
||||||
status = transactionManager.getTransaction(def);
|
status = transactionManager.getTransaction(def);*/
|
||||||
|
|
||||||
try{
|
try{
|
||||||
// 활용사례 DB 등록
|
// 활용사례 DB 등록
|
||||||
|
|
@ -354,21 +354,21 @@ public class LoginServiceImpl implements LoginService{
|
||||||
if(!prcUseSaveName.equals("")) FileUtil.writeUploadedFile(prcUseFile, prcUseSaveName, savePath);
|
if(!prcUseSaveName.equals("")) FileUtil.writeUploadedFile(prcUseFile, prcUseSaveName, savePath);
|
||||||
if(!referSaveName.equals("")) FileUtil.writeUploadedFile(referFile, referSaveName, savePath);
|
if(!referSaveName.equals("")) FileUtil.writeUploadedFile(referFile, referSaveName, savePath);
|
||||||
}
|
}
|
||||||
transactionManager.commit(status);
|
/*transactionManager.commit(status);*/
|
||||||
} catch(FileNotFoundException e){
|
} catch(FileNotFoundException e){
|
||||||
transactionManager.rollback(status);
|
/*transactionManager.rollback(status);*/
|
||||||
logger.debug("error", e);
|
logger.debug("error", e);
|
||||||
throw new Exception("PrcUseCase Save Exception!!");
|
throw new Exception("PrcUseCase Save Exception!!");
|
||||||
} catch(NumberFormatException e){
|
} catch(NumberFormatException e){
|
||||||
transactionManager.rollback(status);
|
/*transactionManager.rollback(status);*/
|
||||||
logger.debug("error", e);
|
logger.debug("error", e);
|
||||||
throw new Exception("PrcUseCase Save Exception!!");
|
throw new Exception("PrcUseCase Save Exception!!");
|
||||||
} catch(IndexOutOfBoundsException e){
|
} catch(IndexOutOfBoundsException e){
|
||||||
transactionManager.rollback(status);
|
/*transactionManager.rollback(status);*/
|
||||||
logger.debug("error", e);
|
logger.debug("error", e);
|
||||||
throw new Exception("PrcUseCase Save Exception!!");
|
throw new Exception("PrcUseCase Save Exception!!");
|
||||||
} catch(Exception e){
|
} catch(Exception e){
|
||||||
transactionManager.rollback(status);
|
/*transactionManager.rollback(status);*/
|
||||||
logger.debug("error", e);
|
logger.debug("error", e);
|
||||||
throw new Exception("PrcUseCase Save Exception!!");
|
throw new Exception("PrcUseCase Save Exception!!");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,12 +70,13 @@ public class BasicController {
|
||||||
|
|
||||||
/* 20231223수정
|
/* 20231223수정
|
||||||
* 트랜잭션 이중처리로 인한 삭제.
|
* 트랜잭션 이중처리로 인한 삭제.
|
||||||
*
|
|
||||||
* @Autowired
|
@Autowired
|
||||||
private PlatformTransactionManager transactionManager;
|
private PlatformTransactionManager transactionManager;
|
||||||
|
|
||||||
DefaultTransactionDefinition def = null;
|
DefaultTransactionDefinition def = null;
|
||||||
TransactionStatus status = null;*/
|
TransactionStatus status = null;
|
||||||
|
*/
|
||||||
|
|
||||||
@RequestMapping(value="/basic/labinfo2")
|
@RequestMapping(value="/basic/labinfo2")
|
||||||
public String labInfo2(
|
public String labInfo2(
|
||||||
|
|
@ -269,7 +270,7 @@ public class BasicController {
|
||||||
try {
|
try {
|
||||||
/* 20231223수정
|
/* 20231223수정
|
||||||
* 트랜잭션 이중처리로 인한 삭제.
|
* 트랜잭션 이중처리로 인한 삭제.
|
||||||
* def = new DefaultTransactionDefinition();
|
def = new DefaultTransactionDefinition();
|
||||||
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
||||||
|
|
||||||
status = transactionManager.getTransaction(def);*/
|
status = transactionManager.getTransaction(def);*/
|
||||||
|
|
@ -384,28 +385,28 @@ public class BasicController {
|
||||||
}
|
}
|
||||||
/* 20231223수정
|
/* 20231223수정
|
||||||
* 트랜잭션 이중처리로 인한 삭제.
|
* 트랜잭션 이중처리로 인한 삭제.
|
||||||
* transactionManager.commit(status);*/
|
transactionManager.commit(status);*/
|
||||||
|
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
/* 20231223수정
|
/* 20231223수정
|
||||||
* 트랜잭션 이중처리로 인한 삭제.
|
* 트랜잭션 이중처리로 인한 삭제.
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
/* 20231223수정
|
/* 20231223수정
|
||||||
* 트랜잭션 이중처리로 인한 삭제.
|
* 트랜잭션 이중처리로 인한 삭제.
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
/* 20231223수정
|
/* 20231223수정
|
||||||
* 트랜잭션 이중처리로 인한 삭제.
|
* 트랜잭션 이중처리로 인한 삭제.
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
/* 20231223수정
|
/* 20231223수정
|
||||||
* 트랜잭션 이중처리로 인한 삭제.
|
* 트랜잭션 이중처리로 인한 삭제.
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
/* 20231223수정
|
/* 20231223수정
|
||||||
* 트랜잭션 이중처리로 인한 삭제.
|
* 트랜잭션 이중처리로 인한 삭제.
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ public class GeoLoggingController {
|
||||||
private CommonService commonService;
|
private CommonService commonService;
|
||||||
|
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* @Autowired
|
@Autowired
|
||||||
private PlatformTransactionManager transactionManager;
|
private PlatformTransactionManager transactionManager;
|
||||||
|
|
||||||
DefaultTransactionDefinition def = null;
|
DefaultTransactionDefinition def = null;
|
||||||
|
|
@ -122,7 +122,7 @@ public class GeoLoggingController {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* def = new DefaultTransactionDefinition();
|
def = new DefaultTransactionDefinition();
|
||||||
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
||||||
|
|
||||||
status = transactionManager.getTransaction(def);*/
|
status = transactionManager.getTransaction(def);*/
|
||||||
|
|
@ -284,11 +284,11 @@ public class GeoLoggingController {
|
||||||
|
|
||||||
model.put("msg", "성공");
|
model.put("msg", "성공");
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* transactionManager.commit(status);*/
|
transactionManager.commit(status);*/
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
LOGGER.debug("error" + e);//오류시 오류 코드랑 프로젝트 저장하게 기록해야됨.
|
LOGGER.debug("error" + e);//오류시 오류 코드랑 프로젝트 저장하게 기록해야됨.
|
||||||
}
|
}
|
||||||
return "/web/input/geoLogging/boreholeWaveDb";
|
return "/web/input/geoLogging/boreholeWaveDb";
|
||||||
|
|
|
||||||
|
|
@ -54,11 +54,13 @@ public class InfoController {
|
||||||
private InfoService infoService;
|
private InfoService infoService;
|
||||||
|
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* @Autowired
|
@Autowired
|
||||||
private PlatformTransactionManager transactionManager;
|
private PlatformTransactionManager transactionManager;
|
||||||
|
|
||||||
DefaultTransactionDefinition def = null;
|
DefaultTransactionDefinition def = null;
|
||||||
TransactionStatus status = null;*/
|
TransactionStatus status = null;
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
// 지반정보등록 (관리자)
|
// 지반정보등록 (관리자)
|
||||||
@RequestMapping(value = "/info/projectInfo")
|
@RequestMapping(value = "/info/projectInfo")
|
||||||
|
|
@ -542,7 +544,7 @@ public class InfoController {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* def = new DefaultTransactionDefinition();
|
def = new DefaultTransactionDefinition();
|
||||||
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
||||||
|
|
||||||
status = transactionManager.getTransaction(def);*/
|
status = transactionManager.getTransaction(def);*/
|
||||||
|
|
@ -619,22 +621,22 @@ public class InfoController {
|
||||||
}
|
}
|
||||||
model.put("rUrl", rUrl);
|
model.put("rUrl", rUrl);
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* transactionManager.commit(status);*/
|
transactionManager.commit(status);*/
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
/* 20231223 트랜젝션 중복문제로 제거
|
/* 20231223 트랜젝션 중복문제로 제거
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ public class LayerInfoController {
|
||||||
private LayerInfoService layerInfoService;
|
private LayerInfoService layerInfoService;
|
||||||
|
|
||||||
/* 트랜젝션 데이터제거 20231223
|
/* 트랜젝션 데이터제거 20231223
|
||||||
* @Autowired
|
@Autowired
|
||||||
private PlatformTransactionManager transactionManager;
|
private PlatformTransactionManager transactionManager;
|
||||||
|
|
||||||
DefaultTransactionDefinition def = null;
|
DefaultTransactionDefinition def = null;
|
||||||
|
|
@ -137,7 +137,7 @@ public class LayerInfoController {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
/* 트랜젝션 데이터제거 20231223
|
/* 트랜젝션 데이터제거 20231223
|
||||||
* def = new DefaultTransactionDefinition();
|
def = new DefaultTransactionDefinition();
|
||||||
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
||||||
|
|
||||||
status = transactionManager.getTransaction(def);*/
|
status = transactionManager.getTransaction(def);*/
|
||||||
|
|
@ -230,14 +230,14 @@ public class LayerInfoController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 트랜젝션 데이터제거 20231223
|
/* 트랜젝션 데이터제거 20231223
|
||||||
* transactionManager.commit(status);*/
|
transactionManager.commit(status);*/
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
/* 트랜젝션 데이터제거 20231223
|
/* 트랜젝션 데이터제거 20231223
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
LOGGER.debug("error" + e);//오류시 오류 코드랑 프로젝트 저장하게 기록해야됨.
|
LOGGER.debug("error" + e);//오류시 오류 코드랑 프로젝트 저장하게 기록해야됨.
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
/* 트랜젝션 데이터제거 20231223
|
/* 트랜젝션 데이터제거 20231223
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
LOGGER.debug("error" + e);//오류시 오류 코드랑 프로젝트 저장하게 기록해야됨.
|
LOGGER.debug("error" + e);//오류시 오류 코드랑 프로젝트 저장하게 기록해야됨.
|
||||||
}
|
}
|
||||||
return "/web/input/layerInfo/layerInfoDb";
|
return "/web/input/layerInfo/layerInfoDb";
|
||||||
|
|
|
||||||
|
|
@ -101,11 +101,11 @@ public class ManageList2019Controller {
|
||||||
private SelectClass2019Service selectClass2019Service;
|
private SelectClass2019Service selectClass2019Service;
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
/*@Autowired
|
||||||
private PlatformTransactionManager transactionManager;
|
private PlatformTransactionManager transactionManager;
|
||||||
|
|
||||||
DefaultTransactionDefinition def = null;
|
DefaultTransactionDefinition def = null;
|
||||||
TransactionStatus status = null;
|
TransactionStatus status = null;*/
|
||||||
|
|
||||||
private final String _TEMP_FOLDER = "TEMP\\";
|
private final String _TEMP_FOLDER = "TEMP\\";
|
||||||
|
|
||||||
|
|
@ -286,10 +286,10 @@ public class ManageList2019Controller {
|
||||||
resultMsg = "파일 전송 오류입니다.";
|
resultMsg = "파일 전송 오류입니다.";
|
||||||
}else{
|
}else{
|
||||||
try {
|
try {
|
||||||
def = new DefaultTransactionDefinition();
|
/*def = new DefaultTransactionDefinition();
|
||||||
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
||||||
|
|
||||||
status = transactionManager.getTransaction(def);
|
status = transactionManager.getTransaction(def);*/
|
||||||
|
|
||||||
// 입력결과보고서
|
// 입력결과보고서
|
||||||
HashMap<String,Object> map01 = null;
|
HashMap<String,Object> map01 = null;
|
||||||
|
|
@ -349,10 +349,10 @@ public class ManageList2019Controller {
|
||||||
fileMap.put("REF_PK", map03.get("projectCode") + "|C");
|
fileMap.put("REF_PK", map03.get("projectCode") + "|C");
|
||||||
file2019Service.insertWebCommFile(fileMap);
|
file2019Service.insertWebCommFile(fileMap);
|
||||||
|
|
||||||
transactionManager.commit(status);
|
// transactionManager.commit(status);
|
||||||
|
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
transactionManager.rollback(status);
|
// transactionManager.rollback(status);
|
||||||
//에러발생시 파일 원위치 시킨다.
|
//에러발생시 파일 원위치 시킨다.
|
||||||
moveFile(request, (String)jsonData01.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
moveFile(request, (String)jsonData01.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
||||||
moveFile(request, (String)jsonData02.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
moveFile(request, (String)jsonData02.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
||||||
|
|
@ -361,7 +361,7 @@ public class ManageList2019Controller {
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
resultMsg = "저장 중 오류가 발생했습니다.";
|
resultMsg = "저장 중 오류가 발생했습니다.";
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
transactionManager.rollback(status);
|
// transactionManager.rollback(status);
|
||||||
//에러발생시 파일 원위치 시킨다.
|
//에러발생시 파일 원위치 시킨다.
|
||||||
moveFile(request, (String)jsonData01.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
moveFile(request, (String)jsonData01.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
||||||
moveFile(request, (String)jsonData02.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
moveFile(request, (String)jsonData02.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
||||||
|
|
@ -370,7 +370,7 @@ public class ManageList2019Controller {
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
resultMsg = "저장 중 오류가 발생했습니다.";
|
resultMsg = "저장 중 오류가 발생했습니다.";
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
transactionManager.rollback(status);
|
// transactionManager.rollback(status);
|
||||||
//에러발생시 파일 원위치 시킨다.
|
//에러발생시 파일 원위치 시킨다.
|
||||||
moveFile(request, (String)jsonData01.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
moveFile(request, (String)jsonData01.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
||||||
moveFile(request, (String)jsonData02.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
moveFile(request, (String)jsonData02.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
||||||
|
|
@ -379,7 +379,7 @@ public class ManageList2019Controller {
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
resultMsg = "저장 중 오류가 발생했습니다.";
|
resultMsg = "저장 중 오류가 발생했습니다.";
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
transactionManager.rollback(status);
|
// transactionManager.rollback(status);
|
||||||
//에러발생시 파일 원위치 시킨다.
|
//에러발생시 파일 원위치 시킨다.
|
||||||
moveFile(request, (String)jsonData01.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
moveFile(request, (String)jsonData01.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
||||||
moveFile(request, (String)jsonData02.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
moveFile(request, (String)jsonData02.get("FILE_NM"), _TEMP_FOLDER, moveFolder);
|
||||||
|
|
|
||||||
|
|
@ -51,11 +51,11 @@ public class ManageListController {
|
||||||
@Resource(name = "infoService")
|
@Resource(name = "infoService")
|
||||||
private InfoService infoService;
|
private InfoService infoService;
|
||||||
|
|
||||||
@Autowired
|
/*@Autowired
|
||||||
private PlatformTransactionManager transactionManager;
|
private PlatformTransactionManager transactionManager;
|
||||||
|
|
||||||
DefaultTransactionDefinition def = null;
|
DefaultTransactionDefinition def = null;
|
||||||
TransactionStatus status = null;
|
TransactionStatus status = null;*/
|
||||||
|
|
||||||
// 지반정보등록 (관리자) - 검수등록대기 목록
|
// 지반정보등록 (관리자) - 검수등록대기 목록
|
||||||
@RequestMapping(value = "/manageList.do")
|
@RequestMapping(value = "/manageList.do")
|
||||||
|
|
@ -276,10 +276,10 @@ public class ManageListController {
|
||||||
strUtil sUtil = new strUtil();
|
strUtil sUtil = new strUtil();
|
||||||
int ok = 0;
|
int ok = 0;
|
||||||
try {
|
try {
|
||||||
def = new DefaultTransactionDefinition();
|
/*def = new DefaultTransactionDefinition();
|
||||||
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
||||||
|
|
||||||
status = transactionManager.getTransaction(def);
|
status = transactionManager.getTransaction(def);*/
|
||||||
map.put("PROJECT_CODE", PROJECT_CODE);
|
map.put("PROJECT_CODE", PROJECT_CODE);
|
||||||
map.put("MODEIFY_USER", MODEIFY_USER);
|
map.put("MODEIFY_USER", MODEIFY_USER);
|
||||||
|
|
||||||
|
|
@ -292,10 +292,10 @@ public class ManageListController {
|
||||||
ok = 1;
|
ok = 1;
|
||||||
}
|
}
|
||||||
model.addAttribute("ok", ok);
|
model.addAttribute("ok", ok);
|
||||||
transactionManager.commit(status);
|
// transactionManager.commit(status);
|
||||||
|
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
transactionManager.rollback(status);
|
// transactionManager.rollback(status);
|
||||||
|
|
||||||
}
|
}
|
||||||
return "/web/manage/modeify_update";
|
return "/web/manage/modeify_update";
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ public class SampleInfoController {
|
||||||
private CommonService commonService;
|
private CommonService commonService;
|
||||||
|
|
||||||
/* 20231223트랜젝션
|
/* 20231223트랜젝션
|
||||||
* @Autowired
|
@Autowired
|
||||||
private PlatformTransactionManager transactionManager;
|
private PlatformTransactionManager transactionManager;
|
||||||
|
|
||||||
DefaultTransactionDefinition def = null;
|
DefaultTransactionDefinition def = null;
|
||||||
|
|
@ -115,13 +115,14 @@ public class SampleInfoController {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
/* 20231223트랜젝션
|
/* 20231223트랜젝션
|
||||||
*
|
|
||||||
* def = new DefaultTransactionDefinition();
|
def = new DefaultTransactionDefinition();
|
||||||
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
||||||
|
|
||||||
status = transactionManager.getTransaction(def);*/
|
status = transactionManager.getTransaction(def);*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!(changedData == null || changedData.length() == 0)) {
|
if (!(changedData == null || changedData.length() == 0)) {
|
||||||
//웹 취약점 때문에 수정
|
//웹 취약점 때문에 수정
|
||||||
// }else{
|
// }else{
|
||||||
|
|
@ -250,26 +251,26 @@ public class SampleInfoController {
|
||||||
}
|
}
|
||||||
//commit
|
//commit
|
||||||
/* 20231223트랜젝션
|
/* 20231223트랜젝션
|
||||||
* transactionManager.commit(status);*/
|
transactionManager.commit(status);*/
|
||||||
|
|
||||||
} catch(NumberFormatException e) {
|
} catch(NumberFormatException e) {
|
||||||
/* 20231223트랜젝션
|
/* 20231223트랜젝션
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
affectRow = 0;
|
affectRow = 0;
|
||||||
} catch(MalformedURLException e) {
|
} catch(MalformedURLException e) {
|
||||||
/* 20231223트랜젝션
|
/* 20231223트랜젝션
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
affectRow = 0;
|
affectRow = 0;
|
||||||
} catch(ParseException e) {
|
} catch(ParseException e) {
|
||||||
/*20231223트랜젝션
|
/*20231223트랜젝션
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
affectRow = 0;
|
affectRow = 0;
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
/* 20231223트랜젝션
|
/* 20231223트랜젝션
|
||||||
* transactionManager.rollback(status);*/
|
transactionManager.rollback(status);*/
|
||||||
Log.debug("error", e);
|
Log.debug("error", e);
|
||||||
affectRow = 0;
|
affectRow = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,12 +54,12 @@ public class SurfaceController {
|
||||||
@Resource(name = "commonService")
|
@Resource(name = "commonService")
|
||||||
private CommonService commonService;
|
private CommonService commonService;
|
||||||
|
|
||||||
@Autowired
|
/*@Autowired
|
||||||
private PlatformTransactionManager transactionManager;
|
private PlatformTransactionManager transactionManager;
|
||||||
|
|
||||||
DefaultTransactionDefinition def = null;
|
DefaultTransactionDefinition def = null;
|
||||||
TransactionStatus status = null;
|
TransactionStatus status = null;
|
||||||
|
*/
|
||||||
private final static Logger logger = LoggerFactory.getLogger(SurfaceController.class);
|
private final static Logger logger = LoggerFactory.getLogger(SurfaceController.class);
|
||||||
|
|
||||||
@RequestMapping(value = "/surface/resistivitySurvey")
|
@RequestMapping(value = "/surface/resistivitySurvey")
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue