Compare commits

..

No commits in common. "9a55723026e15bf169bc1c3ffdd6b91bf21263ce" and "7cb8c688aa583e7fdba4dfb9bce695a4be9b1b28" have entirely different histories.

8 changed files with 26 additions and 137 deletions

View File

@ -18,12 +18,6 @@
<if test='contentTitle != null and contentTitle != ""'>
AND a.content_title LIKE '%'||#{contentTitle}||'%'
</if>
<if test='arrestCd != null and arrestCd != ""'>
AND t.arrest_cd = #{arrestCd}
</if>
<if test='arrestCd2 != null and arrestCd2 != ""'>
AND t.arrest_cd2 = #{arrestCd2}
</if>
<if test='dateSelector == "wrtDt"'>
<if test='startDate != null and startDate != ""'>
And a.wrt_dt >= #{startDate}::DATE
@ -74,20 +68,6 @@
<select id="selectBoardInvestigationListCnt" resultType="int" parameterType="BoardInvestigation">
SELECT count(*)
FROM board_investigation a
LEFT OUTER JOIN (
SELECT
ivsgt_key,
count(file_seq) AS fileCnt
FROM ivsgt_file
GROUP BY ivsgt_key
) b
ON a.ivsgt_key = b.ivsgt_key
INNER JOIN arrest_type t
ON a.ivsgt_key = t.ivsgt_key
INNER JOIN code_mgt cm
ON t.arrest_cd = cm.item_cd
INNER JOIN code_mgt cm2
ON t.arrest_cd2 = cm2.item_cd
<include refid="selectBoardInvestigationListWhere"></include>
</select>
<select id="selectHashTags" resultType="string" parameterType="int">

View File

