zx 6 сар өмнө
parent
commit
8fc1353557
29 өөрчлөгдсөн 2795 нэмэгдсэн , 18 устгасан
  1. 46 9
      ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java
  2. 6 0
      ruoyi-powerdistribution/pom.xml
  3. 104 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmReportAppointmentWeekController.java
  4. 104 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmReportIllegalWeekController.java
  5. 104 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmReportPlanNextWeekController.java
  6. 104 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmReportPlanWeekController.java
  7. 90 9
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/ReportController.java
  8. 195 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmReportAppointmentWeek.java
  9. 167 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmReportIllegalWeek.java
  10. 237 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmReportPlanNextWeek.java
  11. 195 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmReportPlanWeek.java
  12. 15 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/vo/ReportDayVO.java
  13. 63 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/vo/ReportDayWeek.java
  14. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/mapper/PdmReportAppointmentWeekMapper.java
  15. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/mapper/PdmReportIllegalWeekMapper.java
  16. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/mapper/PdmReportPlanNextWeekMapper.java
  17. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/mapper/PdmReportPlanWeekMapper.java
  18. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/IPdmReportAppointmentWeekService.java
  19. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/IPdmReportIllegalWeekService.java
  20. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/IPdmReportPlanNextWeekService.java
  21. 61 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/IPdmReportPlanWeekService.java
  22. 96 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmReportAppointmentWeekServiceImpl.java
  23. 96 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmReportIllegalWeekServiceImpl.java
  24. 96 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmReportPlanNextWeekServiceImpl.java
  25. 96 0
      ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmReportPlanWeekServiceImpl.java
  26. 122 0
      ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmReportAppointmentWeekMapper.xml
  27. 112 0
      ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmReportIllegalWeekMapper.xml
  28. 137 0
      ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmReportPlanNextWeekMapper.xml
  29. 122 0
      ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmReportPlanWeekMapper.xml

+ 46 - 9
ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java

@@ -3,17 +3,16 @@ package com.ruoyi.common.utils;
 import java.lang.management.ManagementFactory;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.time.LocalTime;
-import java.time.ZoneId;
-import java.time.ZonedDateTime;
+import java.time.*;
+import java.time.format.DateTimeFormatter;
+import java.time.temporal.TemporalAdjusters;
+import java.util.Calendar;
 import java.util.Date;
 import org.apache.commons.lang3.time.DateFormatUtils;
 
 /**
  * 时间工具类
- * 
+ *
  * @author ruoyi
  */
 public class DateUtils extends org.apache.commons.lang3.time.DateUtils
@@ -24,18 +23,20 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
 
     public static String YYYY_MM_DD = "yyyy-MM-dd";
 
+    public static String YYYYMMDD = "yyyyMMdd";
+
     public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
 
     public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
 
     private static String[] parsePatterns = {
-            "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM", 
+            "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM",
             "yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM",
             "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"};
 
     /**
      * 获取当前Date型日期
-     * 
+     *
      * @return Date() 当前日期
      */
     public static Date getNowDate()
@@ -45,7 +46,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
 
     /**
      * 获取当前日期, 默认格式为yyyy-MM-dd
-     * 
+     *
      * @return String
      */
     public static String getDate()
@@ -188,4 +189,40 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
         ZonedDateTime zdt = localDateTime.atZone(ZoneId.systemDefault());
         return Date.from(zdt.toInstant());
     }
+
+    /**
+     * 获取指定日期的下周一
+     * @param date
+     * @param format
+     * @return
+     */
+    public static String getNextMonday(String date,String format){
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);
+        LocalDate localDate = LocalDate.parse(date,formatter);
+        DayOfWeek dayWeek  = localDate.getDayOfWeek();
+        int number = DayOfWeek.MONDAY.getValue()-dayWeek.getValue();
+        number=number<=0?7+number:number;
+        LocalDate nextDay = localDate.plusDays(number);
+        return nextDay.format(formatter);
+    }
+
+    /**
+     * 获取指定日期前后N天的日期
+     * @param dateStr 日期字符串
+     * @param format 格式
+     * @param number 天数
+     * @return
+     */
+    public static String getNextDateStr(String dateStr,String format,int number){
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);
+        LocalDate localDate = LocalDate.parse(dateStr, formatter);
+        // 获取后N天的日期
+        LocalDate nextDay = localDate.plusDays(number);
+        return nextDay.format(formatter);
+    }
+
+    public static void main(String[] args) {
+        System.out.println(getNextMonday("20241129",YYYYMMDD));
+    }
+
 }

+ 6 - 0
ruoyi-powerdistribution/pom.xml

@@ -31,6 +31,12 @@
             <groupId>org.projectlombok</groupId>
             <artifactId>lombok</artifactId>
         </dependency>
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>easyexcel</artifactId>
+            <version>3.3.4</version>
+            <scope>compile</scope>
+        </dependency>
 
     </dependencies>
 

+ 104 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmReportAppointmentWeekController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.powerdistribution.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.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.PdmReportAppointmentWeek;
+import com.ruoyi.powerdistribution.service.IPdmReportAppointmentWeekService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 履职周统计Controller
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+@RestController
+@RequestMapping("/power/appointment/week")
+public class PdmReportAppointmentWeekController extends BaseController
+{
+    @Autowired
+    private IPdmReportAppointmentWeekService pdmReportAppointmentWeekService;
+
+    /**
+     * 查询履职周统计列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PdmReportAppointmentWeek pdmReportAppointmentWeek)
+    {
+        startPage();
+        List<PdmReportAppointmentWeek> list = pdmReportAppointmentWeekService.selectPdmReportAppointmentWeekList(pdmReportAppointmentWeek);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出履职周统计列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:export')")
+    @Log(title = "履职周统计", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PdmReportAppointmentWeek pdmReportAppointmentWeek)
+    {
+        List<PdmReportAppointmentWeek> list = pdmReportAppointmentWeekService.selectPdmReportAppointmentWeekList(pdmReportAppointmentWeek);
+        ExcelUtil<PdmReportAppointmentWeek> util = new ExcelUtil<PdmReportAppointmentWeek>(PdmReportAppointmentWeek.class);
+        util.exportExcel(response, list, "履职周统计数据");
+    }
+
+    /**
+     * 获取履职周统计详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(pdmReportAppointmentWeekService.selectPdmReportAppointmentWeekById(id));
+    }
+
+    /**
+     * 新增履职周统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:add')")
+    @Log(title = "履职周统计", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PdmReportAppointmentWeek pdmReportAppointmentWeek)
+    {
+        return toAjax(pdmReportAppointmentWeekService.insertPdmReportAppointmentWeek(pdmReportAppointmentWeek));
+    }
+
+    /**
+     * 修改履职周统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:edit')")
+    @Log(title = "履职周统计", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PdmReportAppointmentWeek pdmReportAppointmentWeek)
+    {
+        return toAjax(pdmReportAppointmentWeekService.updatePdmReportAppointmentWeek(pdmReportAppointmentWeek));
+    }
+
+    /**
+     * 删除履职周统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:remove')")
+    @Log(title = "履职周统计", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(pdmReportAppointmentWeekService.deletePdmReportAppointmentWeekByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmReportIllegalWeekController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.powerdistribution.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.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.PdmReportIllegalWeek;
+import com.ruoyi.powerdistribution.service.IPdmReportIllegalWeekService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 违章周统计Controller
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+@RestController
+@RequestMapping("/power/illegal/week")
+public class PdmReportIllegalWeekController extends BaseController
+{
+    @Autowired
+    private IPdmReportIllegalWeekService pdmReportIllegalWeekService;
+
+    /**
+     * 查询违章周统计列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PdmReportIllegalWeek pdmReportIllegalWeek)
+    {
+        startPage();
+        List<PdmReportIllegalWeek> list = pdmReportIllegalWeekService.selectPdmReportIllegalWeekList(pdmReportIllegalWeek);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出违章周统计列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:export')")
+    @Log(title = "违章周统计", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PdmReportIllegalWeek pdmReportIllegalWeek)
+    {
+        List<PdmReportIllegalWeek> list = pdmReportIllegalWeekService.selectPdmReportIllegalWeekList(pdmReportIllegalWeek);
+        ExcelUtil<PdmReportIllegalWeek> util = new ExcelUtil<PdmReportIllegalWeek>(PdmReportIllegalWeek.class);
+        util.exportExcel(response, list, "违章周统计数据");
+    }
+
+    /**
+     * 获取违章周统计详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(pdmReportIllegalWeekService.selectPdmReportIllegalWeekById(id));
+    }
+
+    /**
+     * 新增违章周统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:add')")
+    @Log(title = "违章周统计", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PdmReportIllegalWeek pdmReportIllegalWeek)
+    {
+        return toAjax(pdmReportIllegalWeekService.insertPdmReportIllegalWeek(pdmReportIllegalWeek));
+    }
+
+    /**
+     * 修改违章周统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:edit')")
+    @Log(title = "违章周统计", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PdmReportIllegalWeek pdmReportIllegalWeek)
+    {
+        return toAjax(pdmReportIllegalWeekService.updatePdmReportIllegalWeek(pdmReportIllegalWeek));
+    }
+
+    /**
+     * 删除违章周统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:remove')")
+    @Log(title = "违章周统计", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(pdmReportIllegalWeekService.deletePdmReportIllegalWeekByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmReportPlanNextWeekController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.powerdistribution.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.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.PdmReportPlanNextWeek;
+import com.ruoyi.powerdistribution.service.IPdmReportPlanNextWeekService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 下周工作计划统计Controller
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+@RestController
+@RequestMapping("/power/next/week")
+public class PdmReportPlanNextWeekController extends BaseController
+{
+    @Autowired
+    private IPdmReportPlanNextWeekService pdmReportPlanNextWeekService;
+
+    /**
+     * 查询下周工作计划统计列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PdmReportPlanNextWeek pdmReportPlanNextWeek)
+    {
+        startPage();
+        List<PdmReportPlanNextWeek> list = pdmReportPlanNextWeekService.selectPdmReportPlanNextWeekList(pdmReportPlanNextWeek);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出下周工作计划统计列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:export')")
+    @Log(title = "下周工作计划统计", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PdmReportPlanNextWeek pdmReportPlanNextWeek)
+    {
+        List<PdmReportPlanNextWeek> list = pdmReportPlanNextWeekService.selectPdmReportPlanNextWeekList(pdmReportPlanNextWeek);
+        ExcelUtil<PdmReportPlanNextWeek> util = new ExcelUtil<PdmReportPlanNextWeek>(PdmReportPlanNextWeek.class);
+        util.exportExcel(response, list, "下周工作计划统计数据");
+    }
+
+    /**
+     * 获取下周工作计划统计详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(pdmReportPlanNextWeekService.selectPdmReportPlanNextWeekById(id));
+    }
+
+    /**
+     * 新增下周工作计划统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:add')")
+    @Log(title = "下周工作计划统计", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PdmReportPlanNextWeek pdmReportPlanNextWeek)
+    {
+        return toAjax(pdmReportPlanNextWeekService.insertPdmReportPlanNextWeek(pdmReportPlanNextWeek));
+    }
+
+    /**
+     * 修改下周工作计划统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:edit')")
+    @Log(title = "下周工作计划统计", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PdmReportPlanNextWeek pdmReportPlanNextWeek)
+    {
+        return toAjax(pdmReportPlanNextWeekService.updatePdmReportPlanNextWeek(pdmReportPlanNextWeek));
+    }
+
+    /**
+     * 删除下周工作计划统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:remove')")
+    @Log(title = "下周工作计划统计", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(pdmReportPlanNextWeekService.deletePdmReportPlanNextWeekByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmReportPlanWeekController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.powerdistribution.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.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.PdmReportPlanWeek;
+import com.ruoyi.powerdistribution.service.IPdmReportPlanWeekService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 工作计划完成情况周统计Controller
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+@RestController
+@RequestMapping("/power/plan/week")
+public class PdmReportPlanWeekController extends BaseController
+{
+    @Autowired
+    private IPdmReportPlanWeekService pdmReportPlanWeekService;
+
+    /**
+     * 查询工作计划完成情况周统计列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PdmReportPlanWeek pdmReportPlanWeek)
+    {
+        startPage();
+        List<PdmReportPlanWeek> list = pdmReportPlanWeekService.selectPdmReportPlanWeekList(pdmReportPlanWeek);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出工作计划完成情况周统计列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:export')")
+    @Log(title = "工作计划完成情况周统计", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PdmReportPlanWeek pdmReportPlanWeek)
+    {
+        List<PdmReportPlanWeek> list = pdmReportPlanWeekService.selectPdmReportPlanWeekList(pdmReportPlanWeek);
+        ExcelUtil<PdmReportPlanWeek> util = new ExcelUtil<PdmReportPlanWeek>(PdmReportPlanWeek.class);
+        util.exportExcel(response, list, "工作计划完成情况周统计数据");
+    }
+
+    /**
+     * 获取工作计划完成情况周统计详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(pdmReportPlanWeekService.selectPdmReportPlanWeekById(id));
+    }
+
+    /**
+     * 新增工作计划完成情况周统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:add')")
+    @Log(title = "工作计划完成情况周统计", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PdmReportPlanWeek pdmReportPlanWeek)
+    {
+        return toAjax(pdmReportPlanWeekService.insertPdmReportPlanWeek(pdmReportPlanWeek));
+    }
+
+    /**
+     * 修改工作计划完成情况周统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:edit')")
+    @Log(title = "工作计划完成情况周统计", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PdmReportPlanWeek pdmReportPlanWeek)
+    {
+        return toAjax(pdmReportPlanWeekService.updatePdmReportPlanWeek(pdmReportPlanWeek));
+    }
+
+    /**
+     * 删除工作计划完成情况周统计
+     */
+    @PreAuthorize("@ss.hasPermi('system:week:remove')")
+    @Log(title = "工作计划完成情况周统计", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(pdmReportPlanWeekService.deletePdmReportPlanWeekByIds(ids));
+    }
+}

