불법조업 외국어선 하위 페이지

- 검색조건 요청사항 반영.
master
강석 최 2023-08-04 16:38:24 +09:00
parent 2bf4b346ad
commit 0f2cb7a58a
12 changed files with 56 additions and 121 deletions

View File

@ -64,42 +64,37 @@
<if test='caseAgency != null and caseAgency != ""'> <if test='caseAgency != null and caseAgency != ""'>
and case_agency = #{caseAgency} and case_agency = #{caseAgency}
</if> </if>
<if test='casePoliceOfficer != null and casePoliceOfficer != ""'>
and case_police_officer like '%'||#{casePoliceOfficer}||'%'
</if>
<if test='crackdownPolice != null and crackdownPolice != ""'>
and crackdown_police = #{crackdownPolice}
</if>
<if test='crackdownBoat != null and crackdownBoat != ""'> <if test='crackdownBoat != null and crackdownBoat != ""'>
and crackdown_boat = #{crackdownBoat} and crackdown_boat = #{crackdownBoat}
</if> </if>
<if test='caseNum != null and caseNum != ""'> <if test='searchKeyword != null and searchKeyword != ""'>
and case_num like '%'||#{caseNum}||'%' and (napo_sea_point_lon like '%'||#{searchKeyword}||'%'
</if> or napo_sea_point_lat like '%'||#{searchKeyword}||'%'
<if test='mmsi != null and mmsi != ""'> or napo_sea_point_detail like '%'||#{searchKeyword}||'%'
and mmsi like '%'||#{mmsi}||'%' or case_police_officer like '%'||#{searchKeyword}||'%'
</if> or case_num like '%'||#{searchKeyword}||'%'
<if test='napoPoint != null and napoPoint != ""'> or person_damage_detail like '%'||#{searchKeyword}||'%'
and (napo_sea_point_lon like '%'||#{napoPoint}||'%' or material_damage_detail like '%'||#{searchKeyword}||'%'
or napo_sea_point_lat like '%'||#{napoPoint}||'%' or catch_fish_species like '%'||#{searchKeyword}||'%')
or napo_sea_point_detail like '%'||#{napoPoint}||'%')
</if>
<if test='dateSelector == "napoDt"'>
<if test='startDate != null and startDate != ""'>
and napo_dt >= #{startDate}::date
</if>
<if test='endDate != null and endDate != ""'>
and napo_dt &lt;= #{endDate}::date
</if>
</if>
<if test='dateSelector == "wrtDt"'>
<if test='startDate != null and startDate != ""'>
and wrt_dt >= #{startDate}::date
</if>
<if test='endDate != null and endDate != ""'>
and wrt_dt &lt;= #{endDate}::date
</if>
</if> </if>
<choose>
<when test='dateSelector == "napoDt"'>
<if test='startDate != null and startDate != ""'>
and napo_dt >= #{startDate}::date
</if>
<if test='endDate != null and endDate != ""'>
and napo_dt &lt;= #{endDate}::date
</if>
</when>
<when test='dateSelector == "wrtDt"'>
<if test='startDate != null and startDate != ""'>
and wrt_dt >= #{startDate}::date
</if>
<if test='endDate != null and endDate != ""'>
and wrt_dt &lt;= #{endDate}::date
</if>
</when>
</choose>
<choose> <choose>
<when test='accessAuth == "ACC003"'> <when test='accessAuth == "ACC003"'>
and (case_agency in and (case_agency in
@ -148,23 +143,15 @@
</select> </select>
<sql id="selectIllegalShipInfoListWhere"> <sql id="selectIllegalShipInfoListWhere">
where a.status &lt;> 'DST008' where a.status &lt;> 'DST008'
<if test='caseNum != null and caseNum != ""'>
and b.case_num like '%'||#{caseNum}||'%'
</if>
<if test='permitNum != null and permitNum != ""'>
and a.permit_num like '%'||#{permitNum}||'%'
</if>
<if test='boatNny != null and boatNny != ""'>
and (a.boat_nny_sung like '%'||#{boatNny}||'%' or a.boat_nny_si like '%'||#{boatNny}||'%')
</if>
<if test='boatName != null and boatName != ""'> <if test='boatName != null and boatName != ""'>
and (a.boat_name_kr like '%'||#{boatName}||'%' or a.boat_name_cn like '%'||#{boatName}||'%') and (a.boat_name_kr like '%'||#{boatName}||'%' or a.boat_name_cn like '%'||#{boatName}||'%')
</if> </if>
<if test='boatMaterial != null and boatMaterial != ""'> <if test='searchKeyword != null and searchKeyword != ""'>
and a.boat_material = #{boatMaterial} and (a.boat_nny_sung like '%'||#{searchKeyword}||'%'
</if> or a.boat_nny_si like '%'||#{searchKeyword}||'%'
<if test='fisheryType != null and fisheryType != ""'> or a.nationality like '%'||#{searchKeyword}||'%'
and a.fishery_type = #{fisheryType} or a.offense_type like '%'||#{searchKeyword}||'%'
or b.case_num like '%'||#{searchKeyword}||'%')
</if> </if>
<choose> <choose>
<when test='dateSelector == "paymentDt"'> <when test='dateSelector == "paymentDt"'>
@ -229,9 +216,6 @@
</select> </select>
<sql id="selectShipProcessInfoListWhere"> <sql id="selectShipProcessInfoListWhere">
where a.status &lt;> 'DST008' where a.status &lt;> 'DST008'
<if test='caseNum != null and caseNum != ""'>
and c.case_num like '%'||#{caseNum}||'%'
</if>
<if test='boatName != null and boatName != ""'> <if test='boatName != null and boatName != ""'>
and (b.boat_name_kr like '%'||#{boatName}||'%' or b.boat_name_cn like '%'||#{boatName}||'%') and (b.boat_name_kr like '%'||#{boatName}||'%' or b.boat_name_cn like '%'||#{boatName}||'%')
</if> </if>
@ -241,11 +225,12 @@
<if test='isIvsgtStop != null and isIvsgtStop != ""'> <if test='isIvsgtStop != null and isIvsgtStop != ""'>
and a.is_ivsgt_stop = #{isIvsgtStop} and a.is_ivsgt_stop = #{isIvsgtStop}
</if> </if>
<if test='sentencingCourt != null and sentencingCourt != ""'> <if test='searchKeyword != null and searchKeyword != ""'>
and a.sentencing_court like '%'||#{sentencingCourt}||'%' and (a.sentencing_detail like '%'||#{searchKeyword}||'%'
</if> or a.sentencing_court like '%'||#{searchKeyword}||'%'
<if test='sentencingDetail != null and sentencingDetail != ""'> or c.case_num like '%'||#{searchKeyword}||'%'
and a.sentencing_detail like '%'||#{sentencingDetail}||'%' or a.handover_boat like '%'||#{searchKeyword}||'%'
or a.middle_takeover_boat like '%'||#{searchKeyword}||'%')
</if> </if>
<choose> <choose>
<when test='dateSelector == "napoDt"'> <when test='dateSelector == "napoDt"'>

View File

@ -7,10 +7,6 @@ $(function(){
}); });
}) })
$(document).on('change', '#searchFormPolice', function (){
getChildOption(this.value, null, "#searchFormBoat");
})
$(document).on('click', '#addCrackdownStatusBtn', function (){ $(document).on('click', '#addCrackdownStatusBtn', function (){
getCdiEditModal(null); getCdiEditModal(null);
}) })

