fix :외사수사관리 조건수정 94,95,96

master
TaehunPark 2023-01-27 09:53:37 +09:00
parent 6fc5e1f053
commit 661c2dd5da
5 changed files with 15 additions and 30 deletions

View File

@ -33,7 +33,8 @@ public class IvsgtController {
mav.addObject("accessAuth", accessAuth);
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
boardInvestigation.setDownOrganCdList(loginUser.getDownOrganCdList());
boardInvestigation.setQueryInfo();
mav.addObject("boardInvestigationList", boardInvestigationService.selectBoardInvestigationList(boardInvestigation));
boardInvestigation.setContentCnt(boardInvestigationService.selectBoardInvestigationListCnt(boardInvestigation));

View File

@ -40,9 +40,7 @@ public class MajorStatusController {
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
mav.addObject("searchParams", majorStatus);
majorStatus.setDownOrganCdList(loginUser.getDownOrganCdList());
majorStatus.setQueryInfo();
mav.addObject("majorList", majorStatusService.selectMajorList(majorStatus));
majorStatus.setContentCnt(majorStatusService.selectMajorListCnt(majorStatus));
majorStatus.setPaginationInfo();

View File

@ -6,6 +6,10 @@
<mapper namespace="com.dbnt.faisp.main.ivsgtMgt.boardInvestigation.mapper.BoardInvestigationMapper">
<sql id="selectBoardInvestigationListWhere">
<where>
and a.wrt_organ in
<foreach collection="downOrganCdList" item="organCd" separator="," open="(" close=")">
#{organCd}
</foreach>
<if test='ivsgtType != null and ivsgtType != ""'>
AND ivsgt_type = #{ivsgtType}
</if>

View File

@ -26,12 +26,6 @@
<if test='endDate != null and endDate != ""'>
and a.wrt_dt &lt;= #{endDate}::date+1
</if>
and a.wrt_organ in
<foreach collection="downOrganCdList" item="organCd" separator="," open="(" close=")">
#{organCd}
</foreach>
</where>
</sql>

View File

@ -67,36 +67,24 @@
<table class="table table-sm table-hover table-bordered">
<thead>
<tr class="table-secondary">
<!-- <th></th>-->
<th>종류</th>
<th width="5%">순번</th>
<th width="10%">작성일시</th>
<th width="10%">종류</th>
<th>제목</th>
<th>관서</th>
<th>부서</th>
<th>계급</th>
<th>작성자</th>
<th>작성일시</th>
<th>첨부파일</th>
<th>내용</th>
<th width="10%">첨부파일</th>
</tr>
</thead>
<tbody class="table-group-divider">
<tr class="tr" th:each="major:${majorList}">
<tr class="tr" th:each="major, cnt:${majorList}">
<input type="hidden" class="majorKey" th:value="${major.majorKey}">
<!-- <td><input type="checkbox" class="trChkBox"></td>-->
<td th:text="${cnt.count}"></td>
<td th:text="${#temporals.format(major.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
<th:block th:each="commonCode:${session.commonCode.get('MST')}">
<td th:if="${major.majorType eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block>
<td th:text="|${major.contentStatus eq 'DST001'?'[임시]':''}${major.contentTitle}|"></td>
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
<td th:if="${major.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}">
<td th:if="${major.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block>
<th:block th:each="commonCode:${session.commonCode.get('JT')}">
<td th:if="${major.wrtUserGrd eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block>
<td th:text="${major.wrtUserNm}"></td>
<td th:text="${#temporals.format(major.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
<td th:utext="${major.contentInfo}"></td>
<td th:text="${major.fileCnt eq null?'파일 없음':#strings.concat(major.fileCnt,' 건')}"></td>
</tr>
</tbody>