| <?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.BasArmMastMapper"> | 
|   | 
|     <!-- 通用查询映射结果 --> | 
|     <resultMap id="BaseResultMap" type="com.zy.asrs.entity.BasArmMast"> | 
|         <id column="id" property="id" /> | 
|         <result column="arm_no" property="armNo" /> | 
|         <result column="arm_direction" property="armDirection" /> | 
|         <result column="sta_no" property="staNo" /> | 
|         <result column="sorting_line" property="sortingLine" /> | 
|         <result column="binding_tags" property="bindingTags" /> | 
|         <result column="priority" property="priority" /> | 
|         <result column="status" property="status" /> | 
|         <result column="matnr" property="matnr" /> | 
|         <result column="sku" property="sku" /> | 
|         <result column="po" property="po" /> | 
|         <result column="upc" property="upc" /> | 
|         <result column="supplier" property="supplier" /> | 
|         <result column="order_no" property="orderNo" /> | 
|         <result column="ctns" property="ctns" /> | 
|         <result column="create_time" property="createTime" /> | 
|         <result column="arm_error" property="armError" /> | 
|         <result column="arm_msg" property="armMsg" /> | 
|         <result column="barcode" property="barcode" /> | 
|   | 
|     </resultMap> | 
|   | 
|     <resultMap id="BaseResultMapOrderDetlValue" type="com.zy.asrs.entity.result.OrderDetlValueResultUtil"> | 
|         <result column="man_length" property="length" /> | 
|         <result column="width" property="width" /> | 
|         <result column="height" property="height" /> | 
|         <result column="weight" property="weight" /> | 
|         <result column="anfme" property="anfme" /> | 
|   | 
|     </resultMap> | 
|   | 
|     <update id="updateArmMastStatus"> | 
|         update asr_bas_arm_mast | 
|         set status = #{endStatus} | 
|         where 1=1 | 
|           and arm_no = #{armNo} | 
|           and sorting_line = #{sortingLine} | 
|           and status = #{status} | 
|     </update> | 
|   | 
|     <select id="selectOrderDetlAndSku" parameterType="java.util.Map" resultType="java.lang.Double"> | 
|         select | 
|         anfme | 
|         from man_order_detl | 
|         where 1=1 | 
|           and order_no = #{orderNo} | 
|           and matnr = #{sku} | 
|     </select> | 
|   | 
|     <select id="selectOrderDetlValue" resultMap="BaseResultMapOrderDetlValue"> | 
|         select top 1 | 
|             d.man_length,d.width,d.height,d.weight,d.anfme | 
|         from man_order_detl d | 
|         where 1=1 | 
|           and d.order_no = #{orderNo} | 
|           and d.matnr = #{sku} | 
|     </select> | 
|   | 
|   | 
|   | 
|     <select id="selectBasArmMastSignValue" resultType="java.lang.Double"> | 
|         select top 1 | 
|         d.anfme | 
|         from asr_bas_arm_mast_sign d | 
|         where 1=1 | 
|         and d.order_no = #{orderNo} | 
|         and d.sku = #{sku} | 
|         and d.create_time = #{bindingTags} | 
|     </select> | 
|   | 
| </mapper> |