我有一个来自PrimeNG的p-orderList,它显示JSON对象的列表,还有一个p-dropDown,它从listedObjects读取属性并显示所有可能的选项。我需要过滤orderList,这样当没有选择任何东西时,它会显示所有可能的选项,或者过滤它只显示所选的种类。 我已经填充了下拉列表,并触发了更改。我还可以使用函数中内置的类型脚本进行过滤。我不知道该怎么做是把它连接回orderList。任何帮助都是非常感谢的。style="display: flex; justify-content: center
我试图将order1对象添加到Customer类中的orderList中,但它不起作用。toString()方法在ArrayList中返回零个项。有没有人知道我还可以尝试做些什么?public class Customer { private int numberOfOrderspublic Customer(String name, Order firstElementInList) {
total by multiplying the price and quantity and store it in OrderModel by adding the record into the Orderlist*/ List<OrderModel> Orderlisttotal by multiplying the price and quantity and store