Compare commits

..

2 Commits

Author SHA1 Message Date
jiHyung b2fa46df9b 단속현황 검색필터 추가 2022-11-09 17:48:55 +09:00
jiHyung 58c776513f 국제범죄검거 현황 엑셀다운로드 수정 2022-11-09 17:47:29 +09:00
5 changed files with 17 additions and 4 deletions

View File

@ -83,6 +83,8 @@ public class CrackdownStatus extends CrackdownStatusBaseEntity {
@Transient
private String year;
@Transient
private String month;
@Transient
@DateTimeFormat(pattern = "yyyy-MM-dd")
private LocalDate napoDate;
@Transient

View File

@ -106,7 +106,7 @@ public class InternationalCrimeArrestController {
String[] headers = {"ica_key", "case_num", "organ", "department", "crime_type", "violation_type", "crime_name", "occur_table", "arrest_table", "suspect_table", "sex", "age", "country", "crime_awareness_dt", "case_sent_dt", "process_result"};
String[] headerNames = { "", "", "", "", "", "", "", "", "", "", "피의자 인적사항", "", "", "", "", ""};
String[] headerNames2 = { "", "사건번호", "지방청", "경찰서", "범죄테마", "위반유형", "죄명", "발생원표", "검거원표", "피의자원표","성별","나이","국적","범죄인지","사건송치","신병처리"};
String[] columnType = { "int", "int", "String", "String", "String", "String", "String", "String", "String", "String","String","String","String","String","String","String"};
String[] columnType = { "int", "String", "String", "String", "String", "String", "String", "String", "String", "String","String","String","String","String","String","String"};
excel.setHeaders(headers);
excel.setHeaderNames(headerNames);
excel.setHeaderNames2(headerNames2);

View File

@ -7,7 +7,10 @@
<sql id="selectCrackdownStatusListWhere">
<where>
<if test='year != null and year != ""'>
And EXTRACT(YEAR FROM pr.wrt_dt) = EXTRACT(YEAR FROM CAST(#{year} AS DATE)::TIMESTAMP)
And EXTRACT(YEAR FROM pr.wrt_dt) = #{year}::NUMERIC
</if>
<if test='month != null and month != ""'>
And EXTRACT(MONTH FROM pr.wrt_dt) = #{month}::NUMERIC
</if>
<if test='caseNum != null and caseNum != ""'>
AND caseNum = #{caseNum}

View File

@ -26,7 +26,15 @@
<select class="form-select form-select-sm" name="year">
<option value="">연도</option>
<th:block th:each="year : ${#numbers.sequence(2020, 2030)}">
<option th:value="${year + '-01-01'}" th:text="${year}" th:selected="${searchParams.year eq year}"></option>
<option th:value="${year}" th:text="${year}" th:selected="${searchParams.year eq year}"></option>
</th:block>
</select>
</div>
<div class="col-auto">
<select class="form-select form-select-sm" name="month">
<option value=""></option>
<th:block th:each="month : ${#numbers.sequence(1, 12)}">
<option th:value="${month}" th:text="${month}" th:selected="${searchParams.month eq month}"></option>
</th:block>
</select>
</div>

View File

@ -89,7 +89,7 @@
</form>
<div class="tab-pane fade show active" id="ica" role="tabpanel"
aria-labelledby="arrest-tab">
<table class="table table-striped">
<table class="table table-striped" id="ivsgtTable">
<thead>
<tr>
<th rowspan="2">지방청</th>