材料站优化

This commit is contained in:
mashuai 2025-09-17 22:02:24 +08:00
parent 9b7527b087
commit 7c31ac223b
1 changed files with 0 additions and 1 deletions

View File

@ -1448,7 +1448,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ma_type mt3 ON mt3.type_id = mt2.parent_id
LEFT JOIN ma_type mt4 ON mt4.type_id = mt3.parent_id
WHERE mt.`level` = 4 and mt.del_flag = '0'
AND IFNULL(subquery1.usNum, 0) - IFNULL(subquery3.usNum, 0) > 0
GROUP BY mt.type_id,
subquery1.proId
HAVING allNum > 0