xin
2025-10-17 ab0637e981ab4c85120ccde35ee24ec4abbe3e24
oying-system/src/main/java/com/oying/modules/pc/product/service/impl/ProductServiceImpl.java
@@ -66,6 +66,18 @@
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void update(Product resources, boolean isDirectUpdate) {
        if (isDirectUpdate) {
            productMapper.updateById(resources);
        } else {
            Product product = getById(resources.getProductId());
            product.copy(resources);
            productMapper.updateById(product);
        }
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void deleteAll(List<Long> ids) {
        for (Long id : ids) {
            LambdaUpdateWrapper<Product> wrapper = new LambdaUpdateWrapper<Product>()