View File

@ -44,42 +44,25 @@
</select> </select>
</div> </div>
<div class="col-2"> <div class="col-2">
<input type="text" class="form-control form-control-sm" name="casePoliceOfficer" placeholder="사건담당경찰관" th:value="${searchParams.casePoliceOfficer}"> <select class="form-select form-select-sm" name="crackdownBoat" id="searchFormBoat">
</div>
<div class="col-2">
<select class="form-select form-select-sm" name="crackdownPolice" id="searchFormPolice">
<option value="">단속경찰서</option>
<th:block th:each="code:${session.commonCode.get('CPO')}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}"
th:selected="${code.itemCd eq searchParams.crackdownPolice}"></option>
</th:block>
</select>
</div>
<div class="col-2">
<select class="form-select form-select-sm" name="crackdownBoat" id="searchFormBoat" th:disabled="${#strings.isEmpty(searchParams.crackdownPolice)}">
<option value="">단속함정</option> <option value="">단속함정</option>
<th:block th:each="code:${session.commonCode.get(searchParams.crackdownPolice)}"> <th:block th:each="parent:${session.commonCode.get('CPO')}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.crackdownBoat}"></option> <th:block th:each="code:${session.commonCode.get(parent.itemCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.crackdownBoat}"></option>
</th:block>
</th:block> </th:block>
</select> </select>
</div> </div>
</div> </div>
<div class="row justify-content-end pb-1"> <div class="row justify-content-end pb-1">
<!--<div class="col-2">
<input type="text" class="form-control form-control-sm" name="" placeholder="개발중">
</div>-->
<div class="col-2"> <div class="col-2">
<input type="text" class="form-control form-control-sm" name="caseNum" placeholder="사건번호" th:value="${searchParams.caseNum}"> <input type="text" class="form-control form-control-sm" name="searchKeyword" placeholder="통합검색" th:value="${searchParams.searchKeyword}">
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" name="napoPoint" placeholder="나포장소" th:value="${searchParams.napoPoint}">
</div> </div>
<div class="col-4"> <div class="col-4">
<div class="input-group w-auto input-daterange" id="dateSelectorDiv"> <div class="input-group w-auto input-daterange" id="dateSelectorDiv">
<select class="form-select form-select-sm w-30" name="dateSelector"> <select class="form-select form-select-sm w-30" name="dateSelector">
<option value="">조건선택</option>
<option value="napoDt" th:selected="${searchParams.dateSelector eq 'napoDt'}">나포일시</option>
<option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일시</option> <option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일시</option>
<option value="napoDt" th:selected="${searchParams.dateSelector eq 'napoDt'}">나포일시</option>
</select> </select>
<input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}"> <input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">
<input type="text" class="form-control form-control-sm w-35" id="endDate" name="endDate" placeholder="종료일" autocomplete="off" readonly th:value="${searchParams.endDate}"> <input type="text" class="form-control form-control-sm w-35" id="endDate" name="endDate" placeholder="종료일" autocomplete="off" readonly th:value="${searchParams.endDate}">