+ 90 - 9
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/ReportController.java

@@ -1,16 +1,13 @@
 package com.ruoyi.powerdistribution.controller;
 
+import com.alibaba.excel.EasyExcel;
 import com.ruoyi.common.core.controller.BaseController;
 import com.ruoyi.common.core.page.TableDataInfo;
-import com.ruoyi.powerdistribution.domain.PdmReportAppointmentDay;
-import com.ruoyi.powerdistribution.domain.PdmReportIllegalDay;
-import com.ruoyi.powerdistribution.domain.PdmReportPlanDay;
-import com.ruoyi.powerdistribution.domain.PdmReportPlanNextDay;
+import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.powerdistribution.domain.*;
 import com.ruoyi.powerdistribution.domain.vo.ReportDayVO;
-import com.ruoyi.powerdistribution.service.IPdmReportAppointmentDayService;
-import com.ruoyi.powerdistribution.service.IPdmReportIllegalDayService;
-import com.ruoyi.powerdistribution.service.IPdmReportPlanDayService;
-import com.ruoyi.powerdistribution.service.IPdmReportPlanNextDayService;
+import com.ruoyi.powerdistribution.domain.vo.ReportDayWeek;
+import com.ruoyi.powerdistribution.service.*;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
@@ -21,6 +18,10 @@ import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
 import java.util.List;
 
 @RestController
@@ -37,6 +38,14 @@ public class ReportController extends BaseController {
     private IPdmReportPlanDayService pdmReportPlanDayService;
     @Autowired
     private IPdmReportPlanNextDayService pdmReportPlanNextDayService;
+    @Autowired
+    private IPdmReportAppointmentWeekService pdmReportAppointmentWeekService;
+    @Autowired
+    private IPdmReportIllegalWeekService pdmReportIllegalWeekService;
+    @Autowired
+    private IPdmReportPlanWeekService pdmReportPlanWeekService;
+    @Autowired
+    private IPdmReportPlanNextWeekService pdmReportPlanNextWeekService;
 
     /**
      * 日报查询
@@ -55,7 +64,7 @@ public class ReportController extends BaseController {
         pdmReportPlanDay.setReportDate(reportDate);
         List<PdmReportPlanDay> planlist = pdmReportPlanDayService.selectPdmReportPlanDayList(pdmReportPlanDay);
         PdmReportPlanNextDay nextDay = new PdmReportPlanNextDay();
-        nextDay.setReportDate(reportDate);
+        nextDay.setReportDate(DateUtils.getNextDateStr(reportDate,DateUtils.YYYYMMDD,1));
         List<PdmReportPlanNextDay> nextDayList = pdmReportPlanNextDayService.selectPdmReportPlanNextDayList(nextDay);
 
         ReportDayVO vo = new ReportDayVO();
@@ -65,4 +74,76 @@ public class ReportController extends BaseController {
         vo.setNextDayList(nextDayList);
         return vo;
     }
+
+    @PostMapping("/dayExport")
+    @ApiOperation(value = "日报导出")
+    public void dayExport(HttpServletResponse response,String reportDate) throws IOException {
+        InputStream fis = null;
+        OutputStream ops = null;
+
+        response.setContentType("application/vnd.ms-excel");
+        response.setCharacterEncoding("utf-8");
+        String fileName = java.util.UUID.randomUUID() + ".xlsx";
+        response.setHeader("Content-disposition", "attachment;filename=" + fileName);
+        String templateFileName = "excelTemplate/invoiceExport.xlsx";
+        fis = Thread.currentThread().getContextClassLoader().getResourceAsStream(templateFileName);
+        ops = response.getOutputStream();
+
+
+        PdmReportIllegalDay pdmReportIllegalDay = new PdmReportIllegalDay();
+        pdmReportIllegalDay.setReportDate(reportDate);
+        List<PdmReportIllegalDay> illegalList = pdmReportIllegalDayService.selectPdmReportIllegalDayList(pdmReportIllegalDay);
+        PdmReportAppointmentDay pdmReportAppointmentDay = new PdmReportAppointmentDay();
+        pdmReportAppointmentDay.setReportDate(reportDate);
+        List<PdmReportAppointmentDay> appointmentlist = pdmReportAppointmentDayService.selectPdmReportAppointmentDayList(pdmReportAppointmentDay);
+        PdmReportPlanDay pdmReportPlanDay = new PdmReportPlanDay();
+        pdmReportPlanDay.setReportDate(reportDate);
+        List<PdmReportPlanDay> planlist = pdmReportPlanDayService.selectPdmReportPlanDayList(pdmReportPlanDay);
+        PdmReportPlanNextDay nextDay = new PdmReportPlanNextDay();
+        nextDay.setReportDate(DateUtils.getNextDateStr(reportDate,DateUtils.YYYYMMDD,1));
+        List<PdmReportPlanNextDay> nextDayList = pdmReportPlanNextDayService.selectPdmReportPlanNextDayList(nextDay);
+
+
+
+
+
+        //填充导出信息
+        ExcelWriter excelWriter = EasyExcel.write(ops, AdsMatHyxtInvoiceD.class).withTemplate(fis).build();
+        //WriteSheet writeSheet = EasyExcel.writerSheet().build();
+        //FillConfig fillConfig = FillConfig.builder().forceNewRow(Boolean.TRUE).build();
+        //excelWriter.fill(list, fillConfig, writeSheet);
+        //excelWriter.finish();
+    }
+
+    /**
+     * 周报查询
+     */
+    @ApiOperation(value = "周报查询", notes = "周报查询")
+    @GetMapping("/week")
+    public ReportDayWeek week(String startDate,String endDate)
+    {
+        PdmReportIllegalWeek pdmReportIllegal = new PdmReportIllegalWeek();
+        pdmReportIllegal.setReportDate(startDate);
+        pdmReportIllegal.setReportEndDate(endDate);
+        List<PdmReportIllegalWeek> illegalList = pdmReportIllegalWeekService.selectPdmReportIllegalWeekList(pdmReportIllegal);
+        PdmReportAppointmentWeek pdmReportAppointment = new PdmReportAppointmentWeek();
+        pdmReportAppointment.setReportDate(startDate);
+        pdmReportAppointment.setReportEndDate(endDate);
+        List<PdmReportAppointmentWeek> appointmentlist = pdmReportAppointmentWeekService.selectPdmReportAppointmentWeekList(pdmReportAppointment);
+        PdmReportPlanWeek pdmReportPlan = new PdmReportPlanWeek();
+        pdmReportPlan.setReportDate(startDate);
+        pdmReportPlan.setReportEndDate(endDate);
+        List<PdmReportPlanWeek> planlist = pdmReportPlanWeekService.selectPdmReportPlanWeekList(pdmReportPlan);
+
+        PdmReportPlanNextWeek next = new PdmReportPlanNextWeek();
+        next.setReportDate(DateUtils.getNextMonday(startDate,DateUtils.YYYYMMDD));
+        List<PdmReportPlanNextWeek> nextList = pdmReportPlanNextWeekService.selectPdmReportPlanNextWeekList(next);
+
+        ReportDayWeek vo = new ReportDayWeek();
+        vo.setAppointmentList(appointmentlist);
+        vo.setIllegalList(illegalList);
+        vo.setPlanList(planlist);
+        vo.setNextList(nextList);
+        return vo;
+    }
 }

+ 195 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmReportAppointmentWeek.java

