diff --git a/src/main/resources/mappers/business/backstage/InventoryCountMapper.xml b/src/main/resources/mappers/business/backstage/InventoryCountMapper.xml index b717a63..1acd986 100644 --- a/src/main/resources/mappers/business/backstage/InventoryCountMapper.xml +++ b/src/main/resources/mappers/business/backstage/InventoryCountMapper.xml @@ -13,8 +13,9 @@ SUM(o.need_num) AS needNum, -- 需求数量 SUM(o.cg_num + o.lk_num) as totalCk, -- 总出库数量 (SELECT price FROM st_contract_type sct + JOIN st_plan_out_details o ON sct.model_id = o.model_id JOIN st_plan_out_sup spos ON spos.details_id = o.id - WHERE sct.model_id = o.model_id LIMIT 1) as price + LIMIT 1) as price FROM st_plan_out_details o JOIN