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

属性管理

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