View File

@ -36,39 +36,16 @@
<div class="col-11"> <div class="col-11">
<div class="row justify-content-end pb-1"> <div class="row justify-content-end pb-1">
<div class="col-2"> <div class="col-2">
<input type="text" class="form-control form-control-sm" name="caseNum" placeholder="사건번호" th:value="${searchParams.caseNum}"> <input type="text" class="form-control form-control-sm" name="searchKeyword" placeholder="통합검색" th:value="${searchParams.searchKeyword}">
</div> </div>
<div class="col-2"> <div class="col-2">
<input type="text" class="form-control form-control-sm" name="boatName" placeholder="선명" th:value="${searchParams.boatName}"> <input type="text" class="form-control form-control-sm" name="boatName" placeholder="선명" th:value="${searchParams.boatName}">
</div> </div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" name="boatNny" placeholder="선적지" th:value="${searchParams.boatNny}">
</div>
</div>
<div class="row justify-content-end pb-1">
<div class="col-2">
<select class="form-select form-select-sm " name="fisheryType" id="searchFisheryType">
<option value="">선종</option>
<th:block th:each="code:${session.commonCode.get('FT')}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}"
th:selected="${code.itemCd eq searchParams.fisheryType}"></option>
</th:block>
</select>
</div>
<div class="col-2">
<select class="form-select form-select-sm" name="boatMaterial" id="searchBoatMaterial">
<option value="">선질</option>
<th:block th:each="code:${session.commonCode.get('BM')}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}"
th:selected="${code.itemCd eq searchParams.boatMaterial}"></option>
</th:block>
</select>
</div>
<div class="col-4"> <div class="col-4">
<div class="input-group w-auto input-daterange" id="dateSelectorDiv"> <div class="input-group w-auto input-daterange" id="dateSelectorDiv">
<select class="form-select form-select-sm w-30" name="dateSelector"> <select class="form-select form-select-sm w-30" name="dateSelector">
<option value="">조건선택</option> <option value="">조건선택</option>
<option value="napoDt" th:selected="${searchParams.dateSelector eq 'paymentDt'}">담보금 납부일</option> <option value="paymentDt" th:selected="${searchParams.dateSelector eq 'paymentDt'}">담보금 납부일</option>
<option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일시</option> <option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일시</option>
</select> </select>
<input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}"> <input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">

View File

