From 0f2cb7a58aa0dfb22688a5d2999612c1ba6f1a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=84=9D=20=EC=B5=9C?= Date: Fri, 4 Aug 2023 16:38:24 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=88=EB=B2=95=EC=A1=B0=EC=97=85=20?= =?UTF-8?q?=EC=99=B8=EA=B5=AD=EC=96=B4=EC=84=A0=20=ED=95=98=EC=9C=84=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=20-=20=EA=B2=80=EC=83=89?= =?UTF-8?q?=EC=A1=B0=EA=B1=B4=20=EC=9A=94=EC=B2=AD=EC=82=AC=ED=95=AD=20?= =?UTF-8?q?=EB=B0=98=EC=98=81.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mybatisMapper/UnlawfulFishingMapper.xml | 93 ++++++++----------- .../unlawfulFishing/crackdownInfo.js | 4 - .../crackdownInfo/crackdownInfoPage.html | 31 ++----- .../illegalShipInfo/illegalShipInfoPage.html | 27 +----- .../illegalShipInfo/isiEditModal.html | 2 +- .../illegalShipInfo/isiHistoryDiv.html | 2 +- .../illegalShipInfo/isiSelectModal.html | 2 +- .../illegalShipInfo/isiViewModal.html | 2 +- .../illegalShipSailor/issViewModal.html | 2 +- .../shipProcessInfo/shipProcessInfoPage.html | 8 +- .../shipProcessInfo/spiViewModal.html | 2 +- .../unlawfulFishing/versionInfo.html | 2 +- 12 files changed, 56 insertions(+), 121 deletions(-) diff --git a/src/main/resources/mybatisMapper/UnlawfulFishingMapper.xml b/src/main/resources/mybatisMapper/UnlawfulFishingMapper.xml index b07dae37..d142293f 100644 --- a/src/main/resources/mybatisMapper/UnlawfulFishingMapper.xml +++ b/src/main/resources/mybatisMapper/UnlawfulFishingMapper.xml @@ -64,42 +64,37 @@ and case_agency = #{caseAgency} - - and case_police_officer like '%'||#{casePoliceOfficer}||'%' - - - and crackdown_police = #{crackdownPolice} - and crackdown_boat = #{crackdownBoat} - - and case_num like '%'||#{caseNum}||'%' - - - and mmsi like '%'||#{mmsi}||'%' - - - and (napo_sea_point_lon like '%'||#{napoPoint}||'%' - or napo_sea_point_lat like '%'||#{napoPoint}||'%' - or napo_sea_point_detail like '%'||#{napoPoint}||'%') - - - - and napo_dt >= #{startDate}::date - - - and napo_dt <= #{endDate}::date - - - - - and wrt_dt >= #{startDate}::date - - - and wrt_dt <= #{endDate}::date - + + and (napo_sea_point_lon like '%'||#{searchKeyword}||'%' + or napo_sea_point_lat like '%'||#{searchKeyword}||'%' + or napo_sea_point_detail like '%'||#{searchKeyword}||'%' + or case_police_officer like '%'||#{searchKeyword}||'%' + or case_num like '%'||#{searchKeyword}||'%' + or person_damage_detail like '%'||#{searchKeyword}||'%' + or material_damage_detail like '%'||#{searchKeyword}||'%' + or catch_fish_species like '%'||#{searchKeyword}||'%') + + + + and napo_dt >= #{startDate}::date + + + and napo_dt <= #{endDate}::date + + + + + and wrt_dt >= #{startDate}::date + + + and wrt_dt <= #{endDate}::date + + + and (case_agency in @@ -148,23 +143,15 @@ where a.status <> 'DST008' - - and b.case_num like '%'||#{caseNum}||'%' - - - and a.permit_num like '%'||#{permitNum}||'%' - - - and (a.boat_nny_sung like '%'||#{boatNny}||'%' or a.boat_nny_si like '%'||#{boatNny}||'%') - and (a.boat_name_kr like '%'||#{boatName}||'%' or a.boat_name_cn like '%'||#{boatName}||'%') - - and a.boat_material = #{boatMaterial} - - - and a.fishery_type = #{fisheryType} + + and (a.boat_nny_sung like '%'||#{searchKeyword}||'%' + or a.boat_nny_si like '%'||#{searchKeyword}||'%' + or a.nationality like '%'||#{searchKeyword}||'%' + or a.offense_type like '%'||#{searchKeyword}||'%' + or b.case_num like '%'||#{searchKeyword}||'%') @@ -229,9 +216,6 @@ where a.status <> 'DST008' - - and c.case_num like '%'||#{caseNum}||'%' - and (b.boat_name_kr like '%'||#{boatName}||'%' or b.boat_name_cn like '%'||#{boatName}||'%') @@ -241,11 +225,12 @@ and a.is_ivsgt_stop = #{isIvsgtStop} - - and a.sentencing_court like '%'||#{sentencingCourt}||'%' - - - and a.sentencing_detail like '%'||#{sentencingDetail}||'%' + + and (a.sentencing_detail like '%'||#{searchKeyword}||'%' + or a.sentencing_court like '%'||#{searchKeyword}||'%' + or c.case_num like '%'||#{searchKeyword}||'%' + or a.handover_boat like '%'||#{searchKeyword}||'%' + or a.middle_takeover_boat like '%'||#{searchKeyword}||'%') diff --git a/src/main/resources/static/js/faStatistics/unlawfulFishing/crackdownInfo.js b/src/main/resources/static/js/faStatistics/unlawfulFishing/crackdownInfo.js index a304a86a..5b0b7c8f 100644 --- a/src/main/resources/static/js/faStatistics/unlawfulFishing/crackdownInfo.js +++ b/src/main/resources/static/js/faStatistics/unlawfulFishing/crackdownInfo.js @@ -7,10 +7,6 @@ $(function(){ }); }) -$(document).on('change', '#searchFormPolice', function (){ - getChildOption(this.value, null, "#searchFormBoat"); -}) - $(document).on('click', '#addCrackdownStatusBtn', function (){ getCdiEditModal(null); }) diff --git a/src/main/resources/templates/faStatistics/unlawfulFishing/crackdownInfo/crackdownInfoPage.html b/src/main/resources/templates/faStatistics/unlawfulFishing/crackdownInfo/crackdownInfoPage.html index c6f6451b..1e520487 100644 --- a/src/main/resources/templates/faStatistics/unlawfulFishing/crackdownInfo/crackdownInfoPage.html +++ b/src/main/resources/templates/faStatistics/unlawfulFishing/crackdownInfo/crackdownInfoPage.html @@ -44,42 +44,25 @@
- -
-
- -
-
- - - + + + +
-
- -
-
- +
diff --git a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/illegalShipInfoPage.html b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/illegalShipInfoPage.html index aa675cf7..c267666c 100644 --- a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/illegalShipInfoPage.html +++ b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/illegalShipInfoPage.html @@ -36,39 +36,16 @@
- +
-
- -
-
-
-
- -
-
- -
diff --git a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiEditModal.html b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiEditModal.html index 30e0aafc..e665f50c 100644 --- a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiEditModal.html +++ b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiEditModal.html @@ -110,7 +110,7 @@
- +
diff --git a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiHistoryDiv.html b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiHistoryDiv.html index 241d7226..6a2d91ce 100644 --- a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiHistoryDiv.html +++ b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiHistoryDiv.html @@ -76,7 +76,7 @@ - +
diff --git a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiSelectModal.html b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiSelectModal.html index 64711706..6348ed9a 100644 --- a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiSelectModal.html +++ b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiSelectModal.html @@ -48,7 +48,7 @@
diff --git a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiViewModal.html b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiViewModal.html index d39436c6..5e9e7f21 100644 --- a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiViewModal.html +++ b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipInfo/isiViewModal.html @@ -107,7 +107,7 @@ - +
diff --git a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipSailor/issViewModal.html b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipSailor/issViewModal.html index d8e12d48..3dd871a0 100644 --- a/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipSailor/issViewModal.html +++ b/src/main/resources/templates/faStatistics/unlawfulFishing/illegalShipSailor/issViewModal.html @@ -162,7 +162,7 @@ - +
diff --git a/src/main/resources/templates/faStatistics/unlawfulFishing/shipProcessInfo/shipProcessInfoPage.html b/src/main/resources/templates/faStatistics/unlawfulFishing/shipProcessInfo/shipProcessInfoPage.html index f105c278..3489348e 100644 --- a/src/main/resources/templates/faStatistics/unlawfulFishing/shipProcessInfo/shipProcessInfoPage.html +++ b/src/main/resources/templates/faStatistics/unlawfulFishing/shipProcessInfo/shipProcessInfoPage.html @@ -36,9 +36,6 @@
-
- -
@@ -60,10 +57,7 @@
- -
-
- +
diff --git a/src/main/resources/templates/faStatistics/unlawfulFishing/shipProcessInfo/spiViewModal.html b/src/main/resources/templates/faStatistics/unlawfulFishing/shipProcessInfo/spiViewModal.html index 75aaac70..9677ab98 100644 --- a/src/main/resources/templates/faStatistics/unlawfulFishing/shipProcessInfo/spiViewModal.html +++ b/src/main/resources/templates/faStatistics/unlawfulFishing/shipProcessInfo/spiViewModal.html @@ -205,7 +205,7 @@ - +
diff --git a/src/main/resources/templates/faStatistics/unlawfulFishing/versionInfo.html b/src/main/resources/templates/faStatistics/unlawfulFishing/versionInfo.html index 5a69643c..3302ed74 100644 --- a/src/main/resources/templates/faStatistics/unlawfulFishing/versionInfo.html +++ b/src/main/resources/templates/faStatistics/unlawfulFishing/versionInfo.html @@ -249,7 +249,7 @@ - +