|
@@ -1,91 +0,0 @@
|
|
|
-package com.zhongzheng.controller.top;
|
|
|
-
|
|
|
-import java.util.List;
|
|
|
-import java.util.Arrays;
|
|
|
-
|
|
|
-import com.zhongzheng.modules.top.bo.TopSysTenantRegisterAddBo;
|
|
|
-import com.zhongzheng.modules.top.bo.TopSysTenantRegisterEditBo;
|
|
|
-import com.zhongzheng.modules.top.bo.TopSysTenantRegisterQueryBo;
|
|
|
-import com.zhongzheng.modules.top.service.ITopSysTenantRegisterService;
|
|
|
-import com.zhongzheng.modules.top.vo.TopSysTenantRegisterVo;
|
|
|
-import lombok.RequiredArgsConstructor;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-import com.zhongzheng.common.annotation.Log;
|
|
|
-import com.zhongzheng.common.core.controller.BaseController;
|
|
|
-import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
-import com.zhongzheng.common.enums.BusinessType;
|
|
|
-import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
|
-import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-
|
|
|
-/**
|
|
|
- * 机构注册Controller
|
|
|
- *
|
|
|
- * @author hjl
|
|
|
- * @date 2023-02-21
|
|
|
- */
|
|
|
-@Api(value = "机构注册控制器", tags = {"机构注册管理"})
|
|
|
-@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
-@RestController
|
|
|
-@RequestMapping("/top/system/register")
|
|
|
-public class TopSysTenantRegisterController extends BaseController {
|
|
|
-
|
|
|
- private final ITopSysTenantRegisterService iTopSysTenantRegisterService;
|
|
|
-
|
|
|
- /**
|
|
|
- * 查询机构注册列表
|
|
|
- */
|
|
|
- @ApiOperation("查询机构注册列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:register:list')")
|
|
|
- @GetMapping("/list")
|
|
|
- public TableDataInfo<TopSysTenantRegisterVo> list(TopSysTenantRegisterQueryBo bo) {
|
|
|
- startPage();
|
|
|
- List<TopSysTenantRegisterVo> list = iTopSysTenantRegisterService.queryList(bo);
|
|
|
- return getDataTable(list);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取机构注册详细信息
|
|
|
- */
|
|
|
- @ApiOperation("获取机构注册详细信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:register:query')")
|
|
|
- @GetMapping("/{id}")
|
|
|
- public AjaxResult<TopSysTenantRegisterVo> getInfo(@PathVariable("id" ) Long id) {
|
|
|
- return AjaxResult.success(iTopSysTenantRegisterService.queryById(id));
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 新增机构注册
|
|
|
- */
|
|
|
- @ApiOperation("新增机构注册")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:register:add')")
|
|
|
- @Log(title = "机构注册", businessType = BusinessType.INSERT)
|
|
|
- @PostMapping()
|
|
|
- public AjaxResult<Void> add(@RequestBody TopSysTenantRegisterAddBo bo) {
|
|
|
- return toAjax(iTopSysTenantRegisterService.insertByAddBo(bo) ? 1 : 0);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 修改机构注册
|
|
|
- */
|
|
|
- @ApiOperation("修改机构注册")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:register:edit')")
|
|
|
- @Log(title = "机构注册", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping()
|
|
|
- public AjaxResult<Void> edit(@RequestBody TopSysTenantRegisterEditBo bo) {
|
|
|
- return toAjax(iTopSysTenantRegisterService.updateByEditBo(bo) ? 1 : 0);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-}
|