| | |
| | | t2.supplier_name, |
| | | t2.product_category, |
| | | t1.id, |
| | | t1.code, |
| | | t2.specification_model, |
| | | t2.unit, |
| | | t2.tax_rate, |
| | |
| | | t1.inbound_num, |
| | | t1.create_time, |
| | | t1.create_by, |
| | | t2.item_type |
| | | t2.item_type, |
| | | t2.code |
| | | from procurement_record_out t1 |
| | | left join custom_storage t2 on t2.id = t1.procurement_record_storage_id |
| | | <where> |
| | |
| | | </where> |
| | | order by t1.create_time desc |
| | | </select> |
| | | |
| | | <select id="getSumQuantity" resultType="BigDecimal"> |
| | | select sum(inbound_num) |
| | | from procurement_record_out |
| | | where type = 1 |
| | | and product_model_id = #{productModelId} |
| | | </select> |
| | | </mapper> |