|
|
@@ -381,7 +381,8 @@ public class ProductServiceImpl implements ProductService {
|
|
|
if (productId == null) {
|
|
|
return false;
|
|
|
}
|
|
|
- Date date = new Date(System.currentTimeMillis());
|
|
|
+ Date date = new Date();
|
|
|
+ // 删除原有的替代料数据
|
|
|
List<ProductReplace> productReplacesOld = productReplaceDao.findByUserUUAndProductId(SystemSession.getUser().getUserUU(), productId);
|
|
|
productReplaceDao.delete(productReplacesOld);
|
|
|
for (ProductReplace productReplace : productReplaceList) {
|