台账查询问题修复

This commit is contained in:
马三炮 2026-02-04 14:53:41 +08:00
parent adacebec13
commit 0a9bb04bb8
1 changed files with 2 additions and 1 deletions

View File

@ -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