|
|
@@ -452,6 +452,7 @@ public class BaseInfoServiceImpl implements BaseInfoService {
|
|
|
map.put("error", "物料已存在");
|
|
|
map.put("id", products.get(0).getId());
|
|
|
} else {
|
|
|
+ prodInfo.setStandard(Constant.NO);
|
|
|
if (prodInfo.getCmpCode() != null && prodInfo.getBrand() != null && prodInfo.getTitle() != null) {
|
|
|
List<Component> cmps = componentDao.findByCode(prodInfo.getCmpCode());
|
|
|
if (!CollectionUtils.isEmpty(cmps)) {
|
|
|
@@ -479,7 +480,6 @@ public class BaseInfoServiceImpl implements BaseInfoService {
|
|
|
prodInfo.setStandard(Constant.NO);
|
|
|
}
|
|
|
prodInfo.setEnUU(SystemSession.getUser().getEnterprise().getUu());
|
|
|
- prodInfo.setStandard(Constant.NO);
|
|
|
prodInfo = productDao.save(prodInfo);
|
|
|
map.put("id", prodInfo.getId());
|
|
|
map.put("success", "物料添加成功");
|