|
|
@@ -632,7 +632,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Component validitonStandard(JSONObject jsonObject) {
|
|
|
+ public ResultMap validitonStandard(JSONObject jsonObject) {
|
|
|
Component component = (Component)jsonObject.get("component");
|
|
|
if (component == null || component.getCode() == null)
|
|
|
throw new IllegalOperatorException("请填写器件原厂型号");
|
|
|
@@ -659,10 +659,12 @@ public class ProductServiceImpl implements ProductService {
|
|
|
submit.setDefinetime(new Date());
|
|
|
submit.setIsUpdate(0);
|
|
|
submit.setKindid(kind.getId());
|
|
|
-
|
|
|
componentSubmitDao.save(submit);
|
|
|
+
|
|
|
+ return ResultMap.success("提交申请成功,请等待审核结果");
|
|
|
+ } else {
|
|
|
+ return ResultMap.success("已存在此器件");
|
|
|
}
|
|
|
- return null;
|
|
|
}
|
|
|
}
|
|
|
|