| | |
| | | <select id="getSelectMaterialInventoryMes"> |
| | | select |
| | | mi.material_code AS materialCode, |
| | | mi.producer, |
| | | sum(mi.available_quantity) AS quantity, |
| | | JSON_UNQUOTE(JSON_EXTRACT(ms.json, '$.width')) AS width, |
| | | JSON_UNQUOTE(JSON_EXTRACT(ms.json, '$.height')) AS height, |
| | |
| | | order by mi.id desc |
| | | </select> |
| | | |
| | | <update id="updateMaterialInventoryAll" > |
| | | update mm.material_inventory set date_of_manufacture=#{materialInventory.dateOfManufacture}, |
| | | producer=#{materialInventory.producer}, |
| | | quality_guarantee_period=#{materialInventory.qualityGuaranteePeriod}, |
| | | inventory_area=#{materialInventory.inventoryArea}, |
| | | remarks=#{materialInventory.remarks}, |
| | | inventory_organization=#{materialInventory.inventoryOrganization} |
| | | where id=#{materialInventoryId} |
| | | </update> |
| | | |
| | | </mapper> |