| | |
| | | </select> |
| | | |
| | | <select id="selectItem" resultType="com.zy.asrs.common.wms.entity.OrderDetl"> |
| | | select * from wms_order_detl |
| | | select top 1 * from wms_order_detl |
| | | where 1=1 |
| | | and order_id = #{orderId} |
| | | and matnr = #{matnr} |
| | |
| | | <when test="batch != null and batch != ''"> |
| | | and batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (batch IS NULL OR batch = '') |
| | | </otherwise> |
| | | <!-- <otherwise>--> |
| | | <!-- and (batch IS NULL OR batch = '')--> |
| | | <!-- </otherwise>--> |
| | | </choose> |
| | | </select> |
| | | |
| | |
| | | </choose> |
| | | </update> |
| | | |
| | | <insert id="addToLogTable"> |
| | | INSERT INTO man_order_detl_log SELECT * FROM man_order_detl WHERE id = #{id} |
| | | </insert> |
| | | </mapper> |