Browse Source

初步完成企业运行数据页面和接口,修改企业预测数据页面导出接口没数据问题

ljx 1 month ago
parent
commit
120ef76e3b

+ 104 - 0
enteprise-admin/src/main/java/com/enteprise/industry_run/controller/EnterpriseBaseDataTotalController.java

@@ -0,0 +1,104 @@
+package com.enteprise.industry_run.controller;
+
+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.enteprise.common.annotation.Log;
+import com.enteprise.common.core.controller.BaseController;
+import com.enteprise.common.core.domain.AjaxResult;
+import com.enteprise.common.enums.BusinessType;
+import com.enteprise.industry_run.domain.EnterpriseBaseDataTotal;
+import com.enteprise.industry_run.service.IEnterpriseBaseDataTotalService;
+import com.enteprise.common.utils.poi.ExcelUtil;
+import com.enteprise.common.core.page.TableDataInfo;
+
+/**
+ * industry_runController
+ * 
+ * @author ruoyi
+ * @date 2024-11-13
+ */
+@RestController
+@RequestMapping("/industry_run/industry_run")
+public class EnterpriseBaseDataTotalController extends BaseController
+{
+    @Autowired
+    private IEnterpriseBaseDataTotalService enterpriseBaseDataTotalService;
+
+    /**
+     * 查询industry_run列表
+     */
+    @PreAuthorize("@ss.hasPermi('industry_run:industry_run:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(EnterpriseBaseDataTotal enterpriseBaseDataTotal)
+    {
+        startPage();
+        List<EnterpriseBaseDataTotal> list = enterpriseBaseDataTotalService.selectEnterpriseBaseDataTotalList(enterpriseBaseDataTotal);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出industry_run列表
+     */
+    @PreAuthorize("@ss.hasPermi('industry_run:industry_run:export')")
+    @Log(title = "industry_run", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, EnterpriseBaseDataTotal enterpriseBaseDataTotal)
+    {
+        List<EnterpriseBaseDataTotal> list = enterpriseBaseDataTotalService.selectEnterpriseBaseDataTotalList(enterpriseBaseDataTotal);
+        ExcelUtil<EnterpriseBaseDataTotal> util = new ExcelUtil<EnterpriseBaseDataTotal>(EnterpriseBaseDataTotal.class);
+        util.exportExcel(response, list, "industry_run数据");
+    }
+
+    /**
+     * 获取industry_run详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('industry_run:industry_run:query')")
+    @GetMapping(value = "/{enterpriseName}")
+    public AjaxResult getInfo(@PathVariable("enterpriseName") String enterpriseName)
+    {
+        return success(enterpriseBaseDataTotalService.selectEnterpriseBaseDataTotalByEnterpriseName(enterpriseName));
+    }
+
+    /**
+     * 新增industry_run
+     */
+    @PreAuthorize("@ss.hasPermi('industry_run:industry_run:add')")
+    @Log(title = "industry_run", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody EnterpriseBaseDataTotal enterpriseBaseDataTotal)
+    {
+        return toAjax(enterpriseBaseDataTotalService.insertEnterpriseBaseDataTotal(enterpriseBaseDataTotal));
+    }
+
+    /**
+     * 修改industry_run
+     */
+    @PreAuthorize("@ss.hasPermi('industry_run:industry_run:edit')")
+    @Log(title = "industry_run", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody EnterpriseBaseDataTotal enterpriseBaseDataTotal)
+    {
+        return toAjax(enterpriseBaseDataTotalService.updateEnterpriseBaseDataTotal(enterpriseBaseDataTotal));
+    }
+
+    /**
+     * 删除industry_run
+     */
+    @PreAuthorize("@ss.hasPermi('industry_run:industry_run:remove')")
+    @Log(title = "industry_run", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{enterpriseNames}")
+    public AjaxResult remove(@PathVariable String[] enterpriseNames)
+    {
+        return toAjax(enterpriseBaseDataTotalService.deleteEnterpriseBaseDataTotalByEnterpriseNames(enterpriseNames));
+    }
+}

+ 309 - 0
enteprise-admin/src/main/java/com/enteprise/industry_run/domain/EnterpriseBaseDataTotal.java

@@ -0,0 +1,309 @@
+package com.enteprise.industry_run.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.enteprise.common.annotation.Excel;
+import com.enteprise.common.core.domain.BaseEntity;
+
+/**
+ * industry_run对象 enterprise_base_data_total
+ * 
+ * @author ruoyi
+ * @date 2024-11-13
+ */
+public class EnterpriseBaseDataTotal extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 企业名称 */
+    @Excel(name = "企业名称")
+    private String enterpriseName;
+
+    /** 坐落地 */
+    @Excel(name = "坐落地")
+    private String location;
+
+    /** 行业大类 */
+    private String industryName;
+
+    /** 行业代码 */
+    @Excel(name = "行业代码")
+    private String code;
+
+    /** 主营业务活动 */
+    private String mainBusiness;
+
+    /** 用地面积 */
+    private Long landArea;
+
+    /** 工业总产值 */
+    @Excel(name = "工业总产值")
+    private Long totalIndustrialValue;
+
+    /** 工业增加值 */
+    private Long gdp;
+
+    /** 应税收入 */
+    @Excel(name = "应税收入")
+    private Long taxableIncome;
+
+    /** 实缴税金 */
+    @Excel(name = "实缴税金")
+    private Long paidTax;
+
+    /** 主营业务收入 */
+    private Long mainBusinessIncome;
+
+    /** 从业人员数 */
+    private Long employeeNumber;
+
+    /** 利润总额 */
+    private Long profit;
+
+    /** 所有者权益 */
+    private Long ownerEquity;
+
+    /** 研发经费 */
+    @Excel(name = "研发经费")
+    private Long funding;
+
+    /** 能源消费量 */
+    @Excel(name = "能源消费量")
+    private Long energyConsume;
+
+    /** 用电量 */
+    @Excel(name = "用电量")
+    private Long powerConsume;
+
+    /** 年份 */
+    @Excel(name = "年份")
+    private String year;
+
+    /** 季节 */
+    @Excel(name = "季节")
+    private String season;
+
+    /** 月份 */
+    @Excel(name = "月份")
+    private String month;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setEnterpriseName(String enterpriseName) 
+    {
+        this.enterpriseName = enterpriseName;
+    }
+
+    public String getEnterpriseName() 
+    {
+        return enterpriseName;
+    }
+    public void setLocation(String location) 
+    {
+        this.location = location;
+    }
+
+    public String getLocation() 
+    {
+        return location;
+    }
+    public void setIndustryName(String industryName) 
+    {
+        this.industryName = industryName;
+    }
+
+    public String getIndustryName() 
+    {
+        return industryName;
+    }
+    public void setCode(String code) 
+    {
+        this.code = code;
+    }
+
+    public String getCode() 
+    {
+        return code;
+    }
+    public void setMainBusiness(String mainBusiness) 
+    {
+        this.mainBusiness = mainBusiness;
+    }
+
+    public String getMainBusiness() 
+    {
+        return mainBusiness;
+    }
+    public void setLandArea(Long landArea) 
+    {
+        this.landArea = landArea;
+    }
+
+    public Long getLandArea() 
+    {
+        return landArea;
+    }
+    public void setTotalIndustrialValue(Long totalIndustrialValue) 
+    {
+        this.totalIndustrialValue = totalIndustrialValue;
+    }
+
+    public Long getTotalIndustrialValue() 
+    {
+        return totalIndustrialValue;
+    }
+    public void setGdp(Long gdp) 
+    {
+        this.gdp = gdp;
+    }
+
+    public Long getGdp() 
+    {
+        return gdp;
+    }
+    public void setTaxableIncome(Long taxableIncome) 
+    {
+        this.taxableIncome = taxableIncome;
+    }
+
+    public Long getTaxableIncome() 
+    {
+        return taxableIncome;
+    }
+    public void setPaidTax(Long paidTax) 
+    {
+        this.paidTax = paidTax;
+    }
+
+    public Long getPaidTax() 
+    {
+        return paidTax;
+    }
+    public void setMainBusinessIncome(Long mainBusinessIncome) 
+    {
+        this.mainBusinessIncome = mainBusinessIncome;
+    }
+
+    public Long getMainBusinessIncome() 
+    {
+        return mainBusinessIncome;
+    }
+    public void setEmployeeNumber(Long employeeNumber) 
+    {
+        this.employeeNumber = employeeNumber;
+    }
+
+    public Long getEmployeeNumber() 
+    {
+        return employeeNumber;
+    }
+    public void setProfit(Long profit) 
+    {
+        this.profit = profit;
+    }
+
+    public Long getProfit() 
+    {
+        return profit;
+    }
+    public void setOwnerEquity(Long ownerEquity) 
+    {
+        this.ownerEquity = ownerEquity;
+    }
+
+    public Long getOwnerEquity() 
+    {
+        return ownerEquity;
+    }
+    public void setFunding(Long funding) 
+    {
+        this.funding = funding;
+    }
+
+    public Long getFunding() 
+    {
+        return funding;
+    }
+    public void setEnergyConsume(Long energyConsume) 
+    {
+        this.energyConsume = energyConsume;
+    }
+
+    public Long getEnergyConsume() 
+    {
+        return energyConsume;
+    }
+    public void setPowerConsume(Long powerConsume) 
+    {
+        this.powerConsume = powerConsume;
+    }
+
+    public Long getPowerConsume() 
+    {
+        return powerConsume;
+    }
+    public void setYear(String year) 
+    {
+        this.year = year;
+    }
+
+    public String getYear() 
+    {
+        return year;
+    }
+    public void setSeason(String season) 
+    {
+        this.season = season;
+    }
+
+    public String getSeason() 
+    {
+        return season;
+    }
+    public void setMonth(String month) 
+    {
+        this.month = month;
+    }
+
+    public String getMonth() 
+    {
+        return month;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("enterpriseName", getEnterpriseName())
+            .append("location", getLocation())
+            .append("industryName", getIndustryName())
+            .append("code", getCode())
+            .append("mainBusiness", getMainBusiness())
+            .append("landArea", getLandArea())
+            .append("totalIndustrialValue", getTotalIndustrialValue())
+            .append("gdp", getGdp())
+            .append("taxableIncome", getTaxableIncome())
+            .append("paidTax", getPaidTax())
+            .append("mainBusinessIncome", getMainBusinessIncome())
+            .append("employeeNumber", getEmployeeNumber())
+            .append("profit", getProfit())
+            .append("ownerEquity", getOwnerEquity())
+            .append("funding", getFunding())
+            .append("energyConsume", getEnergyConsume())
+            .append("powerConsume", getPowerConsume())
+            .append("year", getYear())
+            .append("season", getSeason())
+            .append("month", getMonth())
+            .toString();
+    }
+}

+ 61 - 0
enteprise-admin/src/main/java/com/enteprise/industry_run/mapper/EnterpriseBaseDataTotalMapper.java

@@ -0,0 +1,61 @@
+package com.enteprise.industry_run.mapper;
+
+import java.util.List;
+import com.enteprise.industry_run.domain.EnterpriseBaseDataTotal;
+
+/**
+ * industry_runMapper接口
+ * 
+ * @author ruoyi
+ * @date 2024-11-13
+ */
+public interface EnterpriseBaseDataTotalMapper 
+{
+    /**
+     * 查询industry_run
+     * 
+     * @param enterpriseName industry_run主键
+     * @return industry_run
+     */
+    public EnterpriseBaseDataTotal selectEnterpriseBaseDataTotalByEnterpriseName(String enterpriseName);
+
+    /**
+     * 查询industry_run列表
+     * 
+     * @param enterpriseBaseDataTotal industry_run
+     * @return industry_run集合
+     */
+    public List<EnterpriseBaseDataTotal> selectEnterpriseBaseDataTotalList(EnterpriseBaseDataTotal enterpriseBaseDataTotal);
+
+    /**
+     * 新增industry_run
+     * 
+     * @param enterpriseBaseDataTotal industry_run
+     * @return 结果
+     */
+    public int insertEnterpriseBaseDataTotal(EnterpriseBaseDataTotal enterpriseBaseDataTotal);
+
+    /**
+     * 修改industry_run
+     * 
+     * @param enterpriseBaseDataTotal industry_run
+     * @return 结果
+     */
+    public int updateEnterpriseBaseDataTotal(EnterpriseBaseDataTotal enterpriseBaseDataTotal);
+
+    /**
+     * 删除industry_run
+     * 
+     * @param enterpriseName industry_run主键
+     * @return 结果
+     */
+    public int deleteEnterpriseBaseDataTotalByEnterpriseName(String enterpriseName);
+
+    /**
+     * 批量删除industry_run
+     * 
+     * @param enterpriseNames 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteEnterpriseBaseDataTotalByEnterpriseNames(String[] enterpriseNames);
+}

+ 61 - 0
enteprise-admin/src/main/java/com/enteprise/industry_run/service/IEnterpriseBaseDataTotalService.java

@@ -0,0 +1,61 @@
+package com.enteprise.industry_run.service;
+
+import java.util.List;
+import com.enteprise.industry_run.domain.EnterpriseBaseDataTotal;
+
+/**
+ * industry_runService接口
+ * 
+ * @author ruoyi
+ * @date 2024-11-13
+ */
+public interface IEnterpriseBaseDataTotalService 
+{
+    /**
+     * 查询industry_run
+     * 
+     * @param enterpriseName industry_run主键
+     * @return industry_run
+     */
+    public EnterpriseBaseDataTotal selectEnterpriseBaseDataTotalByEnterpriseName(String enterpriseName);
+
+    /**
+     * 查询industry_run列表
+     * 
+     * @param enterpriseBaseDataTotal industry_run
+     * @return industry_run集合
+     */
+    public List<EnterpriseBaseDataTotal> selectEnterpriseBaseDataTotalList(EnterpriseBaseDataTotal enterpriseBaseDataTotal);
+
+    /**
+     * 新增industry_run
+     * 
+     * @param enterpriseBaseDataTotal industry_run
+     * @return 结果
+     */
+    public int insertEnterpriseBaseDataTotal(EnterpriseBaseDataTotal enterpriseBaseDataTotal);
+
+    /**
+     * 修改industry_run
+     * 
+     * @param enterpriseBaseDataTotal industry_run
+     * @return 结果
+     */
+    public int updateEnterpriseBaseDataTotal(EnterpriseBaseDataTotal enterpriseBaseDataTotal);
+
+    /**
+     * 批量删除industry_run
+     * 
+     * @param enterpriseNames 需要删除的industry_run主键集合
+     * @return 结果
+     */
+    public int deleteEnterpriseBaseDataTotalByEnterpriseNames(String[] enterpriseNames);
+
+    /**
+     * 删除industry_run信息
+     * 
+     * @param enterpriseName industry_run主键
+     * @return 结果
+     */
+    public int deleteEnterpriseBaseDataTotalByEnterpriseName(String enterpriseName);
+}

+ 93 - 0
enteprise-admin/src/main/java/com/enteprise/industry_run/service/impl/EnterpriseBaseDataTotalServiceImpl.java

@@ -0,0 +1,93 @@
+package com.enteprise.industry_run.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.enteprise.industry_run.mapper.EnterpriseBaseDataTotalMapper;
+import com.enteprise.industry_run.domain.EnterpriseBaseDataTotal;
+import com.enteprise.industry_run.service.IEnterpriseBaseDataTotalService;
+
+/**
+ * industry_runService业务层处理
+ * 
+ * @author ruoyi
+ * @date 2024-11-13
+ */
+@Service
+public class EnterpriseBaseDataTotalServiceImpl implements IEnterpriseBaseDataTotalService 
+{
+    @Autowired
+    private EnterpriseBaseDataTotalMapper enterpriseBaseDataTotalMapper;
+
+    /**
+     * 查询industry_run
+     * 
+     * @param enterpriseName industry_run主键
+     * @return industry_run
+     */
+    @Override
+    public EnterpriseBaseDataTotal selectEnterpriseBaseDataTotalByEnterpriseName(String enterpriseName)
+    {
+        return enterpriseBaseDataTotalMapper.selectEnterpriseBaseDataTotalByEnterpriseName(enterpriseName);
+    }
+
+    /**
+     * 查询industry_run列表
+     * 
+     * @param enterpriseBaseDataTotal industry_run
+     * @return industry_run
+     */
+    @Override
+    public List<EnterpriseBaseDataTotal> selectEnterpriseBaseDataTotalList(EnterpriseBaseDataTotal enterpriseBaseDataTotal)
+    {
+        return enterpriseBaseDataTotalMapper.selectEnterpriseBaseDataTotalList(enterpriseBaseDataTotal);
+    }
+
+    /**
+     * 新增industry_run
+     * 
+     * @param enterpriseBaseDataTotal industry_run
+     * @return 结果
+     */
+    @Override
+    public int insertEnterpriseBaseDataTotal(EnterpriseBaseDataTotal enterpriseBaseDataTotal)
+    {
+        return enterpriseBaseDataTotalMapper.insertEnterpriseBaseDataTotal(enterpriseBaseDataTotal);
+    }
+
+    /**
+     * 修改industry_run
+     * 
+     * @param enterpriseBaseDataTotal industry_run
+     * @return 结果
+     */
+    @Override
+    public int updateEnterpriseBaseDataTotal(EnterpriseBaseDataTotal enterpriseBaseDataTotal)
+    {
+        return enterpriseBaseDataTotalMapper.updateEnterpriseBaseDataTotal(enterpriseBaseDataTotal);
+    }
+
+    /**
+     * 批量删除industry_run
+     * 
+     * @param enterpriseNames 需要删除的industry_run主键
+     * @return 结果
+     */
+    @Override
+    public int deleteEnterpriseBaseDataTotalByEnterpriseNames(String[] enterpriseNames)
+    {
+        return enterpriseBaseDataTotalMapper.deleteEnterpriseBaseDataTotalByEnterpriseNames(enterpriseNames);
+    }
+
+    /**
+     * 删除industry_run信息
+     * 
+     * @param enterpriseName industry_run主键
+     * @return 结果
+     */
+    @Override
+    public int deleteEnterpriseBaseDataTotalByEnterpriseName(String enterpriseName)
+    {
+        return enterpriseBaseDataTotalMapper.deleteEnterpriseBaseDataTotalByEnterpriseName(enterpriseName);
+    }
+}

+ 13 - 13
enteprise-admin/src/main/java/com/enteprise/predicttotal/domain/Predicttotal.java

@@ -19,54 +19,54 @@ public class Predicttotal extends BaseEntity
     private Long id;
 
     /** $column.columnComment */
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "企业名称")
     private String enterpriseName;
 
     /** $column.columnComment */
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "坐落地")
     private String location;
 
     /** $column.columnComment */
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "行业代码")
     private String code;
 
     /** $column.columnComment */
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "工业总产值预测/万元")
     private Long totalIndustrialValuePredict;
 
     /** $column.columnComment */
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "应税收入预测/万元")
     private Long taxableIncomePredict;
 
     /** $column.columnComment */
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "实缴税金预测/万元")
     private Long paidTaxPredict;
 
     /** $column.columnComment */
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "能源消费量预测/万m³")
     private Long energyConsumePredict;
 
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "电力消费预测/万kw·h")
     private Long powerConsumePredict;
 
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "研发经费预测/万元")
     private Long fundingConsumePredict;
 
 
 
     /** $column.columnComment */
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "年份")
     private String year;
 
     /** $column.columnComment */
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "月份")
     private String month;
 
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+
     private String season;
 
     /** $column.columnComment */
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    @Excel(name = "预测模型")
     private String model;
 
     public void setId(Long id) 

