| | |
| | | <?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.WrkMastMapper"> |
| | | <mapper namespace="com.zy.mapper.WrkMastMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.WrkMast"> |
| | | <resultMap id="BaseResultMap" type="com.zy.entity.WrkMast"> |
| | | <id column="wrk_no" property="wrkNo" /> |
| | | <result column="inv_wh" property="invWh" /> |
| | | <result column="ymd" property="ymd" /> |
| | |
| | | </select> |
| | | |
| | | <select id="selectByLocNo1" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} or loc_no = #{sourceLocNo}) |
| | | select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} or loc_no = #{sourceLocNo} |
| | | </select> |
| | | |
| | | <select id="selectToBeCompleteData" resultMap="BaseResultMap"> |
| | |
| | | |
| | | <select id="selectPakInStep1" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=2 and barcode=#{barcode} and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC |
| | | </select> |
| | | <select id="selectPakInStepBarcode" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.asr_wrk_mast where barcode = #{barcode} |
| | | </select> |
| | | |
| | | <select id="selectPakInStep11" resultMap="BaseResultMap"> |
| | |
| | | </select> |
| | | |
| | | <select id="selectPakOutStep2" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=12 and io_type>100 order by io_pri desc,io_time desc,wrk_no ASC |
| | | select top 1 * from dbo.asr_wrk_mast where source_sta_no=#{sourceStaNo} and (wrk_sts=12 or wrk_sts = 16) and io_type>100 order by io_pri desc,io_time desc,wrk_no ASC |
| | | </select> |
| | | |
| | | <select id="selectLocMove" resultMap="BaseResultMap"> |
| | |
| | | and source_sta_no = #{sourceStaNo} |
| | | order by io_time,wrk_no |
| | | </select> |
| | | <select id="selectPakoutEmpty" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.asr_wrk_mast where io_type = 110 and sta_no = #{staNo} order by io_time,wrk_no |
| | | </select> |
| | | <select id="selectPickStep2" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_wrk_mast where barcode = #{barcode} and (wrk_sts=14 and io_type=107) or (wrk_sts=2 and io_type=57) |
| | | </select> |
| | | <select id="selectByWrkNo" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast |
| | | where wrk_no = #{wrkNo} |
| | | </select> |
| | | <select id="selectBy104" resultType="com.zy.entity.WrkMast"> |
| | | select top 1 * from asr_wrk_mast awm where awm.sta_no = 104 and awm.wrk_sts = 11 order by awm.appe_time |
| | | </select> |
| | | </mapper> |