瀏覽代碼

目标展板代码提交

zx 6 月之前
父節點
當前提交
01848e87e3
共有 17 個文件被更改,包括 2181 次插入43 次删除
  1. 6 0
      ruoyi-powerdistribution/pom.xml
  2. 117 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmScoreRankCompanyController.java
  3. 158 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmStopTargeController.java
  4. 124 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmScoreRankCompany.java
  5. 10 24
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmScoreRankTeam.java
  6. 700 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmStopTarge.java
  7. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/mapper/PdmScoreRankCompanyMapper.java
  8. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/mapper/PdmStopTargeMapper.java
  9. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/IPdmScoreRankCompanyService.java
  10. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/IPdmStopTargeService.java
  11. 96 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmScoreRankCompanyServiceImpl.java
  12. 96 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmStopTargeServiceImpl.java
  13. 129 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/util/ImportExcelHelper.java
  14. 94 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/util/ImportExcelListener.java
  15. 92 0
      ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmScoreRankCompanyMapper.xml
  16. 13 19
      ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmScoreRankTeamMapper.xml
  17. 302 0
      ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmStopTargeMapper.xml

+ 6 - 0
ruoyi-powerdistribution/pom.xml

@@ -37,6 +37,12 @@
             <version>3.2.0</version>
             <scope>compile</scope>
         </dependency>
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>fastjson</artifactId>
+            <version>1.2.83</version>
+            <scope>compile</scope>
+        </dependency>
 
     </dependencies>
 

+ 117 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmScoreRankCompanyController.java

