Browse Source

增加更新物料的实现方法

yujia 7 years ago
parent
commit
2ccbb13cc4

+ 19 - 0
src/main/java/com/uas/platform/b2c/prod/commodity/service/impl/ProductServiceImpl.java

@@ -2343,5 +2343,24 @@ public class ProductServiceImpl implements ProductService {
         }
 
     }
+
+
+    /**
+     * 根据临时表的数据,更新物料的信息(包装数,包装方式、成本单价)
+     *
+     * @param reList       临时表的id
+     * @param ignoreImport 1表示忽略导入,0代表覆盖导入
+     */
+    @Override
+    public void updateProductsByReleaseProductByBatch(Set<Long> reList, Integer ignoreImport) {
+        if (CollectionUtils.isNotEmpty(reList)) {
+            //忽略导入
+            if (ignoreImport == IntegerConstant.YES_SHORT) {
+                jdbcTemplate.execute("update products ");
+            } else {
+                //覆盖导入
+            }
+        }
+    }
 }