|
|
|
@ -1,11 +1,16 @@
|
|
|
|
|
package cn.iocoder.yudao.module.system.controller.admin.enterprise; |
|
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils; |
|
|
|
|
import cn.iocoder.yudao.module.infra.api.file.FileApi; |
|
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.taglibrary.vo.TagLibraryPageReqVO; |
|
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.taglibrary.vo.TagLibraryRespVO; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.enterpriseauditlog.EnterpriseAuditLogDO; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.enterprisetag.EnterpriseTagDO; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.fileInfo.FileInfoDO; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.qualification.EnterpriseQualificationDO; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.taglibrary.TagLibraryDO; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.mysql.enterpriseauditlog.EnterpriseAuditLogMapper; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.mysql.enterprisetag.EnterpriseTagMapper; |
|
|
|
|
import cn.iocoder.yudao.module.system.dal.mysql.fileInfo.FileInfoMapper; |
|
|
|
@ -14,6 +19,7 @@ import cn.iocoder.yudao.module.system.dal.mysql.taglibrary.TagLibraryMapper;
|
|
|
|
|
import cn.iocoder.yudao.module.system.service.fileInfo.FileInfoService; |
|
|
|
|
import cn.iocoder.yudao.module.system.service.qualification.EnterpriseQualificationService; |
|
|
|
|
import cn.iocoder.yudao.module.system.service.taglibrary.TagLibraryService; |
|
|
|
|
import cn.iocoder.yudao.module.system.service.user.AdminUserService; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
@ -68,6 +74,8 @@ public class EnterpriseController {
|
|
|
|
|
private TagLibraryMapper tagLibraryMapper; |
|
|
|
|
@Resource |
|
|
|
|
private EnterpriseTagMapper enterpriseTagMapper; |
|
|
|
|
@Resource |
|
|
|
|
private AdminUserService adminUserService; |
|
|
|
|
|
|
|
|
|
@PostMapping("/create") |
|
|
|
|
@Operation(summary = "创建企业") |
|
|
|
@ -122,6 +130,18 @@ public class EnterpriseController {
|
|
|
|
|
return success(BeanUtils.toBean(enterprise, EnterpriseRespVO.class)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/pcpage") |
|
|
|
|
@Operation(summary = "电脑端获得企业标签分页") |
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:tag-library:query')") |
|
|
|
|
public CommonResult<PageResult<EnterpriseRespVO>> getTagLibraryPcPage(EnterprisePageReqVO pageReqVO) { |
|
|
|
|
PageResult<EnterpriseDO> pageResult = enterpriseService.getEnterprisePage(pageReqVO); |
|
|
|
|
pageResult.getList().forEach(item->{ |
|
|
|
|
item.setInviterName(adminUserService.getUser(Long.valueOf(item.getUserId())).getNickname()); |
|
|
|
|
}); |
|
|
|
|
return success(BeanUtils.toBean(pageResult, EnterpriseRespVO.class)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/page") |
|
|
|
|
@Operation(summary = "获得企业分页") |
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:enterprise:query')") |
|
|
|
@ -195,6 +215,9 @@ public class EnterpriseController {
|
|
|
|
|
return success(BeanUtils.toBean(pageResult, EnterpriseRespVO.class)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/export-excel") |
|
|
|
|
@Operation(summary = "导出企业 Excel") |
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:enterprise:export')") |
|
|
|
|