xiaoyong931011
2022-06-13 56eded01813a06ea1048b42919af021900e5f813
src/main/java/com/xcong/farmer/cms/modules/system/service/Impl/WebSetServiceImpl.java
@@ -46,18 +46,11 @@
        UserEntity userlogin = LoginUserUtil.getLoginUser();
        long belongId = userlogin.getBelongId() == null ? UserEntity.USER_BELONG_TOP : userlogin.getBelongId();
        String webTitle = adminUpdateWebSetDto.getWebTitle();
        if(StrUtil.isEmpty(webTitle)){
            return Result.fail("请输入网页标题");
        }
        String webKeyword = adminUpdateWebSetDto.getWebKeyword();
        if(StrUtil.isEmpty(webKeyword)){
            return Result.fail("请输入网页关键字");
        }
        Long id = adminUpdateWebSetDto.getId() == null ? 0L : adminUpdateWebSetDto.getId();
        QueryWrapper<WebSetEntity> objectQueryWrapper = new QueryWrapper<>();
        objectQueryWrapper.eq("belong_id",belongId);
        WebSetEntity webSetEntity = this.baseMapper.selectOne(objectQueryWrapper);
//        WebSetEntity webSetEntity = this.baseMapper.selectById(id);
        if(ObjectUtil.isEmpty(webSetEntity)){
            WebSetEntity webSetEntityAdd = new WebSetEntity();
            webSetEntityAdd.setWebTitle(webTitle);