Merge branch 'master' of http://118.219.150.34:50501/DBNT/kcscDev
# Conflicts: # egovframe-template-simple-react-contribution/package-lock.jsoncks
commit
fbe93d2a1a
|
|
@ -4,6 +4,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "^5.3.2",
|
"bootstrap": "^5.3.2",
|
||||||
|
"http-proxy-middleware": "^2.0.6",
|
||||||
"qs": "^6.11.0",
|
"qs": "^6.11.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-bootstrap": "^2.9.0",
|
"react-bootstrap": "^2.9.0",
|
||||||
|
|
@ -44,6 +45,5 @@
|
||||||
"last 1 firefox version",
|
"last 1 firefox version",
|
||||||
"last 1 safari version"
|
"last 1 safari version"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"proxy": "http://localhost:8080"
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,7 @@ import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
@ -47,7 +44,6 @@ public class StandardCodeController extends BaseController {
|
||||||
|
|
||||||
@Resource(name = "propertiesService")
|
@Resource(name = "propertiesService")
|
||||||
protected EgovPropertyService propertyService;
|
protected EgovPropertyService propertyService;
|
||||||
|
|
||||||
private final StandardCodeService standardCodeService;
|
private final StandardCodeService standardCodeService;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -61,9 +57,8 @@ public class StandardCodeController extends BaseController {
|
||||||
@ApiResponse(responseCode = "200", description = "조회 성공"),
|
@ApiResponse(responseCode = "200", description = "조회 성공"),
|
||||||
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
|
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
|
||||||
})
|
})
|
||||||
@PostMapping(value = "/getCodeTree.do", consumes = MediaType.APPLICATION_JSON_VALUE)
|
@RequestMapping(method = RequestMethod.POST, value = "/getCodeTree.do", consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||||
public ResultVO getCodeTree(@RequestBody StandardCodeVO param, @AuthenticationPrincipal LoginVO user)
|
public ResultVO getCodeTree() throws Exception {
|
||||||
throws Exception {
|
|
||||||
ResultVO resultVO = new ResultVO();
|
ResultVO resultVO = new ResultVO();
|
||||||
Map<String, Object> resultMap = new HashMap<>();
|
Map<String, Object> resultMap = new HashMap<>();
|
||||||
resultMap.put("codeTree", standardCodeService.selectStandardCodeTree());
|
resultMap.put("codeTree", standardCodeService.selectStandardCodeTree());
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import com.dbnt.kcscbackend.standardCode.mapper.StandardCodeMapper;
|
||||||
import com.dbnt.kcscbackend.standardCode.repository.TnDocumentContentRepository;
|
import com.dbnt.kcscbackend.standardCode.repository.TnDocumentContentRepository;
|
||||||
import com.dbnt.kcscbackend.standardCode.repository.TnDocumentGroupRepository;
|
import com.dbnt.kcscbackend.standardCode.repository.TnDocumentGroupRepository;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
@ -14,7 +15,8 @@ import java.util.List;
|
||||||
@Service
|
@Service
|
||||||
@Transactional
|
@Transactional
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class StandardCodeService {
|
public class StandardCodeService extends EgovAbstractServiceImpl {
|
||||||
|
|
||||||
private final TnDocumentGroupRepository tnDocumentGroupRepository;
|
private final TnDocumentGroupRepository tnDocumentGroupRepository;
|
||||||
private final TnDocumentContentRepository tnDocumentContentRepository;
|
private final TnDocumentContentRepository tnDocumentContentRepository;
|
||||||
private final StandardCodeMapper standardCodeMapper;
|
private final StandardCodeMapper standardCodeMapper;
|
||||||
|
|
@ -27,10 +29,6 @@ public class StandardCodeService {
|
||||||
return tnDocumentContentRepository.getRecentFullContextByContent(param.getDocCode(), param.getDocPart());
|
return tnDocumentContentRepository.getRecentFullContextByContent(param.getDocCode(), param.getDocPart());
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<TnDocumentInfo> selectStandardCodeList(TnDocumentInfo tnDocumentInfo) {
|
|
||||||
return standardCodeMapper.selectStandardCodeList(tnDocumentInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer selectStandardCodeListCnt(TnDocumentInfo tnDocumentInfo) {
|
public Integer selectStandardCodeListCnt(TnDocumentInfo tnDocumentInfo) {
|
||||||
return standardCodeMapper.selectStandardCodeListCnt(tnDocumentInfo);
|
return standardCodeMapper.selectStandardCodeListCnt(tnDocumentInfo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
|
|
||||||
|
# Access-Control-Allow-Origin
|
||||||
|
Globals.Allow.Origin = http://localhost:3000
|
||||||
|
|
||||||
spring.devtools.livereload.enabled=true
|
spring.devtools.livereload.enabled=true
|
||||||
#Datasource Configuration
|
#Datasource Configuration
|
||||||
spring.sql.init.encoding=utf-8
|
spring.sql.init.encoding=utf-8
|
||||||
|
|
@ -6,9 +9,9 @@ spring.sql.init.encoding=utf-8
|
||||||
spring.datasource.hikari.maximum-pool-size=4
|
spring.datasource.hikari.maximum-pool-size=4
|
||||||
#postgresql
|
#postgresql
|
||||||
spring.datasource.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
spring.datasource.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
spring.datasource.url=jdbc:log4jdbc:postgresql://218.36.126.201:5432/kcscdb
|
spring.datasource.url=jdbc:log4jdbc:postgresql://118.219.150.34:50654/kcsc
|
||||||
spring.datasource.username=postgres
|
spring.datasource.username=kcsc
|
||||||
spring.datasource.password=rhksflwk12!@
|
spring.datasource.password=dbnt0928!
|
||||||
|
|
||||||
#jpa
|
#jpa
|
||||||
spring.jpa.show-sql=true
|
spring.jpa.show-sql=true
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,37 @@
|
||||||
|
|
||||||
|
# Access-Control-Allow-Origin
|
||||||
|
Globals.Allow.Origin = http://118.219.150.34:50680/
|
||||||
|
|
||||||
|
server.port=50688
|
||||||
|
|
||||||
|
spring.devtools.livereload.enabled=false
|
||||||
|
server.error.path=/errors
|
||||||
|
|
||||||
|
logging.level.org.apache.tomcat: info
|
||||||
|
logging.level.org.apache.catalina: info
|
||||||
|
|
||||||
|
#Datasource Configuration
|
||||||
|
spring.sql.init.encoding=utf-8
|
||||||
|
#maximum-pool-size: CPU core count
|
||||||
|
spring.datasource.hikari.maximum-pool-size=4
|
||||||
|
#postgresql
|
||||||
|
spring.datasource.driverClassName=org.postgresql.Driver
|
||||||
|
spring.datasource.url=jdbc:postgresql://localhost/kcsc
|
||||||
|
spring.datasource.username=kcsc
|
||||||
|
spring.datasource.password=dbnt0928!
|
||||||
|
|
||||||
|
#jpa
|
||||||
|
spring.jpa.show-sql=false
|
||||||
|
spring.jpa.generate-ddl=false
|
||||||
|
spring.jpa.hibernate.naming.physical-strategy = org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
||||||
|
|
||||||
|
# MyBatis
|
||||||
|
mybatis.mapper-locations: mybatisMapper/*.xml
|
||||||
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
mybatis.type-aliases-package=com.dbnt.kcscbackend.**.entity
|
||||||
|
logging.level.com.atoz_develop.mybatissample.repository=info
|
||||||
|
|
||||||
|
# File Config
|
||||||
|
Globals.posblAtchFileSize=5242880
|
||||||
|
Globals.fileStorePath=C:\\kcsc_web\\uploadedFile
|
||||||
|
Globals.addedOptions=false
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
|
|
||||||
|
# Access-Control-Allow-Origin
|
||||||
|
Globals.Allow.Origin = http://118.219.150.34:50590/
|
||||||
|
|
||||||
server.port=8088
|
server.port=8088
|
||||||
|
|
||||||
spring.devtools.livereload.enabled=false
|
spring.devtools.livereload.enabled=false
|
||||||
|
|
@ -13,9 +16,9 @@ spring.sql.init.encoding=utf-8
|
||||||
spring.datasource.hikari.maximum-pool-size=4
|
spring.datasource.hikari.maximum-pool-size=4
|
||||||
#postgresql
|
#postgresql
|
||||||
spring.datasource.driverClassName=org.postgresql.Driver
|
spring.datasource.driverClassName=org.postgresql.Driver
|
||||||
spring.datasource.url=jdbc:postgresql://218.36.126.201:5432/kcscdb
|
spring.datasource.url=jdbc:postgresql://localhost/kcsc
|
||||||
spring.datasource.username=postgres
|
spring.datasource.username=kcsc
|
||||||
spring.datasource.password=rhksflwk12!@
|
spring.datasource.password=dbnt0928!
|
||||||
|
|
||||||
#jpa
|
#jpa
|
||||||
spring.jpa.show-sql=false
|
spring.jpa.show-sql=false
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,5 @@ spring.mvc.pathmatch.matching-strategy=ant_path_matcher
|
||||||
Globals.pageUnit=10
|
Globals.pageUnit=10
|
||||||
Globals.pageSize=10
|
Globals.pageSize=10
|
||||||
|
|
||||||
# Access-Control-Allow-Origin
|
|
||||||
Globals.Allow.Origin = http://localhost:3000
|
|
||||||
|
|
||||||
#JWT secret key
|
#JWT secret key
|
||||||
Globals.jwt.secret = egovframe
|
Globals.jwt.secret = egovframe
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue