提交 5d3fdce9 authored 作者: 吴德鹏's avatar 吴德鹏

属性管理

上级 69a0a048
......@@ -184,18 +184,11 @@ public class AttributesController {
@RequestMapping("/queryAttrDescs")
@ResponseBody
@IgnoreAuth
public R queryAttrDescs(@RequestParam(value = "id", required = false) String id,
@RequestParam(value = "name", required = false) String name) {
public R queryAttrDescs(@RequestParam(value = "id") String id) {
if (StringUtils.isBlank(id) && StringUtils.isBlank(name))
if (StringUtils.isBlank(id))
return R.error("参数不能为空!");
if (StringUtils.isNotBlank(name)) {
AttributesEntity attributes = attributesService.queryByAttrName(name);
id = attributes.getId();
}
Map<String, Object> map = new LinkedHashMap<>();
List<AttributesDescEntity> descs = attributesDescService.queryByAttrId(id);
List<AttributesDescVo> attributesVos = new ArrayList<>();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论