Browse Source

Signed-off-by: ljx <809268652@qq.com>生成首页接口

ljx 1 month ago
parent
commit
7d254fcd48

+ 89 - 0
enteprise-admin/src/main/java/com/enteprise/business_monitor_assess/domain/BusinessMonitorAssess.java

@@ -0,0 +1,89 @@
+package com.enteprise.business_monitor_assess.domain;
+
+
+import com.enteprise.common.annotation.Excel;
+import com.enteprise.common.core.domain.BaseEntity;
+
+public class BusinessMonitorAssess extends BaseEntity {
+    //企业ID、时间(年度)、时间(季度)、所属行业、趋势分析情况/平均水平分析情况、企业运营评估结果;
+    @Excel(name = "企业名称")
+    private String enterpriseName;
+
+    /** 年份 */
+    @Excel(name = "年份")
+    private String year;
+
+    /** 月份 */
+    @Excel(name = "月份")
+    private String month;
+
+    /** 行业代码 */
+    @Excel(name = "行业代码")
+    private String code;
+
+    /** 趋势分析 */
+    @Excel(name = "趋势分析")
+    private String trendAnalysis;
+    /** 平均分析 */
+    @Excel(name = "平均分析")
+    private String avgAnalysis;
+    /** 运营评估 */
+    @Excel(name = "运营评估")
+    private String operationalEvaluate;
+
+    public String getEnterpriseName() {
+        return enterpriseName;
+    }
+
+    public void setEnterpriseName(String enterpriseName) {
+        this.enterpriseName = enterpriseName;
+    }
+
+    public String getYear() {
+        return year;
+    }
+
+    public void setYear(String year) {
+        this.year = year;
+    }
+
+    public String getMonth() {
+        return month;
+    }
+
+    public void setMonth(String month) {
+        this.month = month;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getTrendAnalysis() {
+        return trendAnalysis;
+    }
+
+    public void setTrendAnalysis(String trendAnalysis) {
+        this.trendAnalysis = trendAnalysis;
+    }
+
+    public String getAvgAnalysis() {
+        return avgAnalysis;
+    }
+
+    public void setAvgAnalysis(String avgAnalysis) {
+        this.avgAnalysis = avgAnalysis;
+    }
+
+    public String getOperationalEvaluate() {
+        return operationalEvaluate;
+    }
+
+    public void setOperationalEvaluate(String operationalEvaluate) {
+        this.operationalEvaluate = operationalEvaluate;
+    }
+}

+ 5 - 0
enteprise-admin/src/main/java/com/enteprise/business_monitor_assess/mapper/BusinessMonitorAssessMapper.java

@@ -0,0 +1,5 @@
+package com.enteprise.business_monitor_assess.mapper;
+
+public interface BusinessMonitorAssessMapper {
+
+}

+ 10 - 0
enteprise-admin/src/main/java/com/enteprise/business_monitor_assess/service/IBusinessMonitorAssessService.java

@@ -0,0 +1,10 @@
+package com.enteprise.business_monitor_assess.service;
+
+import com.enteprise.business_monitor_assess.domain.BusinessMonitorAssess;
+
+import java.util.List;
+
+public interface IBusinessMonitorAssessService {
+
+    public List<BusinessMonitorAssess> getListByBusinessMonitorAssess(BusinessMonitorAssess businessMonitorAssess);
+}

+ 30 - 0
enteprise-admin/src/main/java/com/enteprise/business_monitor_assess/service/impl/BusinessMonitorAssessService.java

@@ -0,0 +1,30 @@
+package com.enteprise.business_monitor_assess.service.impl;
+
+import com.enteprise.business_monitor_assess.domain.BusinessMonitorAssess;
+import com.enteprise.business_monitor_assess.service.IBusinessMonitorAssessService;
+
+import java.util.List;
+
+public class BusinessMonitorAssessService implements IBusinessMonitorAssessService {
+    @Override
+    public List<BusinessMonitorAssess> getListByBusinessMonitorAssess(BusinessMonitorAssess businessMonitorAssess) {
+        //判断分析方式
+
+        //if趋势分析
+        //获取上一个季度的工业产值、电力消耗、实缴税金、本季度实缴税金
+
+        //if-elseif进行各种数据对比后输出一个case
+
+        //根据输出case选择对应的输出内容和补充businessMonitorAssess进行返回
+
+
+        //if平均水平分析
+        //获取上一个季度的总产值、行业平均水平、本季度实缴税金
+
+        //if-elseif进行各种数据对比后输出一个case
+
+        //根据输出case选择对应的输出内容和补充businessMonitorAssess进行返回
+
+        return null;
+    }
+}

+ 104 - 0
enteprise-admin/src/main/java/com/enteprise/industry_oveview/controller/IndustryOverviewController.java

@@ -0,0 +1,104 @@
+package com.enteprise.industry_oveview.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_oveview.domain.IndustryOverview;
+import com.enteprise.industry_oveview.service.IIndustryOverviewService;
+import com.enteprise.common.utils.poi.ExcelUtil;
+import com.enteprise.common.core.page.TableDataInfo;
+
+/**
+ * industry_oveviewController
+ * 
+ * @author ruoyi
+ * @date 2024-11-11
+ */
+@RestController
+@RequestMapping("/industry_oveview/industry_oveview")
+public class IndustryOverviewController extends BaseController
+{
+    @Autowired
+    private IIndustryOverviewService industryOverviewService;
+
+    /**
+     * 查询industry_oveview列表
+     */
+    @PreAuthorize("@ss.hasPermi('industry_oveview:industry_oveview:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(IndustryOverview industryOverview)
+    {
+        startPage();
+        List<IndustryOverview> list = industryOverviewService.selectIndustryOverviewList(industryOverview);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出industry_oveview列表
+     */
+    @PreAuthorize("@ss.hasPermi('industry_oveview:industry_oveview:export')")
+    @Log(title = "industry_oveview", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, IndustryOverview industryOverview)
+    {
+        List<IndustryOverview> list = industryOverviewService.selectIndustryOverviewList(industryOverview);
+        ExcelUtil<IndustryOverview> util = new ExcelUtil<IndustryOverview>(IndustryOverview.class);
+        util.exportExcel(response, list, "industry_oveview数据");
+    }
+
+    /**
+     * 获取industry_oveview详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('industry_oveview:industry_oveview:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(industryOverviewService.selectIndustryOverviewById(id));
+    }
+
+    /**
+     * 新增industry_oveview
+     */
+    @PreAuthorize("@ss.hasPermi('industry_oveview:industry_oveview:add')")
+    @Log(title = "industry_oveview", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody IndustryOverview industryOverview)
+    {
+        return toAjax(industryOverviewService.insertIndustryOverview(industryOverview));
+    }
+
+    /**
+     * 修改industry_oveview
+     */
+    @PreAuthorize("@ss.hasPermi('industry_oveview:industry_oveview:edit')")
+    @Log(title = "industry_oveview", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody IndustryOverview industryOverview)
+    {
+        return toAjax(industryOverviewService.updateIndustryOverview(industryOverview));
+    }
+
+    /**
+     * 删除industry_oveview
+     */
+    @PreAuthorize("@ss.hasPermi('industry_oveview:industry_oveview:remove')")
+    @Log(title = "industry_oveview", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(industryOverviewService.deleteIndustryOverviewByIds(ids));
+    }
+}

+ 191 - 0
enteprise-admin/src/main/java/com/enteprise/industry_oveview/domain/IndustryOverview.java

@@ -0,0 +1,191 @@
+package com.enteprise.industry_oveview.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_oveview对象 industry_overview
+ * 
+ * @author ruoyi
+ * @date 2024-11-11
+ */
+public class IndustryOverview extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 年份 */
+    @Excel(name = "年份")
+    private String year;
+
+    /** 用地面积 */
+    @Excel(name = "用地面积")
+    private Long landArea;
+
+    /** 用电量 */
+    @Excel(name = "用电量")
+    private Long powerConsumeSum;
+
+    /** 能源消费量 */
+    @Excel(name = "能源消费量")
+    private Long energyConsumeSum;
+
+    /** 研发经费 */
+    @Excel(name = "研发经费")
+    private Long fundingSum;
+
+    /** 从业人员数 */
+    @Excel(name = "从业人员数")
+    private Long employeeNumberSum;
+
+    /** 利润总额 */
+    @Excel(name = "利润总额")
+    private Long profitSum;
+
+    /** 企业数量 */
+    @Excel(name = "企业数量")
+    private Long enterpriseNumbers;
+
+    /** 工业总产值 */
+    @Excel(name = "工业总产值")
+    private Long totalIndustrialValueSum;
+
+    /** 应税收入 */
+    @Excel(name = "应税收入")
+    private Long taxableIncomeSum;
+
+    /** 实缴税金 */
+    @Excel(name = "实缴税金")
+    private Long paidTaxSum;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setYear(String year) 
+    {
+        this.year = year;
+    }
+
+    public String getYear() 
+    {
+        return year;
+    }
+    public void setLandArea(Long landArea) 
+    {
+        this.landArea = landArea;
+    }
+
+    public Long getLandArea() 
+    {
+        return landArea;
+    }
+    public void setPowerConsumeSum(Long powerConsumeSum) 
+    {
+        this.powerConsumeSum = powerConsumeSum;
+    }
+
+    public Long getPowerConsumeSum() 
+    {
+        return powerConsumeSum;
+    }
+    public void setEnergyConsumeSum(Long energyConsumeSum) 
+    {
+        this.energyConsumeSum = energyConsumeSum;
+    }
+
+    public Long getEnergyConsumeSum() 
+    {
+        return energyConsumeSum;
+    }
+    public void setFundingSum(Long fundingSum) 
+    {
+        this.fundingSum = fundingSum;
+    }
+
+    public Long getFundingSum() 
+    {
+        return fundingSum;
+    }
+    public void setEmployeeNumberSum(Long employeeNumberSum) 
+    {
+        this.employeeNumberSum = employeeNumberSum;
+    }
+
+    public Long getEmployeeNumberSum() 
+    {
+        return employeeNumberSum;
+    }
+    public void setProfitSum(Long profitSum) 
+    {
+        this.profitSum = profitSum;
+    }
+
+    public Long getProfitSum() 
+    {
+        return profitSum;
+    }
+    public void setEnterpriseNumbers(Long enterpriseNumbers) 
+    {
+        this.enterpriseNumbers = enterpriseNumbers;
+    }
+
+    public Long getEnterpriseNumbers() 
+    {
+        return enterpriseNumbers;
+    }
+    public void setTotalIndustrialValueSum(Long totalIndustrialValueSum) 
+    {
+        this.totalIndustrialValueSum = totalIndustrialValueSum;
+    }
+
+    public Long getTotalIndustrialValueSum() 
+    {
+        return totalIndustrialValueSum;
+    }
+    public void setTaxableIncomeSum(Long taxableIncomeSum) 
+    {
+        this.taxableIncomeSum = taxableIncomeSum;
+    }
+
+    public Long getTaxableIncomeSum() 
+    {
+        return taxableIncomeSum;
+    }
+    public void setPaidTaxSum(Long paidTaxSum) 
+    {
+        this.paidTaxSum = paidTaxSum;
+    }
+
+    public Long getPaidTaxSum() 
+    {
+        return paidTaxSum;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("year", getYear())
+            .append("landArea", getLandArea())
+            .append("powerConsumeSum", getPowerConsumeSum())
+            .append("energyConsumeSum", getEnergyConsumeSum())
+            .append("fundingSum", getFundingSum())
+            .append("employeeNumberSum", getEmployeeNumberSum())
+            .append("profitSum", getProfitSum())
+            .append("enterpriseNumbers", getEnterpriseNumbers())
+            .append("totalIndustrialValueSum", getTotalIndustrialValueSum())
+            .append("taxableIncomeSum", getTaxableIncomeSum())
+            .append("paidTaxSum", getPaidTaxSum())
+            .toString();
+    }
+}

+ 61 - 0
enteprise-admin/src/main/java/com/enteprise/industry_oveview/mapper/IndustryOverviewMapper.java

@@ -0,0 +1,61 @@
+package com.enteprise.industry_oveview.mapper;
+
+import java.util.List;
+import com.enteprise.industry_oveview.domain.IndustryOverview;
+
+/**
+ * industry_oveviewMapper接口
+ * 
+ * @author ruoyi
+ * @date 2024-11-11
+ */
+public interface IndustryOverviewMapper 
+{
+    /**
+     * 查询industry_oveview
+     * 
+     * @param id industry_oveview主键
+     * @return industry_oveview
+     */
+    public IndustryOverview selectIndustryOverviewById(Long id);
+
+    /**
+     * 查询industry_oveview列表
+     * 
+     * @param industryOverview industry_oveview
+     * @return industry_oveview集合
+     */
+    public List<IndustryOverview> selectIndustryOverviewList(IndustryOverview industryOverview);
+
+    /**
+     * 新增industry_oveview
+     * 
+     * @param industryOverview industry_oveview
+     * @return 结果
+     */
+    public int insertIndustryOverview(IndustryOverview industryOverview);
+
+    /**
+     * 修改industry_oveview
+     * 
+     * @param industryOverview industry_oveview
+     * @return 结果
+     */
+    public int updateIndustryOverview(IndustryOverview industryOverview);
+
+    /**
+     * 删除industry_oveview
+     * 
+     * @param id industry_oveview主键
+     * @return 结果
+     */
+    public int deleteIndustryOverviewById(Long id);
+
+    /**
+     * 批量删除industry_oveview
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteIndustryOverviewByIds(Long[] ids);
+}

+ 61 - 0
enteprise-admin/src/main/java/com/enteprise/industry_oveview/service/IIndustryOverviewService.java

@@ -0,0 +1,61 @@
+package com.enteprise.industry_oveview.service;
+
+import java.util.List;
+import com.enteprise.industry_oveview.domain.IndustryOverview;
+
+/**
+ * industry_oveviewService接口
+ * 
+ * @author ruoyi
+ * @date 2024-11-11
+ */
+public interface IIndustryOverviewService 
+{
+    /**
+     * 查询industry_oveview
+     * 
+     * @param id industry_oveview主键
+     * @return industry_oveview
+     */
+    public IndustryOverview selectIndustryOverviewById(Long id);
+
+    /**
+     * 查询industry_oveview列表
+     * 
+     * @param industryOverview industry_oveview
+     * @return industry_oveview集合
+     */
+    public List<IndustryOverview> selectIndustryOverviewList(IndustryOverview industryOverview);
+
+    /**
+     * 新增industry_oveview
+     * 
+     * @param industryOverview industry_oveview
+     * @return 结果
+     */
+    public int insertIndustryOverview(IndustryOverview industryOverview);
+
+    /**
+     * 修改industry_oveview
+     * 
+     * @param industryOverview industry_oveview
+     * @return 结果
+     */
+    public int updateIndustryOverview(IndustryOverview industryOverview);
+
+    /**
+     * 批量删除industry_oveview
+     * 
+     * @param ids 需要删除的industry_oveview主键集合
+     * @return 结果
+     */
+    public int deleteIndustryOverviewByIds(Long[] ids);
+
+    /**
+     * 删除industry_oveview信息
+     * 
+     * @param id industry_oveview主键
+     * @return 结果
+     */
+    public int deleteIndustryOverviewById(Long id);
+}

+ 93 - 0
enteprise-admin/src/main/java/com/enteprise/industry_oveview/service/impl/IndustryOverviewServiceImpl.java

@@ -0,0 +1,93 @@
+package com.enteprise.industry_oveview.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.enteprise.industry_oveview.mapper.IndustryOverviewMapper;
+import com.enteprise.industry_oveview.domain.IndustryOverview;
+import com.enteprise.industry_oveview.service.IIndustryOverviewService;
+
+/**
+ * industry_oveviewService业务层处理
+ * 
+ * @author ruoyi
+ * @date 2024-11-11
+ */
+@Service
+public class IndustryOverviewServiceImpl implements IIndustryOverviewService 
+{
+    @Autowired
+    private IndustryOverviewMapper industryOverviewMapper;
+
+    /**
+     * 查询industry_oveview
+     * 
+     * @param id industry_oveview主键
+     * @return industry_oveview
+     */
+    @Override
+    public IndustryOverview selectIndustryOverviewById(Long id)
+    {
+        return industryOverviewMapper.selectIndustryOverviewById(id);
+    }
+
+    /**
+     * 查询industry_oveview列表
+     * 
+     * @param industryOverview industry_oveview
+     * @return industry_oveview
+     */
+    @Override
+    public List<IndustryOverview> selectIndustryOverviewList(IndustryOverview industryOverview)
+    {
+        return industryOverviewMapper.selectIndustryOverviewList(industryOverview);
+    }
+
+    /**
+     * 新增industry_oveview
+     * 
+     * @param industryOverview industry_oveview
+     * @return 结果
+     */
+    @Override
+    public int insertIndustryOverview(IndustryOverview industryOverview)
+    {
+        return industryOverviewMapper.insertIndustryOverview(industryOverview);
+    }
+
+    /**
+     * 修改industry_oveview
+     * 
+     * @param industryOverview industry_oveview
+     * @return 结果
+     */
+    @Override
+    public int updateIndustryOverview(IndustryOverview industryOverview)
+    {
+        return industryOverviewMapper.updateIndustryOverview(industryOverview);
+    }
+
+    /**
+     * 批量删除industry_oveview
+     * 
+     * @param ids 需要删除的industry_oveview主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIndustryOverviewByIds(Long[] ids)
+    {
+        return industryOverviewMapper.deleteIndustryOverviewByIds(ids);
+    }
+
+    /**
+     * 删除industry_oveview信息
+     * 
+     * @param id industry_oveview主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIndustryOverviewById(Long id)
+    {
+        return industryOverviewMapper.deleteIndustryOverviewById(id);
+    }
+}

+ 2 - 2
enteprise-admin/src/main/resources/application-druid.yml

@@ -6,9 +6,9 @@ spring:
         druid:
             # 主库数据源
             master:
-                url: jdbc:mysql://localhost:3306/enterprise?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+                url: jdbc:mysql://139.9.50.163:3306/enterprise?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
                 username: root
-                password: 123456
+                password: ydl@123456
             # 从库数据源
             slave:
                 # 从数据源开关/默认关闭

+ 106 - 0
enteprise-admin/src/main/resources/mapper/industry_oveview/IndustryOverviewMapper.xml

@@ -0,0 +1,106 @@
+<?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_oveview.mapper.IndustryOverviewMapper">
+    
+    <resultMap type="IndustryOverview" id="IndustryOverviewResult">
+        <result property="id"    column="id"    />
+        <result property="year"    column="year"    />
+        <result property="landArea"    column="land_area"    />
+        <result property="powerConsumeSum"    column="power_consume_sum"    />
+        <result property="energyConsumeSum"    column="energy_consume_sum"    />
+        <result property="fundingSum"    column="funding_sum"    />
+        <result property="employeeNumberSum"    column="employee_number_sum"    />
+        <result property="profitSum"    column="profit_sum"    />
+        <result property="enterpriseNumbers"    column="enterprise_numbers"    />
+        <result property="totalIndustrialValueSum"    column="total_industrial_value_sum"    />
+        <result property="taxableIncomeSum"    column="taxable_income_sum"    />
+        <result property="paidTaxSum"    column="paid_tax_sum"    />
+    </resultMap>
+
+    <sql id="selectIndustryOverviewVo">
+        select id, year, land_area, power_consume_sum, energy_consume_sum, funding_sum, employee_number_sum, profit_sum, enterprise_numbers, total_industrial_value_sum, taxable_income_sum, paid_tax_sum from industry_overview
+    </sql>
+
+    <select id="selectIndustryOverviewList" parameterType="IndustryOverview" resultMap="IndustryOverviewResult">
+        <include refid="selectIndustryOverviewVo"/>
+        <where>  
+            <if test="year != null  and year != ''"> and year = #{year}</if>
+            <if test="landArea != null "> and land_area = #{landArea}</if>
+            <if test="powerConsumeSum != null "> and power_consume_sum = #{powerConsumeSum}</if>
+            <if test="energyConsumeSum != null "> and energy_consume_sum = #{energyConsumeSum}</if>
+            <if test="fundingSum != null "> and funding_sum = #{fundingSum}</if>
+            <if test="employeeNumberSum != null "> and employee_number_sum = #{employeeNumberSum}</if>
+            <if test="profitSum != null "> and profit_sum = #{profitSum}</if>
+            <if test="enterpriseNumbers != null "> and enterprise_numbers = #{enterpriseNumbers}</if>
+            <if test="totalIndustrialValueSum != null "> and total_industrial_value_sum = #{totalIndustrialValueSum}</if>
+            <if test="taxableIncomeSum != null "> and taxable_income_sum = #{taxableIncomeSum}</if>
+            <if test="paidTaxSum != null "> and paid_tax_sum = #{paidTaxSum}</if>
+        </where>
+    </select>
+    
+    <select id="selectIndustryOverviewById" parameterType="Long" resultMap="IndustryOverviewResult">
+        <include refid="selectIndustryOverviewVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertIndustryOverview" parameterType="IndustryOverview" useGeneratedKeys="true" keyProperty="id">
+        insert into industry_overview
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="year != null and year != ''">year,</if>
+            <if test="landArea != null">land_area,</if>
+            <if test="powerConsumeSum != null">power_consume_sum,</if>
+            <if test="energyConsumeSum != null">energy_consume_sum,</if>
+            <if test="fundingSum != null">funding_sum,</if>
+            <if test="employeeNumberSum != null">employee_number_sum,</if>
+            <if test="profitSum != null">profit_sum,</if>
+            <if test="enterpriseNumbers != null">enterprise_numbers,</if>
+            <if test="totalIndustrialValueSum != null">total_industrial_value_sum,</if>
+            <if test="taxableIncomeSum != null">taxable_income_sum,</if>
+            <if test="paidTaxSum != null">paid_tax_sum,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="year != null and year != ''">#{year},</if>
+            <if test="landArea != null">#{landArea},</if>
+            <if test="powerConsumeSum != null">#{powerConsumeSum},</if>
+            <if test="energyConsumeSum != null">#{energyConsumeSum},</if>
+            <if test="fundingSum != null">#{fundingSum},</if>
+            <if test="employeeNumberSum != null">#{employeeNumberSum},</if>
+            <if test="profitSum != null">#{profitSum},</if>
+            <if test="enterpriseNumbers != null">#{enterpriseNumbers},</if>
+            <if test="totalIndustrialValueSum != null">#{totalIndustrialValueSum},</if>
+            <if test="taxableIncomeSum != null">#{taxableIncomeSum},</if>
+            <if test="paidTaxSum != null">#{paidTaxSum},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIndustryOverview" parameterType="IndustryOverview">
+        update industry_overview
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="year != null and year != ''">year = #{year},</if>
+            <if test="landArea != null">land_area = #{landArea},</if>
+            <if test="powerConsumeSum != null">power_consume_sum = #{powerConsumeSum},</if>
+            <if test="energyConsumeSum != null">energy_consume_sum = #{energyConsumeSum},</if>
+            <if test="fundingSum != null">funding_sum = #{fundingSum},</if>
+            <if test="employeeNumberSum != null">employee_number_sum = #{employeeNumberSum},</if>
+            <if test="profitSum != null">profit_sum = #{profitSum},</if>
+            <if test="enterpriseNumbers != null">enterprise_numbers = #{enterpriseNumbers},</if>
+            <if test="totalIndustrialValueSum != null">total_industrial_value_sum = #{totalIndustrialValueSum},</if>
+            <if test="taxableIncomeSum != null">taxable_income_sum = #{taxableIncomeSum},</if>
+            <if test="paidTaxSum != null">paid_tax_sum = #{paidTaxSum},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIndustryOverviewById" parameterType="Long">
+        delete from industry_overview where id = #{id}
+    </delete>
+
+    <delete id="deleteIndustryOverviewByIds" parameterType="String">
+        delete from industry_overview where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>