|
|
@@ -5,6 +5,8 @@
|
|
|
<mapper namespace="com.ruoyi.business.mapper.BjPortReportMapper">
|
|
|
<resultMap id="portReportVoList" type="com.ruoyi.business.domain.vo.BjPortReportVo">
|
|
|
<result property="portReportId" column="port_report_id"/>
|
|
|
+ <result property="shipImo" column="ship_imo"/>
|
|
|
+ <result property="shipNameCn" column="ship_name_cn"/>
|
|
|
<result property="reportCode" column="report_code"/>
|
|
|
<result property="reportOrganization" column="report_organization"/>
|
|
|
<result property="reportType" column="report_type"/>
|
|
|
@@ -20,6 +22,8 @@
|
|
|
</resultMap>
|
|
|
<select id="queryPortReportList" resultMap="portReportVoList">
|
|
|
select port_report_id,
|
|
|
+ ship_name_cn,
|
|
|
+ ship_imo,
|
|
|
report_code,
|
|
|
report_organization,
|
|
|
report_type,
|
|
|
@@ -32,8 +36,26 @@
|
|
|
declare_date,
|
|
|
release_date,
|
|
|
release_flag
|
|
|
- from ry.bj_port_report
|
|
|
+ from bj_port_report
|
|
|
where del_flag = '0'
|
|
|
+ <if test="bo.shipImo != null and bo.shipImo != ''">
|
|
|
+ and ship_imo like concat('%',#{bo.shipImo},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.shipNameCn != null and bo.shipNameCn != ''">
|
|
|
+ and ship_came_cn like concat('%',#{bo.shipNameCn},'%')
|
|
|
+ </if>
|
|
|
+ <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>
|
|
|
+ <if test="bo.startDeclareDate != null and bo.endDeclareDate != null">
|
|
|
+ and declare_date between #{bo.startDeclareDate} and #{bo.endDeclareDate}
|
|
|
+ </if>
|
|
|
+ <if test="bo.startReleaseDate != null and bo.endReleaseDate != null">
|
|
|
+ and release_date between #{bo.startReleaseDate} and #{bo.endReleaseDate}
|
|
|
+ </if>
|
|
|
order by port_report_id,
|
|
|
RANDOM()
|
|
|
</select>
|