@ -110,7 +110,7 @@
<div class="col-sm-2"> <div class="col-sm-2">
<input type="text" class="form-control form-control-sm " id="damboPayment" name="damboPayment" placeholder="단위: 만원" th:value="${shipInfo.damboPayment>0?shipInfo.damboPayment:''}"> <input type="text" class="form-control form-control-sm " id="damboPayment" name="damboPayment" placeholder="단위: 만원" th:value="${shipInfo.damboPayment>0?shipInfo.damboPayment:''}">
</div> </div>
<label for="paymentPaymentDt" class="col-sm-1 col-form-label col-form-label-sm text-center fs-11">담보금 납부일</label> <label for="paymentPaymentDt" class="col-sm-1 col-form-label col-form-label-sm text-center">담보금 납부일</label>
<div class="col-sm-2"> <div class="col-sm-2">
<input type="text" class="form-control form-control-sm dateSelector" id="paymentPaymentDt" name="paymentPaymentDt" placeholder="yyyy-mm-dd" th:value="${#temporals.format(shipInfo.paymentPaymentDt, 'yyyy-MM-dd')}" autocomplete="off"> <input type="text" class="form-control form-control-sm dateSelector" id="paymentPaymentDt" name="paymentPaymentDt" placeholder="yyyy-mm-dd" th:value="${#temporals.format(shipInfo.paymentPaymentDt, 'yyyy-MM-dd')}" autocomplete="off">
</div> </div>

View File

@ -76,7 +76,7 @@
<label class="col-sm-2 col-form-label col-form-label py-2 border-end border-secondary text-start"> <label class="col-sm-2 col-form-label col-form-label py-2 border-end border-secondary text-start">
<th:block th:if="${shipInfo.damboPayment>0}" th:text="|${shipInfo.damboPayment}만원|"></th:block> <th:block th:if="${shipInfo.damboPayment>0}" th:text="|${shipInfo.damboPayment}만원|"></th:block>
</label> </label>
<label class="col-sm-1 col-form-label col-form-label fw-bold bg-label py-2 border-end border-secondary text-center fs-11">담보금 납부일</label> <label class="col-sm-1 col-form-label col-form-label fw-bold bg-label py-2 border-end border-secondary text-center fs-11">담보금 납부일</label>
<div class="col-sm-2"> <div class="col-sm-2">
<input type="text" class="form-control form-control border-0" readonly th:value="${#temporals.format(shipInfo.paymentPaymentDt, 'yyyy-MM-dd')}"> <input type="text" class="form-control form-control border-0" readonly th:value="${#temporals.format(shipInfo.paymentPaymentDt, 'yyyy-MM-dd')}">
</div> </div>

View File

@ -48,7 +48,7 @@
<div class="input-group w-auto input-daterange" id="dateSelectorDiv"> <div class="input-group w-auto input-daterange" id="dateSelectorDiv">
<select class="form-select form-select-sm w-30" name="dateSelector"> <select class="form-select form-select-sm w-30" name="dateSelector">
<option value="">조건선택</option> <option value="">조건선택</option>
<option value="napoDt" th:selected="${searchParams.dateSelector eq 'paymentDt'}">담보금 납부일</option> <option value="napoDt" th:selected="${searchParams.dateSelector eq 'paymentDt'}">담보금 납부일</option>
<option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일시</option> <option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일시</option>
</select> </select>
<input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}"> <input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">

View File

@ -107,7 +107,7 @@
<label class="col-sm-2 col-form-label col-form-label py-2 border-end border-secondary text-start"> <label class="col-sm-2 col-form-label col-form-label py-2 border-end border-secondary text-start">
<th:block th:if="${shipInfo.damboPayment>0}" th:text="|${shipInfo.damboPayment}만원|"></th:block> <th:block th:if="${shipInfo.damboPayment>0}" th:text="|${shipInfo.damboPayment}만원|"></th:block>
</label> </label>
<label class="col-sm-1 col-form-label col-form-label fw-bold bg-label py-2 border-end border-secondary text-center fs-11">담보금 납부일</label> <label class="col-sm-1 col-form-label col-form-label fw-bold bg-label py-2 border-end border-secondary text-center">담보금 납부일</label>
<div class="col-sm-2"> <div class="col-sm-2">
<input type="text" class="form-control form-control border-0" readonly th:value="${#temporals.format(shipInfo.paymentPaymentDt, 'yyyy-MM-dd')}"> <input type="text" class="form-control form-control border-0" readonly th:value="${#temporals.format(shipInfo.paymentPaymentDt, 'yyyy-MM-dd')}">
</div> </div>

View File

