| | |
| | | <if test="boxNo != null and boxNo != ''"> |
| | | and trim(box_no) = trim(#{boxNo}) |
| | | </if> |
| | | <if test="boxNo == null "> |
| | | and box_no is null |
| | | </if> |
| | | </update> |
| | | |
| | | <update id="updateInventoryquantityOut"> |
| | |
| | | <if test="boxNo != null and boxNo != ''"> |
| | | and trim(box_no) = trim(#{boxNo}) |
| | | </if> |
| | | <if test="boxNo == null "> |
| | | and box_no is null |
| | | </if> |
| | | </update> |
| | | |
| | | <update id="updateInventoryInventoryInt"> |
| | |
| | | <if test="remarks != null and remarks != ''"> |
| | | and trim(box_no) = trim(#{remarks}) |
| | | </if> |
| | | |
| | | <if test="remarks == null "> |
| | | and box_no is null |
| | | </if> |
| | | </update> |
| | | |
| | | <update id="updateInventoryInventoryOut"> |
| | |
| | | where order_number=#{orderNumber} and order_id=#{orderId} |
| | | <if test="boxNo != null and boxNo != ''"> |
| | | and trim(box_no) = trim(#{boxNo}) |
| | | </if> |
| | | <if test="boxNo == null "> |
| | | and box_no is null |
| | | </if> |
| | | |
| | | </update> |
| | |
| | | where order_number=#{orderNumber} and order_id=#{orderId} and delivery_id=#{deliveryId} |
| | | <if test="remarks != null and remarks != ''"> |
| | | and trim(box_no) = trim(#{remarks}) |
| | | </if> |
| | | <if test="remarks == null "> |
| | | and box_no is null |
| | | </if> |
| | | </update> |
| | | |
| | |
| | | select ifnull(sum(quantity),0) from sd.`delivery_detail` where delivery_id=#{deliveryId} and delivery_detail_state=#{deliveryDetailState} |
| | | </select> |
| | | |
| | | <select id="findFinishedOperateLogQuantity" > |
| | | select sum(quantity) from mm.finished_operate_log where operate_type='出库' and status='未审核' and order_id=#{orderId} |
| | | </select> |
| | | |
| | | <update id="updateOrderWarehousingState"> |
| | | update sd.`order` |
| | | set warehousing=#{state} |
| | |
| | | <if test="container != null and container != ''"> |
| | | and box_no= #{container} |
| | | </if> |
| | | <if test="container == null "> |
| | | and box_no is null |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | |
| | | where order_number=#{finishedOperateLog.operationNumber} and order_id=#{finishedOperateLog.orderId} |
| | | <if test="finishedOperateLog.remarks != null and finishedOperateLog.remarks != ''"> |
| | | and box_no=#{finishedOperateLog.remarks} |
| | | </if> |
| | | <if test="finishedOperateLog.remarks == null "> |
| | | and box_no is null |
| | | </if> |
| | | </update> |
| | | |
| | |
| | | <if test="boxNo != null and boxNo != ''"> |
| | | and box_no=#{boxNo} |
| | | </if> |
| | | |
| | | <if test="boxNo == null "> |
| | | and box_no is null |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | |
| | | where order_number = #{orderNumber} and order_id=#{orderId} |
| | | <if test="container != null and container != ''"> |
| | | and box_no=#{container} |
| | | </if> |
| | | <if test="container == null "> |
| | | and box_no is null |
| | | </if> |
| | | |
| | | </select> |
| | |
| | | <if test="boxNo != null and boxNo != ''"> |
| | | and box_no=trim(#{boxNo}) |
| | | </if> |
| | | <if test="boxNo == null "> |
| | | and box_no is null |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getSelectDeliveryDetailDeliveryId" resultMap="selectDelivery"> |