@ -24,24 +24,6 @@
<if test='crimeName != null and crimeName != ""'>
AND crime_name LIKE CONCAT('%', #{crimeName}, '%')
</if>
<if test='occurTable != null and occurTable != ""'>
AND occur_table LIKE CONCAT('%', #{occurTable}, '%')
</if>
<if test='arrestTable != null and arrestTable != ""'>
AND arrest_table LIKE CONCAT('%', #{arrestTable}, '%')
</if>
<if test='suspectTable != null and suspectTable != ""'>
AND suspect_table LIKE CONCAT('%', #{suspectTable}, '%')
</if>
<if test='crimeAwarenessDt != null'>
And crime_awareness_dt = #{crimeAwarenessDt}::DATE
</if>
<if test='caseSentDt != null'>
AND case_sent_dt = #{caseSentDt}::DATE
</if>
<if test='processResult != null and processResult != ""'>
AND process_result = #{processResult}
</if>
<if test='dateSelector == "wrtDt"'>
<if test='startDate != null and startDate != ""'>
And wrt_dt >= #{startDate}::DATE

View File

@ -188,7 +188,7 @@ function fileCheck(flag, files){
return flag;
}
function dynamicOption(targetTagName, code, defaultOptionName='') {
function dynamicOption(targetTagName, code) {
$(targetTagName).empty();
let option = '';
@ -198,7 +198,7 @@ function dynamicOption(targetTagName, code, defaultOptionName='') {
});
}
$(targetTagName).append('<option value="">' +defaultOptionName + '선택</option>' + option);
$(targetTagName).append('<option value="">선택</option>' + option);
}
function departmentDynamicOption(targetTagName, code, defaultOptionName='') {
@ -209,7 +209,7 @@ function departmentDynamicOption(targetTagName, code, defaultOptionName='') {
option += '<option value="' + organConfig.organCd + '">' + organConfig.organNm + '</option>';
}
});
$(targetTagName).append('<option value="">' + defaultOptionName + ' 선택</option>' + option);
$(targetTagName).append('<option value="">' + defaultOptionName + '선택</option>' + option);
}
function dateTimeCalc(startDateTime, endDateTime) {

View File

@ -3,14 +3,6 @@ $(function(){
format: "yyyy-mm-dd",
language: "ko"
});
$("#searchCrimeAwarenessDtDiv").datepicker({
format: "yyyy-mm-dd",
language: "ko"
});
$("#searchCaseSentDtDiv").datepicker({
format: "yyyy-mm-dd",
language: "ko"
});
});
@ -40,12 +32,8 @@ $(document).on('change', 'select[name="organ"]', function (){
departmentDynamicOption('select[name="department"]', $(this).val());
});
$(document).on('change', '#crimeType', function (){
dynamicOption('#violationType', $(this).val());
});
$(document).on('change', '#searchCrimeType', function (){
dynamicOption('#searchViolationType', $(this).val(), '위반유형');
$(document).on('change', 'select[name="crimeType"]', function (){
dynamicOption('select[name="violationType"]', $(this).val());
});

View File

@ -55,13 +55,6 @@ $(document).on('click', '.cancel-btn', function (){
$("#ivsgtEditForm").append('<input type="hidden" name="deleteKeyList" value="' + deleteKey + '">');
});
$(document).on('change', '#arrestCd', function (){
dynamicOption('#arrestCd2', $(this).val());
});
$(document).on('change', '#searchArrestCd', function (){
dynamicOption('#searchArrestCd2', $(this).val(), '검거유형2');
});
$(function(){
$("#dateSelectorDiv").datepicker({

View File

@ -56,7 +56,7 @@
</select>
</div>
<div class="col-auto">
<select class="form-select form-select-sm" name="crimeType" id="searchCrimeType">
<select class="form-select form-select-sm" name="crimeType">
<option value="">범죄테마 선택</option>
<th:block th:each="commonCode:${session.commonCode.get('CTH')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd eq searchParams.crimeType}"></option>
@ -64,7 +64,7 @@
</select>
</div>
<div class="col-auto">
<select class="form-select form-select-sm" name="violationType" id="searchViolationType">
<select class="form-select form-select-sm" name="violationType" id="violationType">
<option value="">위반유형 선택</option>
<th:block th:each="num : ${#numbers.sequence(1,#lists.size(session.commonCode.get('CTH')))}">
<th:block th:each="commonCode:${session.commonCode.get('CTH'+num)}">
@ -76,34 +76,6 @@
<div class="col-auto">
<input type="text" class="form-control form-control-sm" placeholder="죄명" name="crimeName" th:value="${searchParams.crimeName}">
</div>
<div class="col-auto">
<input type="text" class="form-control form-control-sm" placeholder="발생원표" name="occurTable" th:value="${searchParams.occurTable}">
</div>
<div class="col-auto">
<input type="text" class="form-control form-control-sm" placeholder="검거원표" name="arrestTable" th:value="${searchParams.arrestTable}">
</div>
<div class="col-auto">
<input type="text" class="form-control form-control-sm" placeholder="피의자원표" name="suspectTable" th:value="${searchParams.suspectTable}">
</div>
<div class="col-auto">
<div class="col-auto input-daterange" id="searchCrimeAwarenessDtDiv">
<input type="text" class="form-control form-control-sm" placeholder="범죄인지" name="crimeAwarenessDt" id="crimeAwarenessDt" th:value="${#temporals.format(searchParams.crimeAwarenessDt, 'yyyy-MM-dd')}">
</div>
</div>
<div class="col-auto">
<div class="col-auto input-daterange" id="searchCaseSentDtDiv">
<input type="text" class="form-control form-control-sm" placeholder="사건송치" name="caseSentDt" id="caseSentDt" th:value="${#temporals.format(searchParams.caseSentDt, 'yyyy-MM-dd')}">
</div>
</div>
<div class="col-auto">
<select class="form-select form-select-sm" name="processResult" id="processResult">
<option value="">신병처리 선택</option>
<th:block th:each="commonCode:${session.commonCode.get('PCR')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${commonCode.itemCd eq searchParams.processResult}"></option>
</th:block>
</select>
</div>
<div class="col-4">
<div class="input-group w-auto input-daterange" id="dateSelectorDiv">
<input type="text" class="form-control form-control-sm" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">

View File

@ -4,9 +4,6 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="script">
<script th:inline="javascript">
const commonCode = [[${session.commonCode}]];
</script>
<script type="text/javascript" th:src="@{/js/ivsgt/ivsgt.js}"></script>
</th:block>
<div layout:fragment="content">
@ -41,31 +38,9 @@
</th:block>
</select>
</div>
<div class="col-sm-2">
<select class="form-select form-select-sm" name="arrestCd" id="searchArrestCd">
<option value="">검거유형1 선택</option>
<th:block th:each="commonCode:${session.commonCode.get('AT')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${searchParams.arrestCd != null and commonCode.itemCd eq searchParams.arrestCd}"></option>
</th:block>
</select>
</div>
<div class="col-sm-2">
<select class="form-select form-select-sm" name="arrestCd2" id="searchArrestCd2">
<option value="">검거유형2 선택</option>
<th:block th:each="num : ${#numbers.sequence(1,#lists.size(session.commonCode.get('AT')))}">
<th:block th:if="${'AT'+num == searchParams.arrestCd}" th:each="commonCode:${session.commonCode.get('AT'+num)}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${searchParams.arrestCd2 eq commonCode.itemCd}"></option>
</th:block>
</th:block>
</select>
</div>
<div class="col-auto">
<input type="text" class="form-control form-control-sm" placeholder="제목" name="contentTitle" th:value="${searchParams.contentTitle}">
</div>
<div class="col-auto">
<input type="text" class="form-control form-control-sm" placeholder="작성자" name="wrtNm" th:value="${searchParams.wrtNm}">
</div>
<div class="col-4">
<div class="input-group w-auto input-daterange" id="dateSelectorDiv">
<input type="text" class="form-control form-control-sm" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">
@ -101,8 +76,8 @@
<div class="tab-content">
<div class="tab-pane fade show active" id="arrest" role="tabpanel"
aria-labelledby="arrest-tab">
<table class="table table-hover table-bordered ws-nowrap">
<thead class="align-middle text-center">
<table class="table table-striped">
<thead>
<tr>
<th>문서번호</th>
<th>관서</th>
@ -113,21 +88,21 @@
<th>작성일</th>
</tr>
</thead>
<tbody class="table-group-divider align-middle text-center">
<tr class="tr" th:each="boardInvestigation:${boardInvestigationList}" th:data-key="${boardInvestigation.ivsgtKey}">
<td th:text="${boardInvestigation.ivsgtKey}"></td>
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
<td th:if="${boardInvestigation.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block>
<td th:text="${boardInvestigation.arrestCdName}"></td>
<td th:text="${boardInvestigation.arrestCd2Name}"></td>
<td th:text="${boardInvestigation.contentStatus == 'Y' ? '[임시저장]' : ''} + ${boardInvestigation.contentTitle}"></td>
<td th:text="${boardInvestigation.wrtNm}"></td>
<td th:text="${#temporals.format(boardInvestigation.wrtDt, 'yyyy-MM-dd')}"></td>
</tr>
<tbody>
<tr class="tr" th:each="boardInvestigation:${boardInvestigationList}" th:data-key="${boardInvestigation.ivsgtKey}">
<td th:text="${boardInvestigation.ivsgtKey}"></td>
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
<td th:if="${boardInvestigation.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block>
<td th:text="${boardInvestigation.arrestCdName}"></td>
<td th:text="${boardInvestigation.arrestCd2Name}"></td>
<td th:text="${boardInvestigation.contentStatus == 'Y' ? '[임시저장]' : ''} + ${boardInvestigation.contentTitle}"></td>
<td th:text="${boardInvestigation.wrtNm}"></td>
<td th:text="${#temporals.format(boardInvestigation.wrtDt, 'yyyy-MM-dd')}"></td>
</tr>
</tbody>
</table>
<button class="btn btn-sm btn-primary" id="ivsgtAddBtn">등록</button>
<button id="ivsgtAddBtn">등록</button>
</div>
<div class="tab-pane fade" id="proceeding" role="tabpanel"
aria-labelledby="proceeding-tab">진행보고서</div>

View File

@ -55,7 +55,7 @@
<div class="col-sm-2">
<select class="form-select form-select-sm" name="arrestCd" id="arrestCd">
<option value="">검거유형1 선택-</option>
<th:block th:each="commonCode:${session.commonCode.get('AT')}">
<th:block th:each="commonCode:${session.commonCode.get('AT1')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${boardInvestigation.arrestType != null and commonCode.itemCd eq boardInvestigation.arrestType.arrestCd}"></option>
</th:block>
@ -65,10 +65,9 @@
<div class="col-sm-2">
<select class="form-select form-select-sm" name="arrestCd2" id="arrestCd2">
<option value="">검거유형2 선택-</option>
<th:block th:each="num : ${#numbers.sequence(1,#lists.size(session.commonCode.get('AT')))}">
<th:block th:if="${boardInvestigation.arrestType ne null && 'AT'+num == boardInvestigation.arrestType.arrestCd}" th:each="commonCode:${session.commonCode.get('AT'+num)}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${boardInvestigation.arrestType.arrestCd2 eq commonCode.itemCd}"></option>
</th:block>
<th:block th:each="commonCode:${session.commonCode.get('AT2')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${boardInvestigation.arrestType != null and commonCode.itemCd eq boardInvestigation.arrestType.arrestCd2}"></option>
</th:block>
</select>
</div>