廖井涛
2025-09-17 774eae4b6ec65670a36ad74e561b09aca59a45c7
north-glass-erp/src/main/resources/mapper/mm/MaterialInventory.xml
@@ -632,6 +632,14 @@
        select * from mm.material_inventory where  material_code=#{materialCode} and date_of_manufacture is null  and producer=#{producer}
    </select>
    <select id="getMaterialInventoryCount1" >
        select * from mm.material_inventory where  material_code=#{materialCode} and date_of_manufacture=#{dateOfManufacture} and producer=#{producer} and id!=#{id}
    </select>
    <select id="getMaterialInventoryCountNull1" >
        select * from mm.material_inventory where  material_code=#{materialCode} and date_of_manufacture is null  and producer=#{producer} and id!=#{id}
    </select>
    <select id="getMaterialInventoryCountId" >
        select id from mm.material_inventory where  material_code=#{materialCode} and date_of_manufacture=#{dateOfManufacture} and producer=#{producer}
    </select>