There is no getter for property named 'GoodInformation' in 'class com.ruoyi.warehouse.domain.MaterialManagement'
时间: 2024-04-01 12:05:20 浏览: 14
根据您提供的错误信息,看起来是在类 `com.ruoyi.warehouse.domain.MaterialManagement` 中没有名为 `GoodInformation` 的属性的 getter 方法。
要解决这个问题,您可以按照以下步骤操作:
1. 确保在 `com.ruoyi.warehouse.domain.MaterialManagement` 类中定义了名为 `GoodInformation` 的属性,并提供了对应的 getter 方法。您可以在类中添加类似以下代码:
```java
private List<GoodInformation> GoodInformation;
public List<GoodInformation> getGoodInformation() {
return GoodInformation;
}
public void setGoodInformation(List<GoodInformation> goodInformation) {
GoodInformation = goodInformation;
}
```
上述代码中,假设 `GoodInformation` 是一个类型为 `List<GoodInformation>` 的属性,并且提供了对应的 getter 和 setter 方法。
2. 确保在使用 `MaterialManagement` 类时,正确地使用了 `GoodInformation` 属性。例如,检查您的代码是否正确地设置了 `goodInformation` 属性的值,并在需要使用该属性时调用了相应的 getter 方法。
请注意,根据您的具体代码和需求,上述代码仅作为示例提供。您需要根据实际情况进行适当的修改和调整。
希望以上解答对您有所帮助。如果您还有其他问题,请随时提问。