+ 145 - 0
enteprise-admin/src/main/resources/mapper/industry_run/EnterpriseBaseDataTotalMapper.xml

@@ -0,0 +1,145 @@
+<?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.enteprise.industry_run.mapper.EnterpriseBaseDataTotalMapper">
+    
+    <resultMap type="EnterpriseBaseDataTotal" id="EnterpriseBaseDataTotalResult">
+        <result property="id"    column="id"    />
+        <result property="enterpriseName"    column="enterprise_name"    />
+        <result property="location"    column="location"    />
+        <result property="industryName"    column="industry_name"    />
+        <result property="code"    column="code"    />
+        <result property="mainBusiness"    column="main_business"    />
+        <result property="landArea"    column="land_area"    />
+        <result property="totalIndustrialValue"    column="total_industrial_value"    />
+        <result property="gdp"    column="gdp"    />
+        <result property="taxableIncome"    column="taxable_income"    />
+        <result property="paidTax"    column="paid_tax"    />
+        <result property="mainBusinessIncome"    column="main_business_income"    />
+        <result property="employeeNumber"    column="employee_number"    />
+        <result property="profit"    column="profit"    />
+        <result property="ownerEquity"    column="owner_equity"    />
+        <result property="funding"    column="funding"    />
+        <result property="energyConsume"    column="energy_consume"    />
+        <result property="powerConsume"    column="power_consume"    />
+        <result property="year"    column="year"    />
+        <result property="season"    column="season"    />
+        <result property="month"    column="month"    />
+    </resultMap>
+
+    <sql id="selectEnterpriseBaseDataTotalVo">
+        select id, enterprise_name, location, industry_name, code, main_business, land_area, total_industrial_value, gdp, taxable_income, paid_tax, main_business_income, employee_number, profit, owner_equity, funding, energy_consume, power_consume, year, season, month from enterprise_base_data_total
+    </sql>
+
+    <select id="selectEnterpriseBaseDataTotalList" parameterType="EnterpriseBaseDataTotal" resultMap="EnterpriseBaseDataTotalResult">
+        <include refid="selectEnterpriseBaseDataTotalVo"/>
+        <where>  
+            <if test="enterpriseName != null  and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
+            <if test="location != null  and location != ''"> and location = #{location}</if>
+            <if test="code != null  and code != ''"> and code = #{code}</if>
+            <if test="totalIndustrialValue != null "> and total_industrial_value = #{totalIndustrialValue}</if>
+            <if test="taxableIncome != null "> and taxable_income = #{taxableIncome}</if>
+            <if test="paidTax != null "> and paid_tax = #{paidTax}</if>
+            <if test="funding != null "> and funding = #{funding}</if>
+            <if test="energyConsume != null "> and energy_consume = #{energyConsume}</if>
+            <if test="powerConsume != null "> and power_consume = #{powerConsume}</if>
+            <if test="year != null  and year != ''"> and year = #{year}</if>
+            <if test="season != null  and season != ''"> and season = #{season}</if>
+            <if test="month != null  and month != ''"> and month = #{month}</if>
+        </where>
+    </select>
+    
+    <select id="selectEnterpriseBaseDataTotalByEnterpriseName" parameterType="String" resultMap="EnterpriseBaseDataTotalResult">
+        <include refid="selectEnterpriseBaseDataTotalVo"/>
+        where enterprise_name = #{enterpriseName}
+    </select>
+
+    <insert id="insertEnterpriseBaseDataTotal" parameterType="EnterpriseBaseDataTotal">
+        insert into enterprise_base_data_total
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="enterpriseName != null">enterprise_name,</if>
+            <if test="location != null">location,</if>
+            <if test="industryName != null and industryName != ''">industry_name,</if>
+            <if test="code != null">code,</if>
+            <if test="mainBusiness != null">main_business,</if>
+            <if test="landArea != null">land_area,</if>
+            <if test="totalIndustrialValue != null">total_industrial_value,</if>
+            <if test="gdp != null">gdp,</if>
+            <if test="taxableIncome != null">taxable_income,</if>
+            <if test="paidTax != null">paid_tax,</if>
+            <if test="mainBusinessIncome != null">main_business_income,</if>
+            <if test="employeeNumber != null">employee_number,</if>
+            <if test="profit != null">profit,</if>
+            <if test="ownerEquity != null">owner_equity,</if>
+            <if test="funding != null">funding,</if>
+            <if test="energyConsume != null">energy_consume,</if>
+            <if test="powerConsume != null">power_consume,</if>
+            <if test="year != null">year,</if>
+            <if test="season != null and season != ''">season,</if>
+            <if test="month != null">month,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="enterpriseName != null">#{enterpriseName},</if>
+            <if test="location != null">#{location},</if>
+            <if test="industryName != null and industryName != ''">#{industryName},</if>
+            <if test="code != null">#{code},</if>
+            <if test="mainBusiness != null">#{mainBusiness},</if>
+            <if test="landArea != null">#{landArea},</if>
+            <if test="totalIndustrialValue != null">#{totalIndustrialValue},</if>
+            <if test="gdp != null">#{gdp},</if>
+            <if test="taxableIncome != null">#{taxableIncome},</if>
+            <if test="paidTax != null">#{paidTax},</if>
+            <if test="mainBusinessIncome != null">#{mainBusinessIncome},</if>
+            <if test="employeeNumber != null">#{employeeNumber},</if>
+            <if test="profit != null">#{profit},</if>
+            <if test="ownerEquity != null">#{ownerEquity},</if>
+            <if test="funding != null">#{funding},</if>
+            <if test="energyConsume != null">#{energyConsume},</if>
+            <if test="powerConsume != null">#{powerConsume},</if>
+            <if test="year != null">#{year},</if>
+            <if test="season != null and season != ''">#{season},</if>
+            <if test="month != null">#{month},</if>
+         </trim>
+    </insert>
+
+    <update id="updateEnterpriseBaseDataTotal" parameterType="EnterpriseBaseDataTotal">
+        update enterprise_base_data_total
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="id != null">id = #{id},</if>
+            <if test="location != null">location = #{location},</if>
+            <if test="industryName != null and industryName != ''">industry_name = #{industryName},</if>
+            <if test="code != null">code = #{code},</if>
+            <if test="mainBusiness != null">main_business = #{mainBusiness},</if>
+            <if test="landArea != null">land_area = #{landArea},</if>
+            <if test="totalIndustrialValue != null">total_industrial_value = #{totalIndustrialValue},</if>
+            <if test="gdp != null">gdp = #{gdp},</if>
+            <if test="taxableIncome != null">taxable_income = #{taxableIncome},</if>
+            <if test="paidTax != null">paid_tax = #{paidTax},</if>
+            <if test="mainBusinessIncome != null">main_business_income = #{mainBusinessIncome},</if>
+            <if test="employeeNumber != null">employee_number = #{employeeNumber},</if>
+            <if test="profit != null">profit = #{profit},</if>
+            <if test="ownerEquity != null">owner_equity = #{ownerEquity},</if>
+            <if test="funding != null">funding = #{funding},</if>
+            <if test="energyConsume != null">energy_consume = #{energyConsume},</if>
+            <if test="powerConsume != null">power_consume = #{powerConsume},</if>
+            <if test="year != null">year = #{year},</if>
+            <if test="season != null and season != ''">season = #{season},</if>
+            <if test="month != null">month = #{month},</if>
+        </trim>
+        where enterprise_name = #{enterpriseName}
+    </update>
+
+    <delete id="deleteEnterpriseBaseDataTotalByEnterpriseName" parameterType="String">
+        delete from enterprise_base_data_total where enterprise_name = #{enterpriseName}
+    </delete>
+
+    <delete id="deleteEnterpriseBaseDataTotalByEnterpriseNames" parameterType="String">
+        delete from enterprise_base_data_total where enterprise_name in 
+        <foreach item="enterpriseName" collection="array" open="(" separator="," close=")">
+            #{enterpriseName}
+        </foreach>
+    </delete>
+</mapper>