chen.lin
7 分钟以前 f574055ed80a64cbccd601b200afc437a87b52eb
rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/BasContainerController.java
@@ -82,8 +82,10 @@
        basContainer.setCreateTime(new Date());
        basContainer.setUpdateBy(getLoginUserId());
        basContainer.setUpdateTime(new Date());
        BasContainer container = basContainerService.getOne(new LambdaQueryWrapper<BasContainer>().eq(BasContainer::getContainerType, basContainer.getContainerType()));
        if (null != container) {
        long count = basContainerService.count(new LambdaQueryWrapper<BasContainer>()
                .eq(BasContainer::getContainerType, basContainer.getContainerType())
                .eq(BasContainer::getDeleted, 0));
        if (count > 0) {
            return R.error("该类型已被初始化");
        }
        if (null !=basContainer.getAreaIds()){