13693261870
2025-07-02 6708810c4de34dfb9513061432d656f91d56ee3a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?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">
 
<!--    &lt;!&ndash; 通用查询映射结果 &ndash;&gt;-->
<!--    <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>-->
 
<!--    &lt;!&ndash; 通用查询结果列 &ndash;&gt;-->
<!--    <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>