@@ -0,0 +1,117 @@
+package com.ruoyi.powerdistribution.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.github.pagehelper.PageInfo;
+import com.ruoyi.powerdistribution.domain.PdmScoreRankManager;
+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.powerdistribution.domain.PdmScoreRankCompany;
+import com.ruoyi.powerdistribution.service.IPdmScoreRankCompanyService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 单位积分排名Controller
+ *
+ * @author ruoyi
+ * @date 2024-12-09
+ */
+@RestController
+@RequestMapping("power/companyRank")
+public class PdmScoreRankCompanyController extends BaseController
+{
+    @Autowired
+    private IPdmScoreRankCompanyService pdmScoreRankCompanyService;
+
+    /**
+     * 查询单位积分排名列表
+     */
+    @ApiOperation(value = "查询单位积分排名列表")
+    @PreAuthorize("@ss.hasPermi('system:company:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PdmScoreRankCompany pdmScoreRankCompany)
+    {
+        startPage();
+        List<PdmScoreRankCompany> list = pdmScoreRankCompanyService.selectPdmScoreRankCompanyList(pdmScoreRankCompany);
+        PageInfo pageInfo =  new PageInfo(list);
+        int pageNum = pageInfo.getPageNum();
+        int i = 1;
+        for(PdmScoreRankCompany manager:list){
+            int rankNum = pageNum!=1?(pageNum-1)*pageInfo.getPageSize()*i:i;
+            manager.setRankNum(rankNum);
+            i++;
+        }
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出单位积分排名列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:company:export')")
+    @Log(title = "单位积分排名", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PdmScoreRankCompany pdmScoreRankCompany)
+    {
+        List<PdmScoreRankCompany> list = pdmScoreRankCompanyService.selectPdmScoreRankCompanyList(pdmScoreRankCompany);
+        ExcelUtil<PdmScoreRankCompany> util = new ExcelUtil<PdmScoreRankCompany>(PdmScoreRankCompany.class);
+        util.exportExcel(response, list, "单位积分排名数据");
+    }
+
+    /**
+     * 获取单位积分排名详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:company:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(pdmScoreRankCompanyService.selectPdmScoreRankCompanyById(id));
+    }
+
+    /**
+     * 新增单位积分排名
+     */
+    @PreAuthorize("@ss.hasPermi('system:company:add')")
+    @Log(title = "单位积分排名", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PdmScoreRankCompany pdmScoreRankCompany)
+    {
+        return toAjax(pdmScoreRankCompanyService.insertPdmScoreRankCompany(pdmScoreRankCompany));
+    }
+
+    /**
+     * 修改单位积分排名
+     */
+    @PreAuthorize("@ss.hasPermi('system:company:edit')")
+    @Log(title = "单位积分排名", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PdmScoreRankCompany pdmScoreRankCompany)
+    {
+        return toAjax(pdmScoreRankCompanyService.updatePdmScoreRankCompany(pdmScoreRankCompany));
+    }
+
+    /**
+     * 删除单位积分排名
+     */
+    @PreAuthorize("@ss.hasPermi('system:company:remove')")
+    @Log(title = "单位积分排名", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(pdmScoreRankCompanyService.deletePdmScoreRankCompanyByIds(ids));
+    }
+}

+ 158 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmStopTargeController.java

@@ -0,0 +1,158 @@
+package com.ruoyi.powerdistribution.controller;
+
+import java.io.BufferedInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URLEncoder;
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.ruoyi.common.core.domain.R;
+import com.ruoyi.common.utils.uuid.UUID;
+import com.ruoyi.powerdistribution.util.ImportExcelHelper;
+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.*;
+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.powerdistribution.domain.PdmStopTarge;
+import com.ruoyi.powerdistribution.service.IPdmStopTargeService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 停电预算Controller
+ *
+ * @author ruoyi
+ * @date 2024-12-09
+ */
+@RestController
+@Api(value = "PdmStopTargeController", tags = "停电预算(目标展板)")
+@RequestMapping("/power/stopTarge")
+public class PdmStopTargeController extends BaseController
+{
+    @Autowired
+    private IPdmStopTargeService pdmStopTargeService;
+
+    /**
+     * 查询停电预算列表
+     */
+    @ApiOperation(value = "查询停电预算列表")
+    @PreAuthorize("@ss.hasPermi('system:targe:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PdmStopTarge pdmStopTarge)
+    {
+        startPage();
+        List<PdmStopTarge> list = pdmStopTargeService.selectPdmStopTargeList(pdmStopTarge);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出停电预算列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:targe:export')")
+    @Log(title = "停电预算", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PdmStopTarge pdmStopTarge)
+    {
+        List<PdmStopTarge> list = pdmStopTargeService.selectPdmStopTargeList(pdmStopTarge);
+        ExcelUtil<PdmStopTarge> util = new ExcelUtil<PdmStopTarge>(PdmStopTarge.class);
+        util.exportExcel(response, list, "停电预算数据");
+    }
+
+    /**
+     * 获取停电预算详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:targe:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(pdmStopTargeService.selectPdmStopTargeById(id));
+    }
+
+    /**
+     * 新增停电预算
+     */
+    @PreAuthorize("@ss.hasPermi('system:targe:add')")
+    @Log(title = "停电预算", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@RequestBody PdmStopTarge pdmStopTarge)
+    {
+        return toAjax(pdmStopTargeService.insertPdmStopTarge(pdmStopTarge));
+    }
+
+    /**
+     * 修改停电预算
+     */
+    @PreAuthorize("@ss.hasPermi('system:targe:edit')")
+    @Log(title = "停电预算", businessType = BusinessType.UPDATE)
+    @PostMapping("/update")
+    public AjaxResult edit(@RequestBody PdmStopTarge pdmStopTarge)
+    {
+        return toAjax(pdmStopTargeService.updatePdmStopTarge(pdmStopTarge));
+    }
+
+    /**
+     * 删除停电预算
+     */
+    @PreAuthorize("@ss.hasPermi('system:targe:remove')")
+    @Log(title = "停电预算", businessType = BusinessType.DELETE)
+	@GetMapping("delete/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(pdmStopTargeService.deletePdmStopTargeByIds(ids));
+    }
+
+    @PostMapping("/downloadTemplate")
+    @ApiOperation(value = "停电预算下载模板")
+    public void downloadTemplate(HttpServletResponse response) {
+        String filePath = "excelTemplate/invoiceImport.xlsx";//未完成
+        byte[] buffer = new byte[1024];
+        InputStream fis = Thread.currentThread().getContextClassLoader().getResourceAsStream(filePath);
+        BufferedInputStream bis = null;
+        try {
+            response.setHeader("Content-Disposition", "attachment;filename*=UTF-8''" + URLEncoder.encode(UUID.fastUUID().toString(), "UTF-8"));
+            response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8");
+            response.setCharacterEncoding("UTF-8");
+            bis = new BufferedInputStream(fis);
+            OutputStream os = response.getOutputStream();
+            int i = bis.read(buffer);
+            while (i != -1) {
+                os.write(buffer, 0, i);
+                i = bis.read(buffer);
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        } finally {
+            try {
+                bis.close();
+                fis.close();
+            } catch (Exception e1) {
+                e1.printStackTrace();
+            }
+        }
+    }
+
+    /**
+     * 导入excel
+     * @param file
+     * @param reportYear
+     * @return
+     * @throws IOException
+     */
+    @PostMapping("/import")
+    @ApiOperation(value = "停电预算导入", notes = "停电预算导入")
+    public R invoiceImport(@RequestParam("file") MultipartFile file,@RequestParam("reportYear") String reportYear) throws IOException {
+        //ImportExcelHelper<PdmStopTarge> helper = new ImportExcelHelper<>();
+        //List<PdmStopTarge> list = helper.getList(file.getInputStream(), PdmStopTarge.class, 0, 1);
+        logger.info("file" + file.getName());
+        logger.info("reportYear" + reportYear);
+        return R.ok("导入成功");
+    }
+}

+ 124 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmScoreRankCompany.java

@@ -0,0 +1,124 @@
+package com.ruoyi.powerdistribution.domain;
+
+import java.math.BigDecimal;
+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;
+
+/**
+ * 单位积分排名对象 pdm_score_rank_company
+ *
+ * @author ruoyi
+ * @date 2024-12-09
+ */
+public class PdmScoreRankCompany extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 统计年 */
+    @Excel(name = "统计年")
+    private String reportYear;
+
+    /** 统计年月 */
+    @Excel(name = "统计年月")
+    private String reportDate;
+
+    /** 作业单位编码 */
+    @Excel(name = "作业单位编码")
+    private String companyNo;
+
+    /** 作业单位名称 */
+    @Excel(name = "作业单位名称")
+    private String companyName;
+
+    /** 得分 */
+    @Excel(name = "得分")
+    private BigDecimal score;
+
+    /** 排序 */
+    @Excel(name = "排序")
+    private int rankNum;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setReportYear(String reportYear)
+    {
+        this.reportYear = reportYear;
+    }
+
+    public String getReportYear()
+    {
+        return reportYear;
+    }
+    public void setReportDate(String reportDate)
+    {
+        this.reportDate = reportDate;
+    }
+
+    public String getReportDate()
+    {
+        return reportDate;
+    }
+    public void setCompanyNo(String companyNo)
+    {
+        this.companyNo = companyNo;
+    }
+
+    public String getCompanyNo()
+    {
+        return companyNo;
+    }
+    public void setCompanyName(String companyName)
+    {
+        this.companyName = companyName;
+    }
+
+    public String getCompanyName()
+    {
+        return companyName;
+    }
+    public void setScore(BigDecimal score)
+    {
+        this.score = score;
+    }
+
+    public BigDecimal getScore()
+    {
+        return score;
+    }
+
+    public int getRankNum() {
+        return rankNum;
+    }
+
+    public void setRankNum(int rankNum) {
+        this.rankNum = rankNum;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("reportYear", getReportYear())
+            .append("reportDate", getReportDate())
+            .append("companyNo", getCompanyNo())
+            .append("companyName", getCompanyName())
+            .append("score", getScore())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 10 - 24
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmScoreRankTeam.java

@@ -10,13 +10,13 @@ import com.ruoyi.common.core.domain.BaseEntity;
  * 队伍积分排名对象 pdm_score_rank_team
  *
  * @author ruoyi
- * @date 2024-12-05
+ * @date 2024-12-09
  */
 public class PdmScoreRankTeam extends BaseEntity
 {
     private static final long serialVersionUID = 1L;
 
-    /** $column.columnComment */
+    /**  */
     private Long id;
 
     /** 统计年 */
@@ -27,13 +27,9 @@ public class PdmScoreRankTeam extends BaseEntity
     @Excel(name = "统计年月")
     private String reportDate;
 
-    /** 作业单位编码 */
-    @Excel(name = "作业单位编码")
-    private String companyNo;
-
-    /** 作业单位名称 */
-    @Excel(name = "作业单位名称")
-    private String companyName;
+    /** 队伍类型 */
+    @Excel(name = "队伍类型")
+    private String teamType;
 
     /** 队伍ID */
     @Excel(name = "队伍ID")
@@ -78,23 +74,14 @@ public class PdmScoreRankTeam extends BaseEntity
     {
         return reportDate;
     }
-    public void setCompanyNo(String companyNo)
-    {
-        this.companyNo = companyNo;
-    }
-
-    public String getCompanyNo()
-    {
-        return companyNo;
-    }
-    public void setCompanyName(String companyName)
+    public void setTeamType(String teamType)
     {
-        this.companyName = companyName;
+        this.teamType = teamType;
     }
 
-    public String getCompanyName()
+    public String getTeamType()
     {
-        return companyName;
+        return teamType;
     }
     public void setTeamId(String teamId)
     {
@@ -138,8 +125,7 @@ public class PdmScoreRankTeam extends BaseEntity
             .append("id", getId())
             .append("reportYear", getReportYear())
             .append("reportDate", getReportDate())
-            .append("companyNo", getCompanyNo())
-            .append("companyName", getCompanyName())
+            .append("teamType", getTeamType())
             .append("teamId", getTeamId())
             .append("teamName", getTeamName())
             .append("score", getScore())

+ 700 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmStopTarge.java

@@ -0,0 +1,700 @@
+package com.ruoyi.powerdistribution.domain;
+
+import java.math.BigDecimal;
+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;
+
+/**
+ * 停电预算对象 pdm_stop_targe
+ *
+ * @author ruoyi
+ * @date 2024-12-09
+ */
+public class PdmStopTarge extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 年 */
+    @Excel(name = "年")
+    private String reportYear;
+
+    /** 单位编码 */
+    @Excel(name = "单位编码")
+    private String companyNo;
+
+    /** 单位名称 */
+    @Excel(name = "单位名称")
+    private String companyName;
+
+    /** 平均停电时长目标 */
+    @Excel(name = "平均停电时长目标")
+    private BigDecimal stopTimeAvg;
+
+    /** 等效总用户数 */
+    @Excel(name = "等效总用户数")
+    private Integer userTotal;
+
+    /** 停电总时长目标 */
+    @Excel(name = "停电总时长目标")
+    private BigDecimal stopTimeTotal;
+
+    /** 3年占比 */
+    @Excel(name = "3年占比")
+    private String threeYearRatio;
+
+    /** 预安排停电总时长目标 */
+    @Excel(name = "预安排停电总时长目标")
+    private BigDecimal planStopTimeTotal;
+
+    /** 预安排平均停电时长目标 */
+    @Excel(name = "预安排平均停电时长目标")
+    private BigDecimal planStopTimeAvg;
+
+    /** 故障停电总时长目标 */
+    @Excel(name = "故障停电总时长目标")
+    private BigDecimal errorStopTimeTotal;
+
+    /** 故障平均停电时长目标 */
+    @Excel(name = "故障平均停电时长目标")
+    private BigDecimal errorStopTimeAvg;
+
+    /** 停电月度时长-1月 */
+    @Excel(name = "停电月度时长-1月")
+    private BigDecimal stopTimeMonth01;
+
+    /** 停电月度时长-2月 */
+    @Excel(name = "停电月度时长-2月")
+    private BigDecimal stopTimeMonth02;
+
+    /** 停电月度时长-3月 */
+    @Excel(name = "停电月度时长-3月")
+    private BigDecimal stopTimeMonth03;
+
+    /** 停电月度时长-4月 */
+    @Excel(name = "停电月度时长-4月")
+    private BigDecimal stopTimeMonth04;
+
+    /** 停电月度时长-5月 */
+    @Excel(name = "停电月度时长-5月")
+    private BigDecimal stopTimeMonth05;
+
+    /** 停电月度时长-6月 */
+    @Excel(name = "停电月度时长-6月")
+    private BigDecimal stopTimeMonth06;
+
+    /** 停电月度时长-7月 */
+    @Excel(name = "停电月度时长-7月")
+    private BigDecimal stopTimeMonth07;
+
+    /** 停电月度时长-8月 */
+    @Excel(name = "停电月度时长-8月")
+    private BigDecimal stopTimeMonth08;
+
+    /** 停电月度时长-9月 */
+    @Excel(name = "停电月度时长-9月")
+    private BigDecimal stopTimeMonth09;
+
+    /** 停电月度时长-10月 */
+    @Excel(name = "停电月度时长-10月")
+    private BigDecimal stopTimeMonth10;
+
+    /** 停电月度时长-11月 */
+    @Excel(name = "停电月度时长-11月")
+    private BigDecimal stopTimeMonth11;
+
+    /** 停电月度时长-12月 */
+    @Excel(name = "停电月度时长-12月")
+    private BigDecimal stopTimeMonth12;
+
+    /** 预安排停电月度时长-1月 */
+    @Excel(name = "预安排停电月度时长-1月")
+    private BigDecimal planStopTimeMonth01;
+
+    /** 预安排停电月度时长-2月 */
+    @Excel(name = "预安排停电月度时长-2月")
+    private BigDecimal planStopTimeMonth02;
+
+    /** 预安排停电月度时长-3月 */
+    @Excel(name = "预安排停电月度时长-3月")
+    private BigDecimal planStopTimeMonth03;
+
+    /** 预安排停电月度时长-4月 */
+    @Excel(name = "预安排停电月度时长-4月")
+    private BigDecimal planStopTimeMonth04;
+
+    /** 预安排停电月度时长-5月 */
+    @Excel(name = "预安排停电月度时长-5月")
+    private BigDecimal planStopTimeMonth05;
+
+    /** 预安排停电月度时长-6月 */
+    @Excel(name = "预安排停电月度时长-6月")
+    private BigDecimal planStopTimeMonth06;
+
+    /** 预安排停电月度时长-7月 */
+    @Excel(name = "预安排停电月度时长-7月")
+    private BigDecimal planStopTimeMonth07;
+
+    /** 预安排停电月度时长-8月 */
+    @Excel(name = "预安排停电月度时长-8月")
+    private BigDecimal planStopTimeMonth08;
+
+    /** 预安排停电月度时长-9月 */
+    @Excel(name = "预安排停电月度时长-9月")
+    private BigDecimal planStopTimeMonth09;
+
+    /** 预安排停电月度时长-10月 */
+    @Excel(name = "预安排停电月度时长-10月")
+    private BigDecimal planStopTimeMonth10;
+
+    /** 预安排停电月度时长-11月 */
+    @Excel(name = "预安排停电月度时长-11月")
+    private BigDecimal planStopTimeMonth11;
+
+    /** 预安排停电月度时长-12月 */
+    @Excel(name = "预安排停电月度时长-12月")
+    private BigDecimal planStopTimeMonth12;
+
+    /** 故障停电月度时长-1月 */
+    @Excel(name = "故障停电月度时长-1月")
+    private BigDecimal errorStopTimeMonth01;
+
+    /** 故障停电月度时长-2月 */
+    @Excel(name = "故障停电月度时长-2月")
+    private BigDecimal errorStopTimeMonth02;
+
+    /** 故障停电月度时长-3月 */
+    @Excel(name = "故障停电月度时长-3月")
+    private BigDecimal errorStopTimeMonth03;
+
+    /** 故障停电月度时长-4月 */
+    @Excel(name = "故障停电月度时长-4月")
+    private BigDecimal errorStopTimeMonth04;
+
+    /** 故障停电月度时长-5月 */
+    @Excel(name = "故障停电月度时长-5月")
+    private BigDecimal errorStopTimeMonth05;
+
+    /** 故障停电月度时长-6月 */
+    @Excel(name = "故障停电月度时长-6月")
+    private BigDecimal errorStopTimeMonth06;
+
+    /** 故障停电月度时长-7月 */
+    @Excel(name = "故障停电月度时长-7月")
+    private BigDecimal errorStopTimeMonth07;
+
+    /** 故障停电月度时长-8月 */
+    @Excel(name = "故障停电月度时长-8月")
+    private BigDecimal errorStopTimeMonth08;
+
+    /** 故障停电月度时长-9月 */
+    @Excel(name = "故障停电月度时长-9月")
+    private BigDecimal errorStopTimeMonth09;
+
+    /** 故障停电月度时长-10月 */
+    @Excel(name = "故障停电月度时长-10月")
+    private BigDecimal errorStopTimeMonth10;
+
+    /** 故障停电月度时长-11月 */
+    @Excel(name = "故障停电月度时长-11月")
+    private BigDecimal errorStopTimeMonth11;
+
+    /** 故障停电月度时长-12月 */
+    @Excel(name = "故障停电月度时长-12月")
+    private BigDecimal errorStopTimeMonth12;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setReportYear(String reportYear)
+    {
+        this.reportYear = reportYear;
+    }
+
+    public String getReportYear()
+    {
+        return reportYear;
+    }
+    public void setCompanyNo(String companyNo)
+    {
+        this.companyNo = companyNo;
+    }
+
+    public String getCompanyNo()
+    {
+        return companyNo;
+    }
+    public void setCompanyName(String companyName)
+    {
+        this.companyName = companyName;
+    }
+
+    public String getCompanyName()
+    {
+        return companyName;
+    }
+    public void setStopTimeAvg(BigDecimal stopTimeAvg)
+    {
+        this.stopTimeAvg = stopTimeAvg;
+    }
+
+    public BigDecimal getStopTimeAvg()
+    {
+        return stopTimeAvg;
+    }
+    public void setUserTotal(Integer userTotal)
+    {
+        this.userTotal = userTotal;
+    }
+
+    public Integer getUserTotal()
+    {
+        return userTotal;
+    }
+    public void setStopTimeTotal(BigDecimal stopTimeTotal)
+    {
+        this.stopTimeTotal = stopTimeTotal;
+    }
+
+    public BigDecimal getStopTimeTotal()
+    {
+        return stopTimeTotal;
+    }
+    public void setThreeYearRatio(String threeYearRatio)
+    {
+        this.threeYearRatio = threeYearRatio;
+    }
+
+    public String getThreeYearRatio()
+    {
+        return threeYearRatio;
+    }
+    public void setPlanStopTimeTotal(BigDecimal planStopTimeTotal)
+    {
+        this.planStopTimeTotal = planStopTimeTotal;
+    }
+
+    public BigDecimal getPlanStopTimeTotal()
+    {
+        return planStopTimeTotal;
+    }
+    public void setPlanStopTimeAvg(BigDecimal planStopTimeAvg)
+    {
+        this.planStopTimeAvg = planStopTimeAvg;
+    }
+
+    public BigDecimal getPlanStopTimeAvg()
+    {
+        return planStopTimeAvg;
+    }
+    public void setErrorStopTimeTotal(BigDecimal errorStopTimeTotal)
+    {
+        this.errorStopTimeTotal = errorStopTimeTotal;
+    }
+
+    public BigDecimal getErrorStopTimeTotal()
+    {
+        return errorStopTimeTotal;
+    }
+    public void setErrorStopTimeAvg(BigDecimal errorStopTimeAvg)
+    {
+        this.errorStopTimeAvg = errorStopTimeAvg;
+    }
+
+    public BigDecimal getErrorStopTimeAvg()
+    {
+        return errorStopTimeAvg;
+    }
+    public void setStopTimeMonth01(BigDecimal stopTimeMonth01)
+    {
+        this.stopTimeMonth01 = stopTimeMonth01;
+    }
+
+    public BigDecimal getStopTimeMonth01()
+    {
+        return stopTimeMonth01;
+    }
+    public void setStopTimeMonth02(BigDecimal stopTimeMonth02)
+    {
+        this.stopTimeMonth02 = stopTimeMonth02;
+    }
+
+    public BigDecimal getStopTimeMonth02()
+    {
+        return stopTimeMonth02;
+    }
+    public void setStopTimeMonth03(BigDecimal stopTimeMonth03)
+    {
+        this.stopTimeMonth03 = stopTimeMonth03;
+    }
+
+    public BigDecimal getStopTimeMonth03()
+    {
+        return stopTimeMonth03;
+    }
+    public void setStopTimeMonth04(BigDecimal stopTimeMonth04)
+    {
+        this.stopTimeMonth04 = stopTimeMonth04;
+    }
+
+    public BigDecimal getStopTimeMonth04()
+    {
+        return stopTimeMonth04;
+    }
+    public void setStopTimeMonth05(BigDecimal stopTimeMonth05)
+    {
+        this.stopTimeMonth05 = stopTimeMonth05;
+    }
+
+    public BigDecimal getStopTimeMonth05()
+    {
+        return stopTimeMonth05;
+    }
+    public void setStopTimeMonth06(BigDecimal stopTimeMonth06)
+    {
+        this.stopTimeMonth06 = stopTimeMonth06;
+    }
+
+    public BigDecimal getStopTimeMonth06()
+    {
+        return stopTimeMonth06;
+    }
+    public void setStopTimeMonth07(BigDecimal stopTimeMonth07)
+    {
+        this.stopTimeMonth07 = stopTimeMonth07;
+    }
+
+    public BigDecimal getStopTimeMonth07()
+    {
+        return stopTimeMonth07;
+    }
+    public void setStopTimeMonth08(BigDecimal stopTimeMonth08)
+    {
+        this.stopTimeMonth08 = stopTimeMonth08;
+    }
+
+    public BigDecimal getStopTimeMonth08()
+    {
+        return stopTimeMonth08;
+    }
+    public void setStopTimeMonth09(BigDecimal stopTimeMonth09)
+    {
+        this.stopTimeMonth09 = stopTimeMonth09;
+    }
+
+    public BigDecimal getStopTimeMonth09()
+    {
+        return stopTimeMonth09;
+    }
+    public void setStopTimeMonth10(BigDecimal stopTimeMonth10)
+    {
+        this.stopTimeMonth10 = stopTimeMonth10;
+    }
+
+    public BigDecimal getStopTimeMonth10()
+    {
+        return stopTimeMonth10;
+    }
+    public void setStopTimeMonth11(BigDecimal stopTimeMonth11)
+    {
+        this.stopTimeMonth11 = stopTimeMonth11;
+    }
+
+    public BigDecimal getStopTimeMonth11()
+    {
+        return stopTimeMonth11;
+    }
+    public void setStopTimeMonth12(BigDecimal stopTimeMonth12)
+    {
+        this.stopTimeMonth12 = stopTimeMonth12;
+    }
+
+    public BigDecimal getStopTimeMonth12()
+    {
+        return stopTimeMonth12;
+    }
+    public void setPlanStopTimeMonth01(BigDecimal planStopTimeMonth01)
+    {
+        this.planStopTimeMonth01 = planStopTimeMonth01;
+    }
+
+    public BigDecimal getPlanStopTimeMonth01()
+    {
+        return planStopTimeMonth01;
+    }
+    public void setPlanStopTimeMonth02(BigDecimal planStopTimeMonth02)
+    {
+        this.planStopTimeMonth02 = planStopTimeMonth02;
+    }
+
+    public BigDecimal getPlanStopTimeMonth02()
+    {
+        return planStopTimeMonth02;
+    }
+    public void setPlanStopTimeMonth03(BigDecimal planStopTimeMonth03)
+    {
+        this.planStopTimeMonth03 = planStopTimeMonth03;
+    }
+
+    public BigDecimal getPlanStopTimeMonth03()
+    {
+        return planStopTimeMonth03;
+    }
+    public void setPlanStopTimeMonth04(BigDecimal planStopTimeMonth04)
+    {
+        this.planStopTimeMonth04 = planStopTimeMonth04;
+    }
+
+    public BigDecimal getPlanStopTimeMonth04()
+    {
+        return planStopTimeMonth04;
+    }
+    public void setPlanStopTimeMonth05(BigDecimal planStopTimeMonth05)
+    {
+        this.planStopTimeMonth05 = planStopTimeMonth05;
+    }
+
+    public BigDecimal getPlanStopTimeMonth05()
+    {
+        return planStopTimeMonth05;
+    }
+    public void setPlanStopTimeMonth06(BigDecimal planStopTimeMonth06)
+    {
+        this.planStopTimeMonth06 = planStopTimeMonth06;
+    }
+
+    public BigDecimal getPlanStopTimeMonth06()
+    {
+        return planStopTimeMonth06;
+    }
+    public void setPlanStopTimeMonth07(BigDecimal planStopTimeMonth07)
+    {
+        this.planStopTimeMonth07 = planStopTimeMonth07;
+    }
+
+    public BigDecimal getPlanStopTimeMonth07()
+    {
+        return planStopTimeMonth07;
+    }
+    public void setPlanStopTimeMonth08(BigDecimal planStopTimeMonth08)
+    {
+        this.planStopTimeMonth08 = planStopTimeMonth08;
+    }
+
+    public BigDecimal getPlanStopTimeMonth08()
+    {
+        return planStopTimeMonth08;
+    }
+    public void setPlanStopTimeMonth09(BigDecimal planStopTimeMonth09)
+    {
+        this.planStopTimeMonth09 = planStopTimeMonth09;
+    }
+
+    public BigDecimal getPlanStopTimeMonth09()
+    {
+        return planStopTimeMonth09;
+    }
+    public void setPlanStopTimeMonth10(BigDecimal planStopTimeMonth10)
+    {
+        this.planStopTimeMonth10 = planStopTimeMonth10;
+    }
+
+    public BigDecimal getPlanStopTimeMonth10()
+    {
+        return planStopTimeMonth10;
+    }
+    public void setPlanStopTimeMonth11(BigDecimal planStopTimeMonth11)
+    {
+        this.planStopTimeMonth11 = planStopTimeMonth11;
+    }
+
+    public BigDecimal getPlanStopTimeMonth11()
+    {
+        return planStopTimeMonth11;
+    }
+    public void setPlanStopTimeMonth12(BigDecimal planStopTimeMonth12)
+    {
+        this.planStopTimeMonth12 = planStopTimeMonth12;
+    }
+
+    public BigDecimal getPlanStopTimeMonth12()
+    {
+        return planStopTimeMonth12;
+    }
+    public void setErrorStopTimeMonth01(BigDecimal errorStopTimeMonth01)
+    {
+        this.errorStopTimeMonth01 = errorStopTimeMonth01;
+    }
+
+    public BigDecimal getErrorStopTimeMonth01()
+    {
+        return errorStopTimeMonth01;
+    }
+    public void setErrorStopTimeMonth02(BigDecimal errorStopTimeMonth02)
+    {
+        this.errorStopTimeMonth02 = errorStopTimeMonth02;
+    }
+
+    public BigDecimal getErrorStopTimeMonth02()
+    {
+        return errorStopTimeMonth02;
+    }
+    public void setErrorStopTimeMonth03(BigDecimal errorStopTimeMonth03)
+    {
+        this.errorStopTimeMonth03 = errorStopTimeMonth03;
+    }
+
+    public BigDecimal getErrorStopTimeMonth03()
+    {
+        return errorStopTimeMonth03;
+    }
+    public void setErrorStopTimeMonth04(BigDecimal errorStopTimeMonth04)
+    {
+        this.errorStopTimeMonth04 = errorStopTimeMonth04;
+    }
+
+    public BigDecimal getErrorStopTimeMonth04()
+    {
+        return errorStopTimeMonth04;
+    }
+    public void setErrorStopTimeMonth05(BigDecimal errorStopTimeMonth05)
+    {
+        this.errorStopTimeMonth05 = errorStopTimeMonth05;
+    }
+
+    public BigDecimal getErrorStopTimeMonth05()
+    {
+        return errorStopTimeMonth05;
+    }
+    public void setErrorStopTimeMonth06(BigDecimal errorStopTimeMonth06)
+    {
+        this.errorStopTimeMonth06 = errorStopTimeMonth06;
+    }
+
+    public BigDecimal getErrorStopTimeMonth06()
+    {
+        return errorStopTimeMonth06;
+    }
+    public void setErrorStopTimeMonth07(BigDecimal errorStopTimeMonth07)
+    {
+        this.errorStopTimeMonth07 = errorStopTimeMonth07;
+    }
+
+    public BigDecimal getErrorStopTimeMonth07()
+    {
+        return errorStopTimeMonth07;
+    }
+    public void setErrorStopTimeMonth08(BigDecimal errorStopTimeMonth08)
+    {
+        this.errorStopTimeMonth08 = errorStopTimeMonth08;
+    }
+
+    public BigDecimal getErrorStopTimeMonth08()
+    {
+        return errorStopTimeMonth08;
+    }
+    public void setErrorStopTimeMonth09(BigDecimal errorStopTimeMonth09)
+    {
+        this.errorStopTimeMonth09 = errorStopTimeMonth09;
+    }
+
+    public BigDecimal getErrorStopTimeMonth09()
+    {
+        return errorStopTimeMonth09;
+    }
+    public void setErrorStopTimeMonth10(BigDecimal errorStopTimeMonth10)
+    {
+        this.errorStopTimeMonth10 = errorStopTimeMonth10;
+    }
+
+    public BigDecimal getErrorStopTimeMonth10()
+    {
+        return errorStopTimeMonth10;
+    }
+    public void setErrorStopTimeMonth11(BigDecimal errorStopTimeMonth11)
+    {
+        this.errorStopTimeMonth11 = errorStopTimeMonth11;
+    }
+
+    public BigDecimal getErrorStopTimeMonth11()
+    {
+        return errorStopTimeMonth11;
+    }
+    public void setErrorStopTimeMonth12(BigDecimal errorStopTimeMonth12)
+    {
+        this.errorStopTimeMonth12 = errorStopTimeMonth12;
+    }
+
+    public BigDecimal getErrorStopTimeMonth12()
+    {
+        return errorStopTimeMonth12;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("reportYear", getReportYear())
+            .append("companyNo", getCompanyNo())
+            .append("companyName", getCompanyName())
+            .append("stopTimeAvg", getStopTimeAvg())
+            .append("userTotal", getUserTotal())
+            .append("stopTimeTotal", getStopTimeTotal())
+            .append("threeYearRatio", getThreeYearRatio())
+            .append("planStopTimeTotal", getPlanStopTimeTotal())
+            .append("planStopTimeAvg", getPlanStopTimeAvg())
+            .append("errorStopTimeTotal", getErrorStopTimeTotal())
+            .append("errorStopTimeAvg", getErrorStopTimeAvg())
+            .append("stopTimeMonth01", getStopTimeMonth01())
+            .append("stopTimeMonth02", getStopTimeMonth02())
+            .append("stopTimeMonth03", getStopTimeMonth03())
+            .append("stopTimeMonth04", getStopTimeMonth04())
+            .append("stopTimeMonth05", getStopTimeMonth05())
+            .append("stopTimeMonth06", getStopTimeMonth06())
+            .append("stopTimeMonth07", getStopTimeMonth07())
+            .append("stopTimeMonth08", getStopTimeMonth08())
+            .append("stopTimeMonth09", getStopTimeMonth09())
+            .append("stopTimeMonth10", getStopTimeMonth10())
+            .append("stopTimeMonth11", getStopTimeMonth11())
+            .append("stopTimeMonth12", getStopTimeMonth12())
+            .append("planStopTimeMonth01", getPlanStopTimeMonth01())
+            .append("planStopTimeMonth02", getPlanStopTimeMonth02())
+            .append("planStopTimeMonth03", getPlanStopTimeMonth03())
+            .append("planStopTimeMonth04", getPlanStopTimeMonth04())
+            .append("planStopTimeMonth05", getPlanStopTimeMonth05())
+            .append("planStopTimeMonth06", getPlanStopTimeMonth06())
+            .append("planStopTimeMonth07", getPlanStopTimeMonth07())
+            .append("planStopTimeMonth08", getPlanStopTimeMonth08())
+            .append("planStopTimeMonth09", getPlanStopTimeMonth09())
+            .append("planStopTimeMonth10", getPlanStopTimeMonth10())
+            .append("planStopTimeMonth11", getPlanStopTimeMonth11())
+            .append("planStopTimeMonth12", getPlanStopTimeMonth12())
+            .append("errorStopTimeMonth01", getErrorStopTimeMonth01())
+            .append("errorStopTimeMonth02", getErrorStopTimeMonth02())
+            .append("errorStopTimeMonth03", getErrorStopTimeMonth03())
+            .append("errorStopTimeMonth04", getErrorStopTimeMonth04())
+            .append("errorStopTimeMonth05", getErrorStopTimeMonth05())
+            .append("errorStopTimeMonth06", getErrorStopTimeMonth06())
+            .append("errorStopTimeMonth07", getErrorStopTimeMonth07())
+            .append("errorStopTimeMonth08", getErrorStopTimeMonth08())
+            .append("errorStopTimeMonth09", getErrorStopTimeMonth09())
+            .append("errorStopTimeMonth10", getErrorStopTimeMonth10())
+            .append("errorStopTimeMonth11", getErrorStopTimeMonth11())
+            .append("errorStopTimeMonth12", getErrorStopTimeMonth12())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 61 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/mapper/PdmScoreRankCompanyMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.mapper;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmScoreRankCompany;
+
+/**
+ * 单位积分排名Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-12-09
+ */
+public interface PdmScoreRankCompanyMapper
+{
+    /**
+     * 查询单位积分排名
+     *
+     * @param id 单位积分排名主键
+     * @return 单位积分排名
+     */
+    public PdmScoreRankCompany selectPdmScoreRankCompanyById(Long id);
+
+    /**
+     * 查询单位积分排名列表
+     *
+     * @param pdmScoreRankCompany 单位积分排名
+     * @return 单位积分排名集合
+     */
+    public List<PdmScoreRankCompany> selectPdmScoreRankCompanyList(PdmScoreRankCompany pdmScoreRankCompany);
+
+    /**
+     * 新增单位积分排名
+     *
+     * @param pdmScoreRankCompany 单位积分排名
+     * @return 结果
+     */
+    public int insertPdmScoreRankCompany(PdmScoreRankCompany pdmScoreRankCompany);
+
+    /**
+     * 修改单位积分排名
+     *
+     * @param pdmScoreRankCompany 单位积分排名
+     * @return 结果
+     */
+    public int updatePdmScoreRankCompany(PdmScoreRankCompany pdmScoreRankCompany);
+
+    /**
+     * 删除单位积分排名
+     *
+     * @param id 单位积分排名主键
+     * @return 结果
+     */
+    public int deletePdmScoreRankCompanyById(Long id);
+
+    /**
+     * 批量删除单位积分排名
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePdmScoreRankCompanyByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/mapper/PdmStopTargeMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.mapper;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmStopTarge;
+
+/**
+ * 停电预算Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-12-09
+ */
+public interface PdmStopTargeMapper
+{
+    /**
+     * 查询停电预算
+     *
+     * @param id 停电预算主键
+     * @return 停电预算
+     */
+    public PdmStopTarge selectPdmStopTargeById(Long id);
+
+    /**
+     * 查询停电预算列表
+     *
+     * @param pdmStopTarge 停电预算
+     * @return 停电预算集合
+     */
+    public List<PdmStopTarge> selectPdmStopTargeList(PdmStopTarge pdmStopTarge);
+
+    /**
+     * 新增停电预算
+     *
+     * @param pdmStopTarge 停电预算
+     * @return 结果
+     */
+    public int insertPdmStopTarge(PdmStopTarge pdmStopTarge);
+
+    /**
+     * 修改停电预算
+     *
+     * @param pdmStopTarge 停电预算
+     * @return 结果
+     */
+    public int updatePdmStopTarge(PdmStopTarge pdmStopTarge);
+
+    /**
+     * 删除停电预算
+     *
+     * @param id 停电预算主键
+     * @return 结果
+     */
+    public int deletePdmStopTargeById(Long id);
+
+    /**
+     * 批量删除停电预算
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePdmStopTargeByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/IPdmScoreRankCompanyService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.service;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmScoreRankCompany;
+
+/**
+ * 单位积分排名Service接口
+ *
+ * @author ruoyi
+ * @date 2024-12-09
+ */
+public interface IPdmScoreRankCompanyService
+{
+    /**
+     * 查询单位积分排名
+     *
+     * @param id 单位积分排名主键
+     * @return 单位积分排名
+     */
+    public PdmScoreRankCompany selectPdmScoreRankCompanyById(Long id);
+
+    /**
+     * 查询单位积分排名列表
+     *
+     * @param pdmScoreRankCompany 单位积分排名
+     * @return 单位积分排名集合
+     */
+    public List<PdmScoreRankCompany> selectPdmScoreRankCompanyList(PdmScoreRankCompany pdmScoreRankCompany);
+
+    /**
+     * 新增单位积分排名
+     *
+     * @param pdmScoreRankCompany 单位积分排名
+     * @return 结果
+     */
+    public int insertPdmScoreRankCompany(PdmScoreRankCompany pdmScoreRankCompany);
+
+    /**
+     * 修改单位积分排名
+     *
+     * @param pdmScoreRankCompany 单位积分排名
+     * @return 结果
+     */
+    public int updatePdmScoreRankCompany(PdmScoreRankCompany pdmScoreRankCompany);
+
+    /**
+     * 批量删除单位积分排名
+     *
+     * @param ids 需要删除的单位积分排名主键集合
+     * @return 结果
+     */
+    public int deletePdmScoreRankCompanyByIds(Long[] ids);
+
+    /**
+     * 删除单位积分排名信息
+     *
+     * @param id 单位积分排名主键
+     * @return 结果
+     */
+    public int deletePdmScoreRankCompanyById(Long id);
+}

+ 61 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/IPdmStopTargeService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.service;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmStopTarge;
+
+/**
+ * 停电预算Service接口
+ *
+ * @author ruoyi
+ * @date 2024-12-09
+ */
+public interface IPdmStopTargeService
+{
+    /**
+     * 查询停电预算
+     *
+     * @param id 停电预算主键
+     * @return 停电预算
+     */
+    public PdmStopTarge selectPdmStopTargeById(Long id);
+
+    /**
+     * 查询停电预算列表
+     *
+     * @param pdmStopTarge 停电预算
+     * @return 停电预算集合
+     */
+    public List<PdmStopTarge> selectPdmStopTargeList(PdmStopTarge pdmStopTarge);
+
+    /**
+     * 新增停电预算
+     *
+     * @param pdmStopTarge 停电预算
+     * @return 结果
+     */
+    public int insertPdmStopTarge(PdmStopTarge pdmStopTarge);
+
+    /**
+     * 修改停电预算
+     *
+     * @param pdmStopTarge 停电预算
+     * @return 结果
+     */
+    public int updatePdmStopTarge(PdmStopTarge pdmStopTarge);
+
+    /**
+     * 批量删除停电预算
+     *
+     * @param ids 需要删除的停电预算主键集合
+     * @return 结果
+     */
+    public int deletePdmStopTargeByIds(Long[] ids);
+
+    /**
+     * 删除停电预算信息
+     *
+     * @param id 停电预算主键
+     * @return 结果
+     */
+    public int deletePdmStopTargeById(Long id);
+}

+ 96 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmScoreRankCompanyServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.powerdistribution.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.powerdistribution.mapper.PdmScoreRankCompanyMapper;
+import com.ruoyi.powerdistribution.domain.PdmScoreRankCompany;
+import com.ruoyi.powerdistribution.service.IPdmScoreRankCompanyService;
+
+/**
+ * 单位积分排名Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-12-09
+ */
+@Service
+public class PdmScoreRankCompanyServiceImpl implements IPdmScoreRankCompanyService
+{
+    @Autowired
+    private PdmScoreRankCompanyMapper pdmScoreRankCompanyMapper;
+
+    /**
+     * 查询单位积分排名
+     *
+     * @param id 单位积分排名主键
+     * @return 单位积分排名
+     */
+    @Override
+    public PdmScoreRankCompany selectPdmScoreRankCompanyById(Long id)
+    {
+        return pdmScoreRankCompanyMapper.selectPdmScoreRankCompanyById(id);
+    }
+
+    /**
+     * 查询单位积分排名列表
+     *
+     * @param pdmScoreRankCompany 单位积分排名
+     * @return 单位积分排名
+     */
+    @Override
+    public List<PdmScoreRankCompany> selectPdmScoreRankCompanyList(PdmScoreRankCompany pdmScoreRankCompany)
+    {
+        return pdmScoreRankCompanyMapper.selectPdmScoreRankCompanyList(pdmScoreRankCompany);
+    }
+
+    /**
+     * 新增单位积分排名
+     *
+     * @param pdmScoreRankCompany 单位积分排名
+     * @return 结果
+     */
+    @Override
+    public int insertPdmScoreRankCompany(PdmScoreRankCompany pdmScoreRankCompany)
+    {
+        pdmScoreRankCompany.setCreateTime(DateUtils.getNowDate());
+        return pdmScoreRankCompanyMapper.insertPdmScoreRankCompany(pdmScoreRankCompany);
+    }
+
+    /**
+     * 修改单位积分排名
+     *
+     * @param pdmScoreRankCompany 单位积分排名
+     * @return 结果
+     */
+    @Override
+    public int updatePdmScoreRankCompany(PdmScoreRankCompany pdmScoreRankCompany)
+    {
+        pdmScoreRankCompany.setUpdateTime(DateUtils.getNowDate());
+        return pdmScoreRankCompanyMapper.updatePdmScoreRankCompany(pdmScoreRankCompany);
+    }
+
+    /**
+     * 批量删除单位积分排名
+     *
+     * @param ids 需要删除的单位积分排名主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmScoreRankCompanyByIds(Long[] ids)
+    {
+        return pdmScoreRankCompanyMapper.deletePdmScoreRankCompanyByIds(ids);
+    }
+
+    /**
+     * 删除单位积分排名信息
+     *
+     * @param id 单位积分排名主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmScoreRankCompanyById(Long id)
+    {
+        return pdmScoreRankCompanyMapper.deletePdmScoreRankCompanyById(id);
+    }
+}

+ 96 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmStopTargeServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.powerdistribution.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.powerdistribution.mapper.PdmStopTargeMapper;
+import com.ruoyi.powerdistribution.domain.PdmStopTarge;
+import com.ruoyi.powerdistribution.service.IPdmStopTargeService;
+
+/**
+ * 停电预算Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-12-09
+ */
+@Service
+public class PdmStopTargeServiceImpl implements IPdmStopTargeService
+{
+    @Autowired
+    private PdmStopTargeMapper pdmStopTargeMapper;
+
+    /**
+     * 查询停电预算
+     *
+     * @param id 停电预算主键
+     * @return 停电预算
+     */
+    @Override
+    public PdmStopTarge selectPdmStopTargeById(Long id)
+    {
+        return pdmStopTargeMapper.selectPdmStopTargeById(id);
+    }
+
+    /**
+     * 查询停电预算列表
+     *
+     * @param pdmStopTarge 停电预算
+     * @return 停电预算
+     */
+    @Override
+    public List<PdmStopTarge> selectPdmStopTargeList(PdmStopTarge pdmStopTarge)
+    {
+        return pdmStopTargeMapper.selectPdmStopTargeList(pdmStopTarge);
+    }
+
+    /**
+     * 新增停电预算
+     *
+     * @param pdmStopTarge 停电预算
+     * @return 结果
+     */
+    @Override
+    public int insertPdmStopTarge(PdmStopTarge pdmStopTarge)
+    {
+        pdmStopTarge.setCreateTime(DateUtils.getNowDate());
+        return pdmStopTargeMapper.insertPdmStopTarge(pdmStopTarge);
+    }
+
+    /**
+     * 修改停电预算
+     *
+     * @param pdmStopTarge 停电预算
+     * @return 结果
+     */
+    @Override
+    public int updatePdmStopTarge(PdmStopTarge pdmStopTarge)
+    {
+        pdmStopTarge.setUpdateTime(DateUtils.getNowDate());
+        return pdmStopTargeMapper.updatePdmStopTarge(pdmStopTarge);
+    }
+
+    /**
+     * 批量删除停电预算
+     *
+     * @param ids 需要删除的停电预算主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmStopTargeByIds(Long[] ids)
+    {
+        return pdmStopTargeMapper.deletePdmStopTargeByIds(ids);
+    }
+
+    /**
+     * 删除停电预算信息
+     *
+     * @param id 停电预算主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmStopTargeById(Long id)
+    {
+        return pdmStopTargeMapper.deletePdmStopTargeById(id);
+    }
+}

+ 129 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/util/ImportExcelHelper.java

@@ -0,0 +1,129 @@
+package com.ruoyi.powerdistribution.util;
+
+import com.alibaba.excel.EasyExcel;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.enums.CellExtraTypeEnum;
+import com.alibaba.excel.metadata.CellExtra;
+import org.apache.commons.collections4.CollectionUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.InputStream;
+import java.lang.reflect.Field;
+import java.util.List;
+
+public class ImportExcelHelper<T> {
+
+    private static final Logger LOGGER = LoggerFactory.getLogger(ImportExcelHelper.class);
+
+    /**
+     * 返回解析后的List
+     *
+     * @param: fileName 文件名
+     * @param: clazz Excel对应属性名
+     * @param: sheetNo 要解析的sheet
+     * @param: headRowNumber 正文起始行
+     * @return java.util.List<T> 解析后的List
+     */
+    public List<T> getList(InputStream inputStream , Class<T> clazz, Integer sheetNo, Integer headRowNumber) {
+        ImportExcelListener<T> listener = new ImportExcelListener<>(headRowNumber);
+        try {
+            EasyExcel.read(inputStream, clazz, listener).extraRead(CellExtraTypeEnum.MERGE).sheet(sheetNo).headRowNumber(headRowNumber).doRead();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        List<CellExtra> extraMergeInfoList = listener.getExtraMergeInfoList();
+        if (CollectionUtils.isEmpty(extraMergeInfoList)) {
+            return listener.getData();
+        }
+        List<T> data = explainMergeData(listener.getData(), extraMergeInfoList, headRowNumber);
+        return data;
+    }
+
+    /**
+     * 处理合并单元格
+     *
+     * @param data               解析数据
+     * @param extraMergeInfoList 合并单元格信息
+     * @param headRowNumber      起始行
+     * @return 填充好的解析数据
+     */
+    private List<T> explainMergeData(List<T> data, List<CellExtra> extraMergeInfoList, Integer headRowNumber) {
+        //循环所有合并单元格信息
+        extraMergeInfoList.forEach(cellExtra -> {
+            int firstRowIndex = cellExtra.getFirstRowIndex() - headRowNumber;
+            int lastRowIndex = cellExtra.getLastRowIndex() - headRowNumber;
+            int firstColumnIndex = cellExtra.getFirstColumnIndex();
+            int lastColumnIndex = cellExtra.getLastColumnIndex();
+            //获取初始值
+            Object initValue = getInitValueFromList(firstRowIndex, firstColumnIndex, data);
+            //设置值
+            for (int i = firstRowIndex; i <= lastRowIndex; i++) {
+                for (int j = firstColumnIndex; j <= lastColumnIndex; j++) {
+                    setInitValueToList(initValue, i, j, data);
+                }
+            }
+        });
+        return data;
+    }
+
+    /**
+     * 设置合并单元格的值
+     *
+     * @param filedValue  值
+     * @param rowIndex    行
+     * @param columnIndex 列
+     * @param data        解析数据
+     */
+    public void setInitValueToList(Object filedValue, Integer rowIndex, Integer columnIndex, List<T> data) {
+        T object = data.get(rowIndex);
+
+        for (Field field : object.getClass().getDeclaredFields()) {
+            //提升反射性能,关闭安全检查
+            field.setAccessible(true);
+            ExcelProperty annotation = field.getAnnotation(ExcelProperty.class);
+            if (annotation != null) {
+                if (annotation.index() == columnIndex) {
+                    try {
+                        field.set(object, filedValue);
+                        break;
+                    } catch (IllegalAccessException e) {
+                        LOGGER.error("设置合并单元格的值异常:"+e.getMessage());
+                    }
+                }
+            }
+        }
+    }
+
+
+    /**
+     * 获取合并单元格的初始值
+     * rowIndex对应list的索引
+     * columnIndex对应实体内的字段
+     *
+     * @param firstRowIndex    起始行
+     * @param firstColumnIndex 起始列
+     * @param data             列数据
+     * @return 初始值
+     */
+    private Object getInitValueFromList(Integer firstRowIndex, Integer firstColumnIndex, List<T> data) {
+        Object filedValue = null;
+        T object = data.get(firstRowIndex);
+        for (Field field : object.getClass().getDeclaredFields()) {
+            //提升反射性能,关闭安全检查
+            field.setAccessible(true);
+            ExcelProperty annotation = field.getAnnotation(ExcelProperty.class);
+            if (annotation != null) {
+                if (annotation.index() == firstColumnIndex) {
+                    try {
+                        filedValue = field.get(object);
+                        break;
+                    } catch (IllegalAccessException e) {
+                        LOGGER.error("设置合并单元格的初始值异常:"+e.getMessage());
+                    }
+                }
+            }
+        }
+        return filedValue;
+    }
+}

+ 94 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/util/ImportExcelListener.java

@@ -0,0 +1,94 @@
+package com.ruoyi.powerdistribution.util;
+
+import com.alibaba.excel.context.AnalysisContext;
+import com.alibaba.excel.event.AnalysisEventListener;
+import com.alibaba.excel.metadata.CellExtra;
+import com.alibaba.fastjson.JSON;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Excel模板的读取监听类
+ *
+ * @author wangwei
+ */
+public class ImportExcelListener<T> extends AnalysisEventListener<T> {
+    private static final Logger LOGGER = LoggerFactory.getLogger(ImportExcelListener.class);
+    /**
+     * 解析的数据
+     */
+    List<T> list = new ArrayList<>();
+
+    /**
+     * 正文起始行
+     */
+    private Integer headRowNumber;
+    /**
+     * 合并单元格
+     */
+    private List<CellExtra> extraMergeInfoList = new ArrayList<>();
+
+    public ImportExcelListener(Integer headRowNumber) {
+        this.headRowNumber = headRowNumber;
+    }
+
+    /**
+     * 这个每一条数据解析都会来调用
+     *
+     * @param data    one row value. Is is same as {@link AnalysisContext#readRowHolder()}
+     * @param context context
+     */
+    @Override
+    public void invoke(T data, AnalysisContext context) {
+        LOGGER.info("解析到一条数据: ", JSON.toJSONString(data));
+        list.add(data);
+    }
+
+    /**
+     * 所有数据解析完成了 都会来调用
+     *
+     * @param context context
+     */
+    @Override
+    public void doAfterAllAnalysed(AnalysisContext context) {
+        LOGGER.info("所有数据解析完成!");
+    }
+
+    /**
+     * 返回解析出来的List
+     */
+    public List<T> getData() {
+        return list;
+    }
+
+    /**
+     * 读取额外信息:合并单元格
+     */
+    @Override
+    public void extra(CellExtra extra, AnalysisContext context) {
+        LOGGER.info("读取到了一条额外信息:{}", JSON.toJSONString(extra));
+        switch (extra.getType()) {
+            case MERGE: {
+                LOGGER.info(
+                        "额外信息是合并单元格,而且覆盖了一个区间,在firstRowIndex:{},firstColumnIndex;{},lastRowIndex:{},lastColumnIndex:{}",
+                        extra.getFirstRowIndex(), extra.getFirstColumnIndex(), extra.getLastRowIndex(),
+                        extra.getLastColumnIndex());
+                if (extra.getRowIndex() >= headRowNumber) {
+                    extraMergeInfoList.add(extra);
+                }
+                break;
+            }
+            default:
+        }
+    }
+
+    /**
+     * 返回解析出来的合并单元格List
+     */
+    public List<CellExtra> getExtraMergeInfoList() {
+        return extraMergeInfoList;
+    }
+}

+ 92 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmScoreRankCompanyMapper.xml

@@ -0,0 +1,92 @@
+<?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.system.mapper.PdmScoreRankCompanyMapper">
+    
+    <resultMap type="PdmScoreRankCompany" id="PdmScoreRankCompanyResult">
+        <result property="id"    column="id"    />
+        <result property="reportYear"    column="report_year"    />
+        <result property="reportDate"    column="report_date"    />
+        <result property="companyNo"    column="company_no"    />
+        <result property="companyName"    column="company_name"    />
+        <result property="score"    column="score"    />
+        <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="selectPdmScoreRankCompanyVo">
+        select id, report_year, report_date, company_no, company_name, score, create_by, create_time, update_by, update_time from pdm_score_rank_company
+    </sql>
+
+    <select id="selectPdmScoreRankCompanyList" parameterType="PdmScoreRankCompany" resultMap="PdmScoreRankCompanyResult">
+        <include refid="selectPdmScoreRankCompanyVo"/>
+        <where>  
+            <if test="reportYear != null  and reportYear != ''"> and report_year = #{reportYear}</if>
+            <if test="reportDate != null  and reportDate != ''"> and report_date = #{reportDate}</if>
+            <if test="companyNo != null  and companyNo != ''"> and company_no = #{companyNo}</if>
+            <if test="companyName != null  and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
+            <if test="score != null "> and score = #{score}</if>
+        </where>
+    </select>
+    
+    <select id="selectPdmScoreRankCompanyById" parameterType="Long" resultMap="PdmScoreRankCompanyResult">
+        <include refid="selectPdmScoreRankCompanyVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertPdmScoreRankCompany" parameterType="PdmScoreRankCompany" useGeneratedKeys="true" keyProperty="id">
+        insert into pdm_score_rank_company
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="reportYear != null">report_year,</if>
+            <if test="reportDate != null">report_date,</if>
+            <if test="companyNo != null">company_no,</if>
+            <if test="companyName != null">company_name,</if>
+            <if test="score != null">score,</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="reportYear != null">#{reportYear},</if>
+            <if test="reportDate != null">#{reportDate},</if>
+            <if test="companyNo != null">#{companyNo},</if>
+            <if test="companyName != null">#{companyName},</if>
+            <if test="score != null">#{score},</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="updatePdmScoreRankCompany" parameterType="PdmScoreRankCompany">
+        update pdm_score_rank_company
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="reportYear != null">report_year = #{reportYear},</if>
+            <if test="reportDate != null">report_date = #{reportDate},</if>
+            <if test="companyNo != null">company_no = #{companyNo},</if>
+            <if test="companyName != null">company_name = #{companyName},</if>
+            <if test="score != null">score = #{score},</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="deletePdmScoreRankCompanyById" parameterType="Long">
+        delete from pdm_score_rank_company where id = #{id}
+    </delete>
+
+    <delete id="deletePdmScoreRankCompanyByIds" parameterType="String">
+        delete from pdm_score_rank_company where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 13 - 19
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmScoreRankTeamMapper.xml

@@ -2,14 +2,13 @@
 <!DOCTYPE mapper
 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.ruoyi.powerdistribution.mapper.PdmScoreRankTeamMapper">
-
+<mapper namespace="com.ruoyi.system.mapper.PdmScoreRankTeamMapper">
+    
     <resultMap type="PdmScoreRankTeam" id="PdmScoreRankTeamResult">
         <result property="id"    column="id"    />
         <result property="reportYear"    column="report_year"    />
         <result property="reportDate"    column="report_date"    />
-        <result property="companyNo"    column="company_no"    />
-        <result property="companyName"    column="company_name"    />
+        <result property="teamType"    column="team_type"    />
         <result property="teamId"    column="team_id"    />
         <result property="teamName"    column="team_name"    />
         <result property="score"    column="score"    />
@@ -20,35 +19,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectPdmScoreRankTeamVo">
-        select id, report_year, report_date, company_no, company_name, team_id, team_name, score, create_by, create_time, update_by, update_time from pdm_score_rank_team
+        select id, report_year, report_date, team_type, team_id, team_name, score, create_by, create_time, update_by, update_time from pdm_score_rank_team
     </sql>
 
     <select id="selectPdmScoreRankTeamList" parameterType="PdmScoreRankTeam" resultMap="PdmScoreRankTeamResult">
         <include refid="selectPdmScoreRankTeamVo"/>
-        <where>
+        <where>  
             <if test="reportYear != null  and reportYear != ''"> and report_year = #{reportYear}</if>
             <if test="reportDate != null  and reportDate != ''"> and report_date = #{reportDate}</if>
-            <if test="companyNo != null  and companyNo != ''"> and company_no = #{companyNo}</if>
-            <if test="companyName != null  and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
+            <if test="teamType != null  and teamType != ''"> and team_type = #{teamType}</if>
             <if test="teamId != null  and teamId != ''"> and team_id = #{teamId}</if>
             <if test="teamName != null  and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
             <if test="score != null "> and score = #{score}</if>
         </where>
-        order by score desc
     </select>
-
+    
     <select id="selectPdmScoreRankTeamById" parameterType="Long" resultMap="PdmScoreRankTeamResult">
         <include refid="selectPdmScoreRankTeamVo"/>
         where id = #{id}
     </select>
-
+        
     <insert id="insertPdmScoreRankTeam" parameterType="PdmScoreRankTeam" useGeneratedKeys="true" keyProperty="id">
         insert into pdm_score_rank_team
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="reportYear != null">report_year,</if>
             <if test="reportDate != null">report_date,</if>
-            <if test="companyNo != null">company_no,</if>
-            <if test="companyName != null">company_name,</if>
+            <if test="teamType != null">team_type,</if>
             <if test="teamId != null">team_id,</if>
             <if test="teamName != null">team_name,</if>
             <if test="score != null">score,</if>
@@ -60,8 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="reportYear != null">#{reportYear},</if>
             <if test="reportDate != null">#{reportDate},</if>
-            <if test="companyNo != null">#{companyNo},</if>
-            <if test="companyName != null">#{companyName},</if>
+            <if test="teamType != null">#{teamType},</if>
             <if test="teamId != null">#{teamId},</if>
             <if test="teamName != null">#{teamName},</if>
             <if test="score != null">#{score},</if>
@@ -77,8 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="SET" suffixOverrides=",">
             <if test="reportYear != null">report_year = #{reportYear},</if>
             <if test="reportDate != null">report_date = #{reportDate},</if>
-            <if test="companyNo != null">company_no = #{companyNo},</if>
-            <if test="companyName != null">company_name = #{companyName},</if>
+            <if test="teamType != null">team_type = #{teamType},</if>
             <if test="teamId != null">team_id = #{teamId},</if>
             <if test="teamName != null">team_name = #{teamName},</if>
             <if test="score != null">score = #{score},</if>
@@ -95,9 +89,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </delete>
 
     <delete id="deletePdmScoreRankTeamByIds" parameterType="String">
-        delete from pdm_score_rank_team where id in
+        delete from pdm_score_rank_team where id in 
         <foreach item="id" collection="array" open="(" separator="," close=")">
             #{id}
         </foreach>
     </delete>
-</mapper>
+</mapper>

+ 302 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmStopTargeMapper.xml

@@ -0,0 +1,302 @@
+<?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.powerdistribution.mapper.PdmStopTargeMapper">
+
+    <resultMap type="PdmStopTarge" id="PdmStopTargeResult">
+        <result property="id"    column="id"    />
+        <result property="reportYear"    column="report_year"    />
+        <result property="companyNo"    column="company_no"    />
+        <result property="companyName"    column="company_name"    />
+        <result property="stopTimeAvg"    column="stop_time_avg"    />
+        <result property="userTotal"    column="user_total"    />
+        <result property="stopTimeTotal"    column="stop_time_total"    />
+        <result property="threeYearRatio"    column="three_year_ratio"    />
+        <result property="planStopTimeTotal"    column="plan_stop_time_total"    />
+        <result property="planStopTimeAvg"    column="plan_stop_time_avg"    />
+        <result property="errorStopTimeTotal"    column="error_stop_time_total"    />
+        <result property="errorStopTimeAvg"    column="error_stop_time_avg"    />
+        <result property="stopTimeMonth01"    column="stop_time_month_01"    />
+        <result property="stopTimeMonth02"    column="stop_time_month_02"    />
+        <result property="stopTimeMonth03"    column="stop_time_month_03"    />
+        <result property="stopTimeMonth04"    column="stop_time_month_04"    />
+        <result property="stopTimeMonth05"    column="stop_time_month_05"    />
+        <result property="stopTimeMonth06"    column="stop_time_month_06"    />
+        <result property="stopTimeMonth07"    column="stop_time_month_07"    />
+        <result property="stopTimeMonth08"    column="stop_time_month_08"    />
+        <result property="stopTimeMonth09"    column="stop_time_month_09"    />
+        <result property="stopTimeMonth10"    column="stop_time_month_10"    />
+        <result property="stopTimeMonth11"    column="stop_time_month_11"    />
+        <result property="stopTimeMonth12"    column="stop_time_month_12"    />
+        <result property="planStopTimeMonth01"    column="plan_stop_time_month_01"    />
+        <result property="planStopTimeMonth02"    column="plan_stop_time_month_02"    />
+        <result property="planStopTimeMonth03"    column="plan_stop_time_month_03"    />
+        <result property="planStopTimeMonth04"    column="plan_stop_time_month_04"    />
+        <result property="planStopTimeMonth05"    column="plan_stop_time_month_05"    />
+        <result property="planStopTimeMonth06"    column="plan_stop_time_month_06"    />
+        <result property="planStopTimeMonth07"    column="plan_stop_time_month_07"    />
+        <result property="planStopTimeMonth08"    column="plan_stop_time_month_08"    />
+        <result property="planStopTimeMonth09"    column="plan_stop_time_month_09"    />
+        <result property="planStopTimeMonth10"    column="plan_stop_time_month_10"    />
+        <result property="planStopTimeMonth11"    column="plan_stop_time_month_11"    />
+        <result property="planStopTimeMonth12"    column="plan_stop_time_month_12"    />
+        <result property="errorStopTimeMonth01"    column="error_stop_time_month_01"    />
+        <result property="errorStopTimeMonth02"    column="error_stop_time_month_02"    />
+        <result property="errorStopTimeMonth03"    column="error_stop_time_month_03"    />
+        <result property="errorStopTimeMonth04"    column="error_stop_time_month_04"    />
+        <result property="errorStopTimeMonth05"    column="error_stop_time_month_05"    />
+        <result property="errorStopTimeMonth06"    column="error_stop_time_month_06"    />
+        <result property="errorStopTimeMonth07"    column="error_stop_time_month_07"    />
+        <result property="errorStopTimeMonth08"    column="error_stop_time_month_08"    />
+        <result property="errorStopTimeMonth09"    column="error_stop_time_month_09"    />
+        <result property="errorStopTimeMonth10"    column="error_stop_time_month_10"    />
+        <result property="errorStopTimeMonth11"    column="error_stop_time_month_11"    />
+        <result property="errorStopTimeMonth12"    column="error_stop_time_month_12"    />
+        <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="selectPdmStopTargeVo">
+        select id, report_year, company_no, company_name, stop_time_avg, user_total, stop_time_total, three_year_ratio, plan_stop_time_total, plan_stop_time_avg, error_stop_time_total, error_stop_time_avg, stop_time_month_01, stop_time_month_02, stop_time_month_03, stop_time_month_04, stop_time_month_05, stop_time_month_06, stop_time_month_07, stop_time_month_08, stop_time_month_09, stop_time_month_10, stop_time_month_11, stop_time_month_12, plan_stop_time_month_01, plan_stop_time_month_02, plan_stop_time_month_03, plan_stop_time_month_04, plan_stop_time_month_05, plan_stop_time_month_06, plan_stop_time_month_07, plan_stop_time_month_08, plan_stop_time_month_09, plan_stop_time_month_10, plan_stop_time_month_11, plan_stop_time_month_12, error_stop_time_month_01, error_stop_time_month_02, error_stop_time_month_03, error_stop_time_month_04, error_stop_time_month_05, error_stop_time_month_06, error_stop_time_month_07, error_stop_time_month_08, error_stop_time_month_09, error_stop_time_month_10, error_stop_time_month_11, error_stop_time_month_12, create_by, create_time, update_by, update_time from pdm_stop_targe
+    </sql>
+
+    <select id="selectPdmStopTargeList" parameterType="PdmStopTarge" resultMap="PdmStopTargeResult">
+        <include refid="selectPdmStopTargeVo"/>
+        <where>
+            <if test="reportYear != null  and reportYear != ''"> and report_year = #{reportYear}</if>
+            <if test="companyNo != null  and companyNo != ''"> and company_no = #{companyNo}</if>
+            <if test="companyName != null  and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
+            <if test="stopTimeAvg != null "> and stop_time_avg = #{stopTimeAvg}</if>
+            <if test="userTotal != null "> and user_total = #{userTotal}</if>
+            <if test="stopTimeTotal != null "> and stop_time_total = #{stopTimeTotal}</if>
+            <if test="threeYearRatio != null  and threeYearRatio != ''"> and three_year_ratio = #{threeYearRatio}</if>
+            <if test="planStopTimeTotal != null "> and plan_stop_time_total = #{planStopTimeTotal}</if>
+            <if test="planStopTimeAvg != null "> and plan_stop_time_avg = #{planStopTimeAvg}</if>
+            <if test="errorStopTimeTotal != null "> and error_stop_time_total = #{errorStopTimeTotal}</if>
+            <if test="errorStopTimeAvg != null "> and error_stop_time_avg = #{errorStopTimeAvg}</if>
+            <if test="stopTimeMonth01 != null "> and stop_time_month_01 = #{stopTimeMonth01}</if>
+            <if test="stopTimeMonth02 != null "> and stop_time_month_02 = #{stopTimeMonth02}</if>
+            <if test="stopTimeMonth03 != null "> and stop_time_month_03 = #{stopTimeMonth03}</if>
+            <if test="stopTimeMonth04 != null "> and stop_time_month_04 = #{stopTimeMonth04}</if>
+            <if test="stopTimeMonth05 != null "> and stop_time_month_05 = #{stopTimeMonth05}</if>
+            <if test="stopTimeMonth06 != null "> and stop_time_month_06 = #{stopTimeMonth06}</if>
+            <if test="stopTimeMonth07 != null "> and stop_time_month_07 = #{stopTimeMonth07}</if>
+            <if test="stopTimeMonth08 != null "> and stop_time_month_08 = #{stopTimeMonth08}</if>
+            <if test="stopTimeMonth09 != null "> and stop_time_month_09 = #{stopTimeMonth09}</if>
+            <if test="stopTimeMonth10 != null "> and stop_time_month_10 = #{stopTimeMonth10}</if>
+            <if test="stopTimeMonth11 != null "> and stop_time_month_11 = #{stopTimeMonth11}</if>
+            <if test="stopTimeMonth12 != null "> and stop_time_month_12 = #{stopTimeMonth12}</if>
+            <if test="planStopTimeMonth01 != null "> and plan_stop_time_month_01 = #{planStopTimeMonth01}</if>
+            <if test="planStopTimeMonth02 != null "> and plan_stop_time_month_02 = #{planStopTimeMonth02}</if>
+            <if test="planStopTimeMonth03 != null "> and plan_stop_time_month_03 = #{planStopTimeMonth03}</if>
+            <if test="planStopTimeMonth04 != null "> and plan_stop_time_month_04 = #{planStopTimeMonth04}</if>
+            <if test="planStopTimeMonth05 != null "> and plan_stop_time_month_05 = #{planStopTimeMonth05}</if>
+            <if test="planStopTimeMonth06 != null "> and plan_stop_time_month_06 = #{planStopTimeMonth06}</if>
+            <if test="planStopTimeMonth07 != null "> and plan_stop_time_month_07 = #{planStopTimeMonth07}</if>
+            <if test="planStopTimeMonth08 != null "> and plan_stop_time_month_08 = #{planStopTimeMonth08}</if>
+            <if test="planStopTimeMonth09 != null "> and plan_stop_time_month_09 = #{planStopTimeMonth09}</if>
+            <if test="planStopTimeMonth10 != null "> and plan_stop_time_month_10 = #{planStopTimeMonth10}</if>
+            <if test="planStopTimeMonth11 != null "> and plan_stop_time_month_11 = #{planStopTimeMonth11}</if>
+            <if test="planStopTimeMonth12 != null "> and plan_stop_time_month_12 = #{planStopTimeMonth12}</if>
+            <if test="errorStopTimeMonth01 != null "> and error_stop_time_month_01 = #{errorStopTimeMonth01}</if>
+            <if test="errorStopTimeMonth02 != null "> and error_stop_time_month_02 = #{errorStopTimeMonth02}</if>
+            <if test="errorStopTimeMonth03 != null "> and error_stop_time_month_03 = #{errorStopTimeMonth03}</if>
+            <if test="errorStopTimeMonth04 != null "> and error_stop_time_month_04 = #{errorStopTimeMonth04}</if>
+            <if test="errorStopTimeMonth05 != null "> and error_stop_time_month_05 = #{errorStopTimeMonth05}</if>
+            <if test="errorStopTimeMonth06 != null "> and error_stop_time_month_06 = #{errorStopTimeMonth06}</if>
+            <if test="errorStopTimeMonth07 != null "> and error_stop_time_month_07 = #{errorStopTimeMonth07}</if>
+            <if test="errorStopTimeMonth08 != null "> and error_stop_time_month_08 = #{errorStopTimeMonth08}</if>
+            <if test="errorStopTimeMonth09 != null "> and error_stop_time_month_09 = #{errorStopTimeMonth09}</if>
+            <if test="errorStopTimeMonth10 != null "> and error_stop_time_month_10 = #{errorStopTimeMonth10}</if>
+            <if test="errorStopTimeMonth11 != null "> and error_stop_time_month_11 = #{errorStopTimeMonth11}</if>
+            <if test="errorStopTimeMonth12 != null "> and error_stop_time_month_12 = #{errorStopTimeMonth12}</if>
+        </where>
+    </select>
+
+    <select id="selectPdmStopTargeById" parameterType="Long" resultMap="PdmStopTargeResult">
+        <include refid="selectPdmStopTargeVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertPdmStopTarge" parameterType="PdmStopTarge" useGeneratedKeys="true" keyProperty="id">
+        insert into pdm_stop_targe
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="reportYear != null">report_year,</if>
+            <if test="companyNo != null">company_no,</if>
+            <if test="companyName != null">company_name,</if>
+            <if test="stopTimeAvg != null">stop_time_avg,</if>
+            <if test="userTotal != null">user_total,</if>
+            <if test="stopTimeTotal != null">stop_time_total,</if>
+            <if test="threeYearRatio != null">three_year_ratio,</if>
+            <if test="planStopTimeTotal != null">plan_stop_time_total,</if>
+            <if test="planStopTimeAvg != null">plan_stop_time_avg,</if>
+            <if test="errorStopTimeTotal != null">error_stop_time_total,</if>
+            <if test="errorStopTimeAvg != null">error_stop_time_avg,</if>
+            <if test="stopTimeMonth01 != null">stop_time_month_01,</if>
+            <if test="stopTimeMonth02 != null">stop_time_month_02,</if>
+            <if test="stopTimeMonth03 != null">stop_time_month_03,</if>
+            <if test="stopTimeMonth04 != null">stop_time_month_04,</if>
+            <if test="stopTimeMonth05 != null">stop_time_month_05,</if>
+            <if test="stopTimeMonth06 != null">stop_time_month_06,</if>
+            <if test="stopTimeMonth07 != null">stop_time_month_07,</if>
+            <if test="stopTimeMonth08 != null">stop_time_month_08,</if>
+            <if test="stopTimeMonth09 != null">stop_time_month_09,</if>
+            <if test="stopTimeMonth10 != null">stop_time_month_10,</if>
+            <if test="stopTimeMonth11 != null">stop_time_month_11,</if>
+            <if test="stopTimeMonth12 != null">stop_time_month_12,</if>
+            <if test="planStopTimeMonth01 != null">plan_stop_time_month_01,</if>
+            <if test="planStopTimeMonth02 != null">plan_stop_time_month_02,</if>
+            <if test="planStopTimeMonth03 != null">plan_stop_time_month_03,</if>
+            <if test="planStopTimeMonth04 != null">plan_stop_time_month_04,</if>
+            <if test="planStopTimeMonth05 != null">plan_stop_time_month_05,</if>
+            <if test="planStopTimeMonth06 != null">plan_stop_time_month_06,</if>
+            <if test="planStopTimeMonth07 != null">plan_stop_time_month_07,</if>
+            <if test="planStopTimeMonth08 != null">plan_stop_time_month_08,</if>
+            <if test="planStopTimeMonth09 != null">plan_stop_time_month_09,</if>
+            <if test="planStopTimeMonth10 != null">plan_stop_time_month_10,</if>
+            <if test="planStopTimeMonth11 != null">plan_stop_time_month_11,</if>
+            <if test="planStopTimeMonth12 != null">plan_stop_time_month_12,</if>
+            <if test="errorStopTimeMonth01 != null">error_stop_time_month_01,</if>
+            <if test="errorStopTimeMonth02 != null">error_stop_time_month_02,</if>
+            <if test="errorStopTimeMonth03 != null">error_stop_time_month_03,</if>
+            <if test="errorStopTimeMonth04 != null">error_stop_time_month_04,</if>
+            <if test="errorStopTimeMonth05 != null">error_stop_time_month_05,</if>
+            <if test="errorStopTimeMonth06 != null">error_stop_time_month_06,</if>
+            <if test="errorStopTimeMonth07 != null">error_stop_time_month_07,</if>
+            <if test="errorStopTimeMonth08 != null">error_stop_time_month_08,</if>
+            <if test="errorStopTimeMonth09 != null">error_stop_time_month_09,</if>
+            <if test="errorStopTimeMonth10 != null">error_stop_time_month_10,</if>
+            <if test="errorStopTimeMonth11 != null">error_stop_time_month_11,</if>
+            <if test="errorStopTimeMonth12 != null">error_stop_time_month_12,</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="reportYear != null">#{reportYear},</if>
+            <if test="companyNo != null">#{companyNo},</if>
+            <if test="companyName != null">#{companyName},</if>
+            <if test="stopTimeAvg != null">#{stopTimeAvg},</if>
+            <if test="userTotal != null">#{userTotal},</if>
+            <if test="stopTimeTotal != null">#{stopTimeTotal},</if>
+            <if test="threeYearRatio != null">#{threeYearRatio},</if>
+            <if test="planStopTimeTotal != null">#{planStopTimeTotal},</if>
+            <if test="planStopTimeAvg != null">#{planStopTimeAvg},</if>
+            <if test="errorStopTimeTotal != null">#{errorStopTimeTotal},</if>
+            <if test="errorStopTimeAvg != null">#{errorStopTimeAvg},</if>
+            <if test="stopTimeMonth01 != null">#{stopTimeMonth01},</if>
+            <if test="stopTimeMonth02 != null">#{stopTimeMonth02},</if>
+            <if test="stopTimeMonth03 != null">#{stopTimeMonth03},</if>
+            <if test="stopTimeMonth04 != null">#{stopTimeMonth04},</if>
+            <if test="stopTimeMonth05 != null">#{stopTimeMonth05},</if>
+            <if test="stopTimeMonth06 != null">#{stopTimeMonth06},</if>
+            <if test="stopTimeMonth07 != null">#{stopTimeMonth07},</if>
+            <if test="stopTimeMonth08 != null">#{stopTimeMonth08},</if>
+            <if test="stopTimeMonth09 != null">#{stopTimeMonth09},</if>
+            <if test="stopTimeMonth10 != null">#{stopTimeMonth10},</if>
+            <if test="stopTimeMonth11 != null">#{stopTimeMonth11},</if>
+            <if test="stopTimeMonth12 != null">#{stopTimeMonth12},</if>
+            <if test="planStopTimeMonth01 != null">#{planStopTimeMonth01},</if>
+            <if test="planStopTimeMonth02 != null">#{planStopTimeMonth02},</if>
+            <if test="planStopTimeMonth03 != null">#{planStopTimeMonth03},</if>
+            <if test="planStopTimeMonth04 != null">#{planStopTimeMonth04},</if>
+            <if test="planStopTimeMonth05 != null">#{planStopTimeMonth05},</if>
+            <if test="planStopTimeMonth06 != null">#{planStopTimeMonth06},</if>
+            <if test="planStopTimeMonth07 != null">#{planStopTimeMonth07},</if>
+            <if test="planStopTimeMonth08 != null">#{planStopTimeMonth08},</if>
+            <if test="planStopTimeMonth09 != null">#{planStopTimeMonth09},</if>
+            <if test="planStopTimeMonth10 != null">#{planStopTimeMonth10},</if>
+            <if test="planStopTimeMonth11 != null">#{planStopTimeMonth11},</if>
+            <if test="planStopTimeMonth12 != null">#{planStopTimeMonth12},</if>
+            <if test="errorStopTimeMonth01 != null">#{errorStopTimeMonth01},</if>
+            <if test="errorStopTimeMonth02 != null">#{errorStopTimeMonth02},</if>
+            <if test="errorStopTimeMonth03 != null">#{errorStopTimeMonth03},</if>
+            <if test="errorStopTimeMonth04 != null">#{errorStopTimeMonth04},</if>
+            <if test="errorStopTimeMonth05 != null">#{errorStopTimeMonth05},</if>
+            <if test="errorStopTimeMonth06 != null">#{errorStopTimeMonth06},</if>
+            <if test="errorStopTimeMonth07 != null">#{errorStopTimeMonth07},</if>
+            <if test="errorStopTimeMonth08 != null">#{errorStopTimeMonth08},</if>
+            <if test="errorStopTimeMonth09 != null">#{errorStopTimeMonth09},</if>
+            <if test="errorStopTimeMonth10 != null">#{errorStopTimeMonth10},</if>
+            <if test="errorStopTimeMonth11 != null">#{errorStopTimeMonth11},</if>
+            <if test="errorStopTimeMonth12 != null">#{errorStopTimeMonth12},</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="updatePdmStopTarge" parameterType="PdmStopTarge">
+        update pdm_stop_targe
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="reportYear != null">report_year = #{reportYear},</if>
+            <if test="companyNo != null">company_no = #{companyNo},</if>
+            <if test="companyName != null">company_name = #{companyName},</if>
+            <if test="stopTimeAvg != null">stop_time_avg = #{stopTimeAvg},</if>
+            <if test="userTotal != null">user_total = #{userTotal},</if>
+            <if test="stopTimeTotal != null">stop_time_total = #{stopTimeTotal},</if>
+            <if test="threeYearRatio != null">three_year_ratio = #{threeYearRatio},</if>
+            <if test="planStopTimeTotal != null">plan_stop_time_total = #{planStopTimeTotal},</if>
+            <if test="planStopTimeAvg != null">plan_stop_time_avg = #{planStopTimeAvg},</if>
+            <if test="errorStopTimeTotal != null">error_stop_time_total = #{errorStopTimeTotal},</if>
+            <if test="errorStopTimeAvg != null">error_stop_time_avg = #{errorStopTimeAvg},</if>
+            <if test="stopTimeMonth01 != null">stop_time_month_01 = #{stopTimeMonth01},</if>
+            <if test="stopTimeMonth02 != null">stop_time_month_02 = #{stopTimeMonth02},</if>
+            <if test="stopTimeMonth03 != null">stop_time_month_03 = #{stopTimeMonth03},</if>
+            <if test="stopTimeMonth04 != null">stop_time_month_04 = #{stopTimeMonth04},</if>
+            <if test="stopTimeMonth05 != null">stop_time_month_05 = #{stopTimeMonth05},</if>
+            <if test="stopTimeMonth06 != null">stop_time_month_06 = #{stopTimeMonth06},</if>
+            <if test="stopTimeMonth07 != null">stop_time_month_07 = #{stopTimeMonth07},</if>
+            <if test="stopTimeMonth08 != null">stop_time_month_08 = #{stopTimeMonth08},</if>
+            <if test="stopTimeMonth09 != null">stop_time_month_09 = #{stopTimeMonth09},</if>
+            <if test="stopTimeMonth10 != null">stop_time_month_10 = #{stopTimeMonth10},</if>
+            <if test="stopTimeMonth11 != null">stop_time_month_11 = #{stopTimeMonth11},</if>
+            <if test="stopTimeMonth12 != null">stop_time_month_12 = #{stopTimeMonth12},</if>
+            <if test="planStopTimeMonth01 != null">plan_stop_time_month_01 = #{planStopTimeMonth01},</if>
+            <if test="planStopTimeMonth02 != null">plan_stop_time_month_02 = #{planStopTimeMonth02},</if>
+            <if test="planStopTimeMonth03 != null">plan_stop_time_month_03 = #{planStopTimeMonth03},</if>
+            <if test="planStopTimeMonth04 != null">plan_stop_time_month_04 = #{planStopTimeMonth04},</if>
+            <if test="planStopTimeMonth05 != null">plan_stop_time_month_05 = #{planStopTimeMonth05},</if>
+            <if test="planStopTimeMonth06 != null">plan_stop_time_month_06 = #{planStopTimeMonth06},</if>
+            <if test="planStopTimeMonth07 != null">plan_stop_time_month_07 = #{planStopTimeMonth07},</if>
+            <if test="planStopTimeMonth08 != null">plan_stop_time_month_08 = #{planStopTimeMonth08},</if>
+            <if test="planStopTimeMonth09 != null">plan_stop_time_month_09 = #{planStopTimeMonth09},</if>
+            <if test="planStopTimeMonth10 != null">plan_stop_time_month_10 = #{planStopTimeMonth10},</if>
+            <if test="planStopTimeMonth11 != null">plan_stop_time_month_11 = #{planStopTimeMonth11},</if>
+            <if test="planStopTimeMonth12 != null">plan_stop_time_month_12 = #{planStopTimeMonth12},</if>
+            <if test="errorStopTimeMonth01 != null">error_stop_time_month_01 = #{errorStopTimeMonth01},</if>
+            <if test="errorStopTimeMonth02 != null">error_stop_time_month_02 = #{errorStopTimeMonth02},</if>
+            <if test="errorStopTimeMonth03 != null">error_stop_time_month_03 = #{errorStopTimeMonth03},</if>
+            <if test="errorStopTimeMonth04 != null">error_stop_time_month_04 = #{errorStopTimeMonth04},</if>
+            <if test="errorStopTimeMonth05 != null">error_stop_time_month_05 = #{errorStopTimeMonth05},</if>
+            <if test="errorStopTimeMonth06 != null">error_stop_time_month_06 = #{errorStopTimeMonth06},</if>
+            <if test="errorStopTimeMonth07 != null">error_stop_time_month_07 = #{errorStopTimeMonth07},</if>
+            <if test="errorStopTimeMonth08 != null">error_stop_time_month_08 = #{errorStopTimeMonth08},</if>
+            <if test="errorStopTimeMonth09 != null">error_stop_time_month_09 = #{errorStopTimeMonth09},</if>
+            <if test="errorStopTimeMonth10 != null">error_stop_time_month_10 = #{errorStopTimeMonth10},</if>
+            <if test="errorStopTimeMonth11 != null">error_stop_time_month_11 = #{errorStopTimeMonth11},</if>
+            <if test="errorStopTimeMonth12 != null">error_stop_time_month_12 = #{errorStopTimeMonth12},</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="deletePdmStopTargeById" parameterType="Long">
+        delete from pdm_stop_targe where id = #{id}
+    </delete>
+
+    <delete id="deletePdmStopTargeByIds" parameterType="String">
+        delete from pdm_stop_targe where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>