cpT
2025-06-19 c1ef2d1fc4c0dae2bc8452924dcd77a0ff3a1ef5
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
<?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.zy.asrs.mapper.TaskWrkLogMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.TaskWrkLog">
        <result column="TASK_NO" property="taskNo" />
        <result column="STATUS" property="status" />
        <result column="WRK_NO" property="wrkNo" />
        <result column="CREATE_TIME" property="createTime" />
        <result column="IO_TYPE" property="ioType" />
        <result column="IO_PRI" property="ioPri" />
        <result column="START_POINT" property="startPoint" />
        <result column="TARGET_POINT" property="targetPoint" />
        <result column="MODI_USER" property="modiUser" />
        <result column="MODI_TIME" property="modiTime" />
        <result column="MEMO" property="memo" />
        <result column="BARCODE" property="barcode" />
        <result column="ASSIGN_TIME" property="assignTime" />
        <result column="EXECUTE_TIME" property="executeTime" />
        <result column="COMPLETE_TIME" property="completeTime" />
        <result column="CANCEL_TIME" property="cancelTime" />
        <result column="WRK_STS" property="wrkSts" />
        <result column="CRN_NO" property="crnNo" />
        <result column="TRANSFER_MARK" property="transferMark" />
 
    </resultMap>
 
    <sql id="batchSeq">
        <if test="wrkNo != null">
            and WRK_NO = #{wrkNo}
        </if>
        <if test="taskNo != null">
            and TASK_NO = #{taskNo}
        </if>
        <if test="status != null">
            and STATUS = #{status}
        </if>
        <if test="modiTimeStart != null ">
            <if test="modiTimeEnd != null ">
                and MODI_TIME between #{modiTimeStart} and #{modiTimeEnd}
            </if>
        </if>
    </sql>
 
 
    <select id="selectTaskWrkLogList" resultMap="BaseResultMap">
        SELECT * FROM "SOURCE"."wcs_task_wrk_log"
        WHERE 1=1
        <include refid="batchSeq"></include>
        ORDER BY CREATE_TIME DESC
        LIMIT #{pageSize} OFFSET ((#{pageNumber} - 1) * #{pageSize});
    </select>
 
    <select id="selectTaskWrkLogListTotal" resultType="Long">
        SELECT count(1) FROM "SOURCE"."wcs_task_wrk_log"
        WHERE 1=1
        <include refid="batchSeq"></include>
    </select>
 
</mapper>