<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.ruoyi.manage.mapper.DsTaskListMapper">
|
|
<!-- <!– 通用查询映射结果 –>-->
|
<!-- <resultMap id="BaseResultMap" type="com.ruoyi.manage.domain.DsTaskList">-->
|
<!-- <id column="PKID" property="pkid" />-->
|
<!-- <result column="TASK_ID" property="taskId" />-->
|
<!-- <result column="SHIP_NO" property="shipNo" />-->
|
<!-- <result column="SHIP_TYPE" property="shipType" />-->
|
<!-- <result column="TONNAGE" property="tonnage" />-->
|
<!-- <result column="DRAFT" property="draft" />-->
|
<!-- <result column="LEADER" property="leader" />-->
|
<!-- <result column="STAFF" property="staff" />-->
|
<!-- <result column="GRP_NAME" property="grpName" />-->
|
<!-- <result column="LEVEL" property="level" />-->
|
<!-- <result column="LAT" property="lat" />-->
|
<!-- <result column="LON" property="lon" />-->
|
<!-- <result column="DEL_FLAG" property="delFlag" />-->
|
<!-- <result column="CREATE_BY" property="createBy" />-->
|
<!-- <result column="CREATE_TIME" property="createTime" />-->
|
<!-- <result column="UPDATE_BY" property="updateBy" />-->
|
<!-- <result column="UPDATE_TIME" property="updateTime" />-->
|
<!-- <result column="OIL_B" property="oilB" />-->
|
<!-- <result column="OIL_G" property="oilG" />-->
|
<!-- <result column="OIL_A" property="oilA" />-->
|
<!-- <result column="AMMO_D" property="ammoD" />-->
|
<!-- <result column="AMMO_P" property="ammoP" />-->
|
<!-- <result column="AMMO_S" property="ammoS" />-->
|
<!-- <result column="AMMO_O" property="ammoO" />-->
|
<!-- <result column="WATER" property="water" />-->
|
<!-- <result column="WATER_P" property="waterP" />-->
|
<!-- <result column="FOOD" property="food" />-->
|
<!-- <result column="FOOD_W" property="foodW" />-->
|
<!-- <result column="FOOD_O" property="foodO" />-->
|
<!-- <result column="P_S_TIME" property="pSTime" />-->
|
<!-- <result column="P_E_TIME" property="pETime" />-->
|
<!-- <result column="STATUS" property="status" />-->
|
<!-- <result column="HARBOR_ID" property="harborId" />-->
|
<!-- <result column="HARBOR_NAME" property="harborName" />-->
|
<!-- <result column="BERTH_ID" property="berthId" />-->
|
<!-- <result column="BERTH_NAME" property="berthName" />-->
|
<!-- <result column="PARKING_TYPE" property="parkingType" />-->
|
<!-- <result column="REMARK" property="remark" />-->
|
<!-- <result column="DEPT_ID" property="deptId" />-->
|
<!-- <result column="DEPT_NAME" property="deptName" />-->
|
<!-- <result column="POS_AREA" property="posArea" />-->
|
<!-- <result column="SHIP_LEN" property="shipLen" />-->
|
<!-- </resultMap>-->
|
|
<!-- <!– 通用查询结果列 –>-->
|
<!-- <sql id="Base_Column_List">-->
|
<!-- TASK_ID, SHIP_NO, SHIP_TYPE, TONNAGE, DRAFT, LEADER, STAFF, GRP_NAME, LEVEL, LAT, LON, DEL_FLAG, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, OIL_B, OIL_G, OIL_A, AMMO_D, AMMO_P, AMMO_S, AMMO_O, WATER, WATER_P, FOOD, FOOD_W, FOOD_O, P_S_TIME, P_E_TIME, STATUS, HARBOR_ID, HARBOR_NAME, BERTH_ID, BERTH_NAME, PARKING_TYPE, PKID, REMARK, DEPT_ID, DEPT_NAME, POS_AREA, SHIP_LEN-->
|
<!-- </sql>-->
|
|
<select id="getTotal" resultType="java.lang.Integer">
|
select count(1) from DS_TASK_LIST
|
</select>
|
|
<select id="getPageList" resultType="com.ruoyi.manage.domain.DsTaskList">
|
select * from DS_TASK_LIST
|
<where>
|
<if test="shipType != null and shipType != ''">
|
and SHIP_TYPE LIKE CONCAT('%', #{shipType}, '%')
|
</if>
|
<if test="shipNo != null and shipNo != ''">
|
and SHIP_NO LIKE CONCAT('%', #{shipNo}, '%')
|
</if>
|
</where>
|
order by PKID DESC limit #{pageSize} offset #{offset}
|
</select>
|
|
<select id="getTotalDaily" resultType="java.lang.Integer">
|
select count(1) from DS_TASK_LIST where TASK_ID = 999
|
</select>
|
|
<select id="getPageListDaily" resultType="com.ruoyi.manage.domain.DsTaskList">
|
select * from DS_TASK_LIST
|
<where>
|
and TASK_ID = 999
|
<if test="shipType != null and shipType != ''">
|
and SHIP_TYPE LIKE CONCAT('%', #{shipType}, '%')
|
</if>
|
<if test="shipNo != null and shipNo != ''">
|
and SHIP_NO LIKE CONCAT('%', #{shipNo}, '%')
|
</if>
|
</where>
|
order by PKID DESC limit #{pageSize} offset #{offset}
|
</select>
|
|
</mapper>
|