소스 검색

企业信息管理

zjc 5 달 전
부모
커밋
ca2c5c85fc

+ 0 - 115
ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TCustomerController.java

@@ -1,115 +0,0 @@
-package com.ruoyi.web.controller.tool;
-
-import java.util.List;
-import javax.servlet.http.HttpServletResponse;
-
-import com.ruoyi.system.domain.crm.TCustomer;
-import com.ruoyi.system.service.crm.ITCustomerService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-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.ruoyi.common.annotation.Log;
-import com.ruoyi.common.core.controller.BaseController;
-import com.ruoyi.common.core.domain.AjaxResult;
-import com.ruoyi.common.enums.BusinessType;
-import com.ruoyi.common.utils.poi.ExcelUtil;
-import com.ruoyi.common.core.page.TableDataInfo;
-
-/**
- * crmController
- * 
- * @author ruoyi
- * @date 2023-11-28
- */
-@Api(tags = "CRM系统接口")
-@RestController
-@RequestMapping("/system/customer")
-public class TCustomerController extends BaseController
-{
-    @Autowired
-    private ITCustomerService tCustomerService;
-
-    /**
-     * 查询crm列表
-     */
-    @ApiOperation(value = "获取客户列表")
-    @PreAuthorize("@ss.hasPermi('system:customer:list')")
-    @GetMapping("/list")
-    public TableDataInfo list(TCustomer tCustomer)
-    {
-        startPage();
-        List<TCustomer> list = tCustomerService.selectTCustomerList(tCustomer);
-        return getDataTable(list);
-    }
-
-    /**
-     * 导出crm列表
-     */
-    @ApiOperation(value = "导出客户列表")
-    @PreAuthorize("@ss.hasPermi('system:customer:export')")
-    @Log(title = "crm", businessType = BusinessType.EXPORT)
-    @PostMapping("/export")
-    public void export(HttpServletResponse response, TCustomer tCustomer)
-    {
-        List<TCustomer> list = tCustomerService.selectTCustomerList(tCustomer);
-        ExcelUtil<TCustomer> util = new ExcelUtil<TCustomer>(TCustomer.class);
-        util.exportExcel(response, list, "crm数据");
-    }
-
-    /**
-     * 获取crm详细信息
-     */
-    @ApiOperation(value = "获取crm详细信息")
-    @PreAuthorize("@ss.hasPermi('system:customer:query')")
-    @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") String id)
-    {
-        return success(tCustomerService.selectTCustomerById(id));
-    }
-
-    /**
-     * 新增crm
-     */
-    @ApiOperation(value = "新增crm")
-    @PreAuthorize("@ss.hasPermi('system:customer:add')")
-    @Log(title = "crm", businessType = BusinessType.INSERT)
-    @PostMapping
-    public AjaxResult add(@RequestBody TCustomer tCustomer)
-    {
-        tCustomer.setCreateBy(getUsername());
-        return toAjax(tCustomerService.insertTCustomer(tCustomer));
-    }
-
-    /**
-     * 修改crm
-     */
-    @ApiOperation(value = "修改crm")
-    @PreAuthorize("@ss.hasPermi('system:customer:edit')")
-    @Log(title = "crm", businessType = BusinessType.UPDATE)
-    @PutMapping
-    public AjaxResult edit(@RequestBody TCustomer tCustomer)
-    {
-        return toAjax(tCustomerService.updateTCustomer(tCustomer));
-    }
-
-    /**
-     * 删除crm
-     */
-    @ApiOperation(value = "删除crm")
-    @PreAuthorize("@ss.hasPermi('system:customer:remove')")
-    @Log(title = "crm", businessType = BusinessType.DELETE)
-	@DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable String[] ids)
-    {
-        return toAjax(tCustomerService.deleteTCustomerByIds(ids));
-    }
-}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TEnterpriseCompanyController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.tool;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+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.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.tool.domain.TEnterpriseCompany;
+import com.ruoyi.tool.service.ITEnterpriseCompanyService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 企业信息管理Controller
+ * 
+ * @author ruoyi
+ * @date 2024-06-03
+ */
+@RestController
+@RequestMapping("/tool/company")
+public class TEnterpriseCompanyController extends BaseController
+{
+    @Autowired
+    private ITEnterpriseCompanyService tEnterpriseCompanyService;
+
+    /**
+     * 查询企业信息管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('tool:company:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TEnterpriseCompany tEnterpriseCompany)
+    {
+        startPage();
+        List<TEnterpriseCompany> list = tEnterpriseCompanyService.selectTEnterpriseCompanyList(tEnterpriseCompany);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出企业信息管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('tool:company:export')")
+    @Log(title = "企业信息管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TEnterpriseCompany tEnterpriseCompany)
+    {
+        List<TEnterpriseCompany> list = tEnterpriseCompanyService.selectTEnterpriseCompanyList(tEnterpriseCompany);
+        ExcelUtil<TEnterpriseCompany> util = new ExcelUtil<TEnterpriseCompany>(TEnterpriseCompany.class);
+        util.exportExcel(response, list, "企业信息管理数据");
+    }
+
+    /**
+     * 获取企业信息管理详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('tool:company:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id)
+    {
+        return success(tEnterpriseCompanyService.selectTEnterpriseCompanyById(id));
+    }
+
+    /**
+     * 新增企业信息管理
+     */
+    @PreAuthorize("@ss.hasPermi('tool:company:add')")
+    @Log(title = "企业信息管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TEnterpriseCompany tEnterpriseCompany)
+    {
+        return toAjax(tEnterpriseCompanyService.insertTEnterpriseCompany(tEnterpriseCompany));
+    }
+
+    /**
+     * 修改企业信息管理
+     */
+    @PreAuthorize("@ss.hasPermi('tool:company:edit')")
+    @Log(title = "企业信息管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TEnterpriseCompany tEnterpriseCompany)
+    {
+        return toAjax(tEnterpriseCompanyService.updateTEnterpriseCompany(tEnterpriseCompany));
+    }
+
+    /**
+     * 删除企业信息管理
+     */
+    @PreAuthorize("@ss.hasPermi('tool:company:remove')")
+    @Log(title = "企业信息管理", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids)
+    {
+        return toAjax(tEnterpriseCompanyService.deleteTEnterpriseCompanyByIds(ids));
+    }
+}

+ 1 - 1
ruoyi-admin/src/main/resources/application.yml

@@ -72,7 +72,7 @@ spring:
     # 地址
     host: localhost
     # 端口,默认为6379
-    port: 6380
+    port: 6379
     # 数据库索引
     database: 0
     # 密码

+ 292 - 0
ruoyi-system/src/main/java/com/ruoyi/tool/domain/TEnterpriseCompany.java

@@ -0,0 +1,292 @@
+package com.ruoyi.tool.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 企业信息管理对象 t_enterprise_company
+ * 
+ * @author ruoyi
+ * @date 2024-06-03
+ */
+public class TEnterpriseCompany extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private String id;
+
+    /** 企业应用ID */
+    @Excel(name = "企业应用ID")
+    private String agentid;
+
+    /** 企业应用名称 */
+    @Excel(name = "企业应用名称")
+    private String name;
+
+    /** 企业应用头像 */
+    @Excel(name = "企业应用头像")
+    private String logoUrl;
+
+    /** 企业应用描述 */
+    @Excel(name = "企业应用描述")
+    private String description;
+
+    /** 授权方企业应用是否被禁用: */
+    @Excel(name = "授权方企业应用是否被禁用:")
+    private String close;
+
+    /** 授权企业的CorpId */
+    @Excel(name = "授权企业的CorpId")
+    private String corpid;
+
+    /** 邀请码,只有自己邀请的企业才会返回邀请码,可用该邀请码统计不同渠道的拉新,否则值为空字符串 */
+    @Excel(name = "邀请码,只有自己邀请的企业才会返回邀请码,可用该邀请码统计不同渠道的拉新,否则值为空字符串")
+    private String inviteCode;
+
+    /** 企业所属行业 */
+    @Excel(name = "企业所属行业")
+    private String industry;
+
+    /** 授权方企业名称 */
+    @Excel(name = "授权方企业名称")
+    private String corpName;
+
+    /** 序列号 */
+    @Excel(name = "序列号")
+    private String licenseCode;
+
+    /** 渠道码 */
+    @Excel(name = "渠道码")
+    private String authChannel;
+
+    /** 渠道类型。 */
+    @Excel(name = "渠道类型。")
+    private String authChannelType;
+
+    /** 企业是否认证 */
+    @Excel(name = "企业是否认证")
+    private String isAuthenticated;
+
+    /** 企业认证等级: */
+    @Excel(name = "企业认证等级:")
+    private String authLevel;
+
+    /** 企业邀请链接 */
+    @Excel(name = "企业邀请链接")
+    private String inviteUrl;
+
+    /** 企业logo */
+    @Excel(name = "企业logo")
+    private String corpLogoUrl;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String mark;
+
+    /** 状态 */
+    private String delFlag;
+
+    public void setId(String id) 
+    {
+        this.id = id;
+    }
+
+    public String getId() 
+    {
+        return id;
+    }
+    public void setAgentid(String agentid) 
+    {
+        this.agentid = agentid;
+    }
+
+    public String getAgentid() 
+    {
+        return agentid;
+    }
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+    public void setLogoUrl(String logoUrl) 
+    {
+        this.logoUrl = logoUrl;
+    }
+
+    public String getLogoUrl() 
+    {
+        return logoUrl;
+    }
+    public void setDescription(String description) 
+    {
+        this.description = description;
+    }
+
+    public String getDescription() 
+    {
+        return description;
+    }
+    public void setClose(String close) 
+    {
+        this.close = close;
+    }
+
+    public String getClose() 
+    {
+        return close;
+    }
+    public void setCorpid(String corpid) 
+    {
+        this.corpid = corpid;
+    }
+
+    public String getCorpid() 
+    {
+        return corpid;
+    }
+    public void setInviteCode(String inviteCode) 
+    {
+        this.inviteCode = inviteCode;
+    }
+
+    public String getInviteCode() 
+    {
+        return inviteCode;
+    }
+    public void setIndustry(String industry) 
+    {
+        this.industry = industry;
+    }
+
+    public String getIndustry() 
+    {
+        return industry;
+    }
+    public void setCorpName(String corpName) 
+    {
+        this.corpName = corpName;
+    }
+
+    public String getCorpName() 
+    {
+        return corpName;
+    }
+    public void setLicenseCode(String licenseCode) 
+    {
+        this.licenseCode = licenseCode;
+    }
+
+    public String getLicenseCode() 
+    {
+        return licenseCode;
+    }
+    public void setAuthChannel(String authChannel) 
+    {
+        this.authChannel = authChannel;
+    }
+
+    public String getAuthChannel() 
+    {
+        return authChannel;
+    }
+    public void setAuthChannelType(String authChannelType) 
+    {
+        this.authChannelType = authChannelType;
+    }
+
+    public String getAuthChannelType() 
+    {
+        return authChannelType;
+    }
+    public void setIsAuthenticated(String isAuthenticated) 
+    {
+        this.isAuthenticated = isAuthenticated;
+    }
+
+    public String getIsAuthenticated() 
+    {
+        return isAuthenticated;
+    }
+    public void setAuthLevel(String authLevel) 
+    {
+        this.authLevel = authLevel;
+    }
+
+    public String getAuthLevel() 
+    {
+        return authLevel;
+    }
+    public void setInviteUrl(String inviteUrl) 
+    {
+        this.inviteUrl = inviteUrl;
+    }
+
+    public String getInviteUrl() 
+    {
+        return inviteUrl;
+    }
+    public void setCorpLogoUrl(String corpLogoUrl) 
+    {
+        this.corpLogoUrl = corpLogoUrl;
+    }
+
+    public String getCorpLogoUrl() 
+    {
+        return corpLogoUrl;
+    }
+    public void setMark(String mark) 
+    {
+        this.mark = mark;
+    }
+
+    public String getMark() 
+    {
+        return mark;
+    }
+    public void setDelFlag(String delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() 
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("agentid", getAgentid())
+            .append("name", getName())
+            .append("logoUrl", getLogoUrl())
+            .append("description", getDescription())
+            .append("close", getClose())
+            .append("corpid", getCorpid())
+            .append("inviteCode", getInviteCode())
+            .append("industry", getIndustry())
+            .append("corpName", getCorpName())
+            .append("licenseCode", getLicenseCode())
+            .append("authChannel", getAuthChannel())
+            .append("authChannelType", getAuthChannelType())
+            .append("isAuthenticated", getIsAuthenticated())
+            .append("authLevel", getAuthLevel())
+            .append("inviteUrl", getInviteUrl())
+            .append("corpLogoUrl", getCorpLogoUrl())
+            .append("mark", getMark())
+            .append("delFlag", getDelFlag())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/tool/mapper/TEnterpriseCompanyMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.tool.mapper;
+
+import java.util.List;
+import com.ruoyi.tool.domain.TEnterpriseCompany;
+
+/**
+ * 企业信息管理Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2024-06-03
+ */
+public interface TEnterpriseCompanyMapper 
+{
+    /**
+     * 查询企业信息管理
+     * 
+     * @param id 企业信息管理主键
+     * @return 企业信息管理
+     */
+    public TEnterpriseCompany selectTEnterpriseCompanyById(String id);
+
+    /**
+     * 查询企业信息管理列表
+     * 
+     * @param tEnterpriseCompany 企业信息管理
+     * @return 企业信息管理集合
+     */
+    public List<TEnterpriseCompany> selectTEnterpriseCompanyList(TEnterpriseCompany tEnterpriseCompany);
+
+    /**
+     * 新增企业信息管理
+     * 
+     * @param tEnterpriseCompany 企业信息管理
+     * @return 结果
+     */
+    public int insertTEnterpriseCompany(TEnterpriseCompany tEnterpriseCompany);
+
+    /**
+     * 修改企业信息管理
+     * 
+     * @param tEnterpriseCompany 企业信息管理
+     * @return 结果
+     */
+    public int updateTEnterpriseCompany(TEnterpriseCompany tEnterpriseCompany);
+
+    /**
+     * 删除企业信息管理
+     * 
+     * @param id 企业信息管理主键
+     * @return 结果
+     */
+    public int deleteTEnterpriseCompanyById(String id);
+
+    /**
+     * 批量删除企业信息管理
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTEnterpriseCompanyByIds(String[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/tool/service/ITEnterpriseCompanyService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.tool.service;
+
+import java.util.List;
+import com.ruoyi.tool.domain.TEnterpriseCompany;
+
+/**
+ * 企业信息管理Service接口
+ * 
+ * @author ruoyi
+ * @date 2024-06-03
+ */
+public interface ITEnterpriseCompanyService 
+{
+    /**
+     * 查询企业信息管理
+     * 
+     * @param id 企业信息管理主键
+     * @return 企业信息管理
+     */
+    public TEnterpriseCompany selectTEnterpriseCompanyById(String id);
+
+    /**
+     * 查询企业信息管理列表
+     * 
+     * @param tEnterpriseCompany 企业信息管理
+     * @return 企业信息管理集合
+     */
+    public List<TEnterpriseCompany> selectTEnterpriseCompanyList(TEnterpriseCompany tEnterpriseCompany);
+
+    /**
+     * 新增企业信息管理
+     * 
+     * @param tEnterpriseCompany 企业信息管理
+     * @return 结果
+     */
+    public int insertTEnterpriseCompany(TEnterpriseCompany tEnterpriseCompany);
+
+    /**
+     * 修改企业信息管理
+     * 
+     * @param tEnterpriseCompany 企业信息管理
+     * @return 结果
+     */
+    public int updateTEnterpriseCompany(TEnterpriseCompany tEnterpriseCompany);
+
+    /**
+     * 批量删除企业信息管理
+     * 
+     * @param ids 需要删除的企业信息管理主键集合
+     * @return 结果
+     */
+    public int deleteTEnterpriseCompanyByIds(String[] ids);
+
+    /**
+     * 删除企业信息管理信息
+     * 
+     * @param id 企业信息管理主键
+     * @return 结果
+     */
+    public int deleteTEnterpriseCompanyById(String id);
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/tool/service/impl/TEnterpriseCompanyServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.tool.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.tool.mapper.TEnterpriseCompanyMapper;
+import com.ruoyi.tool.domain.TEnterpriseCompany;
+import com.ruoyi.tool.service.ITEnterpriseCompanyService;
+
+/**
+ * 企业信息管理Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2024-06-03
+ */
+@Service
+public class TEnterpriseCompanyServiceImpl implements ITEnterpriseCompanyService 
+{
+    @Autowired
+    private TEnterpriseCompanyMapper tEnterpriseCompanyMapper;
+
+    /**
+     * 查询企业信息管理
+     * 
+     * @param id 企业信息管理主键
+     * @return 企业信息管理
+     */
+    @Override
+    public TEnterpriseCompany selectTEnterpriseCompanyById(String id)
+    {
+        return tEnterpriseCompanyMapper.selectTEnterpriseCompanyById(id);
+    }
+
+    /**
+     * 查询企业信息管理列表
+     * 
+     * @param tEnterpriseCompany 企业信息管理
+     * @return 企业信息管理
+     */
+    @Override
+    public List<TEnterpriseCompany> selectTEnterpriseCompanyList(TEnterpriseCompany tEnterpriseCompany)
+    {
+        return tEnterpriseCompanyMapper.selectTEnterpriseCompanyList(tEnterpriseCompany);
+    }
+
+    /**
+     * 新增企业信息管理
+     * 
+     * @param tEnterpriseCompany 企业信息管理
+     * @return 结果
+     */
+    @Override
+    public int insertTEnterpriseCompany(TEnterpriseCompany tEnterpriseCompany)
+    {
+        tEnterpriseCompany.setCreateTime(DateUtils.getNowDate());
+        return tEnterpriseCompanyMapper.insertTEnterpriseCompany(tEnterpriseCompany);
+    }
+
+    /**
+     * 修改企业信息管理
+     * 
+     * @param tEnterpriseCompany 企业信息管理
+     * @return 结果
+     */
+    @Override
+    public int updateTEnterpriseCompany(TEnterpriseCompany tEnterpriseCompany)
+    {
+        tEnterpriseCompany.setUpdateTime(DateUtils.getNowDate());
+        return tEnterpriseCompanyMapper.updateTEnterpriseCompany(tEnterpriseCompany);
+    }
+
+    /**
+     * 批量删除企业信息管理
+     * 
+     * @param ids 需要删除的企业信息管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTEnterpriseCompanyByIds(String[] ids)
+    {
+        return tEnterpriseCompanyMapper.deleteTEnterpriseCompanyByIds(ids);
+    }
+
+    /**
+     * 删除企业信息管理信息
+     * 
+     * @param id 企业信息管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTEnterpriseCompanyById(String id)
+    {
+        return tEnterpriseCompanyMapper.deleteTEnterpriseCompanyById(id);
+    }
+}

+ 158 - 0
ruoyi-system/src/main/resources/mapper/tool/TEnterpriseCompanyMapper.xml

@@ -0,0 +1,158 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.tool.mapper.TEnterpriseCompanyMapper">
+    
+    <resultMap type="TEnterpriseCompany" id="TEnterpriseCompanyResult">
+        <result property="id"    column="id"    />
+        <result property="agentid"    column="agentid"    />
+        <result property="name"    column="name"    />
+        <result property="logoUrl"    column="logo_url"    />
+        <result property="description"    column="description"    />
+        <result property="close"    column="close"    />
+        <result property="corpid"    column="corpid"    />
+        <result property="inviteCode"    column="invite_code"    />
+        <result property="industry"    column="industry"    />
+        <result property="corpName"    column="corp_name"    />
+        <result property="licenseCode"    column="license_code"    />
+        <result property="authChannel"    column="auth_channel"    />
+        <result property="authChannelType"    column="auth_channel_type"    />
+        <result property="isAuthenticated"    column="is_authenticated"    />
+        <result property="authLevel"    column="auth_level"    />
+        <result property="inviteUrl"    column="invite_url"    />
+        <result property="corpLogoUrl"    column="corp_logo_url"    />
+        <result property="mark"    column="mark"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectTEnterpriseCompanyVo">
+        select id, agentid, name, logo_url, description, close, corpid, invite_code, industry, corp_name, license_code, auth_channel, auth_channel_type, is_authenticated, auth_level, invite_url, corp_logo_url, mark, del_flag, create_by, create_time, update_by, update_time from t_enterprise_company
+    </sql>
+
+    <select id="selectTEnterpriseCompanyList" parameterType="TEnterpriseCompany" resultMap="TEnterpriseCompanyResult">
+        <include refid="selectTEnterpriseCompanyVo"/>
+        <where>  
+            <if test="agentid != null  and agentid != ''"> and agentid = #{agentid}</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="logoUrl != null  and logoUrl != ''"> and logo_url = #{logoUrl}</if>
+            <if test="description != null  and description != ''"> and description = #{description}</if>
+            <if test="close != null  and close != ''"> and close = #{close}</if>
+            <if test="corpid != null  and corpid != ''"> and corpid = #{corpid}</if>
+            <if test="inviteCode != null  and inviteCode != ''"> and invite_code = #{inviteCode}</if>
+            <if test="industry != null  and industry != ''"> and industry = #{industry}</if>
+            <if test="corpName != null  and corpName != ''"> and corp_name like concat('%', #{corpName}, '%')</if>
+            <if test="licenseCode != null  and licenseCode != ''"> and license_code = #{licenseCode}</if>
+            <if test="authChannel != null  and authChannel != ''"> and auth_channel = #{authChannel}</if>
+            <if test="authChannelType != null  and authChannelType != ''"> and auth_channel_type = #{authChannelType}</if>
+            <if test="isAuthenticated != null  and isAuthenticated != ''"> and is_authenticated = #{isAuthenticated}</if>
+            <if test="authLevel != null  and authLevel != ''"> and auth_level = #{authLevel}</if>
+            <if test="inviteUrl != null  and inviteUrl != ''"> and invite_url = #{inviteUrl}</if>
+            <if test="corpLogoUrl != null  and corpLogoUrl != ''"> and corp_logo_url = #{corpLogoUrl}</if>
+            <if test="mark != null  and mark != ''"> and mark = #{mark}</if>
+        </where>
+    </select>
+    
+    <select id="selectTEnterpriseCompanyById" parameterType="String" resultMap="TEnterpriseCompanyResult">
+        <include refid="selectTEnterpriseCompanyVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTEnterpriseCompany" parameterType="TEnterpriseCompany">
+        insert into t_enterprise_company
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="agentid != null">agentid,</if>
+            <if test="name != null">name,</if>
+            <if test="logoUrl != null">logo_url,</if>
+            <if test="description != null">description,</if>
+            <if test="close != null">close,</if>
+            <if test="corpid != null">corpid,</if>
+            <if test="inviteCode != null">invite_code,</if>
+            <if test="industry != null">industry,</if>
+            <if test="corpName != null">corp_name,</if>
+            <if test="licenseCode != null">license_code,</if>
+            <if test="authChannel != null">auth_channel,</if>
+            <if test="authChannelType != null">auth_channel_type,</if>
+            <if test="isAuthenticated != null">is_authenticated,</if>
+            <if test="authLevel != null">auth_level,</if>
+            <if test="inviteUrl != null">invite_url,</if>
+            <if test="corpLogoUrl != null">corp_logo_url,</if>
+            <if test="mark != null">mark,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="agentid != null">#{agentid},</if>
+            <if test="name != null">#{name},</if>
+            <if test="logoUrl != null">#{logoUrl},</if>
+            <if test="description != null">#{description},</if>
+            <if test="close != null">#{close},</if>
+            <if test="corpid != null">#{corpid},</if>
+            <if test="inviteCode != null">#{inviteCode},</if>
+            <if test="industry != null">#{industry},</if>
+            <if test="corpName != null">#{corpName},</if>
+            <if test="licenseCode != null">#{licenseCode},</if>
+            <if test="authChannel != null">#{authChannel},</if>
+            <if test="authChannelType != null">#{authChannelType},</if>
+            <if test="isAuthenticated != null">#{isAuthenticated},</if>
+            <if test="authLevel != null">#{authLevel},</if>
+            <if test="inviteUrl != null">#{inviteUrl},</if>
+            <if test="corpLogoUrl != null">#{corpLogoUrl},</if>
+            <if test="mark != null">#{mark},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTEnterpriseCompany" parameterType="TEnterpriseCompany">
+        update t_enterprise_company
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="agentid != null">agentid = #{agentid},</if>
+            <if test="name != null">name = #{name},</if>
+            <if test="logoUrl != null">logo_url = #{logoUrl},</if>
+            <if test="description != null">description = #{description},</if>
+            <if test="close != null">close = #{close},</if>
+            <if test="corpid != null">corpid = #{corpid},</if>
+            <if test="inviteCode != null">invite_code = #{inviteCode},</if>
+            <if test="industry != null">industry = #{industry},</if>
+            <if test="corpName != null">corp_name = #{corpName},</if>
+            <if test="licenseCode != null">license_code = #{licenseCode},</if>
+            <if test="authChannel != null">auth_channel = #{authChannel},</if>
+            <if test="authChannelType != null">auth_channel_type = #{authChannelType},</if>
+            <if test="isAuthenticated != null">is_authenticated = #{isAuthenticated},</if>
+            <if test="authLevel != null">auth_level = #{authLevel},</if>
+            <if test="inviteUrl != null">invite_url = #{inviteUrl},</if>
+            <if test="corpLogoUrl != null">corp_logo_url = #{corpLogoUrl},</if>
+            <if test="mark != null">mark = #{mark},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTEnterpriseCompanyById" parameterType="String">
+        delete from t_enterprise_company where id = #{id}
+    </delete>
+
+    <delete id="deleteTEnterpriseCompanyByIds" parameterType="String">
+        delete from t_enterprise_company where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 44 - 0
ruoyi-ui/src/api/tool/company.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询企业信息管理列表
+export function listCompany(query) {
+  return request({
+    url: '/tool/company/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询企业信息管理详细
+export function getCompany(id) {
+  return request({
+    url: '/tool/company/' + id,
+    method: 'get'
+  })
+}
+
+// 新增企业信息管理
+export function addCompany(data) {
+  return request({
+    url: '/tool/company',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改企业信息管理
+export function updateCompany(data) {
+  return request({
+    url: '/tool/company',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除企业信息管理
+export function delCompany(id) {
+  return request({
+    url: '/tool/company/' + id,
+    method: 'delete'
+  })
+}

+ 458 - 0
ruoyi-ui/src/views/tool/company/index.vue

@@ -0,0 +1,458 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="企业应用ID" prop="agentid">
+        <el-input
+          v-model="queryParams.agentid"
+          placeholder="请输入企业应用ID"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="企业应用名称" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="请输入企业应用名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="企业应用头像" prop="logoUrl">
+        <el-input
+          v-model="queryParams.logoUrl"
+          placeholder="请输入企业应用头像"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="授权方企业应用是否被禁用:" prop="close">
+        <el-input
+          v-model="queryParams.close"
+          placeholder="请输入授权方企业应用是否被禁用:"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="授权企业的CorpId" prop="corpid">
+        <el-input
+          v-model="queryParams.corpid"
+          placeholder="请输入授权企业的CorpId"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="邀请码,只有自己邀请的企业才会返回邀请码,可用该邀请码统计不同渠道的拉新,否则值为空字符串" prop="inviteCode">
+        <el-input
+          v-model="queryParams.inviteCode"
+          placeholder="请输入邀请码,只有自己邀请的企业才会返回邀请码,可用该邀请码统计不同渠道的拉新,否则值为空字符串"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="企业所属行业" prop="industry">
+        <el-input
+          v-model="queryParams.industry"
+          placeholder="请输入企业所属行业"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="授权方企业名称" prop="corpName">
+        <el-input
+          v-model="queryParams.corpName"
+          placeholder="请输入授权方企业名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="序列号" prop="licenseCode">
+        <el-input
+          v-model="queryParams.licenseCode"
+          placeholder="请输入序列号"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="渠道码" prop="authChannel">
+        <el-input
+          v-model="queryParams.authChannel"
+          placeholder="请输入渠道码"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="企业是否认证" prop="isAuthenticated">
+        <el-input
+          v-model="queryParams.isAuthenticated"
+          placeholder="请输入企业是否认证"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="企业认证等级:" prop="authLevel">
+        <el-input
+          v-model="queryParams.authLevel"
+          placeholder="请输入企业认证等级:"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="企业邀请链接" prop="inviteUrl">
+        <el-input
+          v-model="queryParams.inviteUrl"
+          placeholder="请输入企业邀请链接"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="企业logo" prop="corpLogoUrl">
+        <el-input
+          v-model="queryParams.corpLogoUrl"
+          placeholder="请输入企业logo"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="备注" prop="mark">
+        <el-input
+          v-model="queryParams.mark"
+          placeholder="请输入备注"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['tool:company:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['tool:company:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['tool:company:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['tool:company:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="companyList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="主键" align="center" prop="id" />
+      <el-table-column label="企业应用ID" align="center" prop="agentid" />
+      <el-table-column label="企业应用名称" align="center" prop="name" />
+      <el-table-column label="企业应用头像" align="center" prop="logoUrl" />
+      <el-table-column label="企业应用描述" align="center" prop="description" />
+      <el-table-column label="授权方企业应用是否被禁用:" align="center" prop="close" />
+      <el-table-column label="授权企业的CorpId" align="center" prop="corpid" />
+      <el-table-column label="邀请码,只有自己邀请的企业才会返回邀请码,可用该邀请码统计不同渠道的拉新,否则值为空字符串" align="center" prop="inviteCode" />
+      <el-table-column label="企业所属行业" align="center" prop="industry" />
+      <el-table-column label="授权方企业名称" align="center" prop="corpName" />
+      <el-table-column label="序列号" align="center" prop="licenseCode" />
+      <el-table-column label="渠道码" align="center" prop="authChannel" />
+      <el-table-column label="渠道类型。" align="center" prop="authChannelType" />
+      <el-table-column label="企业是否认证" align="center" prop="isAuthenticated" />
+      <el-table-column label="企业认证等级:" align="center" prop="authLevel" />
+      <el-table-column label="企业邀请链接" align="center" prop="inviteUrl" />
+      <el-table-column label="企业logo" align="center" prop="corpLogoUrl" />
+      <el-table-column label="备注" align="center" prop="mark" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['tool:company:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['tool:company:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改企业信息管理对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="企业应用ID" prop="agentid">
+          <el-input v-model="form.agentid" placeholder="请输入企业应用ID" />
+        </el-form-item>
+        <el-form-item label="企业应用名称" prop="name">
+          <el-input v-model="form.name" placeholder="请输入企业应用名称" />
+        </el-form-item>
+        <el-form-item label="企业应用头像" prop="logoUrl">
+          <el-input v-model="form.logoUrl" placeholder="请输入企业应用头像" />
+        </el-form-item>
+        <el-form-item label="企业应用描述" prop="description">
+          <el-input v-model="form.description" type="textarea" placeholder="请输入内容" />
+        </el-form-item>
+        <el-form-item label="授权方企业应用是否被禁用:" prop="close">
+          <el-input v-model="form.close" placeholder="请输入授权方企业应用是否被禁用:" />
+        </el-form-item>
+        <el-form-item label="授权企业的CorpId" prop="corpid">
+          <el-input v-model="form.corpid" placeholder="请输入授权企业的CorpId" />
+        </el-form-item>
+        <el-form-item label="邀请码,只有自己邀请的企业才会返回邀请码,可用该邀请码统计不同渠道的拉新,否则值为空字符串" prop="inviteCode">
+          <el-input v-model="form.inviteCode" placeholder="请输入邀请码,只有自己邀请的企业才会返回邀请码,可用该邀请码统计不同渠道的拉新,否则值为空字符串" />
+        </el-form-item>
+        <el-form-item label="企业所属行业" prop="industry">
+          <el-input v-model="form.industry" placeholder="请输入企业所属行业" />
+        </el-form-item>
+        <el-form-item label="授权方企业名称" prop="corpName">
+          <el-input v-model="form.corpName" placeholder="请输入授权方企业名称" />
+        </el-form-item>
+        <el-form-item label="序列号" prop="licenseCode">
+          <el-input v-model="form.licenseCode" placeholder="请输入序列号" />
+        </el-form-item>
+        <el-form-item label="渠道码" prop="authChannel">
+          <el-input v-model="form.authChannel" placeholder="请输入渠道码" />
+        </el-form-item>
+        <el-form-item label="企业是否认证" prop="isAuthenticated">
+          <el-input v-model="form.isAuthenticated" placeholder="请输入企业是否认证" />
+        </el-form-item>
+        <el-form-item label="企业认证等级:" prop="authLevel">
+          <el-input v-model="form.authLevel" placeholder="请输入企业认证等级:" />
+        </el-form-item>
+        <el-form-item label="企业邀请链接" prop="inviteUrl">
+          <el-input v-model="form.inviteUrl" placeholder="请输入企业邀请链接" />
+        </el-form-item>
+        <el-form-item label="企业logo" prop="corpLogoUrl">
+          <el-input v-model="form.corpLogoUrl" placeholder="请输入企业logo" />
+        </el-form-item>
+        <el-form-item label="备注" prop="mark">
+          <el-input v-model="form.mark" placeholder="请输入备注" />
+        </el-form-item>
+        <el-form-item label="状态" prop="delFlag">
+          <el-input v-model="form.delFlag" placeholder="请输入状态" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listCompany, getCompany, delCompany, addCompany, updateCompany } from "@/api/tool/company";
+
+export default {
+  name: "Company",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 企业信息管理表格数据
+      companyList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        agentid: null,
+        name: null,
+        logoUrl: null,
+        description: null,
+        close: null,
+        corpid: null,
+        inviteCode: null,
+        industry: null,
+        corpName: null,
+        licenseCode: null,
+        authChannel: null,
+        authChannelType: null,
+        isAuthenticated: null,
+        authLevel: null,
+        inviteUrl: null,
+        corpLogoUrl: null,
+        mark: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询企业信息管理列表 */
+    getList() {
+      this.loading = true;
+      listCompany(this.queryParams).then(response => {
+        this.companyList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        agentid: null,
+        name: null,
+        logoUrl: null,
+        description: null,
+        close: null,
+        corpid: null,
+        inviteCode: null,
+        industry: null,
+        corpName: null,
+        licenseCode: null,
+        authChannel: null,
+        authChannelType: null,
+        isAuthenticated: null,
+        authLevel: null,
+        inviteUrl: null,
+        corpLogoUrl: null,
+        mark: null,
+        delFlag: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加企业信息管理";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getCompany(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改企业信息管理";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateCompany(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addCompany(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除企业信息管理编号为"' + ids + '"的数据项?').then(function() {
+        return delCompany(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('tool/company/export', {
+        ...this.queryParams
+      }, `company_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>

+ 2 - 2
ruoyi-ui/vue.config.js

@@ -36,9 +36,9 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://localhost:8080`,
-        // target: `http://192.168.100.234:8080`,//张继超本地
+        target: `http://192.168.100.234:8093`,//张继超本地
         // target: `http://192.168.100.229:8080`,//张洛飞本地
-        target: `http://47.103.79.143:8093`,//
+        // target: `http://47.103.79.143:8093`,//
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''