| | |
| | | 0 as qualifiedLockedQuantity, |
| | | COALESCE(su.locked_quantity, 0) as unQualifiedLockedQuantity, |
| | | su.product_model_id, |
| | | null as warehouse_info_id, |
| | | null as warehouse_name, |
| | | su.warehouse_info_id, |
| | | siw.warehouse_name, |
| | | su.create_time, |
| | | su.update_time, |
| | | 0 as warn_num, |
| | |
| | | from stock_uninventory su |
| | | left join product_model pm on su.product_model_id = pm.id |
| | | left join product p on pm.product_id = p.id |
| | | left join stock_warehouse_info siw on su.warehouse_info_id = siw.id |
| | | ) as combined |
| | | <where> |
| | | <if test="ew.productName != null and ew.productName !=''"> |