| | |
| | | AND io.id = #{id} |
| | | LIMIT 1 |
| | | </select> |
| | | <select id="selectOrderInfoByIds" resultType="java.util.Map"> |
| | | select |
| | | io.sample_type AS sampleType, |
| | | io.part_detail AS partDetail, |
| | | GROUP_CONCAT(iiq.update_batch_no SEPARATOR '、') AS updateBatchNo, |
| | | SUM(iiq.pur_qty_in_store) AS qtyArrived, |
| | | iiq.buy_unit_meas AS buyUnitMeas, |
| | | iiq.supplier_name AS supplierName, |
| | | DATE_FORMAT(io.send_time,'%Y-%m-%d') AS sendTime |
| | | from ins_order io left join ifs_inventory_quantity iiq on io.ifs_inventory_id=iiq.id |
| | | where io.state !=-1 |
| | | AND io.id in |
| | | <foreach collection="selectOrderIds" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |