| | |
| | | and iiq.supplier_name = #{supplierName} |
| | | and iiq.receiver_date between #{startOfNextQuarter} and #{endOfQuarter} |
| | | </select> |
| | | <select id="selectSplitOrderList" resultType="com.ruoyi.basic.vo.IfsInventoryQuantityVO"> |
| | | select |
| | | iiq.*, |
| | | io.id AS ins_order_id, |
| | | io.ins_result, |
| | | isor.sync_status |
| | | from ifs_inventory_quantity iiq |
| | | join ifs_split_order_record isor |
| | | on iiq.update_batch_no = isor.lot_batch_no |
| | | and iiq.order_no=isor.order_no |
| | | and iiq.line_no=isor.line_no |
| | | and iiq.release_no=isor.release_no |
| | | and iiq.receipt_no=isor.receipt_no |
| | | and iiq.part_no=isor.part_no |
| | | left join ins_order io on iiq.id=io.ifs_inventory_id |
| | | where iiq.order_no=#{orderNo} |
| | | and iiq.part_no=#{partNo} |
| | | and iiq.line_no=#{lineNo} |
| | | and iiq.release_no=#{releaseNo} |
| | | and iiq.receipt_no=#{receiptNo} |
| | | and iiq.is_split_order=1 |
| | | and (iiq.is_finish != 1 or isor.sync_status != 1) |
| | | and (io.id is null or io.is_exemption != 1) |
| | | </select> |
| | | </mapper> |