@ -162,7 +162,7 @@
<label class="col-sm-2 col-form-label col-form-label py-2 border-end border-secondary text-start"> <label class="col-sm-2 col-form-label col-form-label py-2 border-end border-secondary text-start">
<th:block th:if="${shipInfo.damboPayment>0}" th:text="|${shipInfo.damboPayment}만원|"></th:block> <th:block th:if="${shipInfo.damboPayment>0}" th:text="|${shipInfo.damboPayment}만원|"></th:block>
</label> </label>
<label class="col-sm-1 col-form-label col-form-label fw-bold bg-label py-2 border-end border-secondary text-center fs-11">담보금 납부일</label> <label class="col-sm-1 col-form-label col-form-label fw-bold bg-label py-2 border-end border-secondary text-center fs-11">담보금 납부일</label>
<div class="col-sm-2"> <div class="col-sm-2">
<input type="text" class="form-control form-control border-0" readonly th:value="${#temporals.format(shipInfo.paymentPaymentDt, 'yyyy-MM-dd')}"> <input type="text" class="form-control form-control border-0" readonly th:value="${#temporals.format(shipInfo.paymentPaymentDt, 'yyyy-MM-dd')}">
</div> </div>

View File

@ -36,9 +36,6 @@
<div class="row"> <div class="row">
<div class="col-11"> <div class="col-11">
<div class="row justify-content-end pb-1"> <div class="row justify-content-end pb-1">
<div class="col-2">
<input type="text" class="form-control form-control-sm" name="caseNum" placeholder="사건번호" th:value="${searchParams.caseNum}">
</div>
<div class="col-2"> <div class="col-2">
<input type="text" class="form-control form-control-sm" name="boatName" placeholder="어선명" th:value="${searchParams.boatName}"> <input type="text" class="form-control form-control-sm" name="boatName" placeholder="어선명" th:value="${searchParams.boatName}">
</div> </div>
@ -60,10 +57,7 @@
</div> </div>
<div class="row justify-content-end pb-1"> <div class="row justify-content-end pb-1">
<div class="col-2"> <div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="선고법원" name="sentencingCourt" th:value="${searchParams.sentencingCourt}"> <input type="text" class="form-control form-control-sm" name="searchKeyword" placeholder="통합검색" th:value="${searchParams.searchKeyword}">
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="선고내용" name="sentencingDetail" th:value="${searchParams.sentencingDetail}">
</div> </div>
<div class="col-4"> <div class="col-4">
<div class="input-group w-auto input-daterange" id="dateSelectorDiv"> <div class="input-group w-auto input-daterange" id="dateSelectorDiv">

View File

@ -205,7 +205,7 @@
<label class="col-sm-2 col-form-label col-form-label py-2 border-end border-secondary text-start"> <label class="col-sm-2 col-form-label col-form-label py-2 border-end border-secondary text-start">
<th:block th:if="${shipInfo.damboPayment>0}" th:text="|${shipInfo.damboPayment}만원|"></th:block> <th:block th:if="${shipInfo.damboPayment>0}" th:text="|${shipInfo.damboPayment}만원|"></th:block>
</label> </label>
<label class="col-sm-1 col-form-label col-form-label fw-bold bg-label py-2 border-end border-secondary text-center fs-11">담보금 납부일</label> <label class="col-sm-1 col-form-label col-form-label fw-bold bg-label py-2 border-end border-secondary text-center fs-11">담보금 납부일</label>
<div class="col-sm-2"> <div class="col-sm-2">
<input type="text" class="form-control form-control border-0" readonly th:value="${#temporals.format(shipInfo.paymentPaymentDt, 'yyyy-MM-dd')}"> <input type="text" class="form-control form-control border-0" readonly th:value="${#temporals.format(shipInfo.paymentPaymentDt, 'yyyy-MM-dd')}">
</div> </div>

View File

@ -249,7 +249,7 @@
<label class="col-sm-2 col-form-label col-form-label-sm py-2 border-end border-secondary text-start"> <label class="col-sm-2 col-form-label col-form-label-sm py-2 border-end border-secondary text-start">
<th:block th:if="${fishingBoat.damboPayment>0}" th:text="|${fishingBoat.damboPayment}만원|"></th:block> <th:block th:if="${fishingBoat.damboPayment>0}" th:text="|${fishingBoat.damboPayment}만원|"></th:block>
</label> </label>
<label class="col-sm-1 col-form-label col-form-label-sm fw-bold bg-label py-2 border-end border-secondary text-center fs-11">담보금 납부일</label> <label class="col-sm-1 col-form-label col-form-label-sm fw-bold bg-label py-2 border-end border-secondary text-center fs-11">담보금 납부일</label>
<div class="col-sm-2"> <div class="col-sm-2">
<input type="text" class="form-control form-control-sm border-0" readonly th:value="${fishingBoat.paymentPaymentDt}"> <input type="text" class="form-control form-control-sm border-0" readonly th:value="${fishingBoat.paymentPaymentDt}">
</div> </div>