自动化立体仓库 - WMS系统
zhou zhou
2025-12-26 44c6df2e7b14b2126b0157b07803ac83047d7829
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
<?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.TaskMapper">
 
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.Task">
        <id column="id" property="id" jdbcType="BIGINT"/>
        <result column="wrk_no" property="wrkNo" jdbcType="INTEGER"/>
        <result column="io_time" property="ioTime" jdbcType="TIMESTAMP"/>
        <result column="wrk_sts" property="wrkSts" jdbcType="BIGINT"/>
        <result column="io_type" property="ioType" jdbcType="INTEGER"/>
        <result column="task_type" property="taskType" jdbcType="VARCHAR"/>
        <result column="io_pri" property="ioPri" jdbcType="DOUBLE"/>
        <result column="crn_no" property="crnNo" jdbcType="INTEGER"/>
        <result column="source_sta_no" property="sourceStaNo" jdbcType="VARCHAR"/>
        <result column="sta_no" property="staNo" jdbcType="VARCHAR"/>
        <result column="source_loc_no" property="sourceLocNo" jdbcType="VARCHAR"/>
        <result column="loc_no" property="locNo" jdbcType="VARCHAR"/>
        <result column="full_plt" property="fullPlt" jdbcType="VARCHAR"/>
        <result column="picking" property="picking" jdbcType="VARCHAR"/>
        <result column="exit_mk" property="exitMk" jdbcType="VARCHAR"/>
        <result column="empty_mk" property="emptyMk" jdbcType="VARCHAR"/>
        <result column="link_mis" property="linkMis" jdbcType="VARCHAR"/>
        <result column="barcode" property="barcode" jdbcType="VARCHAR"/>
        <result column="appe_user" property="appeUser" jdbcType="BIGINT"/>
        <result column="appe_time" property="appeTime" jdbcType="TIMESTAMP"/>
        <result column="modi_user" property="modiUser" jdbcType="BIGINT"/>
        <result column="modi_time" property="modiTime" jdbcType="TIMESTAMP"/>
        <result column="error_time" property="errorTime" jdbcType="TIMESTAMP"/>
        <result column="upd_mk" property="updMk" jdbcType="VARCHAR"/>
 
 
 
    </resultMap>
 
 
    <select id="selectToBeCompleteData" resultMap="BaseResultMap">
        select * from agv_task where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type != 103 and io_type != 104 and io_type != 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,error_time,io_time,wrk_no
    </select>
 
 
    <select id="selectToBeHistoryData" resultMap="BaseResultMap">
        select * from agv_task
        where wrk_sts=5 or wrk_sts=15
        order by io_time,wrk_no asc
    </select>
</mapper>