wenhongquan 3 năm trước cách đây
mục cha
commit
0ad890ac4b
24 tập tin đã thay đổi với 2291 bổ sung0 xóa
  1. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TableDetectionController.java
  2. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TblDetectionLogController.java
  3. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TblMaintainController.java
  4. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TblMaintainLogController.java
  5. 191 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/TableDetection.java
  6. 110 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/TblDetectionLog.java
  7. 205 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/TblMaintain.java
  8. 110 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/TblMaintainLog.java
  9. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/TableDetectionMapper.java
  10. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/TblDetectionLogMapper.java
  11. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/TblMaintainLogMapper.java
  12. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/TblMaintainMapper.java
  13. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/ITableDetectionService.java
  14. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/ITblDetectionLogService.java
  15. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/ITblMaintainLogService.java
  16. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/ITblMaintainService.java
  17. 93 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TableDetectionServiceImpl.java
  18. 96 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TblDetectionLogServiceImpl.java
  19. 96 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TblMaintainLogServiceImpl.java
  20. 93 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TblMaintainServiceImpl.java
  21. 106 0
      ruoyi-system/src/main/resources/mapper/system/TableDetectionMapper.xml
  22. 88 0
      ruoyi-system/src/main/resources/mapper/system/TblDetectionLogMapper.xml
  23. 88 0
      ruoyi-system/src/main/resources/mapper/system/TblMaintainLogMapper.xml
  24. 111 0
      ruoyi-system/src/main/resources/mapper/system/TblMaintainMapper.xml

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TableDetectionController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.system;
+
+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.system.domain.TableDetection;
+import com.ruoyi.system.service.ITableDetectionService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 检测计划Controller
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+@RestController
+@RequestMapping("/system/detection")
+public class TableDetectionController extends BaseController
+{
+    @Autowired
+    private ITableDetectionService tableDetectionService;
+
+    /**
+     * 查询检测计划列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:detection:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TableDetection tableDetection)
+    {
+        startPage();
+        List<TableDetection> list = tableDetectionService.selectTableDetectionList(tableDetection);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出检测计划列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:detection:export')")
+    @Log(title = "检测计划", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TableDetection tableDetection)
+    {
+        List<TableDetection> list = tableDetectionService.selectTableDetectionList(tableDetection);
+        ExcelUtil<TableDetection> util = new ExcelUtil<TableDetection>(TableDetection.class);
+        util.exportExcel(response, list, "检测计划数据");
+    }
+
+    /**
+     * 获取检测计划详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:detection:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(tableDetectionService.selectTableDetectionById(id));
+    }
+
+    /**
+     * 新增检测计划
+     */
+    @PreAuthorize("@ss.hasPermi('system:detection:add')")
+    @Log(title = "检测计划", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TableDetection tableDetection)
+    {
+        return toAjax(tableDetectionService.insertTableDetection(tableDetection));
+    }
+
+    /**
+     * 修改检测计划
+     */
+    @PreAuthorize("@ss.hasPermi('system:detection:edit')")
+    @Log(title = "检测计划", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TableDetection tableDetection)
+    {
+        return toAjax(tableDetectionService.updateTableDetection(tableDetection));
+    }
+
+    /**
+     * 删除检测计划
+     */
+    @PreAuthorize("@ss.hasPermi('system:detection:remove')")
+    @Log(title = "检测计划", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tableDetectionService.deleteTableDetectionByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TblDetectionLogController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.system;
+
+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.system.domain.TblDetectionLog;
+import com.ruoyi.system.service.ITblDetectionLogService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】Controller
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+@RestController
+@RequestMapping("/system/detectionlog")
+public class TblDetectionLogController extends BaseController
+{
+    @Autowired
+    private ITblDetectionLogService tblDetectionLogService;
+
+    /**
+     * 查询检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TblDetectionLog tblDetectionLog)
+    {
+        startPage();
+        List<TblDetectionLog> list = tblDetectionLogService.selectTblDetectionLogList(tblDetectionLog);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:export')")
+    @Log(title = "检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TblDetectionLog tblDetectionLog)
+    {
+        List<TblDetectionLog> list = tblDetectionLogService.selectTblDetectionLogList(tblDetectionLog);
+        ExcelUtil<TblDetectionLog> util = new ExcelUtil<TblDetectionLog>(TblDetectionLog.class);
+        util.exportExcel(response, list, "检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】数据");
+    }
+
+    /**
+     * 获取检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(tblDetectionLogService.selectTblDetectionLogById(id));
+    }
+
+    /**
+     * 新增检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:add')")
+    @Log(title = "检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TblDetectionLog tblDetectionLog)
+    {
+        return toAjax(tblDetectionLogService.insertTblDetectionLog(tblDetectionLog));
+    }
+
+    /**
+     * 修改检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:edit')")
+    @Log(title = "检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TblDetectionLog tblDetectionLog)
+    {
+        return toAjax(tblDetectionLogService.updateTblDetectionLog(tblDetectionLog));
+    }
+
+    /**
+     * 删除检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:remove')")
+    @Log(title = "检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tblDetectionLogService.deleteTblDetectionLogByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TblMaintainController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.system;
+
+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.system.domain.TblMaintain;
+import com.ruoyi.system.service.ITblMaintainService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 养护计划Controller
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+@RestController
+@RequestMapping("/system/maintain")
+public class TblMaintainController extends BaseController
+{
+    @Autowired
+    private ITblMaintainService tblMaintainService;
+
+    /**
+     * 查询养护计划列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:maintain:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TblMaintain tblMaintain)
+    {
+        startPage();
+        List<TblMaintain> list = tblMaintainService.selectTblMaintainList(tblMaintain);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出养护计划列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:maintain:export')")
+    @Log(title = "养护计划", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TblMaintain tblMaintain)
+    {
+        List<TblMaintain> list = tblMaintainService.selectTblMaintainList(tblMaintain);
+        ExcelUtil<TblMaintain> util = new ExcelUtil<TblMaintain>(TblMaintain.class);
+        util.exportExcel(response, list, "养护计划数据");
+    }
+
+    /**
+     * 获取养护计划详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:maintain:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(tblMaintainService.selectTblMaintainById(id));
+    }
+
+    /**
+     * 新增养护计划
+     */
+    @PreAuthorize("@ss.hasPermi('system:maintain:add')")
+    @Log(title = "养护计划", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TblMaintain tblMaintain)
+    {
+        return toAjax(tblMaintainService.insertTblMaintain(tblMaintain));
+    }
+
+    /**
+     * 修改养护计划
+     */
+    @PreAuthorize("@ss.hasPermi('system:maintain:edit')")
+    @Log(title = "养护计划", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TblMaintain tblMaintain)
+    {
+        return toAjax(tblMaintainService.updateTblMaintain(tblMaintain));
+    }
+
+    /**
+     * 删除养护计划
+     */
+    @PreAuthorize("@ss.hasPermi('system:maintain:remove')")
+    @Log(title = "养护计划", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tblMaintainService.deleteTblMaintainByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TblMaintainLogController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.system;
+
+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.system.domain.TblMaintainLog;
+import com.ruoyi.system.service.ITblMaintainLogService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】Controller
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+@RestController
+@RequestMapping("/system/maintainlog")
+public class TblMaintainLogController extends BaseController
+{
+    @Autowired
+    private ITblMaintainLogService tblMaintainLogService;
+
+    /**
+     * 查询养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TblMaintainLog tblMaintainLog)
+    {
+        startPage();
+        List<TblMaintainLog> list = tblMaintainLogService.selectTblMaintainLogList(tblMaintainLog);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:export')")
+    @Log(title = "养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TblMaintainLog tblMaintainLog)
+    {
+        List<TblMaintainLog> list = tblMaintainLogService.selectTblMaintainLogList(tblMaintainLog);
+        ExcelUtil<TblMaintainLog> util = new ExcelUtil<TblMaintainLog>(TblMaintainLog.class);
+        util.exportExcel(response, list, "养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】数据");
+    }
+
+    /**
+     * 获取养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(tblMaintainLogService.selectTblMaintainLogById(id));
+    }
+
+    /**
+     * 新增养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:add')")
+    @Log(title = "养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TblMaintainLog tblMaintainLog)
+    {
+        return toAjax(tblMaintainLogService.insertTblMaintainLog(tblMaintainLog));
+    }
+
+    /**
+     * 修改养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:edit')")
+    @Log(title = "养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TblMaintainLog tblMaintainLog)
+    {
+        return toAjax(tblMaintainLogService.updateTblMaintainLog(tblMaintainLog));
+    }
+
+    /**
+     * 删除养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    @PreAuthorize("@ss.hasPermi('system:log:remove')")
+    @Log(title = "养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tblMaintainLogService.deleteTblMaintainLogByIds(ids));
+    }
+}

+ 191 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/TableDetection.java

@@ -0,0 +1,191 @@
+package com.ruoyi.system.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;
+
+/**
+ * 检测计划对象 table_detection
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public class TableDetection extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 检测计划类型--见参数表 */
+    @Excel(name = "检测计划类型--见参数表")
+    private Long detectionType;
+
+    /** 计划年 */
+    @Excel(name = "计划年")
+    private String detectionYear;
+
+    /** 计划月 */
+    @Excel(name = "计划月")
+    private String detectionMonth;
+
+    /** 计划周 */
+    @Excel(name = "计划周")
+    private String detectionWeek;
+
+    /** 计划作业班组 逗号隔开 */
+    @Excel(name = "计划作业班组 逗号隔开")
+    private String detectionDept;
+
+    /** 计划备注 */
+    @Excel(name = "计划备注")
+    private String detectionRemark;
+
+    /** 计划说明 */
+    @Excel(name = "计划说明")
+    private String detectionDes;
+
+    /** 计划状态 参见字典表 */
+    @Excel(name = "计划状态 参见字典表")
+    private Long status;
+
+    /** 关联设备编号 */
+    @Excel(name = "关联设备编号")
+    private Long facilitiesId;
+
+    /** 扩展字段1 */
+    @Excel(name = "扩展字段1")
+    private String ext1;
+
+    /** 扩展字段2 */
+    @Excel(name = "扩展字段2")
+    private String ext2;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setDetectionType(Long detectionType) 
+    {
+        this.detectionType = detectionType;
+    }
+
+    public Long getDetectionType() 
+    {
+        return detectionType;
+    }
+    public void setDetectionYear(String detectionYear) 
+    {
+        this.detectionYear = detectionYear;
+    }
+
+    public String getDetectionYear() 
+    {
+        return detectionYear;
+    }
+    public void setDetectionMonth(String detectionMonth) 
+    {
+        this.detectionMonth = detectionMonth;
+    }
+
+    public String getDetectionMonth() 
+    {
+        return detectionMonth;
+    }
+    public void setDetectionWeek(String detectionWeek) 
+    {
+        this.detectionWeek = detectionWeek;
+    }
+
+    public String getDetectionWeek() 
+    {
+        return detectionWeek;
+    }
+    public void setDetectionDept(String detectionDept) 
+    {
+        this.detectionDept = detectionDept;
+    }
+
+    public String getDetectionDept() 
+    {
+        return detectionDept;
+    }
+    public void setDetectionRemark(String detectionRemark) 
+    {
+        this.detectionRemark = detectionRemark;
+    }
+
+    public String getDetectionRemark() 
+    {
+        return detectionRemark;
+    }
+    public void setDetectionDes(String detectionDes) 
+    {
+        this.detectionDes = detectionDes;
+    }
+
+    public String getDetectionDes() 
+    {
+        return detectionDes;
+    }
+    public void setStatus(Long status) 
+    {
+        this.status = status;
+    }
+
+    public Long getStatus() 
+    {
+        return status;
+    }
+    public void setFacilitiesId(Long facilitiesId) 
+    {
+        this.facilitiesId = facilitiesId;
+    }
+
+    public Long getFacilitiesId() 
+    {
+        return facilitiesId;
+    }
+    public void setExt1(String ext1) 
+    {
+        this.ext1 = ext1;
+    }
+
+    public String getExt1() 
+    {
+        return ext1;
+    }
+    public void setExt2(String ext2) 
+    {
+        this.ext2 = ext2;
+    }
+
+    public String getExt2() 
+    {
+        return ext2;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("detectionType", getDetectionType())
+            .append("detectionYear", getDetectionYear())
+            .append("detectionMonth", getDetectionMonth())
+            .append("detectionWeek", getDetectionWeek())
+            .append("detectionDept", getDetectionDept())
+            .append("detectionRemark", getDetectionRemark())
+            .append("detectionDes", getDetectionDes())
+            .append("status", getStatus())
+            .append("facilitiesId", getFacilitiesId())
+            .append("ext1", getExt1())
+            .append("ext2", getExt2())
+            .toString();
+    }
+}

+ 110 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/TblDetectionLog.java

@@ -0,0 +1,110 @@
+package com.ruoyi.system.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;
+
+/**
+ * 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】对象 tbl_detection_log
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public class TblDetectionLog extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 检测计划编号 */
+    @Excel(name = "检测计划编号")
+    private Long detectionId;
+
+    /** 检测计划状态 */
+    @Excel(name = "检测计划状态")
+    private Long detectionStatus;
+
+    /** 检测计划日志内容 ,计划派发内容,计划执行反馈,计划成果均以json记录【该数据为内容数据】 */
+    @Excel(name = "检测计划日志内容 ,计划派发内容,计划执行反馈,计划成果均以json记录【该数据为内容数据】")
+    private String logDes;
+
+    /** 日志图片 */
+    @Excel(name = "日志图片")
+    private String logPics;
+
+    /** 日志视频 */
+    @Excel(name = "日志视频")
+    private String logVideos;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setDetectionId(Long detectionId) 
+    {
+        this.detectionId = detectionId;
+    }
+
+    public Long getDetectionId() 
+    {
+        return detectionId;
+    }
+    public void setDetectionStatus(Long detectionStatus) 
+    {
+        this.detectionStatus = detectionStatus;
+    }
+
+    public Long getDetectionStatus() 
+    {
+        return detectionStatus;
+    }
+    public void setLogDes(String logDes) 
+    {
+        this.logDes = logDes;
+    }
+
+    public String getLogDes() 
+    {
+        return logDes;
+    }
+    public void setLogPics(String logPics) 
+    {
+        this.logPics = logPics;
+    }
+
+    public String getLogPics() 
+    {
+        return logPics;
+    }
+    public void setLogVideos(String logVideos) 
+    {
+        this.logVideos = logVideos;
+    }
+
+    public String getLogVideos() 
+    {
+        return logVideos;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("detectionId", getDetectionId())
+            .append("detectionStatus", getDetectionStatus())
+            .append("logDes", getLogDes())
+            .append("logPics", getLogPics())
+            .append("logVideos", getLogVideos())
+            .append("createTime", getCreateTime())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 205 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/TblMaintain.java

@@ -0,0 +1,205 @@
+package com.ruoyi.system.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;
+
+/**
+ * 养护计划对象 tbl_maintain
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public class TblMaintain extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 养护类型--见参数表 */
+    @Excel(name = "养护类型--见参数表")
+    private Long maintainType;
+
+    /** 养护数量 */
+    @Excel(name = "养护数量")
+    private Long maintainCount;
+
+    /** 养护单位 */
+    @Excel(name = "养护单位")
+    private String maintainUnit;
+
+    /** 养护计划年 */
+    @Excel(name = "养护计划年")
+    private String maintainYear;
+
+    /**  养护计划月 */
+    @Excel(name = " 养护计划月")
+    private String maintainMonth;
+
+    /** 养护计划说明 */
+    @Excel(name = "养护计划说明")
+    private String maintainDes;
+
+    /** 养护计划备注 */
+    @Excel(name = "养护计划备注")
+    private String maintainRemark;
+
+    /** 是否上报南排  1 上报 0不上报 */
+    @Excel(name = "是否上报南排  1 上报 0不上报")
+    private Long maintainReportNp;
+
+    /** 扩展字段1 */
+    @Excel(name = "扩展字段1")
+    private String ext1;
+
+    /** 扩展字段2 */
+    @Excel(name = "扩展字段2")
+    private String ext2;
+
+    /** 计划状态 参见字典表 */
+    @Excel(name = "计划状态 参见字典表")
+    private Long status;
+
+    /** 关联设施编号 */
+    @Excel(name = "关联设施编号")
+    private Long facilitiesId;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setMaintainType(Long maintainType) 
+    {
+        this.maintainType = maintainType;
+    }
+
+    public Long getMaintainType() 
+    {
+        return maintainType;
+    }
+    public void setMaintainCount(Long maintainCount) 
+    {
+        this.maintainCount = maintainCount;
+    }
+
+    public Long getMaintainCount() 
+    {
+        return maintainCount;
+    }
+    public void setMaintainUnit(String maintainUnit) 
+    {
+        this.maintainUnit = maintainUnit;
+    }
+
+    public String getMaintainUnit() 
+    {
+        return maintainUnit;
+    }
+    public void setMaintainYear(String maintainYear) 
+    {
+        this.maintainYear = maintainYear;
+    }
+
+    public String getMaintainYear() 
+    {
+        return maintainYear;
+    }
+    public void setMaintainMonth(String maintainMonth) 
+    {
+        this.maintainMonth = maintainMonth;
+    }
+
+    public String getMaintainMonth() 
+    {
+        return maintainMonth;
+    }
+    public void setMaintainDes(String maintainDes) 
+    {
+        this.maintainDes = maintainDes;
+    }
+
+    public String getMaintainDes() 
+    {
+        return maintainDes;
+    }
+    public void setMaintainRemark(String maintainRemark) 
+    {
+        this.maintainRemark = maintainRemark;
+    }
+
+    public String getMaintainRemark() 
+    {
+        return maintainRemark;
+    }
+    public void setMaintainReportNp(Long maintainReportNp) 
+    {
+        this.maintainReportNp = maintainReportNp;
+    }
+
+    public Long getMaintainReportNp() 
+    {
+        return maintainReportNp;
+    }
+    public void setExt1(String ext1) 
+    {
+        this.ext1 = ext1;
+    }
+
+    public String getExt1() 
+    {
+        return ext1;
+    }
+    public void setExt2(String ext2) 
+    {
+        this.ext2 = ext2;
+    }
+
+    public String getExt2() 
+    {
+        return ext2;
+    }
+    public void setStatus(Long status) 
+    {
+        this.status = status;
+    }
+
+    public Long getStatus() 
+    {
+        return status;
+    }
+    public void setFacilitiesId(Long facilitiesId) 
+    {
+        this.facilitiesId = facilitiesId;
+    }
+
+    public Long getFacilitiesId() 
+    {
+        return facilitiesId;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("maintainType", getMaintainType())
+            .append("maintainCount", getMaintainCount())
+            .append("maintainUnit", getMaintainUnit())
+            .append("maintainYear", getMaintainYear())
+            .append("maintainMonth", getMaintainMonth())
+            .append("maintainDes", getMaintainDes())
+            .append("maintainRemark", getMaintainRemark())
+            .append("maintainReportNp", getMaintainReportNp())
+            .append("ext1", getExt1())
+            .append("ext2", getExt2())
+            .append("status", getStatus())
+            .append("facilitiesId", getFacilitiesId())
+            .toString();
+    }
+}

+ 110 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/TblMaintainLog.java

@@ -0,0 +1,110 @@
+package com.ruoyi.system.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;
+
+/**
+ * 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】对象 tbl_maintain_log
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public class TblMaintainLog extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 养护计划编号 */
+    @Excel(name = "养护计划编号")
+    private Long maintainId;
+
+    /** 养护计划状态 */
+    @Excel(name = "养护计划状态")
+    private Long maintainStatus;
+
+    /** 养护计划日志内容 ,计划派发内容,计划执行反馈,计划成果均以json记录【该数据为内容数据】 */
+    @Excel(name = "养护计划日志内容 ,计划派发内容,计划执行反馈,计划成果均以json记录【该数据为内容数据】")
+    private String logDes;
+
+    /** 日志图片 */
+    @Excel(name = "日志图片")
+    private String logPics;
+
+    /** 日志视频 */
+    @Excel(name = "日志视频")
+    private String logVideos;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setMaintainId(Long maintainId) 
+    {
+        this.maintainId = maintainId;
+    }
+
+    public Long getMaintainId() 
+    {
+        return maintainId;
+    }
+    public void setMaintainStatus(Long maintainStatus) 
+    {
+        this.maintainStatus = maintainStatus;
+    }
+
+    public Long getMaintainStatus() 
+    {
+        return maintainStatus;
+    }
+    public void setLogDes(String logDes) 
+    {
+        this.logDes = logDes;
+    }
+
+    public String getLogDes() 
+    {
+        return logDes;
+    }
+    public void setLogPics(String logPics) 
+    {
+        this.logPics = logPics;
+    }
+
+    public String getLogPics() 
+    {
+        return logPics;
+    }
+    public void setLogVideos(String logVideos) 
+    {
+        this.logVideos = logVideos;
+    }
+
+    public String getLogVideos() 
+    {
+        return logVideos;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("maintainId", getMaintainId())
+            .append("maintainStatus", getMaintainStatus())
+            .append("logDes", getLogDes())
+            .append("logPics", getLogPics())
+            .append("logVideos", getLogVideos())
+            .append("createTime", getCreateTime())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.TableDetection;
+
+/**
+ * 检测计划Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public interface TableDetectionMapper 
+{
+    /**
+     * 查询检测计划
+     * 
+     * @param id 检测计划主键
+     * @return 检测计划
+     */
+    public TableDetection selectTableDetectionById(Long id);
+
+    /**
+     * 查询检测计划列表
+     * 
+     * @param tableDetection 检测计划
+     * @return 检测计划集合
+     */
+    public List<TableDetection> selectTableDetectionList(TableDetection tableDetection);
+
+    /**
+     * 新增检测计划
+     * 
+     * @param tableDetection 检测计划
+     * @return 结果
+     */
+    public int insertTableDetection(TableDetection tableDetection);
+
+    /**
+     * 修改检测计划
+     * 
+     * @param tableDetection 检测计划
+     * @return 结果
+     */
+    public int updateTableDetection(TableDetection tableDetection);
+
+    /**
+     * 删除检测计划
+     * 
+     * @param id 检测计划主键
+     * @return 结果
+     */
+    public int deleteTableDetectionById(Long id);
+
+    /**
+     * 批量删除检测计划
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTableDetectionByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.TblDetectionLog;
+
+/**
+ * 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public interface TblDetectionLogMapper 
+{
+    /**
+     * 查询检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param id 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    public TblDetectionLog selectTblDetectionLogById(Long id);
+
+    /**
+     * 查询检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】列表
+     * 
+     * @param tblDetectionLog 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】集合
+     */
+    public List<TblDetectionLog> selectTblDetectionLogList(TblDetectionLog tblDetectionLog);
+
+    /**
+     * 新增检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblDetectionLog 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    public int insertTblDetectionLog(TblDetectionLog tblDetectionLog);
+
+    /**
+     * 修改检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblDetectionLog 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    public int updateTblDetectionLog(TblDetectionLog tblDetectionLog);
+
+    /**
+     * 删除检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param id 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 结果
+     */
+    public int deleteTblDetectionLogById(Long id);
+
+    /**
+     * 批量删除检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTblDetectionLogByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.TblMaintainLog;
+
+/**
+ * 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public interface TblMaintainLogMapper 
+{
+    /**
+     * 查询养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param id 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    public TblMaintainLog selectTblMaintainLogById(Long id);
+
+    /**
+     * 查询养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】列表
+     * 
+     * @param tblMaintainLog 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】集合
+     */
+    public List<TblMaintainLog> selectTblMaintainLogList(TblMaintainLog tblMaintainLog);
+
+    /**
+     * 新增养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblMaintainLog 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    public int insertTblMaintainLog(TblMaintainLog tblMaintainLog);
+
+    /**
+     * 修改养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblMaintainLog 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    public int updateTblMaintainLog(TblMaintainLog tblMaintainLog);
+
+    /**
+     * 删除养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param id 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 结果
+     */
+    public int deleteTblMaintainLogById(Long id);
+
+    /**
+     * 批量删除养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTblMaintainLogByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.TblMaintain;
+
+/**
+ * 养护计划Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public interface TblMaintainMapper 
+{
+    /**
+     * 查询养护计划
+     * 
+     * @param id 养护计划主键
+     * @return 养护计划
+     */
+    public TblMaintain selectTblMaintainById(Long id);
+
+    /**
+     * 查询养护计划列表
+     * 
+     * @param tblMaintain 养护计划
+     * @return 养护计划集合
+     */
+    public List<TblMaintain> selectTblMaintainList(TblMaintain tblMaintain);
+
+    /**
+     * 新增养护计划
+     * 
+     * @param tblMaintain 养护计划
+     * @return 结果
+     */
+    public int insertTblMaintain(TblMaintain tblMaintain);
+
+    /**
+     * 修改养护计划
+     * 
+     * @param tblMaintain 养护计划
+     * @return 结果
+     */
+    public int updateTblMaintain(TblMaintain tblMaintain);
+
+    /**
+     * 删除养护计划
+     * 
+     * @param id 养护计划主键
+     * @return 结果
+     */
+    public int deleteTblMaintainById(Long id);
+
+    /**
+     * 批量删除养护计划
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTblMaintainByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.TableDetection;
+
+/**
+ * 检测计划Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public interface ITableDetectionService 
+{
+    /**
+     * 查询检测计划
+     * 
+     * @param id 检测计划主键
+     * @return 检测计划
+     */
+    public TableDetection selectTableDetectionById(Long id);
+
+    /**
+     * 查询检测计划列表
+     * 
+     * @param tableDetection 检测计划
+     * @return 检测计划集合
+     */
+    public List<TableDetection> selectTableDetectionList(TableDetection tableDetection);
+
+    /**
+     * 新增检测计划
+     * 
+     * @param tableDetection 检测计划
+     * @return 结果
+     */
+    public int insertTableDetection(TableDetection tableDetection);
+
+    /**
+     * 修改检测计划
+     * 
+     * @param tableDetection 检测计划
+     * @return 结果
+     */
+    public int updateTableDetection(TableDetection tableDetection);
+
+    /**
+     * 批量删除检测计划
+     * 
+     * @param ids 需要删除的检测计划主键集合
+     * @return 结果
+     */
+    public int deleteTableDetectionByIds(Long[] ids);
+
+    /**
+     * 删除检测计划信息
+     * 
+     * @param id 检测计划主键
+     * @return 结果
+     */
+    public int deleteTableDetectionById(Long id);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.TblDetectionLog;
+
+/**
+ * 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public interface ITblDetectionLogService 
+{
+    /**
+     * 查询检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param id 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    public TblDetectionLog selectTblDetectionLogById(Long id);
+
+    /**
+     * 查询检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】列表
+     * 
+     * @param tblDetectionLog 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】集合
+     */
+    public List<TblDetectionLog> selectTblDetectionLogList(TblDetectionLog tblDetectionLog);
+
+    /**
+     * 新增检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblDetectionLog 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    public int insertTblDetectionLog(TblDetectionLog tblDetectionLog);
+
+    /**
+     * 修改检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblDetectionLog 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    public int updateTblDetectionLog(TblDetectionLog tblDetectionLog);
+
+    /**
+     * 批量删除检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param ids 需要删除的检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】主键集合
+     * @return 结果
+     */
+    public int deleteTblDetectionLogByIds(Long[] ids);
+
+    /**
+     * 删除检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】信息
+     * 
+     * @param id 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 结果
+     */
+    public int deleteTblDetectionLogById(Long id);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.TblMaintainLog;
+
+/**
+ * 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public interface ITblMaintainLogService 
+{
+    /**
+     * 查询养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param id 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    public TblMaintainLog selectTblMaintainLogById(Long id);
+
+    /**
+     * 查询养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】列表
+     * 
+     * @param tblMaintainLog 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】集合
+     */
+    public List<TblMaintainLog> selectTblMaintainLogList(TblMaintainLog tblMaintainLog);
+
+    /**
+     * 新增养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblMaintainLog 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    public int insertTblMaintainLog(TblMaintainLog tblMaintainLog);
+
+    /**
+     * 修改养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblMaintainLog 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    public int updateTblMaintainLog(TblMaintainLog tblMaintainLog);
+
+    /**
+     * 批量删除养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param ids 需要删除的养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】主键集合
+     * @return 结果
+     */
+    public int deleteTblMaintainLogByIds(Long[] ids);
+
+    /**
+     * 删除养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】信息
+     * 
+     * @param id 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 结果
+     */
+    public int deleteTblMaintainLogById(Long id);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.TblMaintain;
+
+/**
+ * 养护计划Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+public interface ITblMaintainService 
+{
+    /**
+     * 查询养护计划
+     * 
+     * @param id 养护计划主键
+     * @return 养护计划
+     */
+    public TblMaintain selectTblMaintainById(Long id);
+
+    /**
+     * 查询养护计划列表
+     * 
+     * @param tblMaintain 养护计划
+     * @return 养护计划集合
+     */
+    public List<TblMaintain> selectTblMaintainList(TblMaintain tblMaintain);
+
+    /**
+     * 新增养护计划
+     * 
+     * @param tblMaintain 养护计划
+     * @return 结果
+     */
+    public int insertTblMaintain(TblMaintain tblMaintain);
+
+    /**
+     * 修改养护计划
+     * 
+     * @param tblMaintain 养护计划
+     * @return 结果
+     */
+    public int updateTblMaintain(TblMaintain tblMaintain);
+
+    /**
+     * 批量删除养护计划
+     * 
+     * @param ids 需要删除的养护计划主键集合
+     * @return 结果
+     */
+    public int deleteTblMaintainByIds(Long[] ids);
+
+    /**
+     * 删除养护计划信息
+     * 
+     * @param id 养护计划主键
+     * @return 结果
+     */
+    public int deleteTblMaintainById(Long id);
+}

+ 93 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TableDetectionServiceImpl.java

@@ -0,0 +1,93 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.TableDetectionMapper;
+import com.ruoyi.system.domain.TableDetection;
+import com.ruoyi.system.service.ITableDetectionService;
+
+/**
+ * 检测计划Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+@Service
+public class TableDetectionServiceImpl implements ITableDetectionService 
+{
+    @Autowired
+    private TableDetectionMapper tableDetectionMapper;
+
+    /**
+     * 查询检测计划
+     * 
+     * @param id 检测计划主键
+     * @return 检测计划
+     */
+    @Override
+    public TableDetection selectTableDetectionById(Long id)
+    {
+        return tableDetectionMapper.selectTableDetectionById(id);
+    }
+
+    /**
+     * 查询检测计划列表
+     * 
+     * @param tableDetection 检测计划
+     * @return 检测计划
+     */
+    @Override
+    public List<TableDetection> selectTableDetectionList(TableDetection tableDetection)
+    {
+        return tableDetectionMapper.selectTableDetectionList(tableDetection);
+    }
+
+    /**
+     * 新增检测计划
+     * 
+     * @param tableDetection 检测计划
+     * @return 结果
+     */
+    @Override
+    public int insertTableDetection(TableDetection tableDetection)
+    {
+        return tableDetectionMapper.insertTableDetection(tableDetection);
+    }
+
+    /**
+     * 修改检测计划
+     * 
+     * @param tableDetection 检测计划
+     * @return 结果
+     */
+    @Override
+    public int updateTableDetection(TableDetection tableDetection)
+    {
+        return tableDetectionMapper.updateTableDetection(tableDetection);
+    }
+
+    /**
+     * 批量删除检测计划
+     * 
+     * @param ids 需要删除的检测计划主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTableDetectionByIds(Long[] ids)
+    {
+        return tableDetectionMapper.deleteTableDetectionByIds(ids);
+    }
+
+    /**
+     * 删除检测计划信息
+     * 
+     * @param id 检测计划主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTableDetectionById(Long id)
+    {
+        return tableDetectionMapper.deleteTableDetectionById(id);
+    }
+}

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

@@ -0,0 +1,96 @@
+package com.ruoyi.system.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.system.mapper.TblDetectionLogMapper;
+import com.ruoyi.system.domain.TblDetectionLog;
+import com.ruoyi.system.service.ITblDetectionLogService;
+
+/**
+ * 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+@Service
+public class TblDetectionLogServiceImpl implements ITblDetectionLogService 
+{
+    @Autowired
+    private TblDetectionLogMapper tblDetectionLogMapper;
+
+    /**
+     * 查询检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param id 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    @Override
+    public TblDetectionLog selectTblDetectionLogById(Long id)
+    {
+        return tblDetectionLogMapper.selectTblDetectionLogById(id);
+    }
+
+    /**
+     * 查询检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】列表
+     * 
+     * @param tblDetectionLog 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    @Override
+    public List<TblDetectionLog> selectTblDetectionLogList(TblDetectionLog tblDetectionLog)
+    {
+        return tblDetectionLogMapper.selectTblDetectionLogList(tblDetectionLog);
+    }
+
+    /**
+     * 新增检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblDetectionLog 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    @Override
+    public int insertTblDetectionLog(TblDetectionLog tblDetectionLog)
+    {
+        tblDetectionLog.setCreateTime(DateUtils.getNowDate());
+        return tblDetectionLogMapper.insertTblDetectionLog(tblDetectionLog);
+    }
+
+    /**
+     * 修改检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblDetectionLog 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    @Override
+    public int updateTblDetectionLog(TblDetectionLog tblDetectionLog)
+    {
+        tblDetectionLog.setUpdateTime(DateUtils.getNowDate());
+        return tblDetectionLogMapper.updateTblDetectionLog(tblDetectionLog);
+    }
+
+    /**
+     * 批量删除检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param ids 需要删除的检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTblDetectionLogByIds(Long[] ids)
+    {
+        return tblDetectionLogMapper.deleteTblDetectionLogByIds(ids);
+    }
+
+    /**
+     * 删除检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】信息
+     * 
+     * @param id 检测计划日志【检测计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTblDetectionLogById(Long id)
+    {
+        return tblDetectionLogMapper.deleteTblDetectionLogById(id);
+    }
+}

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

@@ -0,0 +1,96 @@
+package com.ruoyi.system.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.system.mapper.TblMaintainLogMapper;
+import com.ruoyi.system.domain.TblMaintainLog;
+import com.ruoyi.system.service.ITblMaintainLogService;
+
+/**
+ * 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+@Service
+public class TblMaintainLogServiceImpl implements ITblMaintainLogService 
+{
+    @Autowired
+    private TblMaintainLogMapper tblMaintainLogMapper;
+
+    /**
+     * 查询养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param id 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    @Override
+    public TblMaintainLog selectTblMaintainLogById(Long id)
+    {
+        return tblMaintainLogMapper.selectTblMaintainLogById(id);
+    }
+
+    /**
+     * 查询养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】列表
+     * 
+     * @param tblMaintainLog 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     */
+    @Override
+    public List<TblMaintainLog> selectTblMaintainLogList(TblMaintainLog tblMaintainLog)
+    {
+        return tblMaintainLogMapper.selectTblMaintainLogList(tblMaintainLog);
+    }
+
+    /**
+     * 新增养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblMaintainLog 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    @Override
+    public int insertTblMaintainLog(TblMaintainLog tblMaintainLog)
+    {
+        tblMaintainLog.setCreateTime(DateUtils.getNowDate());
+        return tblMaintainLogMapper.insertTblMaintainLog(tblMaintainLog);
+    }
+
+    /**
+     * 修改养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param tblMaintainLog 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * @return 结果
+     */
+    @Override
+    public int updateTblMaintainLog(TblMaintainLog tblMaintainLog)
+    {
+        tblMaintainLog.setUpdateTime(DateUtils.getNowDate());
+        return tblMaintainLogMapper.updateTblMaintainLog(tblMaintainLog);
+    }
+
+    /**
+     * 批量删除养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】
+     * 
+     * @param ids 需要删除的养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTblMaintainLogByIds(Long[] ids)
+    {
+        return tblMaintainLogMapper.deleteTblMaintainLogByIds(ids);
+    }
+
+    /**
+     * 删除养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】信息
+     * 
+     * @param id 养护计划日志【养护计划日志内容 ,计划派发内容,计划执行反馈】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTblMaintainLogById(Long id)
+    {
+        return tblMaintainLogMapper.deleteTblMaintainLogById(id);
+    }
+}

+ 93 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TblMaintainServiceImpl.java

@@ -0,0 +1,93 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.TblMaintainMapper;
+import com.ruoyi.system.domain.TblMaintain;
+import com.ruoyi.system.service.ITblMaintainService;
+
+/**
+ * 养护计划Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2022-06-15
+ */
+@Service
+public class TblMaintainServiceImpl implements ITblMaintainService 
+{
+    @Autowired
+    private TblMaintainMapper tblMaintainMapper;
+
+    /**
+     * 查询养护计划
+     * 
+     * @param id 养护计划主键
+     * @return 养护计划
+     */
+    @Override
+    public TblMaintain selectTblMaintainById(Long id)
+    {
+        return tblMaintainMapper.selectTblMaintainById(id);
+    }
+
+    /**
+     * 查询养护计划列表
+     * 
+     * @param tblMaintain 养护计划
+     * @return 养护计划
+     */
+    @Override
+    public List<TblMaintain> selectTblMaintainList(TblMaintain tblMaintain)
+    {
+        return tblMaintainMapper.selectTblMaintainList(tblMaintain);
+    }
+
+    /**
+     * 新增养护计划
+     * 
+     * @param tblMaintain 养护计划
+     * @return 结果
+     */
+    @Override
+    public int insertTblMaintain(TblMaintain tblMaintain)
+    {
+        return tblMaintainMapper.insertTblMaintain(tblMaintain);
+    }
+
+    /**
+     * 修改养护计划
+     * 
+     * @param tblMaintain 养护计划
+     * @return 结果
+     */
+    @Override
+    public int updateTblMaintain(TblMaintain tblMaintain)
+    {
+        return tblMaintainMapper.updateTblMaintain(tblMaintain);
+    }
+
+    /**
+     * 批量删除养护计划
+     * 
+     * @param ids 需要删除的养护计划主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTblMaintainByIds(Long[] ids)
+    {
+        return tblMaintainMapper.deleteTblMaintainByIds(ids);
+    }
+
+    /**
+     * 删除养护计划信息
+     * 
+     * @param id 养护计划主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTblMaintainById(Long id)
+    {
+        return tblMaintainMapper.deleteTblMaintainById(id);
+    }
+}

+ 106 - 0
ruoyi-system/src/main/resources/mapper/system/TableDetectionMapper.xml

@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.TableDetectionMapper">
+    
+    <resultMap type="TableDetection" id="TableDetectionResult">
+        <result property="id"    column="id"    />
+        <result property="detectionType"    column="detection_type"    />
+        <result property="detectionYear"    column="detection_year"    />
+        <result property="detectionMonth"    column="detection_month"    />
+        <result property="detectionWeek"    column="detection_week"    />
+        <result property="detectionDept"    column="detection_dept"    />
+        <result property="detectionRemark"    column="detection_remark"    />
+        <result property="detectionDes"    column="detection_des"    />
+        <result property="status"    column="status"    />
+        <result property="facilitiesId"    column="facilities_id"    />
+        <result property="ext1"    column="ext1"    />
+        <result property="ext2"    column="ext2"    />
+    </resultMap>
+
+    <sql id="selectTableDetectionVo">
+        select id, detection_type, detection_year, detection_month, detection_week, detection_dept, detection_remark, detection_des, status, facilities_id, ext1, ext2 from table_detection
+    </sql>
+
+    <select id="selectTableDetectionList" parameterType="TableDetection" resultMap="TableDetectionResult">
+        <include refid="selectTableDetectionVo"/>
+        <where>  
+            <if test="detectionType != null "> and detection_type = #{detectionType}</if>
+            <if test="detectionYear != null  and detectionYear != ''"> and detection_year = #{detectionYear}</if>
+            <if test="detectionMonth != null  and detectionMonth != ''"> and detection_month = #{detectionMonth}</if>
+            <if test="detectionWeek != null  and detectionWeek != ''"> and detection_week = #{detectionWeek}</if>
+            <if test="detectionDept != null  and detectionDept != ''"> and detection_dept = #{detectionDept}</if>
+            <if test="detectionRemark != null  and detectionRemark != ''"> and detection_remark = #{detectionRemark}</if>
+            <if test="detectionDes != null  and detectionDes != ''"> and detection_des = #{detectionDes}</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="facilitiesId != null "> and facilities_id = #{facilitiesId}</if>
+            <if test="ext1 != null  and ext1 != ''"> and ext1 = #{ext1}</if>
+            <if test="ext2 != null  and ext2 != ''"> and ext2 = #{ext2}</if>
+        </where>
+    </select>
+    
+    <select id="selectTableDetectionById" parameterType="Long" resultMap="TableDetectionResult">
+        <include refid="selectTableDetectionVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTableDetection" parameterType="TableDetection" useGeneratedKeys="true" keyProperty="id">
+        insert into table_detection
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="detectionType != null">detection_type,</if>
+            <if test="detectionYear != null">detection_year,</if>
+            <if test="detectionMonth != null">detection_month,</if>
+            <if test="detectionWeek != null">detection_week,</if>
+            <if test="detectionDept != null">detection_dept,</if>
+            <if test="detectionRemark != null">detection_remark,</if>
+            <if test="detectionDes != null">detection_des,</if>
+            <if test="status != null">status,</if>
+            <if test="facilitiesId != null">facilities_id,</if>
+            <if test="ext1 != null">ext1,</if>
+            <if test="ext2 != null">ext2,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="detectionType != null">#{detectionType},</if>
+            <if test="detectionYear != null">#{detectionYear},</if>
+            <if test="detectionMonth != null">#{detectionMonth},</if>
+            <if test="detectionWeek != null">#{detectionWeek},</if>
+            <if test="detectionDept != null">#{detectionDept},</if>
+            <if test="detectionRemark != null">#{detectionRemark},</if>
+            <if test="detectionDes != null">#{detectionDes},</if>
+            <if test="status != null">#{status},</if>
+            <if test="facilitiesId != null">#{facilitiesId},</if>
+            <if test="ext1 != null">#{ext1},</if>
+            <if test="ext2 != null">#{ext2},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTableDetection" parameterType="TableDetection">
+        update table_detection
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="detectionType != null">detection_type = #{detectionType},</if>
+            <if test="detectionYear != null">detection_year = #{detectionYear},</if>
+            <if test="detectionMonth != null">detection_month = #{detectionMonth},</if>
+            <if test="detectionWeek != null">detection_week = #{detectionWeek},</if>
+            <if test="detectionDept != null">detection_dept = #{detectionDept},</if>
+            <if test="detectionRemark != null">detection_remark = #{detectionRemark},</if>
+            <if test="detectionDes != null">detection_des = #{detectionDes},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="facilitiesId != null">facilities_id = #{facilitiesId},</if>
+            <if test="ext1 != null">ext1 = #{ext1},</if>
+            <if test="ext2 != null">ext2 = #{ext2},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTableDetectionById" parameterType="Long">
+        delete from table_detection where id = #{id}
+    </delete>
+
+    <delete id="deleteTableDetectionByIds" parameterType="String">
+        delete from table_detection where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 88 - 0
ruoyi-system/src/main/resources/mapper/system/TblDetectionLogMapper.xml

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.TblDetectionLogMapper">
+    
+    <resultMap type="TblDetectionLog" id="TblDetectionLogResult">
+        <result property="id"    column="id"    />
+        <result property="detectionId"    column="detection_id"    />
+        <result property="detectionStatus"    column="detection_status"    />
+        <result property="logDes"    column="log_des"    />
+        <result property="logPics"    column="log_pics"    />
+        <result property="logVideos"    column="log_videos"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTblDetectionLogVo">
+        select id, detection_id, detection_status, log_des, log_pics, log_videos, create_time, update_time, remark from tbl_detection_log
+    </sql>
+
+    <select id="selectTblDetectionLogList" parameterType="TblDetectionLog" resultMap="TblDetectionLogResult">
+        <include refid="selectTblDetectionLogVo"/>
+        <where>  
+            <if test="detectionId != null "> and detection_id = #{detectionId}</if>
+            <if test="detectionStatus != null "> and detection_status = #{detectionStatus}</if>
+            <if test="logDes != null  and logDes != ''"> and log_des = #{logDes}</if>
+            <if test="logPics != null  and logPics != ''"> and log_pics = #{logPics}</if>
+            <if test="logVideos != null  and logVideos != ''"> and log_videos = #{logVideos}</if>
+        </where>
+    </select>
+    
+    <select id="selectTblDetectionLogById" parameterType="Long" resultMap="TblDetectionLogResult">
+        <include refid="selectTblDetectionLogVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTblDetectionLog" parameterType="TblDetectionLog" useGeneratedKeys="true" keyProperty="id">
+        insert into tbl_detection_log
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="detectionId != null">detection_id,</if>
+            <if test="detectionStatus != null">detection_status,</if>
+            <if test="logDes != null">log_des,</if>
+            <if test="logPics != null">log_pics,</if>
+            <if test="logVideos != null">log_videos,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="detectionId != null">#{detectionId},</if>
+            <if test="detectionStatus != null">#{detectionStatus},</if>
+            <if test="logDes != null">#{logDes},</if>
+            <if test="logPics != null">#{logPics},</if>
+            <if test="logVideos != null">#{logVideos},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTblDetectionLog" parameterType="TblDetectionLog">
+        update tbl_detection_log
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="detectionId != null">detection_id = #{detectionId},</if>
+            <if test="detectionStatus != null">detection_status = #{detectionStatus},</if>
+            <if test="logDes != null">log_des = #{logDes},</if>
+            <if test="logPics != null">log_pics = #{logPics},</if>
+            <if test="logVideos != null">log_videos = #{logVideos},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTblDetectionLogById" parameterType="Long">
+        delete from tbl_detection_log where id = #{id}
+    </delete>
+
+    <delete id="deleteTblDetectionLogByIds" parameterType="String">
+        delete from tbl_detection_log where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 88 - 0
ruoyi-system/src/main/resources/mapper/system/TblMaintainLogMapper.xml

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.TblMaintainLogMapper">
+    
+    <resultMap type="TblMaintainLog" id="TblMaintainLogResult">
+        <result property="id"    column="id"    />
+        <result property="maintainId"    column="maintain_id"    />
+        <result property="maintainStatus"    column="maintain_status"    />
+        <result property="logDes"    column="log_des"    />
+        <result property="logPics"    column="log_pics"    />
+        <result property="logVideos"    column="log_videos"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTblMaintainLogVo">
+        select id, maintain_id, maintain_status, log_des, log_pics, log_videos, create_time, update_time, remark from tbl_maintain_log
+    </sql>
+
+    <select id="selectTblMaintainLogList" parameterType="TblMaintainLog" resultMap="TblMaintainLogResult">
+        <include refid="selectTblMaintainLogVo"/>
+        <where>  
+            <if test="maintainId != null "> and maintain_id = #{maintainId}</if>
+            <if test="maintainStatus != null "> and maintain_status = #{maintainStatus}</if>
+            <if test="logDes != null  and logDes != ''"> and log_des = #{logDes}</if>
+            <if test="logPics != null  and logPics != ''"> and log_pics = #{logPics}</if>
+            <if test="logVideos != null  and logVideos != ''"> and log_videos = #{logVideos}</if>
+        </where>
+    </select>
+    
+    <select id="selectTblMaintainLogById" parameterType="Long" resultMap="TblMaintainLogResult">
+        <include refid="selectTblMaintainLogVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTblMaintainLog" parameterType="TblMaintainLog" useGeneratedKeys="true" keyProperty="id">
+        insert into tbl_maintain_log
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="maintainId != null">maintain_id,</if>
+            <if test="maintainStatus != null">maintain_status,</if>
+            <if test="logDes != null">log_des,</if>
+            <if test="logPics != null">log_pics,</if>
+            <if test="logVideos != null">log_videos,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="maintainId != null">#{maintainId},</if>
+            <if test="maintainStatus != null">#{maintainStatus},</if>
+            <if test="logDes != null">#{logDes},</if>
+            <if test="logPics != null">#{logPics},</if>
+            <if test="logVideos != null">#{logVideos},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTblMaintainLog" parameterType="TblMaintainLog">
+        update tbl_maintain_log
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="maintainId != null">maintain_id = #{maintainId},</if>
+            <if test="maintainStatus != null">maintain_status = #{maintainStatus},</if>
+            <if test="logDes != null">log_des = #{logDes},</if>
+            <if test="logPics != null">log_pics = #{logPics},</if>
+            <if test="logVideos != null">log_videos = #{logVideos},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTblMaintainLogById" parameterType="Long">
+        delete from tbl_maintain_log where id = #{id}
+    </delete>
+
+    <delete id="deleteTblMaintainLogByIds" parameterType="String">
+        delete from tbl_maintain_log where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 111 - 0
ruoyi-system/src/main/resources/mapper/system/TblMaintainMapper.xml

@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.TblMaintainMapper">
+    
+    <resultMap type="TblMaintain" id="TblMaintainResult">
+        <result property="id"    column="id"    />
+        <result property="maintainType"    column="maintain_type"    />
+        <result property="maintainCount"    column="maintain_count"    />
+        <result property="maintainUnit"    column="maintain_unit"    />
+        <result property="maintainYear"    column="maintain_year"    />
+        <result property="maintainMonth"    column="maintain_month"    />
+        <result property="maintainDes"    column="maintain_des"    />
+        <result property="maintainRemark"    column="maintain_remark"    />
+        <result property="maintainReportNp"    column="maintain_report_np"    />
+        <result property="ext1"    column="ext1"    />
+        <result property="ext2"    column="ext2"    />
+        <result property="status"    column="status"    />
+        <result property="facilitiesId"    column="facilities_id"    />
+    </resultMap>
+
+    <sql id="selectTblMaintainVo">
+        select id, maintain_type, maintain_count, maintain_unit, maintain_year, maintain_month, maintain_des, maintain_remark, maintain_report_np, ext1, ext2, status, facilities_id from tbl_maintain
+    </sql>
+
+    <select id="selectTblMaintainList" parameterType="TblMaintain" resultMap="TblMaintainResult">
+        <include refid="selectTblMaintainVo"/>
+        <where>  
+            <if test="maintainType != null "> and maintain_type = #{maintainType}</if>
+            <if test="maintainCount != null "> and maintain_count = #{maintainCount}</if>
+            <if test="maintainUnit != null  and maintainUnit != ''"> and maintain_unit = #{maintainUnit}</if>
+            <if test="maintainYear != null  and maintainYear != ''"> and maintain_year = #{maintainYear}</if>
+            <if test="maintainMonth != null  and maintainMonth != ''"> and maintain_month = #{maintainMonth}</if>
+            <if test="maintainDes != null  and maintainDes != ''"> and maintain_des = #{maintainDes}</if>
+            <if test="maintainRemark != null  and maintainRemark != ''"> and maintain_remark = #{maintainRemark}</if>
+            <if test="maintainReportNp != null "> and maintain_report_np = #{maintainReportNp}</if>
+            <if test="ext1 != null  and ext1 != ''"> and ext1 = #{ext1}</if>
+            <if test="ext2 != null  and ext2 != ''"> and ext2 = #{ext2}</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="facilitiesId != null "> and facilities_id = #{facilitiesId}</if>
+        </where>
+    </select>
+    
+    <select id="selectTblMaintainById" parameterType="Long" resultMap="TblMaintainResult">
+        <include refid="selectTblMaintainVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTblMaintain" parameterType="TblMaintain" useGeneratedKeys="true" keyProperty="id">
+        insert into tbl_maintain
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="maintainType != null">maintain_type,</if>
+            <if test="maintainCount != null">maintain_count,</if>
+            <if test="maintainUnit != null">maintain_unit,</if>
+            <if test="maintainYear != null">maintain_year,</if>
+            <if test="maintainMonth != null">maintain_month,</if>
+            <if test="maintainDes != null">maintain_des,</if>
+            <if test="maintainRemark != null">maintain_remark,</if>
+            <if test="maintainReportNp != null">maintain_report_np,</if>
+            <if test="ext1 != null">ext1,</if>
+            <if test="ext2 != null">ext2,</if>
+            <if test="status != null">status,</if>
+            <if test="facilitiesId != null">facilities_id,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="maintainType != null">#{maintainType},</if>
+            <if test="maintainCount != null">#{maintainCount},</if>
+            <if test="maintainUnit != null">#{maintainUnit},</if>
+            <if test="maintainYear != null">#{maintainYear},</if>
+            <if test="maintainMonth != null">#{maintainMonth},</if>
+            <if test="maintainDes != null">#{maintainDes},</if>
+            <if test="maintainRemark != null">#{maintainRemark},</if>
+            <if test="maintainReportNp != null">#{maintainReportNp},</if>
+            <if test="ext1 != null">#{ext1},</if>
+            <if test="ext2 != null">#{ext2},</if>
+            <if test="status != null">#{status},</if>
+            <if test="facilitiesId != null">#{facilitiesId},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTblMaintain" parameterType="TblMaintain">
+        update tbl_maintain
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="maintainType != null">maintain_type = #{maintainType},</if>
+            <if test="maintainCount != null">maintain_count = #{maintainCount},</if>
+            <if test="maintainUnit != null">maintain_unit = #{maintainUnit},</if>
+            <if test="maintainYear != null">maintain_year = #{maintainYear},</if>
+            <if test="maintainMonth != null">maintain_month = #{maintainMonth},</if>
+            <if test="maintainDes != null">maintain_des = #{maintainDes},</if>
+            <if test="maintainRemark != null">maintain_remark = #{maintainRemark},</if>
+            <if test="maintainReportNp != null">maintain_report_np = #{maintainReportNp},</if>
+            <if test="ext1 != null">ext1 = #{ext1},</if>
+            <if test="ext2 != null">ext2 = #{ext2},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="facilitiesId != null">facilities_id = #{facilitiesId},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTblMaintainById" parameterType="Long">
+        delete from tbl_maintain where id = #{id}
+    </delete>
+
+    <delete id="deleteTblMaintainByIds" parameterType="String">
+        delete from tbl_maintain where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>