给多属性接口增加属性值的查询条件

This commit is contained in:
jishenghua
2025-04-28 11:26:04 +08:00
parent 4b83f0e2b2
commit c0d47a27d5
4 changed files with 10 additions and 4 deletions

View File

@@ -55,7 +55,8 @@ public class MaterialAttributeController extends BaseController {
public TableDataInfo getList(@RequestParam(value = Constants.SEARCH, required = false) String search,
HttpServletRequest request)throws Exception {
String attributeName = StringUtil.getInfo(search, "attributeName");
List<MaterialAttribute> list = materialAttributeService.select(attributeName);
String attributeValue = StringUtil.getInfo(search, "attributeValue");
List<MaterialAttribute> list = materialAttributeService.select(attributeName, attributeValue);
return getDataTable(list);
}