Переглянути джерело

进出口岸报告、营运检验监督、建造检验监督

abai 23 годин тому
батько
коміт
1b6235af5a

+ 22 - 1
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/domain/bo/BjBuildCheckBo.java

@@ -48,6 +48,16 @@ public class BjBuildCheckBo extends BaseEntity {
     private String shipCheckOrganization;
 
     /**
+     * 国际/国内
+     */
+    private String countryType;
+
+    /**
+     * 检查机构
+     */
+    private String checkOrganization;
+
+    /**
      * 检查人员
      */
     private String checkPerson;
@@ -58,11 +68,16 @@ public class BjBuildCheckBo extends BaseEntity {
     private Date checkDate;
 
     /**
-     * 船舶
+     * 船舶类
      */
     private String shipType;
 
     /**
+     * 船舶种类
+     */
+    private String shipSort;
+
+    /**
      * 船长(米)
      */
     private String shipLength;
@@ -143,6 +158,12 @@ public class BjBuildCheckBo extends BaseEntity {
     private String delFlag;
 
     /**
+     * 检查日期数组
+     */
+    @Schema(description = "检查日期数组")
+    private String [] checkDates;
+
+    /**
      * 开始时间搜索使用
      */
     private String startCheckDate;

+ 32 - 4
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/domain/bo/BjPortReportBo.java

@@ -43,11 +43,21 @@ public class BjPortReportBo extends BaseEntity {
     private String reportCode;
 
     /**
+     * 进出港
+     */
+    private String inOutPort;
+
+    /**
      * 报告机构
      */
     private String reportOrganization;
 
     /**
+     * 申报来源
+     */
+    private String applySource;
+
+    /**
      * 报告类型
      */
     private String reportType;
@@ -128,24 +138,42 @@ public class BjPortReportBo extends BaseEntity {
     private String delFlag;
 
     /**
+     * 申请时间数组
+     */
+    @Schema(description = "申请时间数组")
+    private String[] declareDates;
+
+    /**
      * 开始时间搜索使用
      */
-    private String startEndDate;
+    private String startDeclareDate;
 
     /**
      * 结束时间搜索使用
      */
-    private String endEndDate;
+    private String endDeclareDate;
+
+    /**
+     * (预)到港时间数组
+     */
+    @Schema(description = "(预)到港时间数组")
+    private String[] endDates;
 
     /**
      * 开始时间搜索使用
      */
-    private String startDeclareDate;
+    private String startEndDate;
 
     /**
      * 结束时间搜索使用
      */
-    private String endDeclareDate;
+    private String endEndDate;
+
+    /**
+     * 发布时间数组
+     */
+    @Schema(description = "发布时间数组")
+    private String[] releaseDates;
 
     /**
      * 开始时间搜索使用

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

@@ -43,6 +43,11 @@ public class BjServiceCheckBo extends BaseEntity {
     private String shipRegisterNumber;
 
     /**
+     * 船舶类型
+     */
+    private String shipType;
+
+    /**
      * 船籍港
      */
     private String regportName;
@@ -123,6 +128,12 @@ public class BjServiceCheckBo extends BaseEntity {
     private String delFlag;
 
     /**
+     * 检查日期数组
+     */
+    @Schema(description = "检查日期数组")
+    private String [] checkDates;
+
+    /**
      * 开始时间搜索使用
      */
     private String startCheckDate;

+ 16 - 1
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/domain/vo/BjBuildCheckVo.java

@@ -47,6 +47,16 @@ public class BjBuildCheckVo implements Serializable {
     private String shipCheckOrganization;
 
     /**
+     * 国际/国内
+     */
+    private String countryType;
+
+    /**
+     * 检查机构
+     */
+    private String checkOrganization;
+
+    /**
      * 检查人员
      */
     private String checkPerson;
@@ -58,11 +68,16 @@ public class BjBuildCheckVo implements Serializable {
     private Date checkDate;
 
     /**
-     * 船舶
+     * 船舶类
      */
     private String shipType;
 
     /**
+     * 船舶种类
+     */
+    private String shipSort;
+
+    /**
      * 船长(米)
      */
     private String shipLength;

+ 10 - 0
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/domain/vo/BjPortReportVo.java

@@ -42,11 +42,21 @@ public class BjPortReportVo implements Serializable {
     private String reportCode;
 
     /**
+     * 进出港
+     */
+    private String inOutPort;
+
+    /**
      * 报告机构
      */
     private String reportOrganization;
 
     /**
+     * 申报来源
+     */
+    private String applySource;
+
+    /**
      * 报告类型
      */
     private String reportType;

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

@@ -44,6 +44,11 @@ public class BjServiceCheckVo implements Serializable {
     private String shipRegisterNumber;
 
     /**
+     * 船舶类型
+     */
+    private String shipType;
+
+    /**
      * 船籍港
      */
     private String regportName;

+ 4 - 0
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/service/impl/BjBuildCheckServiceImpl.java

@@ -50,6 +50,10 @@ public class BjBuildCheckServiceImpl implements IBjBuildCheckService {
      */
     @Override
     public List<BjBuildCheckVo> queryPageList(BjBuildCheckBo bo) {
+        if (bo.getCheckDates() != null && bo.getCheckDates().length != 0) {
+            bo.setStartCheckDate(bo.getCheckDates()[0]);
+            bo.setEndCheckDate(bo.getCheckDates()[1]);
+        }
         return baseMapper.queryBuildCheckList(bo);
     }
 

+ 12 - 1
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/service/impl/BjPortReportServiceImpl.java

@@ -2,7 +2,6 @@ package com.ruoyi.business.service.impl;
 
 import cn.hutool.core.bean.BeanUtil;
 import com.ruoyi.business.domain.BjPortReport;
-import com.ruoyi.business.domain.BjPortReport;
 import com.ruoyi.business.domain.bo.BjPortReportBo;
 import com.ruoyi.business.domain.bo.BreakBo;
 import com.ruoyi.business.domain.bo.ReportFlagBo;
@@ -50,6 +49,18 @@ public class BjPortReportServiceImpl implements IBjPortReportService {
      */
     @Override
     public List<BjPortReportVo> queryPageList(BjPortReportBo bo) {
+        if (bo.getDeclareDates() != null && bo.getDeclareDates().length != 0) {
+            bo.setStartDeclareDate(bo.getDeclareDates()[0]);
+            bo.setEndDeclareDate(bo.getDeclareDates()[1]);
+        }
+        if (bo.getEndDates() != null && bo.getEndDates().length != 0) {
+            bo.setStartEndDate(bo.getEndDates()[0]);
+            bo.setEndEndDate(bo.getEndDates()[1]);
+        }
+        if (bo.getReleaseDates() != null && bo.getReleaseDates().length != 0) {
+            bo.setStartReleaseDate(bo.getReleaseDates()[0]);
+            bo.setEndReleaseDate(bo.getReleaseDates()[1]);
+        }
         return baseMapper.queryPortReportList(bo);
     }
 

+ 4 - 0
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/service/impl/BjServiceCheckServiceImpl.java

@@ -50,6 +50,10 @@ public class BjServiceCheckServiceImpl implements IBjServiceCheckService {
      */
     @Override
     public List<BjServiceCheckVo> queryPageList(BjServiceCheckBo bo) {
+        if (bo.getCheckDates() != null && bo.getCheckDates().length != 0) {
+            bo.setStartCheckDate(bo.getCheckDates()[0]);
+            bo.setEndCheckDate(bo.getCheckDates()[1]);
+        }
         return baseMapper.queryServiceCheckList(bo);
     }
 

+ 24 - 3
ruoyi-modules/ruoyi-business/src/main/resources/mapper/business/BjBuildCheckMapper.xml

@@ -54,12 +54,33 @@
                break_reason
         from bj_build_check
         where del_flag = '0'
-        <if test="bo.shipyard != null and bo.shipyard != ''">
-            and shipyard like concat('%',#{bo.shipyard},'%')
-        </if>
         <if test="bo.shipRegisterNumber != null and bo.shipRegisterNumber != ''">
             and ship_register_number like concat('%',#{bo.shipRegisterNumber},'%')
         </if>
+        <if test="bo.shipName != null and bo.shipName != ''">
+            and ship_name = #{bo.shipName}
+        </if>
+        <if test="bo.shipyard != null and bo.shipyard != ''">
+            and shipyard = #{bo.shipyard}
+        </if>
+        <if test="bo.shipType != null and bo.shipType != ''">
+            and ship_type = #{bo.shipType}
+        </if>
+        <if test="bo.countryType != null and bo.countryType != ''">
+            and country_type = #{bo.countryType}
+        </if>
+        <if test="bo.checkOrganization != null and bo.checkOrganization != ''">
+            and check_organization = #{bo.checkOrganization}
+        </if>
+        <if test="bo.checkResult != null and bo.checkResult != ''">
+            and check_result = #{bo.checkResult}
+        </if>
+        <if test="bo.shipSort != null and bo.shipSort != ''">
+            and ship_sort = #{bo.shipSort}
+        </if>
+        <if test="bo.status != null and bo.status != ''">
+            and status = #{bo.status}
+        </if>
         <if test="bo.startCheckDate != null and bo.endCheckDate != null">
             and check_date between #{bo.startCheckDate} and #{bo.endCheckDate}
         </if>

+ 11 - 2
ruoyi-modules/ruoyi-business/src/main/resources/mapper/business/BjPortReportMapper.xml

@@ -57,12 +57,21 @@
         <if test="bo.voyageNumber != null and bo.voyageNumber != ''">
             and voyage_number like concat('%',#{bo.voyageNumber},'%')
         </if>
-        <if test="bo.startEndDate != null and bo.endEndDate != null">
-            and end_date between #{bo.startEndDate} and #{bo.endEndDate}
+        <if test="bo.inOutPort != null and bo.inOutPort != ''">
+            and in_out_port = #{bo.inOutPort}
+        </if>
+        <if test="bo.reportOrganization != null and bo.reportOrganization != ''">
+            and report_organization = #{bo.reportOrganization}
+        </if>
+        <if test="bo.applySource != null and bo.applySource != ''">
+            and apply_source = #{bo.applySource}
         </if>
         <if test="bo.startDeclareDate != null and bo.endDeclareDate != null">
             and declare_date between #{bo.startDeclareDate} and #{bo.endDeclareDate}
         </if>
+        <if test="bo.startEndDate != null and bo.endEndDate != null">
+            and end_date between #{bo.startEndDate} and #{bo.endEndDate}
+        </if>
         <if test="bo.startReleaseDate != null and bo.endReleaseDate != null">
             and release_date between #{bo.startReleaseDate} and #{bo.endReleaseDate}
         </if>

+ 24 - 0
ruoyi-modules/ruoyi-business/src/main/resources/mapper/business/BjServiceCheckMapper.xml

@@ -52,6 +52,30 @@
         <if test="bo.shipRegisterNumber != null and bo.shipRegisterNumber != ''">
             and ship_register_number like concat('%',#{bo.shipRegisterNumber},'%')
         </if>
+        <if test="bo.shipName != null and bo.shipName != ''">
+            and ship_name = #{bo.shipName}
+        </if>
+        <if test="bo.shipType != null and bo.shipType != ''">
+            and ship_type = #{bo.shipType}
+        </if>
+        <if test="bo.regportName != null and bo.regportName != ''">
+            and regport_name = #{bo.regportName}
+        </if>
+        <if test="bo.checkOrganization != null and bo.checkOrganization != ''">
+            and check_organization = #{bo.checkOrganization}
+        </if>
+        <if test="bo.checkResult != null and bo.checkResult != ''">
+            and check_result = #{bo.checkResult}
+        </if>
+        <if test="bo.beMonitorOrganization != null and bo.beMonitorOrganization != ''">
+            and be_monitor_organization = #{bo.beMonitorOrganization}
+        </if>
+        <!--<if test="bo.shipSort != null and bo.shipSort != ''">
+            and ship_sort = #{bo.shipSort}
+        </if>-->
+        <if test="bo.status != null and bo.status != ''">
+            and status = #{bo.status}
+        </if>
         <if test="bo.startCheckDate != null and bo.endCheckDate != null">
             and check_date between #{bo.startCheckDate} and #{bo.endCheckDate}
         </if>