Compare commits

..

2 Commits

Author SHA1 Message Date
thkim abbbbddcb0 Merge branch 'thkim' 2024-01-05 18:01:46 +09:00
thkim c9ea180686 feat: '위원회 일정 등록' 페이지에서 심의위원회 첫 번째 거 선택 시, 하위 목록 불러오는 API 추가 건
관리자 단에서 '위원회 관리' > '위원회 일정 관리'에 '등록' 버튼을 누른 후 '위원회 일정 등록' 페이지에서 심의위원회 첫 번째 거 선택 시, 하위 목록 불러오는 API 추가
2024-01-05 18:01:30 +09:00
3 changed files with 11 additions and 11 deletions

View File

@ -89,7 +89,13 @@ function SchedulesEdit(props) {
requestOptions,
function (resp) {
let rawScheduleDetail = resp;
console.log( 'kimtheho kimtheho kimtheho kimtheho kimtheho kimtheho kimtheho kimtheho' + rawScheduleDetail );
}
);
EgovNet.requestFetch("/schedule/api/org-api/depth/list?paramCodeGroup=5",
requestOptions,
function (resp) {
let rawScheduleDetail = resp;
}
);

View File

@ -173,19 +173,12 @@ public class EgovIndvdlSchdulManageServiceImpl extends EgovAbstractServiceImpl i
public ResultVO ScheduleApiOrgApiDepthList(ResultVO resultVO, Integer paramCodeGroup) throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>();
List<String> listCodes = tcCodeItemRepository.findByGrpCdAndUseYnOrderByGrpOrder("EVT_TYPE", "Y").stream()
.map(lc -> lc.getItemNm())
.collect(Collectors.toList());
List<String> listSubOrg = tnCmtOrgRepository.findByUseYnAndUpCmtSeqOrderByCmtOrder("Y", 3).stream()
.map(lc -> lc.getCmtNm())
.collect(Collectors.toList());
List<String> listTopOrg = tnCmtOrgRepository.findByUseYnAndUpCmtSeqOrderByCmtOrder("Y", 2).stream()
List<String> list = tnCmtOrgRepository.findByUseYnAndUpCmtSeqOrderByCmtOrder("Y", paramCodeGroup).stream()
.map(lc -> lc.getCmtNm())
.collect(Collectors.toList());
resultMap.put("listCodes", listCodes);
resultMap.put("listSubOrg", listSubOrg);
resultMap.put("listTopOrg", listTopOrg);
resultMap.put("list", list);
resultVO.setResult(resultMap);
return resultVO;

View File

@ -8,4 +8,5 @@ import java.util.List;
public interface TnCmtOrgRepository extends JpaRepository<TnCmtOrg, TnCmtOrg.TnCmtOrgId> {
List<TnCmtOrg> findByUseYnAndUpCmtSeqOrderByCmtOrder(String useYn, Integer upCmtSeq);
}