提交 35167d10 authored 作者: 吴德鹏's avatar 吴德鹏

属性管理

上级 7c04a42b
...@@ -153,11 +153,7 @@ public class AttributesController { ...@@ -153,11 +153,7 @@ public class AttributesController {
List<AttributesDescEntity> descs = attributesDescService.queryByAttrId(attr.getId()); List<AttributesDescEntity> descs = attributesDescService.queryByAttrId(attr.getId());
descs.forEach(desc -> {
String attrValue = desc.getAttrValue();
String attrDesc = desc.getAttrDesc();
attrDescList.add(attrValue + "(" + attrDesc + ")");
});
attrNames.setDescList(attrDescList); attrNames.setDescList(attrDescList);
attrNameList.add(attrNames); attrNameList.add(attrNames);
......
...@@ -74,7 +74,7 @@ public class AttributesServiceImpl implements AttributesService { ...@@ -74,7 +74,7 @@ public class AttributesServiceImpl implements AttributesService {
int res = attributesDao.update(attributes); int res = attributesDao.update(attributes);
List<AttributesDescEntity> descs = attributes.getDescs(); List<AttributesDescEntity> descs = attributes.getDescs();
descs.forEach(attr -> { descs.forEach(attr -> {
if (attr.getAttrId() != null || !attr.getAttrId().isEmpty()) { if (attr.getAttrDescId() != null || !attr.getAttrDescId().isEmpty()) {
attr.setUpdateTime(date); attr.setUpdateTime(date);
attributesDescDao.update(attr); attributesDescDao.update(attr);
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论