|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.ArrayList; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import cn.hutool.core.collection.CollUtil; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import cn.hutool.core.util.ObjectUtil; | 
|---|
|  |  |  | 
|---|
|  |  |  | private MenuMapper menuMapper; | 
|---|
|  |  |  | @Resource | 
|---|
|  |  |  | private UserMapper userMapper; | 
|---|
|  |  |  | @Resource | 
|---|
|  |  |  | private WebSetMapper webSetMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public Result getBelongInPage(AdminBelongDto adminBelongDto) { | 
|---|
|  |  |  | 
|---|
|  |  |  | 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("添加成功"); | 
|---|
|  |  |  | } | 
|---|