@@ -0,0 +1,195 @@
+package com.ruoyi.powerdistribution.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 履职周统计对象 pdm_report_appointment_week
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public class PdmReportAppointmentWeek extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 单位 */
+    @Excel(name = "单位")
+    private String company;
+
+    /** 日期 */
+    @Excel(name = "日期")
+    private String reportDate;
+
+    /** 结束日期 */
+    @Excel(name = "结束日期")
+    private String reportEndDate;
+
+    /** 督察现场数量 三级 */
+    @Excel(name = "督察现场数量 三级")
+    private Integer checkNum3;
+
+    /** 督察现场数量 四级 */
+    @Excel(name = "督察现场数量 四级")
+    private Integer checkNum4;
+
+    /** 督察现场数量 五级 */
+    @Excel(name = "督察现场数量 五级")
+    private Integer checkNum5;
+
+    /** 领导督察次数 */
+    @Excel(name = "领导督察次数")
+    private Integer bossSum;
+
+    /** 管理督察次数 */
+    @Excel(name = "管理督察次数")
+    private Integer manageSum;
+
+    /** 问题数量 */
+    @Excel(name = "问题数量")
+    private Integer problemSum;
+
+    /** 未履职数量 */
+    @Excel(name = "未履职数量")
+    private Integer absentSum;
+
+    /** 市公司查处问题数 */
+    @Excel(name = "市公司查处问题数")
+    private Integer cityCheckSum;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setCompany(String company)
+    {
+        this.company = company;
+    }
+
+    public String getCompany()
+    {
+        return company;
+    }
+    public void setReportDate(String reportDate)
+    {
+        this.reportDate = reportDate;
+    }
+
+    public String getReportDate()
+    {
+        return reportDate;
+    }
+    public void setReportEndDate(String reportEndDate)
+    {
+        this.reportEndDate = reportEndDate;
+    }
+
+    public String getReportEndDate()
+    {
+        return reportEndDate;
+    }
+    public void setCheckNum3(Integer checkNum3)
+    {
+        this.checkNum3 = checkNum3;
+    }
+
+    public Integer getCheckNum3()
+    {
+        return checkNum3;
+    }
+    public void setCheckNum4(Integer checkNum4)
+    {
+        this.checkNum4 = checkNum4;
+    }
+
+    public Integer getCheckNum4()
+    {
+        return checkNum4;
+    }
+    public void setCheckNum5(Integer checkNum5)
+    {
+        this.checkNum5 = checkNum5;
+    }
+
+    public Integer getCheckNum5()
+    {
+        return checkNum5;
+    }
+    public void setBossSum(Integer bossSum)
+    {
+        this.bossSum = bossSum;
+    }
+
+    public Integer getBossSum()
+    {
+        return bossSum;
+    }
+    public void setManageSum(Integer manageSum)
+    {
+        this.manageSum = manageSum;
+    }
+
+    public Integer getManageSum()
+    {
+        return manageSum;
+    }
+    public void setProblemSum(Integer problemSum)
+    {
+        this.problemSum = problemSum;
+    }
+
+    public Integer getProblemSum()
+    {
+        return problemSum;
+    }
+    public void setAbsentSum(Integer absentSum)
+    {
+        this.absentSum = absentSum;
+    }
+
+    public Integer getAbsentSum()
+    {
+        return absentSum;
+    }
+    public void setCityCheckSum(Integer cityCheckSum)
+    {
+        this.cityCheckSum = cityCheckSum;
+    }
+
+    public Integer getCityCheckSum()
+    {
+        return cityCheckSum;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("company", getCompany())
+            .append("reportDate", getReportDate())
+            .append("reportEndDate", getReportEndDate())
+            .append("checkNum3", getCheckNum3())
+            .append("checkNum4", getCheckNum4())
+            .append("checkNum5", getCheckNum5())
+            .append("bossSum", getBossSum())
+            .append("manageSum", getManageSum())
+            .append("problemSum", getProblemSum())
+            .append("absentSum", getAbsentSum())
+            .append("cityCheckSum", getCityCheckSum())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 167 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmReportIllegalWeek.java

@@ -0,0 +1,167 @@
+package com.ruoyi.powerdistribution.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 违章周统计对象 pdm_report_illegal_week
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public class PdmReportIllegalWeek extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 单位 */
+    @Excel(name = "单位")
+    private String company;
+
+    /** 开始日期 */
+    @Excel(name = "开始日期")
+    private String reportDate;
+
+    /** 结束日期 */
+    @Excel(name = "结束日期")
+    private String reportEndDate;
+
+    /** 省违章数(严重) */
+    @Excel(name = "省违章数(严重)")
+    private Integer provinceNum1;
+
+    /** 省违章数(一般) */
+    @Excel(name = "省违章数(一般)")
+    private Integer provinceNum2;
+
+    /** 市违章数(严重) */
+    @Excel(name = "市违章数(严重)")
+    private Integer cityNum1;
+
+    /** 市违章数(一般) */
+    @Excel(name = "市违章数(一般)")
+    private Integer cityNum2;
+
+    /** 县违章数(严重) */
+    @Excel(name = "县违章数(严重)")
+    private Integer countyNum1;
+
+    /** 县违章数(一般) */
+    @Excel(name = "县违章数(一般)")
+    private Integer countyNum2;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setCompany(String company)
+    {
+        this.company = company;
+    }
+
+    public String getCompany()
+    {
+        return company;
+    }
+    public void setReportDate(String reportDate)
+    {
+        this.reportDate = reportDate;
+    }
+
+    public String getReportDate()
+    {
+        return reportDate;
+    }
+    public void setReportEndDate(String reportEndDate)
+    {
+        this.reportEndDate = reportEndDate;
+    }
+
+    public String getReportEndDate()
+    {
+        return reportEndDate;
+    }
+    public void setProvinceNum1(Integer provinceNum1)
+    {
+        this.provinceNum1 = provinceNum1;
+    }
+
+    public Integer getProvinceNum1()
+    {
+        return provinceNum1;
+    }
+    public void setProvinceNum2(Integer provinceNum2)
+    {
+        this.provinceNum2 = provinceNum2;
+    }
+
+    public Integer getProvinceNum2()
+    {
+        return provinceNum2;
+    }
+    public void setCityNum1(Integer cityNum1)
+    {
+        this.cityNum1 = cityNum1;
+    }
+
+    public Integer getCityNum1()
+    {
+        return cityNum1;
+    }
+    public void setCityNum2(Integer cityNum2)
+    {
+        this.cityNum2 = cityNum2;
+    }
+
+    public Integer getCityNum2()
+    {
+        return cityNum2;
+    }
+    public void setCountyNum1(Integer countyNum1)
+    {
+        this.countyNum1 = countyNum1;
+    }
+
+    public Integer getCountyNum1()
+    {
+        return countyNum1;
+    }
+    public void setCountyNum2(Integer countyNum2)
+    {
+        this.countyNum2 = countyNum2;
+    }
+
+    public Integer getCountyNum2()
+    {
+        return countyNum2;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("company", getCompany())
+            .append("reportDate", getReportDate())
+            .append("reportEndDate", getReportEndDate())
+            .append("provinceNum1", getProvinceNum1())
+            .append("provinceNum2", getProvinceNum2())
+            .append("cityNum1", getCityNum1())
+            .append("cityNum2", getCityNum2())
+            .append("countyNum1", getCountyNum1())
+            .append("countyNum2", getCountyNum2())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 237 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmReportPlanNextWeek.java

@@ -0,0 +1,237 @@
+package com.ruoyi.powerdistribution.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 下周工作计划统计对象 pdm_report_plan_next_week
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public class PdmReportPlanNextWeek extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 单位 */
+    @Excel(name = "单位")
+    private String company;
+
+    /** 日期 */
+    @Excel(name = "日期")
+    private String reportDate;
+
+    /** 结束日期 */
+    @Excel(name = "结束日期")
+    private String reportEndDate;
+
+    /** 作业总数 */
+    @Excel(name = "作业总数")
+    private Integer workTotal;
+
+    /** 配网工程总数 */
+    @Excel(name = "配网工程总数")
+    private Integer workType1Sum;
+
+    /** 倒闸操作总数 */
+    @Excel(name = "倒闸操作总数")
+    private Integer workType2Sum;
+
+    /** 业扩杆迁总数 */
+    @Excel(name = "业扩杆迁总数")
+    private Integer workType3Sum;
+
+    /** 运维检修总数 */
+    @Excel(name = "运维检修总数")
+    private Integer workType4Sum;
+
+    /** 其他总数 */
+    @Excel(name = "其他总数")
+    private Integer workType5Sum;
+
+    /** 带电作业数量 */
+    @Excel(name = "带电作业数量")
+    private Integer elePlanSum;
+
+    /** 作业风险 三级 */
+    @Excel(name = "作业风险 三级")
+    private String planLeve3;
+
+    /** 作业风险 四级 */
+    @Excel(name = "作业风险 四级")
+    private String planLeve4;
+
+    /** 作业风险 五级 */
+    @Excel(name = "作业风险 五级")
+    private String planLeve5;
+
+    /** 重点关注检修面 */
+    @Excel(name = "重点关注检修面")
+    private String checkDetail;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setCompany(String company)
+    {
+        this.company = company;
+    }
+
+    public String getCompany()
+    {
+        return company;
+    }
+    public void setReportDate(String reportDate)
+    {
+        this.reportDate = reportDate;
+    }
+
+    public String getReportDate()
+    {
+        return reportDate;
+    }
+    public void setReportEndDate(String reportEndDate)
+    {
+        this.reportEndDate = reportEndDate;
+    }
+
+    public String getReportEndDate()
+    {
+        return reportEndDate;
+    }
+    public void setWorkTotal(Integer workTotal)
+    {
+        this.workTotal = workTotal;
+    }
+
+    public Integer getWorkTotal()
+    {
+        return workTotal;
+    }
+    public void setWorkType1Sum(Integer workType1Sum)
+    {
+        this.workType1Sum = workType1Sum;
+    }
+
+    public Integer getWorkType1Sum()
+    {
+        return workType1Sum;
+    }
+    public void setWorkType2Sum(Integer workType2Sum)
+    {
+        this.workType2Sum = workType2Sum;
+    }
+
+    public Integer getWorkType2Sum()
+    {
+        return workType2Sum;
+    }
+    public void setWorkType3Sum(Integer workType3Sum)
+    {
+        this.workType3Sum = workType3Sum;
+    }
+
+    public Integer getWorkType3Sum()
+    {
+        return workType3Sum;
+    }
+    public void setWorkType4Sum(Integer workType4Sum)
+    {
+        this.workType4Sum = workType4Sum;
+    }
+
+    public Integer getWorkType4Sum()
+    {
+        return workType4Sum;
+    }
+    public void setWorkType5Sum(Integer workType5Sum)
+    {
+        this.workType5Sum = workType5Sum;
+    }
+
+    public Integer getWorkType5Sum()
+    {
+        return workType5Sum;
+    }
+    public void setElePlanSum(Integer elePlanSum)
+    {
+        this.elePlanSum = elePlanSum;
+    }
+
+    public Integer getElePlanSum()
+    {
+        return elePlanSum;
+    }
+    public void setPlanLeve3(String planLeve3)
+    {
+        this.planLeve3 = planLeve3;
+    }
+
+    public String getPlanLeve3()
+    {
+        return planLeve3;
+    }
+    public void setPlanLeve4(String planLeve4)
+    {
+        this.planLeve4 = planLeve4;
+    }
+
+    public String getPlanLeve4()
+    {
+        return planLeve4;
+    }
+    public void setPlanLeve5(String planLeve5)
+    {
+        this.planLeve5 = planLeve5;
+    }
+
+    public String getPlanLeve5()
+    {
+        return planLeve5;
+    }
+    public void setCheckDetail(String checkDetail)
+    {
+        this.checkDetail = checkDetail;
+    }
+
+    public String getCheckDetail()
+    {
+        return checkDetail;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("company", getCompany())
+            .append("reportDate", getReportDate())
+            .append("reportEndDate", getReportEndDate())
+            .append("workTotal", getWorkTotal())
+            .append("workType1Sum", getWorkType1Sum())
+            .append("workType2Sum", getWorkType2Sum())
+            .append("workType3Sum", getWorkType3Sum())
+            .append("workType4Sum", getWorkType4Sum())
+            .append("workType5Sum", getWorkType5Sum())
+            .append("elePlanSum", getElePlanSum())
+            .append("planLeve3", getPlanLeve3())
+            .append("planLeve4", getPlanLeve4())
+            .append("planLeve5", getPlanLeve5())
+            .append("checkDetail", getCheckDetail())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 195 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmReportPlanWeek.java

@@ -0,0 +1,195 @@
+package com.ruoyi.powerdistribution.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 工作计划完成情况周统计对象 pdm_report_plan_week
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public class PdmReportPlanWeek extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 单位 */
+    @Excel(name = "单位")
+    private String company;
+
+    /** 日期 */
+    @Excel(name = "日期")
+    private String reportDate;
+
+    /** 结束日期 */
+    @Excel(name = "结束日期")
+    private String reportEndDate;
+
+    /** 作业总数 */
+    @Excel(name = "作业总数")
+    private Integer total;
+
+    /** 周计划总数 */
+    @Excel(name = "周计划总数")
+    private Integer weekSum;
+
+    /** 周计划取消数 */
+    @Excel(name = "周计划取消数")
+    private Integer weekCancelSum;
+
+    /** 周计划执行率 */
+    @Excel(name = "周计划执行率")
+    private String weekRatio;
+
+    /** 临时计划总数 */
+    @Excel(name = "临时计划总数")
+    private Integer temporarySum;
+
+    /** 临时计划取消数 */
+    @Excel(name = "临时计划取消数")
+    private Integer temporaryCancelSum;
+
+    /** 临时计划执行率 */
+    @Excel(name = "临时计划执行率")
+    private String temporaryRatio;
+
+    /** 临时计划率 */
+    @Excel(name = "临时计划率")
+    private String temporaryPlanRatio;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setCompany(String company)
+    {
+        this.company = company;
+    }
+
+    public String getCompany()
+    {
+        return company;
+    }
+    public void setReportDate(String reportDate)
+    {
+        this.reportDate = reportDate;
+    }
+
+    public String getReportDate()
+    {
+        return reportDate;
+    }
+    public void setReportEndDate(String reportEndDate)
+    {
+        this.reportEndDate = reportEndDate;
+    }
+
+    public String getReportEndDate()
+    {
+        return reportEndDate;
+    }
+    public void setTotal(Integer total)
+    {
+        this.total = total;
+    }
+
+    public Integer getTotal()
+    {
+        return total;
+    }
+    public void setWeekSum(Integer weekSum)
+    {
+        this.weekSum = weekSum;
+    }
+
+    public Integer getWeekSum()
+    {
+        return weekSum;
+    }
+    public void setWeekCancelSum(Integer weekCancelSum)
+    {
+        this.weekCancelSum = weekCancelSum;
+    }
+
+    public Integer getWeekCancelSum()
+    {
+        return weekCancelSum;
+    }
+    public void setWeekRatio(String weekRatio)
+    {
+        this.weekRatio = weekRatio;
+    }
+
+    public String getWeekRatio()
+    {
+        return weekRatio;
+    }
+    public void setTemporarySum(Integer temporarySum)
+    {
+        this.temporarySum = temporarySum;
+    }
+
+    public Integer getTemporarySum()
+    {
+        return temporarySum;
+    }
+    public void setTemporaryCancelSum(Integer temporaryCancelSum)
+    {
+        this.temporaryCancelSum = temporaryCancelSum;
+    }
+
+    public Integer getTemporaryCancelSum()
+    {
+        return temporaryCancelSum;
+    }
+    public void setTemporaryRatio(String temporaryRatio)
+    {
+        this.temporaryRatio = temporaryRatio;
+    }
+
+    public String getTemporaryRatio()
+    {
+        return temporaryRatio;
+    }
+    public void setTemporaryPlanRatio(String temporaryPlanRatio)
+    {
+        this.temporaryPlanRatio = temporaryPlanRatio;
+    }
+
+    public String getTemporaryPlanRatio()
+    {
+        return temporaryPlanRatio;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("company", getCompany())
+            .append("reportDate", getReportDate())
+            .append("reportEndDate", getReportEndDate())
+            .append("total", getTotal())
+            .append("weekSum", getWeekSum())
+            .append("weekCancelSum", getWeekCancelSum())
+            .append("weekRatio", getWeekRatio())
+            .append("temporarySum", getTemporarySum())
+            .append("temporaryCancelSum", getTemporaryCancelSum())
+            .append("temporaryRatio", getTemporaryRatio())
+            .append("temporaryPlanRatio", getTemporaryPlanRatio())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 15 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/vo/ReportDayVO.java

@@ -7,14 +7,29 @@ import com.ruoyi.powerdistribution.domain.PdmReportPlanNextDay;
 
 import java.util.List;
 
+/**
+ * 日报VO
+ */
 public class ReportDayVO {
 
+    /**
+     * 履职统计
+     */
     private List<PdmReportAppointmentDay> appointmentList;
 
+    /**
+     * 违章统计
+     */
     private List<PdmReportIllegalDay> illegalList;
 
+    /**
+     * 工作计划统计
+     */
     private List<PdmReportPlanDay> planList;
 
+    /**
+     * 明日工作计划统计
+     */
     private List<PdmReportPlanNextDay> nextDayList;
 
     public List<PdmReportAppointmentDay> getAppointmentList() {

+ 63 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/vo/ReportDayWeek.java

@@ -0,0 +1,63 @@
+package com.ruoyi.powerdistribution.domain.vo;
+
+import com.ruoyi.powerdistribution.domain.*;
+
+import java.util.List;
+
+/**
+ * 日报VO
+ */
+public class ReportDayWeek {
+
+    /**
+     * 履职统计
+     */
+    private List<PdmReportAppointmentWeek> appointmentList;
+
+    /**
+     * 违章统计
+     */
+    private List<PdmReportIllegalWeek> illegalList;
+
+    /**
+     * 工作计划统计
+     */
+    private List<PdmReportPlanWeek> planList;
+
+    /**
+     * 下周工作计划统计
+     */
+    private List<PdmReportPlanNextWeek> nextList;
+
+    public List<PdmReportAppointmentWeek> getAppointmentList() {
+        return appointmentList;
+    }
+
+    public void setAppointmentList(List<PdmReportAppointmentWeek> appointmentList) {
+        this.appointmentList = appointmentList;
+    }
+
+    public List<PdmReportIllegalWeek> getIllegalList() {
+        return illegalList;
+    }
+
+    public void setIllegalList(List<PdmReportIllegalWeek> illegalList) {
+        this.illegalList = illegalList;
+    }
+
+    public List<PdmReportPlanWeek> getPlanList() {
+        return planList;
+    }
+
+    public void setPlanList(List<PdmReportPlanWeek> planList) {
+        this.planList = planList;
+    }
+
+    public List<PdmReportPlanNextWeek> getNextList() {
+        return nextList;
+    }
+
+    public void setNextList(List<PdmReportPlanNextWeek> nextList) {
+        this.nextList = nextList;
+    }
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.mapper;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmReportAppointmentWeek;
+
+/**
+ * 履职周统计Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public interface PdmReportAppointmentWeekMapper
+{
+    /**
+     * 查询履职周统计
+     *
+     * @param id 履职周统计主键
+     * @return 履职周统计
+     */
+    public PdmReportAppointmentWeek selectPdmReportAppointmentWeekById(Long id);
+
+    /**
+     * 查询履职周统计列表
+     *
+     * @param pdmReportAppointmentWeek 履职周统计
+     * @return 履职周统计集合
+     */
+    public List<PdmReportAppointmentWeek> selectPdmReportAppointmentWeekList(PdmReportAppointmentWeek pdmReportAppointmentWeek);
+
+    /**
+     * 新增履职周统计
+     *
+     * @param pdmReportAppointmentWeek 履职周统计
+     * @return 结果
+     */
+    public int insertPdmReportAppointmentWeek(PdmReportAppointmentWeek pdmReportAppointmentWeek);
+
+    /**
+     * 修改履职周统计
+     *
+     * @param pdmReportAppointmentWeek 履职周统计
+     * @return 结果
+     */
+    public int updatePdmReportAppointmentWeek(PdmReportAppointmentWeek pdmReportAppointmentWeek);
+
+    /**
+     * 删除履职周统计
+     *
+     * @param id 履职周统计主键
+     * @return 结果
+     */
+    public int deletePdmReportAppointmentWeekById(Long id);
+
+    /**
+     * 批量删除履职周统计
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePdmReportAppointmentWeekByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.mapper;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmReportIllegalWeek;
+
+/**
+ * 违章周统计Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public interface PdmReportIllegalWeekMapper
+{
+    /**
+     * 查询违章周统计
+     *
+     * @param id 违章周统计主键
+     * @return 违章周统计
+     */
+    public PdmReportIllegalWeek selectPdmReportIllegalWeekById(Long id);
+
+    /**
+     * 查询违章周统计列表
+     *
+     * @param pdmReportIllegalWeek 违章周统计
+     * @return 违章周统计集合
+     */
+    public List<PdmReportIllegalWeek> selectPdmReportIllegalWeekList(PdmReportIllegalWeek pdmReportIllegalWeek);
+
+    /**
+     * 新增违章周统计
+     *
+     * @param pdmReportIllegalWeek 违章周统计
+     * @return 结果
+     */
+    public int insertPdmReportIllegalWeek(PdmReportIllegalWeek pdmReportIllegalWeek);
+
+    /**
+     * 修改违章周统计
+     *
+     * @param pdmReportIllegalWeek 违章周统计
+     * @return 结果
+     */
+    public int updatePdmReportIllegalWeek(PdmReportIllegalWeek pdmReportIllegalWeek);
+
+    /**
+     * 删除违章周统计
+     *
+     * @param id 违章周统计主键
+     * @return 结果
+     */
+    public int deletePdmReportIllegalWeekById(Long id);
+
+    /**
+     * 批量删除违章周统计
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePdmReportIllegalWeekByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.mapper;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmReportPlanNextWeek;
+
+/**
+ * 下周工作计划统计Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public interface PdmReportPlanNextWeekMapper
+{
+    /**
+     * 查询下周工作计划统计
+     *
+     * @param id 下周工作计划统计主键
+     * @return 下周工作计划统计
+     */
+    public PdmReportPlanNextWeek selectPdmReportPlanNextWeekById(Long id);
+
+    /**
+     * 查询下周工作计划统计列表
+     *
+     * @param pdmReportPlanNextWeek 下周工作计划统计
+     * @return 下周工作计划统计集合
+     */
+    public List<PdmReportPlanNextWeek> selectPdmReportPlanNextWeekList(PdmReportPlanNextWeek pdmReportPlanNextWeek);
+
+    /**
+     * 新增下周工作计划统计
+     *
+     * @param pdmReportPlanNextWeek 下周工作计划统计
+     * @return 结果
+     */
+    public int insertPdmReportPlanNextWeek(PdmReportPlanNextWeek pdmReportPlanNextWeek);
+
+    /**
+     * 修改下周工作计划统计
+     *
+     * @param pdmReportPlanNextWeek 下周工作计划统计
+     * @return 结果
+     */
+    public int updatePdmReportPlanNextWeek(PdmReportPlanNextWeek pdmReportPlanNextWeek);
+
+    /**
+     * 删除下周工作计划统计
+     *
+     * @param id 下周工作计划统计主键
+     * @return 结果
+     */
+    public int deletePdmReportPlanNextWeekById(Long id);
+
+    /**
+     * 批量删除下周工作计划统计
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePdmReportPlanNextWeekByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.mapper;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmReportPlanWeek;
+
+/**
+ * 工作计划完成情况周统计Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public interface PdmReportPlanWeekMapper
+{
+    /**
+     * 查询工作计划完成情况周统计
+     *
+     * @param id 工作计划完成情况周统计主键
+     * @return 工作计划完成情况周统计
+     */
+    public PdmReportPlanWeek selectPdmReportPlanWeekById(Long id);
+
+    /**
+     * 查询工作计划完成情况周统计列表
+     *
+     * @param pdmReportPlanWeek 工作计划完成情况周统计
+     * @return 工作计划完成情况周统计集合
+     */
+    public List<PdmReportPlanWeek> selectPdmReportPlanWeekList(PdmReportPlanWeek pdmReportPlanWeek);
+
+    /**
+     * 新增工作计划完成情况周统计
+     *
+     * @param pdmReportPlanWeek 工作计划完成情况周统计
+     * @return 结果
+     */
+    public int insertPdmReportPlanWeek(PdmReportPlanWeek pdmReportPlanWeek);
+
+    /**
+     * 修改工作计划完成情况周统计
+     *
+     * @param pdmReportPlanWeek 工作计划完成情况周统计
+     * @return 结果
+     */
+    public int updatePdmReportPlanWeek(PdmReportPlanWeek pdmReportPlanWeek);
+
+    /**
+     * 删除工作计划完成情况周统计
+     *
+     * @param id 工作计划完成情况周统计主键
+     * @return 结果
+     */
+    public int deletePdmReportPlanWeekById(Long id);
+
+    /**
+     * 批量删除工作计划完成情况周统计
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePdmReportPlanWeekByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.service;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmReportAppointmentWeek;
+
+/**
+ * 履职周统计Service接口
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public interface IPdmReportAppointmentWeekService
+{
+    /**
+     * 查询履职周统计
+     *
+     * @param id 履职周统计主键
+     * @return 履职周统计
+     */
+    public PdmReportAppointmentWeek selectPdmReportAppointmentWeekById(Long id);
+
+    /**
+     * 查询履职周统计列表
+     *
+     * @param pdmReportAppointmentWeek 履职周统计
+     * @return 履职周统计集合
+     */
+    public List<PdmReportAppointmentWeek> selectPdmReportAppointmentWeekList(PdmReportAppointmentWeek pdmReportAppointmentWeek);
+
+    /**
+     * 新增履职周统计
+     *
+     * @param pdmReportAppointmentWeek 履职周统计
+     * @return 结果
+     */
+    public int insertPdmReportAppointmentWeek(PdmReportAppointmentWeek pdmReportAppointmentWeek);
+
+    /**
+     * 修改履职周统计
+     *
+     * @param pdmReportAppointmentWeek 履职周统计
+     * @return 结果
+     */
+    public int updatePdmReportAppointmentWeek(PdmReportAppointmentWeek pdmReportAppointmentWeek);
+
+    /**
+     * 批量删除履职周统计
+     *
+     * @param ids 需要删除的履职周统计主键集合
+     * @return 结果
+     */
+    public int deletePdmReportAppointmentWeekByIds(Long[] ids);
+
+    /**
+     * 删除履职周统计信息
+     *
+     * @param id 履职周统计主键
+     * @return 结果
+     */
+    public int deletePdmReportAppointmentWeekById(Long id);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.service;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmReportIllegalWeek;
+
+/**
+ * 违章周统计Service接口
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public interface IPdmReportIllegalWeekService
+{
+    /**
+     * 查询违章周统计
+     *
+     * @param id 违章周统计主键
+     * @return 违章周统计
+     */
+    public PdmReportIllegalWeek selectPdmReportIllegalWeekById(Long id);
+
+    /**
+     * 查询违章周统计列表
+     *
+     * @param pdmReportIllegalWeek 违章周统计
+     * @return 违章周统计集合
+     */
+    public List<PdmReportIllegalWeek> selectPdmReportIllegalWeekList(PdmReportIllegalWeek pdmReportIllegalWeek);
+
+    /**
+     * 新增违章周统计
+     *
+     * @param pdmReportIllegalWeek 违章周统计
+     * @return 结果
+     */
+    public int insertPdmReportIllegalWeek(PdmReportIllegalWeek pdmReportIllegalWeek);
+
+    /**
+     * 修改违章周统计
+     *
+     * @param pdmReportIllegalWeek 违章周统计
+     * @return 结果
+     */
+    public int updatePdmReportIllegalWeek(PdmReportIllegalWeek pdmReportIllegalWeek);
+
+    /**
+     * 批量删除违章周统计
+     *
+     * @param ids 需要删除的违章周统计主键集合
+     * @return 结果
+     */
+    public int deletePdmReportIllegalWeekByIds(Long[] ids);
+
+    /**
+     * 删除违章周统计信息
+     *
+     * @param id 违章周统计主键
+     * @return 结果
+     */
+    public int deletePdmReportIllegalWeekById(Long id);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.service;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmReportPlanNextWeek;
+
+/**
+ * 下周工作计划统计Service接口
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public interface IPdmReportPlanNextWeekService
+{
+    /**
+     * 查询下周工作计划统计
+     *
+     * @param id 下周工作计划统计主键
+     * @return 下周工作计划统计
+     */
+    public PdmReportPlanNextWeek selectPdmReportPlanNextWeekById(Long id);
+
+    /**
+     * 查询下周工作计划统计列表
+     *
+     * @param pdmReportPlanNextWeek 下周工作计划统计
+     * @return 下周工作计划统计集合
+     */
+    public List<PdmReportPlanNextWeek> selectPdmReportPlanNextWeekList(PdmReportPlanNextWeek pdmReportPlanNextWeek);
+
+    /**
+     * 新增下周工作计划统计
+     *
+     * @param pdmReportPlanNextWeek 下周工作计划统计
+     * @return 结果
+     */
+    public int insertPdmReportPlanNextWeek(PdmReportPlanNextWeek pdmReportPlanNextWeek);
+
+    /**
+     * 修改下周工作计划统计
+     *
+     * @param pdmReportPlanNextWeek 下周工作计划统计
+     * @return 结果
+     */
+    public int updatePdmReportPlanNextWeek(PdmReportPlanNextWeek pdmReportPlanNextWeek);
+
+    /**
+     * 批量删除下周工作计划统计
+     *
+     * @param ids 需要删除的下周工作计划统计主键集合
+     * @return 结果
+     */
+    public int deletePdmReportPlanNextWeekByIds(Long[] ids);
+
+    /**
+     * 删除下周工作计划统计信息
+     *
+     * @param id 下周工作计划统计主键
+     * @return 结果
+     */
+    public int deletePdmReportPlanNextWeekById(Long id);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.service;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmReportPlanWeek;
+
+/**
+ * 工作计划完成情况周统计Service接口
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+public interface IPdmReportPlanWeekService
+{
+    /**
+     * 查询工作计划完成情况周统计
+     *
+     * @param id 工作计划完成情况周统计主键
+     * @return 工作计划完成情况周统计
+     */
+    public PdmReportPlanWeek selectPdmReportPlanWeekById(Long id);
+
+    /**
+     * 查询工作计划完成情况周统计列表
+     *
+     * @param pdmReportPlanWeek 工作计划完成情况周统计
+     * @return 工作计划完成情况周统计集合
+     */
+    public List<PdmReportPlanWeek> selectPdmReportPlanWeekList(PdmReportPlanWeek pdmReportPlanWeek);
+
+    /**
+     * 新增工作计划完成情况周统计
+     *
+     * @param pdmReportPlanWeek 工作计划完成情况周统计
+     * @return 结果
+     */
+    public int insertPdmReportPlanWeek(PdmReportPlanWeek pdmReportPlanWeek);
+
+    /**
+     * 修改工作计划完成情况周统计
+     *
+     * @param pdmReportPlanWeek 工作计划完成情况周统计
+     * @return 结果
+     */
+    public int updatePdmReportPlanWeek(PdmReportPlanWeek pdmReportPlanWeek);
+
+    /**
+     * 批量删除工作计划完成情况周统计
+     *
+     * @param ids 需要删除的工作计划完成情况周统计主键集合
+     * @return 结果
+     */
+    public int deletePdmReportPlanWeekByIds(Long[] ids);
+
+    /**
+     * 删除工作计划完成情况周统计信息
+     *
+     * @param id 工作计划完成情况周统计主键
+     * @return 结果
+     */
+    public int deletePdmReportPlanWeekById(Long id);
+}

+ 96 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmReportAppointmentWeekServiceImpl.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.PdmReportAppointmentWeekMapper;
+import com.ruoyi.powerdistribution.domain.PdmReportAppointmentWeek;
+import com.ruoyi.powerdistribution.service.IPdmReportAppointmentWeekService;
+
+/**
+ * 履职周统计Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+@Service
+public class PdmReportAppointmentWeekServiceImpl implements IPdmReportAppointmentWeekService
+{
+    @Autowired
+    private PdmReportAppointmentWeekMapper pdmReportAppointmentWeekMapper;
+
+    /**
+     * 查询履职周统计
+     *
+     * @param id 履职周统计主键
+     * @return 履职周统计
+     */
+    @Override
+    public PdmReportAppointmentWeek selectPdmReportAppointmentWeekById(Long id)
+    {
+        return pdmReportAppointmentWeekMapper.selectPdmReportAppointmentWeekById(id);
+    }
+
+    /**
+     * 查询履职周统计列表
+     *
+     * @param pdmReportAppointmentWeek 履职周统计
+     * @return 履职周统计
+     */
+    @Override
+    public List<PdmReportAppointmentWeek> selectPdmReportAppointmentWeekList(PdmReportAppointmentWeek pdmReportAppointmentWeek)
+    {
+        return pdmReportAppointmentWeekMapper.selectPdmReportAppointmentWeekList(pdmReportAppointmentWeek);
+    }
+
+    /**
+     * 新增履职周统计
+     *
+     * @param pdmReportAppointmentWeek 履职周统计
+     * @return 结果
+     */
+    @Override
+    public int insertPdmReportAppointmentWeek(PdmReportAppointmentWeek pdmReportAppointmentWeek)
+    {
+        pdmReportAppointmentWeek.setCreateTime(DateUtils.getNowDate());
+        return pdmReportAppointmentWeekMapper.insertPdmReportAppointmentWeek(pdmReportAppointmentWeek);
+    }
+
+    /**
+     * 修改履职周统计
+     *
+     * @param pdmReportAppointmentWeek 履职周统计
+     * @return 结果
+     */
+    @Override
+    public int updatePdmReportAppointmentWeek(PdmReportAppointmentWeek pdmReportAppointmentWeek)
+    {
+        pdmReportAppointmentWeek.setUpdateTime(DateUtils.getNowDate());
+        return pdmReportAppointmentWeekMapper.updatePdmReportAppointmentWeek(pdmReportAppointmentWeek);
+    }
+
+    /**
+     * 批量删除履职周统计
+     *
+     * @param ids 需要删除的履职周统计主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmReportAppointmentWeekByIds(Long[] ids)
+    {
+        return pdmReportAppointmentWeekMapper.deletePdmReportAppointmentWeekByIds(ids);
+    }
+
+    /**
+     * 删除履职周统计信息
+     *
+     * @param id 履职周统计主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmReportAppointmentWeekById(Long id)
+    {
+        return pdmReportAppointmentWeekMapper.deletePdmReportAppointmentWeekById(id);
+    }
+}

+ 96 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmReportIllegalWeekServiceImpl.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.PdmReportIllegalWeekMapper;
+import com.ruoyi.powerdistribution.domain.PdmReportIllegalWeek;
+import com.ruoyi.powerdistribution.service.IPdmReportIllegalWeekService;
+
+/**
+ * 违章周统计Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+@Service
+public class PdmReportIllegalWeekServiceImpl implements IPdmReportIllegalWeekService
+{
+    @Autowired
+    private PdmReportIllegalWeekMapper pdmReportIllegalWeekMapper;
+
+    /**
+     * 查询违章周统计
+     *
+     * @param id 违章周统计主键
+     * @return 违章周统计
+     */
+    @Override
+    public PdmReportIllegalWeek selectPdmReportIllegalWeekById(Long id)
+    {
+        return pdmReportIllegalWeekMapper.selectPdmReportIllegalWeekById(id);
+    }
+
+    /**
+     * 查询违章周统计列表
+     *
+     * @param pdmReportIllegalWeek 违章周统计
+     * @return 违章周统计
+     */
+    @Override
+    public List<PdmReportIllegalWeek> selectPdmReportIllegalWeekList(PdmReportIllegalWeek pdmReportIllegalWeek)
+    {
+        return pdmReportIllegalWeekMapper.selectPdmReportIllegalWeekList(pdmReportIllegalWeek);
+    }
+
+    /**
+     * 新增违章周统计
+     *
+     * @param pdmReportIllegalWeek 违章周统计
+     * @return 结果
+     */
+    @Override
+    public int insertPdmReportIllegalWeek(PdmReportIllegalWeek pdmReportIllegalWeek)
+    {
+        pdmReportIllegalWeek.setCreateTime(DateUtils.getNowDate());
+        return pdmReportIllegalWeekMapper.insertPdmReportIllegalWeek(pdmReportIllegalWeek);
+    }
+
+    /**
+     * 修改违章周统计
+     *
+     * @param pdmReportIllegalWeek 违章周统计
+     * @return 结果
+     */
+    @Override
+    public int updatePdmReportIllegalWeek(PdmReportIllegalWeek pdmReportIllegalWeek)
+    {
+        pdmReportIllegalWeek.setUpdateTime(DateUtils.getNowDate());
+        return pdmReportIllegalWeekMapper.updatePdmReportIllegalWeek(pdmReportIllegalWeek);
+    }
+
+    /**
+     * 批量删除违章周统计
+     *
+     * @param ids 需要删除的违章周统计主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmReportIllegalWeekByIds(Long[] ids)
+    {
+        return pdmReportIllegalWeekMapper.deletePdmReportIllegalWeekByIds(ids);
+    }
+
+    /**
+     * 删除违章周统计信息
+     *
+     * @param id 违章周统计主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmReportIllegalWeekById(Long id)
+    {
+        return pdmReportIllegalWeekMapper.deletePdmReportIllegalWeekById(id);
+    }
+}

+ 96 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmReportPlanNextWeekServiceImpl.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.PdmReportPlanNextWeekMapper;
+import com.ruoyi.powerdistribution.domain.PdmReportPlanNextWeek;
+import com.ruoyi.powerdistribution.service.IPdmReportPlanNextWeekService;
+
+/**
+ * 下周工作计划统计Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+@Service
+public class PdmReportPlanNextWeekServiceImpl implements IPdmReportPlanNextWeekService
+{
+    @Autowired
+    private PdmReportPlanNextWeekMapper pdmReportPlanNextWeekMapper;
+
+    /**
+     * 查询下周工作计划统计
+     *
+     * @param id 下周工作计划统计主键
+     * @return 下周工作计划统计
+     */
+    @Override
+    public PdmReportPlanNextWeek selectPdmReportPlanNextWeekById(Long id)
+    {
+        return pdmReportPlanNextWeekMapper.selectPdmReportPlanNextWeekById(id);
+    }
+
+    /**
+     * 查询下周工作计划统计列表
+     *
+     * @param pdmReportPlanNextWeek 下周工作计划统计
+     * @return 下周工作计划统计
+     */
+    @Override
+    public List<PdmReportPlanNextWeek> selectPdmReportPlanNextWeekList(PdmReportPlanNextWeek pdmReportPlanNextWeek)
+    {
+        return pdmReportPlanNextWeekMapper.selectPdmReportPlanNextWeekList(pdmReportPlanNextWeek);
+    }
+
+    /**
+     * 新增下周工作计划统计
+     *
+     * @param pdmReportPlanNextWeek 下周工作计划统计
+     * @return 结果
+     */
+    @Override
+    public int insertPdmReportPlanNextWeek(PdmReportPlanNextWeek pdmReportPlanNextWeek)
+    {
+        pdmReportPlanNextWeek.setCreateTime(DateUtils.getNowDate());
+        return pdmReportPlanNextWeekMapper.insertPdmReportPlanNextWeek(pdmReportPlanNextWeek);
+    }
+
+    /**
+     * 修改下周工作计划统计
+     *
+     * @param pdmReportPlanNextWeek 下周工作计划统计
+     * @return 结果
+     */
+    @Override
+    public int updatePdmReportPlanNextWeek(PdmReportPlanNextWeek pdmReportPlanNextWeek)
+    {
+        pdmReportPlanNextWeek.setUpdateTime(DateUtils.getNowDate());
+        return pdmReportPlanNextWeekMapper.updatePdmReportPlanNextWeek(pdmReportPlanNextWeek);
+    }
+
+    /**
+     * 批量删除下周工作计划统计
+     *
+     * @param ids 需要删除的下周工作计划统计主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmReportPlanNextWeekByIds(Long[] ids)
+    {
+        return pdmReportPlanNextWeekMapper.deletePdmReportPlanNextWeekByIds(ids);
+    }
+
+    /**
+     * 删除下周工作计划统计信息
+     *
+     * @param id 下周工作计划统计主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmReportPlanNextWeekById(Long id)
+    {
+        return pdmReportPlanNextWeekMapper.deletePdmReportPlanNextWeekById(id);
+    }
+}

+ 96 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmReportPlanWeekServiceImpl.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.PdmReportPlanWeekMapper;
+import com.ruoyi.powerdistribution.domain.PdmReportPlanWeek;
+import com.ruoyi.powerdistribution.service.IPdmReportPlanWeekService;
+
+/**
+ * 工作计划完成情况周统计Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-11-29
+ */
+@Service
+public class PdmReportPlanWeekServiceImpl implements IPdmReportPlanWeekService
+{
+    @Autowired
+    private PdmReportPlanWeekMapper pdmReportPlanWeekMapper;
+
+    /**
+     * 查询工作计划完成情况周统计
+     *
+     * @param id 工作计划完成情况周统计主键
+     * @return 工作计划完成情况周统计
+     */
+    @Override
+    public PdmReportPlanWeek selectPdmReportPlanWeekById(Long id)
+    {
+        return pdmReportPlanWeekMapper.selectPdmReportPlanWeekById(id);
+    }
+
+    /**
+     * 查询工作计划完成情况周统计列表
+     *
+     * @param pdmReportPlanWeek 工作计划完成情况周统计
+     * @return 工作计划完成情况周统计
+     */
+    @Override
+    public List<PdmReportPlanWeek> selectPdmReportPlanWeekList(PdmReportPlanWeek pdmReportPlanWeek)
+    {
+        return pdmReportPlanWeekMapper.selectPdmReportPlanWeekList(pdmReportPlanWeek);
+    }
+
+    /**
+     * 新增工作计划完成情况周统计
+     *
+     * @param pdmReportPlanWeek 工作计划完成情况周统计
+     * @return 结果
+     */
+    @Override
+    public int insertPdmReportPlanWeek(PdmReportPlanWeek pdmReportPlanWeek)
+    {
+        pdmReportPlanWeek.setCreateTime(DateUtils.getNowDate());
+        return pdmReportPlanWeekMapper.insertPdmReportPlanWeek(pdmReportPlanWeek);
+    }
+
+    /**
+     * 修改工作计划完成情况周统计
+     *
+     * @param pdmReportPlanWeek 工作计划完成情况周统计
+     * @return 结果
+     */
+    @Override
+    public int updatePdmReportPlanWeek(PdmReportPlanWeek pdmReportPlanWeek)
+    {
+        pdmReportPlanWeek.setUpdateTime(DateUtils.getNowDate());
+        return pdmReportPlanWeekMapper.updatePdmReportPlanWeek(pdmReportPlanWeek);
+    }
+
+    /**
+     * 批量删除工作计划完成情况周统计
+     *
+     * @param ids 需要删除的工作计划完成情况周统计主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmReportPlanWeekByIds(Long[] ids)
+    {
+        return pdmReportPlanWeekMapper.deletePdmReportPlanWeekByIds(ids);
+    }
+
+    /**
+     * 删除工作计划完成情况周统计信息
+     *
+     * @param id 工作计划完成情况周统计主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmReportPlanWeekById(Long id)
+    {
+        return pdmReportPlanWeekMapper.deletePdmReportPlanWeekById(id);
+    }
+}

+ 122 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmReportAppointmentWeekMapper.xml

@@ -0,0 +1,122 @@
+<?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.PdmReportAppointmentWeekMapper">
+
+    <resultMap type="PdmReportAppointmentWeek" id="PdmReportAppointmentWeekResult">
+        <result property="id"    column="id"    />
+        <result property="company"    column="company"    />
+        <result property="reportDate"    column="report_date"    />
+        <result property="reportEndDate"    column="report_end_date"    />
+        <result property="checkNum3"    column="check_num3"    />
+        <result property="checkNum4"    column="check_num4"    />
+        <result property="checkNum5"    column="check_num5"    />
+        <result property="bossSum"    column="boss_sum"    />
+        <result property="manageSum"    column="manage_sum"    />
+        <result property="problemSum"    column="problem_sum"    />
+        <result property="absentSum"    column="absent_sum"    />
+        <result property="cityCheckSum"    column="city_check_sum"    />
+        <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="selectPdmReportAppointmentWeekVo">
+        select id, company, report_date, report_end_date, check_num3, check_num4, check_num5, boss_sum, manage_sum, problem_sum, absent_sum, city_check_sum, create_by, create_time, update_by, update_time from pdm_report_appointment_week
+    </sql>
+
+    <select id="selectPdmReportAppointmentWeekList" parameterType="PdmReportAppointmentWeek" resultMap="PdmReportAppointmentWeekResult">
+        <include refid="selectPdmReportAppointmentWeekVo"/>
+        <where>
+            <if test="company != null  and company != ''"> and company = #{company}</if>
+            <if test="reportDate != null  and reportDate != ''"> and report_date = #{reportDate}</if>
+            <if test="reportEndDate != null  and reportEndDate != ''"> and report_end_date = #{reportEndDate}</if>
+            <if test="checkNum3 != null "> and check_num3 = #{checkNum3}</if>
+            <if test="checkNum4 != null "> and check_num4 = #{checkNum4}</if>
+            <if test="checkNum5 != null "> and check_num5 = #{checkNum5}</if>
+            <if test="bossSum != null "> and boss_sum = #{bossSum}</if>
+            <if test="manageSum != null "> and manage_sum = #{manageSum}</if>
+            <if test="problemSum != null "> and problem_sum = #{problemSum}</if>
+            <if test="absentSum != null "> and absent_sum = #{absentSum}</if>
+            <if test="cityCheckSum != null "> and city_check_sum = #{cityCheckSum}</if>
+        </where>
+    </select>
+
+    <select id="selectPdmReportAppointmentWeekById" parameterType="Long" resultMap="PdmReportAppointmentWeekResult">
+        <include refid="selectPdmReportAppointmentWeekVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertPdmReportAppointmentWeek" parameterType="PdmReportAppointmentWeek" useGeneratedKeys="true" keyProperty="id">
+        insert into pdm_report_appointment_week
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="company != null">company,</if>
+            <if test="reportDate != null">report_date,</if>
+            <if test="reportEndDate != null">report_end_date,</if>
+            <if test="checkNum3 != null">check_num3,</if>
+            <if test="checkNum4 != null">check_num4,</if>
+            <if test="checkNum5 != null">check_num5,</if>
+            <if test="bossSum != null">boss_sum,</if>
+            <if test="manageSum != null">manage_sum,</if>
+            <if test="problemSum != null">problem_sum,</if>
+            <if test="absentSum != null">absent_sum,</if>
+            <if test="cityCheckSum != null">city_check_sum,</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="company != null">#{company},</if>
+            <if test="reportDate != null">#{reportDate},</if>
+            <if test="reportEndDate != null">#{reportEndDate},</if>
+            <if test="checkNum3 != null">#{checkNum3},</if>
+            <if test="checkNum4 != null">#{checkNum4},</if>
+            <if test="checkNum5 != null">#{checkNum5},</if>
+            <if test="bossSum != null">#{bossSum},</if>
+            <if test="manageSum != null">#{manageSum},</if>
+            <if test="problemSum != null">#{problemSum},</if>
+            <if test="absentSum != null">#{absentSum},</if>
+            <if test="cityCheckSum != null">#{cityCheckSum},</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="updatePdmReportAppointmentWeek" parameterType="PdmReportAppointmentWeek">
+        update pdm_report_appointment_week
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="company != null">company = #{company},</if>
+            <if test="reportDate != null">report_date = #{reportDate},</if>
+            <if test="reportEndDate != null">report_end_date = #{reportEndDate},</if>
+            <if test="checkNum3 != null">check_num3 = #{checkNum3},</if>
+            <if test="checkNum4 != null">check_num4 = #{checkNum4},</if>
+            <if test="checkNum5 != null">check_num5 = #{checkNum5},</if>
+            <if test="bossSum != null">boss_sum = #{bossSum},</if>
+            <if test="manageSum != null">manage_sum = #{manageSum},</if>
+            <if test="problemSum != null">problem_sum = #{problemSum},</if>
+            <if test="absentSum != null">absent_sum = #{absentSum},</if>
+            <if test="cityCheckSum != null">city_check_sum = #{cityCheckSum},</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="deletePdmReportAppointmentWeekById" parameterType="Long">
+        delete from pdm_report_appointment_week where id = #{id}
+    </delete>
+
+    <delete id="deletePdmReportAppointmentWeekByIds" parameterType="String">
+        delete from pdm_report_appointment_week where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 112 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmReportIllegalWeekMapper.xml

@@ -0,0 +1,112 @@
+<?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.PdmReportIllegalWeekMapper">
+
+    <resultMap type="PdmReportIllegalWeek" id="PdmReportIllegalWeekResult">
+        <result property="id"    column="id"    />
+        <result property="company"    column="company"    />
+        <result property="reportDate"    column="report_date"    />
+        <result property="reportEndDate"    column="report_end_date"    />
+        <result property="provinceNum1"    column="province_num1"    />
+        <result property="provinceNum2"    column="province_num2"    />
+        <result property="cityNum1"    column="city_num1"    />
+        <result property="cityNum2"    column="city_num2"    />
+        <result property="countyNum1"    column="county_num1"    />
+        <result property="countyNum2"    column="county_num2"    />
+        <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="selectPdmReportIllegalWeekVo">
+        select id, company, report_date, report_end_date, province_num1, province_num2, city_num1, city_num2, county_num1, county_num2, create_by, create_time, update_by, update_time from pdm_report_illegal_week
+    </sql>
+
+    <select id="selectPdmReportIllegalWeekList" parameterType="PdmReportIllegalWeek" resultMap="PdmReportIllegalWeekResult">
+        <include refid="selectPdmReportIllegalWeekVo"/>
+        <where>
+            <if test="company != null  and company != ''"> and company = #{company}</if>
+            <if test="reportDate != null  and reportDate != ''"> and report_date = #{reportDate}</if>
+            <if test="reportEndDate != null  and reportEndDate != ''"> and report_end_date = #{reportEndDate}</if>
+            <if test="provinceNum1 != null "> and province_num1 = #{provinceNum1}</if>
+            <if test="provinceNum2 != null "> and province_num2 = #{provinceNum2}</if>
+            <if test="cityNum1 != null "> and city_num1 = #{cityNum1}</if>
+            <if test="cityNum2 != null "> and city_num2 = #{cityNum2}</if>
+            <if test="countyNum1 != null "> and county_num1 = #{countyNum1}</if>
+            <if test="countyNum2 != null "> and county_num2 = #{countyNum2}</if>
+        </where>
+    </select>
+
+    <select id="selectPdmReportIllegalWeekById" parameterType="Long" resultMap="PdmReportIllegalWeekResult">
+        <include refid="selectPdmReportIllegalWeekVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertPdmReportIllegalWeek" parameterType="PdmReportIllegalWeek" useGeneratedKeys="true" keyProperty="id">
+        insert into pdm_report_illegal_week
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="company != null">company,</if>
+            <if test="reportDate != null">report_date,</if>
+            <if test="reportEndDate != null">report_end_date,</if>
+            <if test="provinceNum1 != null">province_num1,</if>
+            <if test="provinceNum2 != null">province_num2,</if>
+            <if test="cityNum1 != null">city_num1,</if>
+            <if test="cityNum2 != null">city_num2,</if>
+            <if test="countyNum1 != null">county_num1,</if>
+            <if test="countyNum2 != null">county_num2,</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="company != null">#{company},</if>
+            <if test="reportDate != null">#{reportDate},</if>
+            <if test="reportEndDate != null">#{reportEndDate},</if>
+            <if test="provinceNum1 != null">#{provinceNum1},</if>
+            <if test="provinceNum2 != null">#{provinceNum2},</if>
+            <if test="cityNum1 != null">#{cityNum1},</if>
+            <if test="cityNum2 != null">#{cityNum2},</if>
+            <if test="countyNum1 != null">#{countyNum1},</if>
+            <if test="countyNum2 != null">#{countyNum2},</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="updatePdmReportIllegalWeek" parameterType="PdmReportIllegalWeek">
+        update pdm_report_illegal_week
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="company != null">company = #{company},</if>
+            <if test="reportDate != null">report_date = #{reportDate},</if>
+            <if test="reportEndDate != null">report_end_date = #{reportEndDate},</if>
+            <if test="provinceNum1 != null">province_num1 = #{provinceNum1},</if>
+            <if test="provinceNum2 != null">province_num2 = #{provinceNum2},</if>
+            <if test="cityNum1 != null">city_num1 = #{cityNum1},</if>
+            <if test="cityNum2 != null">city_num2 = #{cityNum2},</if>
+            <if test="countyNum1 != null">county_num1 = #{countyNum1},</if>
+            <if test="countyNum2 != null">county_num2 = #{countyNum2},</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="deletePdmReportIllegalWeekById" parameterType="Long">
+        delete from pdm_report_illegal_week where id = #{id}
+    </delete>
+
+    <delete id="deletePdmReportIllegalWeekByIds" parameterType="String">
+        delete from pdm_report_illegal_week where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 137 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmReportPlanNextWeekMapper.xml

@@ -0,0 +1,137 @@
+<?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.PdmReportPlanNextWeekMapper">
+
+    <resultMap type="PdmReportPlanNextWeek" id="PdmReportPlanNextWeekResult">
+        <result property="id"    column="id"    />
+        <result property="company"    column="company"    />
+        <result property="reportDate"    column="report_date"    />
+        <result property="reportEndDate"    column="report_end_date"    />
+        <result property="workTotal"    column="work_total"    />
+        <result property="workType1Sum"    column="work_type1_sum"    />
+        <result property="workType2Sum"    column="work_type2_sum"    />
+        <result property="workType3Sum"    column="work_type3_sum"    />
+        <result property="workType4Sum"    column="work_type4_sum"    />
+        <result property="workType5Sum"    column="work_type5_sum"    />
+        <result property="elePlanSum"    column="ele_plan_sum"    />
+        <result property="planLeve3"    column="plan_leve3"    />
+        <result property="planLeve4"    column="plan_leve4"    />
+        <result property="planLeve5"    column="plan_leve5"    />
+        <result property="checkDetail"    column="check_detail"    />
+        <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="selectPdmReportPlanNextWeekVo">
+        select id, company, report_date, report_end_date, work_total, work_type1_sum, work_type2_sum, work_type3_sum, work_type4_sum, work_type5_sum, ele_plan_sum, plan_leve3, plan_leve4, plan_leve5, check_detail, create_by, create_time, update_by, update_time from pdm_report_plan_next_week
+    </sql>
+
+    <select id="selectPdmReportPlanNextWeekList" parameterType="PdmReportPlanNextWeek" resultMap="PdmReportPlanNextWeekResult">
+        <include refid="selectPdmReportPlanNextWeekVo"/>
+        <where>
+            <if test="company != null  and company != ''"> and company = #{company}</if>
+            <if test="reportDate != null  and reportDate != ''"> and report_date = #{reportDate}</if>
+            <if test="reportEndDate != null  and reportEndDate != ''"> and report_end_date = #{reportEndDate}</if>
+            <if test="workTotal != null "> and work_total = #{workTotal}</if>
+            <if test="workType1Sum != null "> and work_type1_sum = #{workType1Sum}</if>
+            <if test="workType2Sum != null "> and work_type2_sum = #{workType2Sum}</if>
+            <if test="workType3Sum != null "> and work_type3_sum = #{workType3Sum}</if>
+            <if test="workType4Sum != null "> and work_type4_sum = #{workType4Sum}</if>
+            <if test="workType5Sum != null "> and work_type5_sum = #{workType5Sum}</if>
+            <if test="elePlanSum != null "> and ele_plan_sum = #{elePlanSum}</if>
+            <if test="planLeve3 != null  and planLeve3 != ''"> and plan_leve3 = #{planLeve3}</if>
+            <if test="planLeve4 != null  and planLeve4 != ''"> and plan_leve4 = #{planLeve4}</if>
+            <if test="planLeve5 != null  and planLeve5 != ''"> and plan_leve5 = #{planLeve5}</if>
+            <if test="checkDetail != null  and checkDetail != ''"> and check_detail = #{checkDetail}</if>
+        </where>
+    </select>
+
+    <select id="selectPdmReportPlanNextWeekById" parameterType="Long" resultMap="PdmReportPlanNextWeekResult">
+        <include refid="selectPdmReportPlanNextWeekVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertPdmReportPlanNextWeek" parameterType="PdmReportPlanNextWeek" useGeneratedKeys="true" keyProperty="id">
+        insert into pdm_report_plan_next_week
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="company != null">company,</if>
+            <if test="reportDate != null">report_date,</if>
+            <if test="reportEndDate != null">report_end_date,</if>
+            <if test="workTotal != null">work_total,</if>
+            <if test="workType1Sum != null">work_type1_sum,</if>
+            <if test="workType2Sum != null">work_type2_sum,</if>
+            <if test="workType3Sum != null">work_type3_sum,</if>
+            <if test="workType4Sum != null">work_type4_sum,</if>
+            <if test="workType5Sum != null">work_type5_sum,</if>
+            <if test="elePlanSum != null">ele_plan_sum,</if>
+            <if test="planLeve3 != null">plan_leve3,</if>
+            <if test="planLeve4 != null">plan_leve4,</if>
+            <if test="planLeve5 != null">plan_leve5,</if>
+            <if test="checkDetail != null">check_detail,</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="company != null">#{company},</if>
+            <if test="reportDate != null">#{reportDate},</if>
+            <if test="reportEndDate != null">#{reportEndDate},</if>
+            <if test="workTotal != null">#{workTotal},</if>
+            <if test="workType1Sum != null">#{workType1Sum},</if>
+            <if test="workType2Sum != null">#{workType2Sum},</if>
+            <if test="workType3Sum != null">#{workType3Sum},</if>
+            <if test="workType4Sum != null">#{workType4Sum},</if>
+            <if test="workType5Sum != null">#{workType5Sum},</if>
+            <if test="elePlanSum != null">#{elePlanSum},</if>
+            <if test="planLeve3 != null">#{planLeve3},</if>
+            <if test="planLeve4 != null">#{planLeve4},</if>
+            <if test="planLeve5 != null">#{planLeve5},</if>
+            <if test="checkDetail != null">#{checkDetail},</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="updatePdmReportPlanNextWeek" parameterType="PdmReportPlanNextWeek">
+        update pdm_report_plan_next_week
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="company != null">company = #{company},</if>
+            <if test="reportDate != null">report_date = #{reportDate},</if>
+            <if test="reportEndDate != null">report_end_date = #{reportEndDate},</if>
+            <if test="workTotal != null">work_total = #{workTotal},</if>
+            <if test="workType1Sum != null">work_type1_sum = #{workType1Sum},</if>
+            <if test="workType2Sum != null">work_type2_sum = #{workType2Sum},</if>
+            <if test="workType3Sum != null">work_type3_sum = #{workType3Sum},</if>
+            <if test="workType4Sum != null">work_type4_sum = #{workType4Sum},</if>
+            <if test="workType5Sum != null">work_type5_sum = #{workType5Sum},</if>
+            <if test="elePlanSum != null">ele_plan_sum = #{elePlanSum},</if>
+            <if test="planLeve3 != null">plan_leve3 = #{planLeve3},</if>
+            <if test="planLeve4 != null">plan_leve4 = #{planLeve4},</if>
+            <if test="planLeve5 != null">plan_leve5 = #{planLeve5},</if>
+            <if test="checkDetail != null">check_detail = #{checkDetail},</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="deletePdmReportPlanNextWeekById" parameterType="Long">
+        delete from pdm_report_plan_next_week where id = #{id}
+    </delete>
+
+    <delete id="deletePdmReportPlanNextWeekByIds" parameterType="String">
+        delete from pdm_report_plan_next_week where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 122 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmReportPlanWeekMapper.xml

@@ -0,0 +1,122 @@
+<?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.PdmReportPlanWeekMapper">
+
+    <resultMap type="PdmReportPlanWeek" id="PdmReportPlanWeekResult">
+        <result property="id"    column="id"    />
+        <result property="company"    column="company"    />
+        <result property="reportDate"    column="report_date"    />
+        <result property="reportEndDate"    column="report_end_date"    />
+        <result property="total"    column="total"    />
+        <result property="weekSum"    column="week_sum"    />
+        <result property="weekCancelSum"    column="week_cancel_sum"    />
+        <result property="weekRatio"    column="week_ratio"    />
+        <result property="temporarySum"    column="temporary_sum"    />
+        <result property="temporaryCancelSum"    column="temporary_cancel_sum"    />
+        <result property="temporaryRatio"    column="temporary_ratio"    />
+        <result property="temporaryPlanRatio"    column="temporary_plan_ratio"    />
+        <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="selectPdmReportPlanWeekVo">
+        select id, company, report_date, report_end_date, total, week_sum, week_cancel_sum, week_ratio, temporary_sum, temporary_cancel_sum, temporary_ratio, temporary_plan_ratio, create_by, create_time, update_by, update_time from pdm_report_plan_week
+    </sql>
+
+    <select id="selectPdmReportPlanWeekList" parameterType="PdmReportPlanWeek" resultMap="PdmReportPlanWeekResult">
+        <include refid="selectPdmReportPlanWeekVo"/>
+        <where>
+            <if test="company != null  and company != ''"> and company = #{company}</if>
+            <if test="reportDate != null  and reportDate != ''"> and report_date = #{reportDate}</if>
+            <if test="reportEndDate != null  and reportEndDate != ''"> and report_end_date = #{reportEndDate}</if>
+            <if test="total != null "> and total = #{total}</if>
+            <if test="weekSum != null "> and week_sum = #{weekSum}</if>
+            <if test="weekCancelSum != null "> and week_cancel_sum = #{weekCancelSum}</if>
+            <if test="weekRatio != null  and weekRatio != ''"> and week_ratio = #{weekRatio}</if>
+            <if test="temporarySum != null "> and temporary_sum = #{temporarySum}</if>
+            <if test="temporaryCancelSum != null "> and temporary_cancel_sum = #{temporaryCancelSum}</if>
+            <if test="temporaryRatio != null  and temporaryRatio != ''"> and temporary_ratio = #{temporaryRatio}</if>
+            <if test="temporaryPlanRatio != null  and temporaryPlanRatio != ''"> and temporary_plan_ratio = #{temporaryPlanRatio}</if>
+        </where>
+    </select>
+
+    <select id="selectPdmReportPlanWeekById" parameterType="Long" resultMap="PdmReportPlanWeekResult">
+        <include refid="selectPdmReportPlanWeekVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertPdmReportPlanWeek" parameterType="PdmReportPlanWeek" useGeneratedKeys="true" keyProperty="id">
+        insert into pdm_report_plan_week
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="company != null">company,</if>
+            <if test="reportDate != null">report_date,</if>
+            <if test="reportEndDate != null">report_end_date,</if>
+            <if test="total != null">total,</if>
+            <if test="weekSum != null">week_sum,</if>
+            <if test="weekCancelSum != null">week_cancel_sum,</if>
+            <if test="weekRatio != null">week_ratio,</if>
+            <if test="temporarySum != null">temporary_sum,</if>
+            <if test="temporaryCancelSum != null">temporary_cancel_sum,</if>
+            <if test="temporaryRatio != null">temporary_ratio,</if>
+            <if test="temporaryPlanRatio != null">temporary_plan_ratio,</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="company != null">#{company},</if>
+            <if test="reportDate != null">#{reportDate},</if>
+            <if test="reportEndDate != null">#{reportEndDate},</if>
+            <if test="total != null">#{total},</if>
+            <if test="weekSum != null">#{weekSum},</if>
+            <if test="weekCancelSum != null">#{weekCancelSum},</if>
+            <if test="weekRatio != null">#{weekRatio},</if>
+            <if test="temporarySum != null">#{temporarySum},</if>
+            <if test="temporaryCancelSum != null">#{temporaryCancelSum},</if>
+            <if test="temporaryRatio != null">#{temporaryRatio},</if>
+            <if test="temporaryPlanRatio != null">#{temporaryPlanRatio},</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="updatePdmReportPlanWeek" parameterType="PdmReportPlanWeek">
+        update pdm_report_plan_week
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="company != null">company = #{company},</if>
+            <if test="reportDate != null">report_date = #{reportDate},</if>
+            <if test="reportEndDate != null">report_end_date = #{reportEndDate},</if>
+            <if test="total != null">total = #{total},</if>
+            <if test="weekSum != null">week_sum = #{weekSum},</if>
+            <if test="weekCancelSum != null">week_cancel_sum = #{weekCancelSum},</if>
+            <if test="weekRatio != null">week_ratio = #{weekRatio},</if>
+            <if test="temporarySum != null">temporary_sum = #{temporarySum},</if>
+            <if test="temporaryCancelSum != null">temporary_cancel_sum = #{temporaryCancelSum},</if>
+            <if test="temporaryRatio != null">temporary_ratio = #{temporaryRatio},</if>
+            <if test="temporaryPlanRatio != null">temporary_plan_ratio = #{temporaryPlanRatio},</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="deletePdmReportPlanWeekById" parameterType="Long">
+        delete from pdm_report_plan_week where id = #{id}
+    </delete>
+
+    <delete id="deletePdmReportPlanWeekByIds" parameterType="String">
+        delete from pdm_report_plan_week where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>