xiangpei
2024-03-06 ffb365d67f1336fda08710f1cf7ae95b6c2d8952
ycl-server/src/main/java/com/ycl/platform/service/impl/YwPointServiceImpl.java
@@ -49,6 +49,18 @@
        return Result.error("添加失败");
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public Result batchAdd(List<YwPointForm> formList) {
        formList.stream()
                .forEach(form -> {
                    YwPoint entity = YwPointForm.getEntityByForm(form, null);
                    entity.setStatus("未开始");
                    baseMapper.insert(entity);
                });
        return Result.ok("添加成功");
    }
    /**
     * 修改
     * @param form