| | |
| | | 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()){ |