Просмотр исходного кода

安全检查、行政处罚、船舶登记

abai 23 часов назад
Родитель
Сommit
cded6ec890

+ 5 - 0
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/domain/BjShipsRegistration.java

@@ -51,6 +51,11 @@ public class BjShipsRegistration extends BaseEntity {
     private String shipFirstregNo;
 
     /**
+     * 船籍港
+     */
+    private String regportName;
+
+    /**
      * 船舶所有人
      */
     private String shipOwner;

+ 21 - 0
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/domain/bo/BjAdministrativePunishBo.java

@@ -80,6 +80,11 @@ public class BjAdministrativePunishBo extends BaseEntity {
     private Integer processType;
 
     /**
+     * 处罚种类
+     */
+    private Integer processSort;
+
+    /**
      * 处罚决定时间
      */
     private Date decisionDate;
@@ -125,11 +130,21 @@ public class BjAdministrativePunishBo extends BaseEntity {
     private String punishAmount;
 
     /**
+     * 海内河船
+     */
+    private String inlandShips;
+
+    /**
      * 航运公司
      */
     private String shipCompany;
 
     /**
+     * 水域类别
+     */
+    private String waterAreaType;
+
+    /**
      * 发布时间
      */
     private String declareDate;
@@ -165,6 +180,12 @@ public class BjAdministrativePunishBo extends BaseEntity {
     private String breakReason;
 
     /**
+     * 处罚决定日期数组
+     */
+    @Schema(description = "处罚决定日期数组")
+    private String [] decisionDates;
+
+    /**
      * 开始时间搜索使用
      */
     private String startDecisionDate;

+ 6 - 0
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/domain/bo/BjSecurityCheckBo.java

@@ -200,6 +200,12 @@ public class BjSecurityCheckBo extends BaseEntity {
     private String breakReason;
 
     /**
+     * 检查日期数组
+     */
+    @Schema(description = "检查日期数组")
+    private String [] checkDates;
+
+    /**
      * 开始时间搜索使用
      */
     private String startCheckDate;

+ 11 - 0
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/domain/bo/BjShipsRegistrationBo.java

@@ -49,6 +49,11 @@ public class BjShipsRegistrationBo extends BaseEntity {
     private String shipFirstregNo;
 
     /**
+     * 船籍港
+     */
+    private String regportName;
+
+    /**
      * 船舶所有人
      */
     private String shipOwner;
@@ -111,6 +116,12 @@ public class BjShipsRegistrationBo extends BaseEntity {
     private String breakReason;
 
     /**
+     * 注销日期数组
+     */
+    @Schema(description = "注销日期数组")
+    private String [] deletionDates;
+
+    /**
      * 开始时间搜索使用
      */
     private String startDeletionDate;

+ 4 - 1
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/service/impl/BjAdministrativePunishServiceImpl.java

@@ -2,7 +2,6 @@ package com.ruoyi.business.service.impl;
 
 import cn.hutool.core.bean.BeanUtil;
 import com.ruoyi.business.domain.BjAdministrativePunish;
-import com.ruoyi.business.domain.BjAdministrativePunish;
 import com.ruoyi.business.domain.bo.BjAdministrativePunishBo;
 import com.ruoyi.business.domain.bo.BreakBo;
 import com.ruoyi.business.domain.bo.ReportFlagBo;
@@ -50,6 +49,10 @@ public class BjAdministrativePunishServiceImpl implements IBjAdministrativePunis
      */
     @Override
     public List<BjAdministrativePunishVo> queryPageList(BjAdministrativePunishBo bo) {
+        if (bo.getDecisionDates() != null && bo.getDecisionDates().length != 0) {
+            bo.setStartDecisionDate(bo.getDecisionDates()[0]);
+            bo.setEndDecisionDate(bo.getDecisionDates()[1]);
+        }
         return baseMapper.queryAdministrativePunishList(bo);
     }
 

+ 4 - 1
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/service/impl/BjSecurityCheckServiceImpl.java

@@ -2,7 +2,6 @@ package com.ruoyi.business.service.impl;
 
 import cn.hutool.core.bean.BeanUtil;
 import com.ruoyi.business.domain.BjSecurityCheck;
-import com.ruoyi.business.domain.BjSecurityCheck;
 import com.ruoyi.business.domain.bo.BjSecurityCheckBo;
 import com.ruoyi.business.domain.bo.BreakBo;
 import com.ruoyi.business.domain.bo.ReportFlagBo;
@@ -50,6 +49,10 @@ public class BjSecurityCheckServiceImpl implements IBjSecurityCheckService {
      */
     @Override
     public List<BjSecurityCheckVo> queryPageList(BjSecurityCheckBo bo) {
+        if (bo.getCheckDates() != null && bo.getCheckDates().length != 0) {
+            bo.setStartCheckDate(bo.getCheckDates()[0]);
+            bo.setEndCheckDate(bo.getCheckDates()[1]);
+        }
         return baseMapper.querySecurityCheckList(bo);
     }
 

+ 4 - 1
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/service/impl/BjShipsRegistrationServiceImpl.java

@@ -2,7 +2,6 @@ package com.ruoyi.business.service.impl;
 
 import cn.hutool.core.bean.BeanUtil;
 import com.ruoyi.business.domain.BjShipsRegistration;
-import com.ruoyi.business.domain.BjShipsRegistration;
 import com.ruoyi.business.domain.bo.BjShipsRegistrationBo;
 import com.ruoyi.business.domain.bo.BreakBo;
 import com.ruoyi.business.domain.bo.ReportFlagBo;
@@ -50,6 +49,10 @@ public class BjShipsRegistrationServiceImpl implements IBjShipsRegistrationServi
      */
     @Override
     public List<BjShipsRegistrationVo> queryPageList(BjShipsRegistrationBo bo) {
+        if (bo.getDeletionDates() != null && bo.getDeletionDates().length != 0) {
+            bo.setStartDeletionDate(bo.getDeletionDates()[0]);
+            bo.setEndDeletionDate(bo.getDeletionDates()[1]);
+        }
         return baseMapper.queryShipsRegistrationList(bo);
     }
 

+ 30 - 3
ruoyi-modules/ruoyi-business/src/main/resources/mapper/business/BjAdministrativePunishMapper.xml

@@ -67,12 +67,39 @@
         <if test="bo.caseNo != null and bo.caseNo != ''">
             and case_no like concat('%',#{bo.caseNo},'%')
         </if>
-        <if test="bo.punishReason != null and bo.punishReason != ''">
-            and punish_reason like concat('%',#{bo.punishReason},'%')
-        </if>
         <if test="bo.punishObjName != null and bo.punishObjName != ''">
             and punish_obj_name like concat('%',#{bo.punishObjName},'%')
         </if>
+        <if test="bo.punishReason != null and bo.punishReason != ''">
+            and punish_reason = #{bo.punishReason}
+        </if>
+        <if test="bo.shipNameCn != null and bo.shipNameCn != ''">
+            and ship_name_cn = #{bo.shipNameCn}
+        </if>
+        <if test="bo.processType != null">
+            and process_type = #{bo.processType}
+        </if>
+        <if test="bo.processSort != null">
+            and process_sort = #{bo.processSort}
+        </if>
+        <if test="bo.disposeOrg != null and bo.disposeOrg != ''">
+            and dispose_org = #{bo.disposeOrg}
+        </if>
+        <if test="bo.partiesType != null and bo.partiesType != ''">
+            and parties_type = #{bo.partiesType}
+        </if>
+        <if test="bo.portOfregistry != null and bo.portOfregistry != ''">
+            and port_ofregistry = #{bo.portOfregistry}
+        </if>
+        <if test="bo.shipSort != null and bo.shipSort != ''">
+            and ship_sort = #{bo.shipSort}
+        </if>
+        <if test="bo.inlandShips != null and bo.inlandShips != ''">
+            and inland_ships = #{bo.inlandShips}
+        </if>
+        <if test="bo.waterAreaType != null and bo.waterAreaType != ''">
+            and water_area_type = #{bo.waterAreaType}
+        </if>
         <if test="bo.startDecisionDate != null and bo.endDecisionDate != null">
             and declare_date between #{bo.startDecisionDate} and #{bo.endDecisionDate}
         </if>

+ 18 - 0
ruoyi-modules/ruoyi-business/src/main/resources/mapper/business/BjSecurityCheckMapper.xml

@@ -91,6 +91,24 @@
         <if test="bo.shipOwner != null and bo.shipOwner != ''">
             and ship_owner like concat('%',#{bo.shipOwner},'%')
         </if>
+        <if test="bo.checkType != null and bo.checkType != ''">
+            and check_type = #{bo.checkType}
+        </if>
+        <if test="bo.regportName != null and bo.regportName != ''">
+            and regport_name = #{bo.regportName}
+        </if>
+        <if test="bo.retentionFlag != null and bo.retentionFlag != ''">
+            and retention_flag = #{bo.retentionFlag}
+        </if>
+        <if test="bo.checkOrganization != null and bo.checkOrganization != ''">
+            and check_organization = #{bo.checkOrganization}
+        </if>
+        <if test="bo.illegalInformation != null and bo.illegalInformation != ''">
+            and illegal_information = #{bo.illegalInformation}
+        </if>
+        <if test="bo.handlingSuggestion != null and bo.handlingSuggestion != ''">
+            and handling_suggestion = #{bo.handlingSuggestion}
+        </if>
         <if test="bo.startCheckDate != null and bo.endCheckDate != null">
             and check_date between #{bo.startCheckDate} and #{bo.endCheckDate}
         </if>

+ 15 - 1
ruoyi-modules/ruoyi-business/src/main/resources/mapper/business/BjShipRegistrationMapper.xml

@@ -9,11 +9,12 @@
         <result property="shipNameCn" column="ship_name_cn"/>
         <result property="shipNameEn" column="ship_name_en"/>
         <result property="shipFirstregNo" column="ship_firstreg_no"/>
+        <result property="regportName" column="regport_name"/>
         <result property="shipOwner" column="ship_owner"/>
         <result property="shipClassName" column="ship_class_name"/>
         <result property="deletionDate" column="deletion_date"/>
         <result property="deletionOrganization" column="deletion_organization"/>
-        <result property="deletionReason" column="deletionReason"/>
+        <result property="deletionReason" column="deletion_reason"/>
         <result property="releaseDate" column="release_date"/>
         <result property="releaseFlag" column="release_flag"/>
         <result property="reportFlag" column="report_flag"/>
@@ -28,6 +29,7 @@
                ship_name_cn,
                ship_name_en,
                ship_firstreg_no,
+               regport_name,
                ship_owner,
                ship_class_name,
                deletion_date,
@@ -57,6 +59,18 @@
         <if test="bo.shipOwner != null and bo.shipOwner != ''">
             and ship_owner like concat('%',#{bo.shipOwner},'%')
         </if>
+        <if test="bo.regportName != null and bo.regportName != ''">
+            and regport_name = #{bo.regportName}
+        </if>
+        <if test="bo.shipClassName != null and bo.shipClassName != ''">
+            and ship_class_name = #{bo.shipClassName}
+        </if>
+        <if test="bo.deletionOrganization != null and bo.deletionOrganization != ''">
+            and deletion_organization = #{bo.deletionOrganization}
+        </if>
+        <if test="bo.deletionReason != null and bo.deletionReason != ''">
+            and deletion_reason = #{bo.deletionReason}
+        </if>
         <if test="bo.startDeletionDate != null and bo.endDeletionDate != null">
             and deletion_date between #{bo.startDeletionDate} and #{bo.endDeletionDate}
         </if>