|
|
@@ -5,24 +5,73 @@
|
|
|
<mapper namespace="com.ruoyi.business.mapper.BjTrackShipsMapper">
|
|
|
<resultMap id="trackShipsVoList" type="com.ruoyi.business.domain.vo.BjTrackShipsVo">
|
|
|
<result property="trackShipsId" column="track_ships_id"/>
|
|
|
- <result property="shipId" column="ship_id"/>
|
|
|
<result property="shipNameCn" column="ship_name_cn"/>
|
|
|
+ <result property="shipNameEn" column="ship_name_en"/>
|
|
|
+ <result property="shipId" column="ship_id"/>
|
|
|
+ <result property="shipFirstregNo" column="ship_firstreg_no"/>
|
|
|
+ <result property="shipImo" column="ship_imo"/>
|
|
|
+ <result property="icCardNo" column="ic_card_no"/>
|
|
|
<result property="nationality" column="nationality"/>
|
|
|
- <result property="traceReason" column="deletionReason"/>
|
|
|
+ <result property="regportName" column="regport_name"/>
|
|
|
+ <result property="shipType" column="ship_type"/>
|
|
|
+ <result property="traceUnit" column="trace_unit"/>
|
|
|
+ <result property="traceStatus" column="trace_status"/>
|
|
|
+ <result property="auditStatus" column="audit_status"/>
|
|
|
+ <result property="addOrganization" column="add_organization"/>
|
|
|
+ <result property="traceReason" column="trace_reason"/>
|
|
|
+ <result property="traceDate" column="trace_date"/>
|
|
|
+ <result property="removeOrganization" column="remove_organization"/>
|
|
|
+ <result property="breakDate" column="break_date"/>
|
|
|
<result property="releaseDate" column="release_date"/>
|
|
|
<result property="releaseFlag" column="release_flag"/>
|
|
|
</resultMap>
|
|
|
<select id="queryTrackShipsList" resultMap="trackShipsVoList">
|
|
|
select track_ships_id,
|
|
|
- ship_id,
|
|
|
ship_name_cn,
|
|
|
+ ship_name_en,
|
|
|
+ ship_id,
|
|
|
+ ship_firstreg_no,
|
|
|
+ ship_imo,
|
|
|
+ ic_card_no,
|
|
|
nationality,
|
|
|
regport_name,
|
|
|
+ ship_type,
|
|
|
+ trace_unit,
|
|
|
+ trace_status,
|
|
|
+ audit_status,
|
|
|
+ add_organization,
|
|
|
trace_reason,
|
|
|
+ trace_date,
|
|
|
+ remove_organization,
|
|
|
+ break_date,
|
|
|
release_date,
|
|
|
release_flag
|
|
|
- from ry.bj_track_ships
|
|
|
+ from bj_track_ships
|
|
|
where del_flag = '0'
|
|
|
+ <if test="bo.shipNameCn != null and bo.shipNameCn != ''">
|
|
|
+ and ship_came_cn like concat('%',#{bo.shipNameCn},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.shipNameEn != null and bo.shipNameEn != ''">
|
|
|
+ and ship_came_en like concat('%',#{bo.shipNameEn},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.shipId != null and bo.shipId != ''">
|
|
|
+ and ship_id like concat('%',#{bo.shipId},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.shipFirstregNo != null and bo.shipFirstregNo != ''">
|
|
|
+ and ship_firstreg_no like concat('%',#{bo.shipFirstregNo},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.shipImo != null and bo.shipImo != ''">
|
|
|
+ and ship_imo like concat('%',#{bo.shipImo},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.icCardNo != null and bo.icCardNo != ''">
|
|
|
+ and ic_card_no like concat('%',#{bo.icCardNo},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.startCheckDate != null and bo.endCheckDate != null">
|
|
|
+ and check_date between #{bo.startCheckDate} and #{bo.endCheckDate}
|
|
|
+ </if>
|
|
|
+ <if test="bo.startTraceDate != null and bo.endTraceDate != null">
|
|
|
+ and trace_date between #{bo.startTraceDate} and #{bo.endTraceDate}
|
|
|
+ </if>
|
|
|
order by track_ships_id,
|
|
|
RANDOM()
|
|
|
</select>
|