| | |
| | | <!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"/> |
| | | |
| | | <select id="selectToBeCompleteData" resultType="com.zy.asrs.entity.Task"> |
| | | |
| | | |
| | | </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> |