{"0":[{"name":"品牌","value":"1,2,3,4"}],"1":[{"name":"材质","value":""},{"name":"风格","value":""}],"2":[{"name":"类型","value":"运动,休闲,登山"}],"3":[{"name":"适用季节","value":"春,夏,秋,冬"}],"4":[{"name":"生产日期","value":""},{"name":"结束日期","value":""}]}
以上这种格式获取value的值
public ResponseMsg search(String str) {
String categoryName = "%"+str+"%";
List<ProCategoryEntity> proCategoryEntity = proMallService.search(categoryName);
for (ProCategoryEntity proCategoryEntity2 : proCategoryEntity) {
str1 = proCategoryEntity2.getCategoryAttr();
}