|
|
@@ -2403,17 +2403,17 @@ public class ProductServiceImpl implements ProductService {
|
|
|
if (null == productObject) {
|
|
|
return ResultMap.error(new IllegalOperatorException("物料信息不能为空"));
|
|
|
}
|
|
|
+ // 库存信息
|
|
|
+ Object goodsObject = jsonObject.get("goods");
|
|
|
+ if (null == goodsObject) {
|
|
|
+ return ResultMap.error(new IllegalOperatorException("库存信息不能为空"));
|
|
|
+ }
|
|
|
Product product = JSONObject.parseObject(productObject.toString(), Product.class);
|
|
|
// 检验物料信息
|
|
|
ResultMap resultMap = checkProductInfo(product);
|
|
|
if (Objects.equals(CodeType.ERROR.code(), resultMap.getCode())) {
|
|
|
return resultMap;
|
|
|
}
|
|
|
- // 库存信息
|
|
|
- Object goodsObject = jsonObject.get("goods");
|
|
|
- if (null == goodsObject) {
|
|
|
- return ResultMap.error(new IllegalOperatorException("库存信息不能为空"));
|
|
|
- }
|
|
|
Goods goods = JSONObject.parseObject(goodsObject.toString(), Goods.class);
|
|
|
// PCB
|
|
|
Object pcbObject = jsonObject.get("isPcb");
|