fix
Helius
2022-07-12 3dc1ca272294451ba48277e201a22d596d10e645
fix
2 files modified
47 ■■■■ changed files
README.md 35 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/farmer/cms/modules/system/service/Impl/CompanyServiceImpl.java 12 ●●●●● patch | view | raw | blame | history
README.md
@@ -1,35 +1,6 @@
# kss-framework
# Farmer-CMS
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1.  xxxx
2.  xxxx
3.  xxxx
#### 使用说明
1.  mapstruct
https://mapstruct.org/documentation/stable/reference/html/
2.  mybatis-plus
https://mybatis.plus/guide/#%E7%89%B9%E6%80%A7
3.  参数校验
https://mp.weixin.qq.com/s/yRuLmtUkARG3OziHB9dJPw
#### 参与贡献
1.  Fork 本仓库
2.  新建 Feat_xxx 分支
3.  提交代码
4.  新建 Pull Request
#### 待开发
中英文切换、手机端
src/main/java/com/xcong/farmer/cms/modules/system/service/Impl/CompanyServiceImpl.java
@@ -11,10 +11,7 @@
import com.xcong.farmer.cms.modules.system.dto.AdminBelongDto;
import com.xcong.farmer.cms.modules.system.dto.AdminDeleteDto;
import com.xcong.farmer.cms.modules.system.dto.AdminUpdateCompanyDto;
import com.xcong.farmer.cms.modules.system.entity.CompanyEntity;
import com.xcong.farmer.cms.modules.system.entity.MenuEntity;
import com.xcong.farmer.cms.modules.system.entity.RoleEntity;
import com.xcong.farmer.cms.modules.system.entity.UserEntity;
import com.xcong.farmer.cms.modules.system.entity.*;
import com.xcong.farmer.cms.modules.system.mapper.*;
import com.xcong.farmer.cms.modules.system.service.ICompanyService;
import com.xcong.farmer.cms.modules.system.util.LoginUserUtil;
@@ -25,6 +22,7 @@
import java.util.ArrayList;
import java.util.List;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
@@ -46,6 +44,8 @@
    private MenuMapper menuMapper;
    @Resource
    private UserMapper userMapper;
    @Resource
    private WebSetMapper webSetMapper;
    @Override
    public Result getBelongInPage(AdminBelongDto adminBelongDto) {
@@ -84,6 +84,10 @@
            companyEntity.setRemark(remark);
        String pic = adminAddCompanyDto.getPic();
            companyEntity.setPic(pic);
        WebSettingEntity webSettingEntity = new WebSettingEntity();
        webSettingEntity.setCompanyId(companyEntity.getId());
        this.webSetMapper.insert(webSettingEntity);
        this.baseMapper.insert(companyEntity);
        return Result.ok("添加成功");
    }