사용자 목록 작업중.
parent
e79432a0e1
commit
510acbd7a7
|
|
@ -0,0 +1,61 @@
|
||||||
|
import React, {useCallback, useEffect, useState} from "react";
|
||||||
|
import Form from "react-bootstrap/Form";
|
||||||
|
import * as EgovNet from "api/egovFetch";
|
||||||
|
|
||||||
|
function CheckBox({name, grpCd, selectedValue}){
|
||||||
|
|
||||||
|
const [checkBox, setCheckBox] = useState();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
getCodeItemList()
|
||||||
|
}, []);
|
||||||
|
useEffect(() => {
|
||||||
|
setCheckedValue(selectedValue)
|
||||||
|
}, [checkBox]);
|
||||||
|
|
||||||
|
function getCodeItemList() {
|
||||||
|
EgovNet.requestFetch(
|
||||||
|
'/commonCode/code-item?grpCd='+grpCd,
|
||||||
|
{
|
||||||
|
method: "GET"
|
||||||
|
},
|
||||||
|
(resp) => {
|
||||||
|
let checkBoxTag = [];
|
||||||
|
resp.result.codeList.forEach(function (item, index) {
|
||||||
|
checkBoxTag.push(
|
||||||
|
<Form.Check inline
|
||||||
|
label={item.itemNm}
|
||||||
|
id={`chkBox_${item.itemCd}`}
|
||||||
|
key={`chkBox_${item.itemCd}_${index}`}
|
||||||
|
name={name}
|
||||||
|
defaultValue={item.itemCd}
|
||||||
|
onChange={()=>{}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
setCheckBox(checkBoxTag);
|
||||||
|
},
|
||||||
|
function (resp) {
|
||||||
|
console.log("err response : ", resp);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function setCheckedValue(selectedValue){
|
||||||
|
debugger
|
||||||
|
const checkBoxDiv = document.querySelector("#"+grpCd+"_checkBoxDiv")
|
||||||
|
checkBoxDiv.childNodes.forEach(function (input){
|
||||||
|
if(selectedValue.includes(input.children[0].value)){
|
||||||
|
input.checked = true;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div id={`${grpCd}_checkBoxDiv`} key={`checkBox_${grpCd}`}>
|
||||||
|
{checkBox}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default CheckBox;
|
||||||
|
|
@ -0,0 +1,42 @@
|
||||||
|
import React, {useEffect, useState} from "react";
|
||||||
|
import Form from "react-bootstrap/Form";
|
||||||
|
import * as EgovNet from "api/egovFetch";
|
||||||
|
|
||||||
|
function SelectOption({name, grpCd, selectedValue}){
|
||||||
|
|
||||||
|
const [options, setOptions] = useState();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
getCodeItemList()
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
function getCodeItemList(){
|
||||||
|
EgovNet.requestFetch(
|
||||||
|
'/commonCode/code-item?grpCd='+grpCd,
|
||||||
|
{
|
||||||
|
method: "GET"
|
||||||
|
},
|
||||||
|
(resp) => {
|
||||||
|
let optionTag = [];
|
||||||
|
// 리스트 항목 구성
|
||||||
|
resp.result.codeList.forEach(function (item, index) {
|
||||||
|
optionTag.push(
|
||||||
|
<option value={item.itemCd} key={`${grpCd}option${index}`}>{item.itemNm}</option>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
setOptions(optionTag);
|
||||||
|
},
|
||||||
|
function (resp) {
|
||||||
|
console.log("err response : ", resp);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Form.Select name={name} value={selectedValue} onChange={()=>{}}>
|
||||||
|
{options}
|
||||||
|
</Form.Select>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default SelectOption;
|
||||||
|
|
@ -50,7 +50,7 @@ function List(props) {
|
||||||
const listIdx = itemIdxByPage(resultCnt , currentPageNo, pageSize, index);
|
const listIdx = itemIdxByPage(resultCnt , currentPageNo, pageSize, index);
|
||||||
|
|
||||||
mutListTag.push(
|
mutListTag.push(
|
||||||
<div className={"list_item"}>
|
<div className={"list_item"} key={"userListDiv_"+index}>
|
||||||
<div>{item.userSe}</div>
|
<div>{item.userSe}</div>
|
||||||
<div><a href={"#"} onClick={()=>{userInfoModal(item.userSeq)}}>{item.userId}</a></div>
|
<div><a href={"#"} onClick={()=>{userInfoModal(item.userSeq)}}>{item.userId}</a></div>
|
||||||
<div>{item.userNm}</div>
|
<div>{item.userNm}</div>
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,16 @@
|
||||||
import React, {useEffect, useState} from "react"
|
import React, {useCallback, useEffect, useState} from "react"
|
||||||
import Modal from "react-bootstrap/Modal";
|
import Modal from "react-bootstrap/Modal";
|
||||||
import * as EgovNet from "../../../api/egovFetch";
|
import * as EgovNet from "api/egovFetch";
|
||||||
import Form from "react-bootstrap/Form";
|
import Form from "react-bootstrap/Form";
|
||||||
import Row from "react-bootstrap/Row";
|
import Row from "react-bootstrap/Row";
|
||||||
import Col from "react-bootstrap/Col";
|
import Col from "react-bootstrap/Col";
|
||||||
import Button from "react-bootstrap/Button";
|
import Button from "react-bootstrap/Button";
|
||||||
|
import SelectOption from "components/commonCode/SelectOption";
|
||||||
|
import CheckBox from "components/commonCode/CheckBox";
|
||||||
|
|
||||||
function UserInfoModal({userSeq}){
|
function UserInfoModal({userSeq}){
|
||||||
|
|
||||||
const [userInfo, setUserInfo] = useState({ userId: '', password: '', passwordChk: '', userNm: '', email: '', phoneNum: ''});
|
const [userInfo, setUserInfo] = useState({ userId: '', password: '', passwordChk: '', userNm: '', email: '', phoneNum: '', userSe:'', userRole:'', status:''});
|
||||||
|
|
||||||
function getModalContent(){
|
function getModalContent(){
|
||||||
EgovNet.requestFetch(
|
EgovNet.requestFetch(
|
||||||
|
|
@ -24,6 +26,9 @@ function UserInfoModal({userSeq}){
|
||||||
phoneNum: resp.result.userInfo.phoneNum,
|
phoneNum: resp.result.userInfo.phoneNum,
|
||||||
password: "",
|
password: "",
|
||||||
passwordChk: "",
|
passwordChk: "",
|
||||||
|
userSe: resp.result.userInfo.userSe,
|
||||||
|
userRole: resp.result.userInfo.userRole,
|
||||||
|
status: resp.result.userInfo.status
|
||||||
}
|
}
|
||||||
setUserInfo(respInfo);
|
setUserInfo(respInfo);
|
||||||
},
|
},
|
||||||
|
|
@ -33,8 +38,8 @@ function UserInfoModal({userSeq}){
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function userInfoChange(){
|
function userInfoChange(e){
|
||||||
|
debugger
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
@ -43,89 +48,83 @@ function UserInfoModal({userSeq}){
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Modal.Header className="bookmarkModalHeader" closeButton>
|
<Modal.Header closeButton>
|
||||||
<Modal.Title>
|
<Modal.Title>
|
||||||
{userInfo.userNm} 상세정보
|
{userInfo.userNm} 상세정보
|
||||||
</Modal.Title>
|
</Modal.Title>
|
||||||
</Modal.Header>
|
</Modal.Header>
|
||||||
<Modal.Body>
|
<Modal.Body>
|
||||||
<Form onSubmit={userInfoChange} noValidate>
|
<Form onSubmit={(e) =>{userInfoChange(e)}} noValidate>
|
||||||
<Form.Group as={Row} className="mb-3" controlId="formHorizontalEmail">
|
<Form.Group as={Row} className="mb-3">
|
||||||
<Form.Label column sm={3}>
|
<Form.Label column sm={3}>
|
||||||
아이디
|
아이디
|
||||||
</Form.Label>
|
</Form.Label>
|
||||||
<Col sm={9}>
|
<Col sm={9}>
|
||||||
<Form.Control type="text" name="userId" placeholder="아이디" required value={userInfo?.userId}
|
<Form.Control type="text" name="userId" placeholder="아이디" required defaultValue={userInfo?.userId} />
|
||||||
onChange={e => setUserInfo({ ...userInfo, userId: e.target.value })}/>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Form.Group>
|
</Form.Group>
|
||||||
<Form.Group as={Row} className="mb-3" controlId="formHorizontalEmail">
|
<Form.Group as={Row} className="mb-3">
|
||||||
<Form.Label column sm={3}>
|
|
||||||
이름
|
|
||||||
</Form.Label>
|
|
||||||
<Col sm={9}>
|
|
||||||
<Form.Control type="text" name="userNm" placeholder="이름" required value={userInfo?.userNm}
|
|
||||||
onChange={e => setUserInfo({ ...userInfo, userNm: e.target.value })}/>
|
|
||||||
</Col>
|
|
||||||
</Form.Group>
|
|
||||||
<Form.Group as={Row} className="mb-3" controlId="formHorizontalEmail">
|
|
||||||
<Form.Label column sm={3}>
|
|
||||||
이메일
|
|
||||||
</Form.Label>
|
|
||||||
<Col sm={9}>
|
|
||||||
<Form.Control type="email" name="email" placeholder="email" required value={userInfo?.email}
|
|
||||||
onChange={e => setUserInfo({ ...userInfo, email: e.target.value })}/>
|
|
||||||
</Col>
|
|
||||||
</Form.Group>
|
|
||||||
<Form.Group as={Row} className="mb-3" controlId="formHorizontalEmail">
|
|
||||||
<Form.Label column sm={3}>
|
|
||||||
연락처
|
|
||||||
</Form.Label>
|
|
||||||
<Col sm={9}>
|
|
||||||
<Form.Control type="text" name="phoneNum" placeholder="연락처" required value={userInfo?.phoneNum}
|
|
||||||
onChange={e => setUserInfo({ ...userInfo, phoneNum: e.target.value })}/>
|
|
||||||
</Col>
|
|
||||||
</Form.Group>
|
|
||||||
<Form.Group as={Row} className="mb-3" controlId="formHorizontalEmail">
|
|
||||||
<Form.Label column sm={3}>
|
<Form.Label column sm={3}>
|
||||||
비밀번호
|
비밀번호
|
||||||
</Form.Label>
|
</Form.Label>
|
||||||
<Col sm={9}>
|
<Col sm={9}>
|
||||||
<Form.Control type="password" name="password" placeholder="비밀번호 변경 시 입력"
|
<Form.Control type="password" name="password" placeholder="비밀번호 변경 시 입력" />
|
||||||
onChange={e => setUserInfo({ ...userInfo, password: e.target.value })}/>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Form.Group>
|
</Form.Group>
|
||||||
<Form.Group as={Row} className="mb-3" controlId="formHorizontalEmail">
|
<Form.Group as={Row} className="mb-3">
|
||||||
<Form.Label column sm={3}>
|
<Form.Label column sm={3}>
|
||||||
비밀번호 확인
|
비밀번호 확인
|
||||||
</Form.Label>
|
</Form.Label>
|
||||||
<Col sm={9}>
|
<Col sm={9}>
|
||||||
<Form.Control type="password" name="passwordChk" placeholder="비밀번호 변경 시 입력"
|
<Form.Control type="password" name="passwordChk" placeholder="비밀번호 변경 시 입력" />
|
||||||
onChange={e => setUserInfo({ ...userInfo, passwordChk: e.target.value })}/>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Form.Group>
|
</Form.Group>
|
||||||
<Form.Group as={Row} className="mb-3" controlId="formHorizontalEmail">
|
<Form.Group as={Row} className="mb-3">
|
||||||
|
<Form.Label column sm={3}>
|
||||||
|
이름
|
||||||
|
</Form.Label>
|
||||||
|
<Col sm={9}>
|
||||||
|
<Form.Control type="text" name="userNm" placeholder="이름" required defaultValue={userInfo?.userNm} />
|
||||||
|
</Col>
|
||||||
|
</Form.Group>
|
||||||
|
<Form.Group as={Row} className="mb-3">
|
||||||
|
<Form.Label column sm={3}>
|
||||||
|
이메일
|
||||||
|
</Form.Label>
|
||||||
|
<Col sm={9}>
|
||||||
|
<Form.Control type="email" name="email" placeholder="email" required defaultValue={userInfo?.email} />
|
||||||
|
</Col>
|
||||||
|
</Form.Group>
|
||||||
|
<Form.Group as={Row} className="mb-3">
|
||||||
|
<Form.Label column sm={3}>
|
||||||
|
연락처
|
||||||
|
</Form.Label>
|
||||||
|
<Col sm={9}>
|
||||||
|
<Form.Control type="text" name="phoneNum" placeholder="연락처" required defaultValue={userInfo?.phoneNum} />
|
||||||
|
</Col>
|
||||||
|
</Form.Group>
|
||||||
|
<Form.Group as={Row} className="mb-3">
|
||||||
<Form.Label column sm={3}>
|
<Form.Label column sm={3}>
|
||||||
사용자 유형
|
사용자 유형
|
||||||
</Form.Label>
|
</Form.Label>
|
||||||
<Col sm={9}>
|
<Col sm={9}>
|
||||||
|
<SelectOption name={"userSe"} grpCd={"ACC_TYPE"} selectedValue={userInfo?.userSe} />
|
||||||
</Col>
|
</Col>
|
||||||
</Form.Group>
|
</Form.Group>
|
||||||
<Form.Group as={Row} className="mb-3" controlId="formHorizontalEmail">
|
<Form.Group as={Row} className="mb-3">
|
||||||
<Form.Label column sm={3}>
|
<Form.Label column sm={3}>
|
||||||
사용자 권한
|
사용자 권한
|
||||||
</Form.Label>
|
</Form.Label>
|
||||||
<Col sm={9}>
|
<Col sm={9}>
|
||||||
|
<CheckBox name={"userRole"} grpCd={"ROLE"} selectedValue={userInfo?.userRole} />
|
||||||
</Col>
|
</Col>
|
||||||
</Form.Group>
|
</Form.Group>
|
||||||
<Form.Group as={Row} className="mb-3" controlId="formHorizontalEmail">
|
<Form.Group as={Row} className="mb-3">
|
||||||
<Form.Label column sm={3}>
|
<Form.Label column sm={3}>
|
||||||
상태
|
상태
|
||||||
</Form.Label>
|
</Form.Label>
|
||||||
<Col sm={9}>
|
<Col sm={9}>
|
||||||
|
<SelectOption name={"status"} grpCd={"ACC_STUS"} selectedValue={userInfo?.status} />
|
||||||
</Col>
|
</Col>
|
||||||
</Form.Group>
|
</Form.Group>
|
||||||
<Row className="mb-3">
|
<Row className="mb-3">
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,15 @@ package com.dbnt.kcscbackend.admin.committee.schedules.service.impl;
|
||||||
|
|
||||||
import com.dbnt.kcscbackend.admin.committee.schedules.model.CreateScheduleVO;
|
import com.dbnt.kcscbackend.admin.committee.schedules.model.CreateScheduleVO;
|
||||||
import com.dbnt.kcscbackend.admin.committee.schedules.service.EgovIndvdlSchdulManageService;
|
import com.dbnt.kcscbackend.admin.committee.schedules.service.EgovIndvdlSchdulManageService;
|
||||||
import com.dbnt.kcscbackend.admin.config.repository.TcCodeItemRepository;
|
import com.dbnt.kcscbackend.commonCode.repository.TcCodeItemRepository;
|
||||||
import com.dbnt.kcscbackend.admin.config.repository.TnCmtEventRepository;
|
import com.dbnt.kcscbackend.commonCode.repository.TnCmtEventRepository;
|
||||||
import com.dbnt.kcscbackend.admin.config.repository.TnCmtOrgRepository;
|
import com.dbnt.kcscbackend.commonCode.repository.TnCmtOrgRepository;
|
||||||
import com.dbnt.kcscbackend.config.common.ResultVO;
|
import com.dbnt.kcscbackend.config.common.ResultVO;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.apache.tomcat.util.json.JSONParser;
|
|
||||||
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||||
import org.springframework.boot.configurationprocessor.json.JSONObject;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package com.dbnt.kcscbackend.admin.config;
|
package com.dbnt.kcscbackend.admin.config;
|
||||||
|
|
||||||
import com.dbnt.kcscbackend.admin.config.entity.TcCodeGrp;
|
import com.dbnt.kcscbackend.commonCode.entity.TcCodeGrp;
|
||||||
import com.dbnt.kcscbackend.admin.config.entity.TcCodeItem;
|
import com.dbnt.kcscbackend.commonCode.entity.TcCodeItem;
|
||||||
import com.dbnt.kcscbackend.admin.config.service.AdminConfigService;
|
import com.dbnt.kcscbackend.admin.config.service.AdminConfigService;
|
||||||
import com.dbnt.kcscbackend.auth.entity.LoginVO;
|
import com.dbnt.kcscbackend.auth.entity.LoginVO;
|
||||||
import com.dbnt.kcscbackend.config.common.BaseController;
|
import com.dbnt.kcscbackend.config.common.BaseController;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
package com.dbnt.kcscbackend.admin.config.service;
|
package com.dbnt.kcscbackend.admin.config.service;
|
||||||
|
|
||||||
import com.dbnt.kcscbackend.admin.config.entity.TcCodeGrp;
|
import com.dbnt.kcscbackend.commonCode.entity.TcCodeGrp;
|
||||||
import com.dbnt.kcscbackend.admin.config.entity.TcCodeItem;
|
import com.dbnt.kcscbackend.commonCode.entity.TcCodeItem;
|
||||||
import com.dbnt.kcscbackend.admin.config.repository.TcCodeGrpRepository;
|
import com.dbnt.kcscbackend.commonCode.repository.TcCodeGrpRepository;
|
||||||
import com.dbnt.kcscbackend.admin.config.repository.TcCodeItemRepository;
|
import com.dbnt.kcscbackend.commonCode.repository.TcCodeItemRepository;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,14 @@ import com.dbnt.kcscbackend.admin.users.mapper.AdminUsersMapper;
|
||||||
import com.dbnt.kcscbackend.auth.entity.UserInfo;
|
import com.dbnt.kcscbackend.auth.entity.UserInfo;
|
||||||
import com.dbnt.kcscbackend.auth.repository.UserInfoRepository;
|
import com.dbnt.kcscbackend.auth.repository.UserInfoRepository;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class AdminUsersService {
|
public class AdminUsersService extends EgovAbstractServiceImpl {
|
||||||
|
|
||||||
private final UserInfoRepository userInfoRepository;
|
private final UserInfoRepository userInfoRepository;
|
||||||
private final AdminUsersMapper usersMapper;
|
private final AdminUsersMapper usersMapper;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
||||||
|
package com.dbnt.kcscbackend.commonCode;
|
||||||
|
|
||||||
|
import com.dbnt.kcscbackend.commonCode.entity.TcCodeItem;
|
||||||
|
import com.dbnt.kcscbackend.commonCode.service.CommonCodeService;
|
||||||
|
import com.dbnt.kcscbackend.config.common.ResultVO;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.responses.ApiResponse;
|
||||||
|
import io.swagger.v3.oas.annotations.responses.ApiResponses;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@RequestMapping("/commonCode")
|
||||||
|
@Tag(name="CommonCodeController", description = "공통코드 컨트롤러")
|
||||||
|
public class CommonCodeController {
|
||||||
|
|
||||||
|
private final CommonCodeService commonCodeService;
|
||||||
|
|
||||||
|
@Operation(
|
||||||
|
summary = "코드 아이템 목록 조회",
|
||||||
|
description = "코드 아이템 목록 조회",
|
||||||
|
tags = {"CommonCodeController"}
|
||||||
|
)
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(responseCode = "200", description = "조회 성공"),
|
||||||
|
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
|
||||||
|
})
|
||||||
|
@RequestMapping(method = RequestMethod.GET, value = "/code-item")
|
||||||
|
public ResultVO getCodeItemList(TcCodeItem codeItem) throws Exception{
|
||||||
|
ResultVO resultVO = new ResultVO();
|
||||||
|
Map<String, Object> resultMap = new HashMap<>();
|
||||||
|
resultMap.put("codeList", commonCodeService.selectCodeItemList(codeItem.getGrpCd()));
|
||||||
|
resultVO.setResult(resultMap);
|
||||||
|
return resultVO;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package com.dbnt.kcscbackend.admin.config.entity;
|
package com.dbnt.kcscbackend.commonCode.entity;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package com.dbnt.kcscbackend.admin.config.entity;
|
package com.dbnt.kcscbackend.commonCode.entity;
|
||||||
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package com.dbnt.kcscbackend.admin.config.entity;
|
package com.dbnt.kcscbackend.commonCode.entity;
|
||||||
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package com.dbnt.kcscbackend.admin.config.entity;
|
package com.dbnt.kcscbackend.commonCode.entity;
|
||||||
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package com.dbnt.kcscbackend.admin.config.repository;
|
package com.dbnt.kcscbackend.commonCode.repository;
|
||||||
|
|
||||||
import com.dbnt.kcscbackend.admin.config.entity.TcCodeGrp;
|
import com.dbnt.kcscbackend.commonCode.entity.TcCodeGrp;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package com.dbnt.kcscbackend.admin.config.repository;
|
package com.dbnt.kcscbackend.commonCode.repository;
|
||||||
|
|
||||||
import com.dbnt.kcscbackend.admin.config.entity.TcCodeItem;
|
import com.dbnt.kcscbackend.commonCode.entity.TcCodeItem;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -1,14 +1,10 @@
|
||||||
package com.dbnt.kcscbackend.admin.config.repository;
|
package com.dbnt.kcscbackend.commonCode.repository;
|
||||||
|
|
||||||
import com.dbnt.kcscbackend.admin.config.entity.TnCmtEvent;
|
import com.dbnt.kcscbackend.commonCode.entity.TnCmtEvent;
|
||||||
import com.dbnt.kcscbackend.admin.config.entity.TnCmtOrg;
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.query.Procedure;
|
import org.springframework.data.jpa.repository.query.Procedure;
|
||||||
|
|
||||||
import java.time.LocalDate;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public interface TnCmtEventRepository extends JpaRepository<TnCmtEvent, TnCmtEvent.TnCmtEventId> {
|
public interface TnCmtEventRepository extends JpaRepository<TnCmtEvent, TnCmtEvent.TnCmtEventId> {
|
||||||
@Procedure
|
@Procedure
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
package com.dbnt.kcscbackend.admin.config.repository;
|
package com.dbnt.kcscbackend.commonCode.repository;
|
||||||
|
|
||||||
import com.dbnt.kcscbackend.admin.config.entity.TcCodeItem;
|
import com.dbnt.kcscbackend.commonCode.entity.TnCmtOrg;
|
||||||
import com.dbnt.kcscbackend.admin.config.entity.TnCmtOrg;
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.dbnt.kcscbackend.commonCode.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.dbnt.kcscbackend.commonCode.entity.TcCodeItem;
|
||||||
|
import com.dbnt.kcscbackend.commonCode.repository.TcCodeGrpRepository;
|
||||||
|
import com.dbnt.kcscbackend.commonCode.repository.TcCodeItemRepository;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class CommonCodeService extends EgovAbstractServiceImpl{
|
||||||
|
|
||||||
|
private final TcCodeGrpRepository codeGrpRepository;
|
||||||
|
private final TcCodeItemRepository codeItemRepository;
|
||||||
|
|
||||||
|
|
||||||
|
public List<TcCodeItem> selectCodeItemList(String grpCd) {
|
||||||
|
return codeItemRepository.findByGrpCdAndUseYnOrderByGrpOrder(grpCd, "Y");
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue