台账查询问题修复
This commit is contained in:
parent
adacebec13
commit
0a9bb04bb8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue