Commit 8184f3da authored by shiyu's avatar shiyu

编辑商品替换标准件

parent ebd5bedb
......@@ -85,6 +85,15 @@ public class AdminGoodsService {
if (error != null) {
return error;
}
//如果该商品为标准件则替换原有的标准件
if (item.getIsStd()) {
//查询出该分类下原有的标准件
Item oldStanardItem = itemManager.findStandard(item.getCid());
if (oldStanardItem != null) {
itemManager.cancelStandardItem(oldStanardItem.getId());
}
}
Long id = item.getId();
Item oldItem = itemManager.findDetails(id);
oldItem.setName(item.getName());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment