|
|
@@ -2413,7 +2413,8 @@ public class ProductServiceImpl implements ProductService {
|
|
|
product.setPbranden(product.getBrand());
|
|
|
product.setPcmpcode(product.getCmpCode());
|
|
|
product.setKind(product.getProdName());
|
|
|
- List<Product> existProducts = productDao.findProductByPcmpcodeAndPbrandenAndEnUU(product.getCmpCode(), product.getBrand(), enUU);
|
|
|
+ product.setSourceApp("B2C");
|
|
|
+ product.setCreateTime(new Date(System.currentTimeMillis()));
|
|
|
// PCB产品做标准判断处理
|
|
|
if (null != isPcb && Objects.equals(IntegerConstant.YES_SHORT, isPcb)) {
|
|
|
// 判断传入的数据是否是标准的
|
|
|
@@ -2425,6 +2426,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
Product productInfo;
|
|
|
CommodityInOutbound inOutbound = null;
|
|
|
// 物料存在,更新
|
|
|
+ List<Product> existProducts = productDao.findProductByPcmpcodeAndPbrandenAndEnUU(product.getCmpCode(), product.getBrand(), enUU);
|
|
|
if (CollectionUtils.isNotEmpty(existProducts)) {
|
|
|
productInfo = existProducts.get(0);
|
|
|
// 用户填写库存量是需要做对应的出入库。如果新填写的库存数大于原库存数,做入库。否则做出库。
|