he2802 2 жил өмнө
parent
commit
ad254874f9

+ 0 - 91
zhongzheng-admin/src/main/java/com/zhongzheng/controller/top/TopSysTenantRegisterController.java

@@ -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);
-    }
-
-
-}

+ 7 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/top/bo/TopSysTenantRegisterAddBo.java

@@ -79,4 +79,11 @@ public class TopSysTenantRegisterAddBo {
     /** 0 失效 1启用 */
     @ApiModelProperty("0 失效 1启用")
     private Integer status;
+
+    /** h5公司logo */
+    @ApiModelProperty("h5公司logo")
+    private String logoH5Url;
+    /** 小程序公司logo */
+    @ApiModelProperty("小程序公司logo")
+    private String logoSmallUrl;
 }

+ 7 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/top/bo/TopSysTenantRegisterEditBo.java

@@ -85,4 +85,11 @@ public class TopSysTenantRegisterEditBo {
     @ApiModelProperty("0 失效 1启用")
     private Integer status;
 
+    /** h5公司logo */
+    @ApiModelProperty("h5公司logo")
+    private String logoH5Url;
+    /** 小程序公司logo */
+    @ApiModelProperty("小程序公司logo")
+    private String logoSmallUrl;
+
 }

+ 7 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/top/bo/TopSysTenantRegisterQueryBo.java

@@ -81,4 +81,11 @@ public class TopSysTenantRegisterQueryBo extends BaseEntity {
 	/** 0 失效 1启用 */
 	@ApiModelProperty("0 失效 1启用")
 	private Integer status;
+
+	/** h5公司logo */
+	@ApiModelProperty("h5公司logo")
+	private String logoH5Url;
+	/** 小程序公司logo */
+	@ApiModelProperty("小程序公司logo")
+	private String logoSmallUrl;
 }

+ 4 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/top/domain/TopSysTenantRegister.java

@@ -62,4 +62,8 @@ private static final long serialVersionUID=1L;
     private Long updateTime;
     /** 0 失效 1启用 */
     private Integer status;
+    /** h5公司logo */
+    private String logoH5Url;
+    /** 小程序公司logo */
+    private String logoSmallUrl;
 }

+ 2 - 0
zhongzheng-system/src/main/resources/mapper/modules/top/TopSysTenantRegisterMapper.xml

@@ -23,6 +23,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="createTime" column="create_time"/>
         <result property="updateTime" column="update_time"/>
         <result property="status" column="status"/>
+        <result property="logoH5Url" column="logo_h5_url"/>
+        <result property="logoSmallUrl" column="logo_small_url"/>
     </resultMap>