From 607ade70ae2ba74dbad410051675b3dc01692e72 Mon Sep 17 00:00:00 2001 From: zhouhy Date: Thu, 18 Jan 2024 14:01:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E3=80=81=E7=82=B9=E6=A3=80?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DmsBaseInspectProjectController.java | 105 +++++ .../DmsBaseInspectStandardController.java | 105 +++++ .../controller/DmsPlanInspectController.java | 105 +++++ .../hw/dms/domain/DmsBaseInspectProject.java | 155 +++++++ .../hw/dms/domain/DmsBaseInspectStandard.java | 126 ++++++ .../com/hw/dms/domain/DmsPlanInspect.java | 171 +++++++ .../mapper/DmsBaseInspectProjectMapper.java | 61 +++ .../mapper/DmsBaseInspectStandardMapper.java | 61 +++ .../hw/dms/mapper/DmsPlanInspectMapper.java | 61 +++ .../IDmsBaseInspectProjectService.java | 61 +++ .../IDmsBaseInspectStandardService.java | 61 +++ .../dms/service/IDmsPlanInspectService.java | 61 +++ .../DmsBaseInspectProjectServiceImpl.java | 102 +++++ .../DmsBaseInspectStandardServiceImpl.java | 102 +++++ .../impl/DmsPlanInspectServiceImpl.java | 102 +++++ .../dms/DmsBaseInspectProjectMapper.xml | 111 +++++ .../dms/DmsBaseInspectStandardMapper.xml | 101 +++++ .../mapper/dms/DmsPlanInspectMapper.xml | 116 +++++ hw-ui/src/api/dms/dmsBaseInspectProject.js | 44 ++ hw-ui/src/api/dms/dmsBaseInspectStandard.js | 44 ++ hw-ui/src/api/dms/dmsPlanInspect.js | 44 ++ .../views/dms/dmsBaseInspectProject/index.vue | 371 +++++++++++++++ .../views/dms/dmsBaseInspectRoute/index.vue | 41 +- .../dms/dmsBaseInspectStandard/index.vue | 372 +++++++++++++++ .../views/dms/dmsInspectRouteDetail/index.vue | 14 +- hw-ui/src/views/dms/dmsPlanInspect/index.vue | 427 ++++++++++++++++++ .../src/views/dms/dmsRecordInspect/index.vue | 100 ++-- .../src/views/wms/base/wmslocation/index.vue | 4 +- 28 files changed, 3167 insertions(+), 61 deletions(-) create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBaseInspectProjectController.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBaseInspectStandardController.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsPlanInspectController.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBaseInspectProject.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBaseInspectStandard.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsPlanInspect.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseInspectProjectMapper.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseInspectStandardMapper.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsPlanInspectMapper.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseInspectProjectService.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseInspectStandardService.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsPlanInspectService.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseInspectProjectServiceImpl.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseInspectStandardServiceImpl.java create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanInspectServiceImpl.java create mode 100644 hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseInspectProjectMapper.xml create mode 100644 hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseInspectStandardMapper.xml create mode 100644 hw-modules/hw-dms/src/main/resources/mapper/dms/DmsPlanInspectMapper.xml create mode 100644 hw-ui/src/api/dms/dmsBaseInspectProject.js create mode 100644 hw-ui/src/api/dms/dmsBaseInspectStandard.js create mode 100644 hw-ui/src/api/dms/dmsPlanInspect.js create mode 100644 hw-ui/src/views/dms/dmsBaseInspectProject/index.vue create mode 100644 hw-ui/src/views/dms/dmsBaseInspectStandard/index.vue create mode 100644 hw-ui/src/views/dms/dmsPlanInspect/index.vue diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBaseInspectProjectController.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBaseInspectProjectController.java new file mode 100644 index 00000000..82d5efcc --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBaseInspectProjectController.java @@ -0,0 +1,105 @@ +package com.hw.dms.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +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.hw.common.log.annotation.Log; +import com.hw.common.log.enums.BusinessType; +import com.hw.common.security.annotation.RequiresPermissions; +import com.hw.dms.domain.DmsBaseInspectProject; +import com.hw.dms.service.IDmsBaseInspectProjectService; +import com.hw.common.core.web.controller.BaseController; +import com.hw.common.core.web.domain.AjaxResult; +import com.hw.common.core.utils.poi.ExcelUtil; +import com.hw.common.core.web.page.TableDataInfo; + +/** + * 巡检项目信息Controller + * + * @author Open Platform + * @date 2024-01-17 + */ +@RestController +@RequestMapping("/dmsBaseInspectProject") +public class DmsBaseInspectProjectController extends BaseController +{ + @Autowired + private IDmsBaseInspectProjectService dmsBaseInspectProjectService; + + /** + * 查询巡检项目信息列表 + */ + @RequiresPermissions("dms:dmsBaseInspectProject:list") + @GetMapping("/list") + public TableDataInfo list(DmsBaseInspectProject dmsBaseInspectProject) + { + startPage(); + List list = dmsBaseInspectProjectService.selectDmsBaseInspectProjectList(dmsBaseInspectProject); + return getDataTable(list); + } + + /** + * 导出巡检项目信息列表 + */ + @RequiresPermissions("dms:dmsBaseInspectProject:export") + @Log(title = "巡检项目信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, DmsBaseInspectProject dmsBaseInspectProject) + { + List list = dmsBaseInspectProjectService.selectDmsBaseInspectProjectList(dmsBaseInspectProject); + ExcelUtil util = new ExcelUtil(DmsBaseInspectProject.class); + util.exportExcel(response, list, "巡检项目信息数据"); + } + + /** + * 获取巡检项目信息详细信息 + */ + @RequiresPermissions("dms:dmsBaseInspectProject:query") + @GetMapping(value = "/{inspectProjectId}") + public AjaxResult getInfo(@PathVariable("inspectProjectId") Long inspectProjectId) + { + return success(dmsBaseInspectProjectService.selectDmsBaseInspectProjectByInspectProjectId(inspectProjectId)); + } + + /** + * 新增巡检项目信息 + */ + @RequiresPermissions("dms:dmsBaseInspectProject:add") + @Log(title = "巡检项目信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody DmsBaseInspectProject dmsBaseInspectProject) + { + return toAjax(dmsBaseInspectProjectService.insertDmsBaseInspectProject(dmsBaseInspectProject)); + } + + /** + * 修改巡检项目信息 + */ + @RequiresPermissions("dms:dmsBaseInspectProject:edit") + @Log(title = "巡检项目信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody DmsBaseInspectProject dmsBaseInspectProject) + { + return toAjax(dmsBaseInspectProjectService.updateDmsBaseInspectProject(dmsBaseInspectProject)); + } + + /** + * 删除巡检项目信息 + */ + @RequiresPermissions("dms:dmsBaseInspectProject:remove") + @Log(title = "巡检项目信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{inspectProjectIds}") + public AjaxResult remove(@PathVariable Long[] inspectProjectIds) + { + return toAjax(dmsBaseInspectProjectService.deleteDmsBaseInspectProjectByInspectProjectIds(inspectProjectIds)); + } +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBaseInspectStandardController.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBaseInspectStandardController.java new file mode 100644 index 00000000..0814e20d --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsBaseInspectStandardController.java @@ -0,0 +1,105 @@ +package com.hw.dms.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +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.hw.common.log.annotation.Log; +import com.hw.common.log.enums.BusinessType; +import com.hw.common.security.annotation.RequiresPermissions; +import com.hw.dms.domain.DmsBaseInspectStandard; +import com.hw.dms.service.IDmsBaseInspectStandardService; +import com.hw.common.core.web.controller.BaseController; +import com.hw.common.core.web.domain.AjaxResult; +import com.hw.common.core.utils.poi.ExcelUtil; +import com.hw.common.core.web.page.TableDataInfo; + +/** + * 巡检标准信息Controller + * + * @author Open Platform + * @date 2024-01-17 + */ +@RestController +@RequestMapping("/dmsBaseInspectStandard") +public class DmsBaseInspectStandardController extends BaseController +{ + @Autowired + private IDmsBaseInspectStandardService dmsBaseInspectStandardService; + + /** + * 查询巡检标准信息列表 + */ + @RequiresPermissions("dms:dmsBaseInspectStandard:list") + @GetMapping("/list") + public TableDataInfo list(DmsBaseInspectStandard dmsBaseInspectStandard) + { + startPage(); + List list = dmsBaseInspectStandardService.selectDmsBaseInspectStandardList(dmsBaseInspectStandard); + return getDataTable(list); + } + + /** + * 导出巡检标准信息列表 + */ + @RequiresPermissions("dms:dmsBaseInspectStandard:export") + @Log(title = "巡检标准信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, DmsBaseInspectStandard dmsBaseInspectStandard) + { + List list = dmsBaseInspectStandardService.selectDmsBaseInspectStandardList(dmsBaseInspectStandard); + ExcelUtil util = new ExcelUtil(DmsBaseInspectStandard.class); + util.exportExcel(response, list, "巡检标准信息数据"); + } + + /** + * 获取巡检标准信息详细信息 + */ + @RequiresPermissions("dms:dmsBaseInspectStandard:query") + @GetMapping(value = "/{inspectStandardId}") + public AjaxResult getInfo(@PathVariable("inspectStandardId") Long inspectStandardId) + { + return success(dmsBaseInspectStandardService.selectDmsBaseInspectStandardByInspectStandardId(inspectStandardId)); + } + + /** + * 新增巡检标准信息 + */ + @RequiresPermissions("dms:dmsBaseInspectStandard:add") + @Log(title = "巡检标准信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody DmsBaseInspectStandard dmsBaseInspectStandard) + { + return toAjax(dmsBaseInspectStandardService.insertDmsBaseInspectStandard(dmsBaseInspectStandard)); + } + + /** + * 修改巡检标准信息 + */ + @RequiresPermissions("dms:dmsBaseInspectStandard:edit") + @Log(title = "巡检标准信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody DmsBaseInspectStandard dmsBaseInspectStandard) + { + return toAjax(dmsBaseInspectStandardService.updateDmsBaseInspectStandard(dmsBaseInspectStandard)); + } + + /** + * 删除巡检标准信息 + */ + @RequiresPermissions("dms:dmsBaseInspectStandard:remove") + @Log(title = "巡检标准信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{inspectStandardIds}") + public AjaxResult remove(@PathVariable Long[] inspectStandardIds) + { + return toAjax(dmsBaseInspectStandardService.deleteDmsBaseInspectStandardByInspectStandardIds(inspectStandardIds)); + } +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsPlanInspectController.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsPlanInspectController.java new file mode 100644 index 00000000..fe054d6c --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/controller/DmsPlanInspectController.java @@ -0,0 +1,105 @@ +package com.hw.dms.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +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.hw.common.log.annotation.Log; +import com.hw.common.log.enums.BusinessType; +import com.hw.common.security.annotation.RequiresPermissions; +import com.hw.dms.domain.DmsPlanInspect; +import com.hw.dms.service.IDmsPlanInspectService; +import com.hw.common.core.web.controller.BaseController; +import com.hw.common.core.web.domain.AjaxResult; +import com.hw.common.core.utils.poi.ExcelUtil; +import com.hw.common.core.web.page.TableDataInfo; + +/** + * 巡检计划信息Controller + * + * @author Open Platform + * @date 2024-01-17 + */ +@RestController +@RequestMapping("/dmsPlanInspect") +public class DmsPlanInspectController extends BaseController +{ + @Autowired + private IDmsPlanInspectService dmsPlanInspectService; + + /** + * 查询巡检计划信息列表 + */ + @RequiresPermissions("dms:dmsPlanInspect:list") + @GetMapping("/list") + public TableDataInfo list(DmsPlanInspect dmsPlanInspect) + { + startPage(); + List list = dmsPlanInspectService.selectDmsPlanInspectList(dmsPlanInspect); + return getDataTable(list); + } + + /** + * 导出巡检计划信息列表 + */ + @RequiresPermissions("dms:dmsPlanInspect:export") + @Log(title = "巡检计划信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, DmsPlanInspect dmsPlanInspect) + { + List list = dmsPlanInspectService.selectDmsPlanInspectList(dmsPlanInspect); + ExcelUtil util = new ExcelUtil(DmsPlanInspect.class); + util.exportExcel(response, list, "巡检计划信息数据"); + } + + /** + * 获取巡检计划信息详细信息 + */ + @RequiresPermissions("dms:dmsPlanInspect:query") + @GetMapping(value = "/{planInspectId}") + public AjaxResult getInfo(@PathVariable("planInspectId") Long planInspectId) + { + return success(dmsPlanInspectService.selectDmsPlanInspectByPlanInspectId(planInspectId)); + } + + /** + * 新增巡检计划信息 + */ + @RequiresPermissions("dms:dmsPlanInspect:add") + @Log(title = "巡检计划信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody DmsPlanInspect dmsPlanInspect) + { + return toAjax(dmsPlanInspectService.insertDmsPlanInspect(dmsPlanInspect)); + } + + /** + * 修改巡检计划信息 + */ + @RequiresPermissions("dms:dmsPlanInspect:edit") + @Log(title = "巡检计划信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody DmsPlanInspect dmsPlanInspect) + { + return toAjax(dmsPlanInspectService.updateDmsPlanInspect(dmsPlanInspect)); + } + + /** + * 删除巡检计划信息 + */ + @RequiresPermissions("dms:dmsPlanInspect:remove") + @Log(title = "巡检计划信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{planInspectIds}") + public AjaxResult remove(@PathVariable Long[] planInspectIds) + { + return toAjax(dmsPlanInspectService.deleteDmsPlanInspectByPlanInspectIds(planInspectIds)); + } +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBaseInspectProject.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBaseInspectProject.java new file mode 100644 index 00000000..85514e7b --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBaseInspectProject.java @@ -0,0 +1,155 @@ +package com.hw.dms.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.hw.common.core.annotation.Excel; +import com.hw.common.core.web.domain.BaseEntity; + +/** + * 巡检项目信息对象 dms_base_inspect_project + * + * @author Open Platform + * @date 2024-01-17 + */ +public class DmsBaseInspectProject extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long inspectProjectId; + + /** 项目编号 */ + @Excel(name = "项目编号") + private String inspectProjectCode; + + /** 巡检项目 */ + @Excel(name = "巡检项目") + private String inspectProject; + + /** 检查类型(1巡检,2点检) */ + @Excel(name = "检查类型(1巡检,2点检)") + private String inspectType; + + /** 记录方式 */ + @Excel(name = "记录方式") + private String recordMethod; + + /** 上限 */ + @Excel(name = "上限") + private BigDecimal upLimit; + + /** 下限 */ + @Excel(name = "下限") + private BigDecimal lowLimit; + + /** 默认值 */ + @Excel(name = "默认值") + private BigDecimal defValue; + + /** 是否标识:1-是;0-否 */ + @Excel(name = "是否标识:1-是;0-否") + private String isFlag; + + public void setInspectProjectId(Long inspectProjectId) + { + this.inspectProjectId = inspectProjectId; + } + + public Long getInspectProjectId() + { + return inspectProjectId; + } + public void setInspectProjectCode(String inspectProjectCode) + { + this.inspectProjectCode = inspectProjectCode; + } + + public String getInspectProjectCode() + { + return inspectProjectCode; + } + public void setInspectProject(String inspectProject) + { + this.inspectProject = inspectProject; + } + + public String getInspectProject() + { + return inspectProject; + } + public void setInspectType(String inspectType) + { + this.inspectType = inspectType; + } + + public String getInspectType() + { + return inspectType; + } + public void setRecordMethod(String recordMethod) + { + this.recordMethod = recordMethod; + } + + public String getRecordMethod() + { + return recordMethod; + } + public void setUpLimit(BigDecimal upLimit) + { + this.upLimit = upLimit; + } + + public BigDecimal getUpLimit() + { + return upLimit; + } + public void setLowLimit(BigDecimal lowLimit) + { + this.lowLimit = lowLimit; + } + + public BigDecimal getLowLimit() + { + return lowLimit; + } + public void setDefValue(BigDecimal defValue) + { + this.defValue = defValue; + } + + public BigDecimal getDefValue() + { + return defValue; + } + public void setIsFlag(String isFlag) + { + this.isFlag = isFlag; + } + + public String getIsFlag() + { + return isFlag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("inspectProjectId", getInspectProjectId()) + .append("inspectProjectCode", getInspectProjectCode()) + .append("inspectProject", getInspectProject()) + .append("inspectType", getInspectType()) + .append("recordMethod", getRecordMethod()) + .append("upLimit", getUpLimit()) + .append("lowLimit", getLowLimit()) + .append("defValue", getDefValue()) + .append("isFlag", getIsFlag()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBaseInspectStandard.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBaseInspectStandard.java new file mode 100644 index 00000000..e75e0239 --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsBaseInspectStandard.java @@ -0,0 +1,126 @@ +package com.hw.dms.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.hw.common.core.annotation.Excel; +import com.hw.common.core.web.domain.BaseEntity; + +/** + * 巡检标准信息对象 dms_base_inspect_standard + * + * @author Open Platform + * @date 2024-01-17 + */ +public class DmsBaseInspectStandard extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long inspectStandardId; + + /** 标准编号 */ + @Excel(name = "标准编号") + private String standardCode; + + /** 标准名称 */ + @Excel(name = "标准名称") + private String standardName; + + /** 巡检目的 */ + @Excel(name = "巡检目的") + private String inspectObjective; + + /** 巡检项目ID,关联dms_base_inspect_project的inspect_project_id */ + @Excel(name = "巡检项目ID,关联dms_base_inspect_project的inspect_project_id") + private Long inspectProjectId; + + /** 检查项总数 */ + @Excel(name = "检查项总数") + private Long inspectItemCount; + + /** 是否标识:1-是;0-否 */ + @Excel(name = "是否标识:1-是;0-否") + private String isFlag; + + public void setInspectStandardId(Long inspectStandardId) + { + this.inspectStandardId = inspectStandardId; + } + + public Long getInspectStandardId() + { + return inspectStandardId; + } + public void setStandardCode(String standardCode) + { + this.standardCode = standardCode; + } + + public String getStandardCode() + { + return standardCode; + } + public void setStandardName(String standardName) + { + this.standardName = standardName; + } + + public String getStandardName() + { + return standardName; + } + public void setInspectObjective(String inspectObjective) + { + this.inspectObjective = inspectObjective; + } + + public String getInspectObjective() + { + return inspectObjective; + } + public void setInspectProjectId(Long inspectProjectId) + { + this.inspectProjectId = inspectProjectId; + } + + public Long getInspectProjectId() + { + return inspectProjectId; + } + public void setInspectItemCount(Long inspectItemCount) + { + this.inspectItemCount = inspectItemCount; + } + + public Long getInspectItemCount() + { + return inspectItemCount; + } + public void setIsFlag(String isFlag) + { + this.isFlag = isFlag; + } + + public String getIsFlag() + { + return isFlag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("inspectStandardId", getInspectStandardId()) + .append("standardCode", getStandardCode()) + .append("standardName", getStandardName()) + .append("inspectObjective", getInspectObjective()) + .append("inspectProjectId", getInspectProjectId()) + .append("inspectItemCount", getInspectItemCount()) + .append("isFlag", getIsFlag()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsPlanInspect.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsPlanInspect.java new file mode 100644 index 00000000..e5e2268b --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/domain/DmsPlanInspect.java @@ -0,0 +1,171 @@ +package com.hw.dms.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.hw.common.core.annotation.Excel; +import com.hw.common.core.web.domain.BaseEntity; + +/** + * 巡检计划信息对象 dms_plan_inspect + * + * @author Open Platform + * @date 2024-01-17 + */ +public class DmsPlanInspect extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long planInspectId; + + /** 计划编号 */ + @Excel(name = "计划编号") + private String planInspectCode; + + /** 计划名称 */ + @Excel(name = "计划名称") + private String planInspectName; + + /** 检查类型(1巡检,2点检) */ + @Excel(name = "检查类型(1巡检,2点检)") + private String inspectType; + + /** 巡检线路ID,关联dm_base_inspect_route的inspect_route_id */ + @Excel(name = "巡检线路ID,关联dm_base_inspect_route的inspect_route_id") + private Long inspectRouteId; + + /** 设备总数 */ + @Excel(name = "设备总数") + private Long deviceAmount; + + /** 计划巡检时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "计划巡检时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date planTime; + + /** 循环周期 */ + @Excel(name = "循环周期") + private String cyclePeriod; + + /** 执行人员 */ + @Excel(name = "执行人员") + private String performer; + + /** 是否标识:1-是;0-否 */ + @Excel(name = "是否标识:1-是;0-否") + private String isFlag; + + public void setPlanInspectId(Long planInspectId) + { + this.planInspectId = planInspectId; + } + + public Long getPlanInspectId() + { + return planInspectId; + } + public void setPlanInspectCode(String planInspectCode) + { + this.planInspectCode = planInspectCode; + } + + public String getPlanInspectCode() + { + return planInspectCode; + } + public void setPlanInspectName(String planInspectName) + { + this.planInspectName = planInspectName; + } + + public String getPlanInspectName() + { + return planInspectName; + } + public void setInspectType(String inspectType) + { + this.inspectType = inspectType; + } + + public String getInspectType() + { + return inspectType; + } + public void setInspectRouteId(Long inspectRouteId) + { + this.inspectRouteId = inspectRouteId; + } + + public Long getInspectRouteId() + { + return inspectRouteId; + } + public void setDeviceAmount(Long deviceAmount) + { + this.deviceAmount = deviceAmount; + } + + public Long getDeviceAmount() + { + return deviceAmount; + } + public void setPlanTime(Date planTime) + { + this.planTime = planTime; + } + + public Date getPlanTime() + { + return planTime; + } + public void setCyclePeriod(String cyclePeriod) + { + this.cyclePeriod = cyclePeriod; + } + + public String getCyclePeriod() + { + return cyclePeriod; + } + public void setPerformer(String performer) + { + this.performer = performer; + } + + public String getPerformer() + { + return performer; + } + public void setIsFlag(String isFlag) + { + this.isFlag = isFlag; + } + + public String getIsFlag() + { + return isFlag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("planInspectId", getPlanInspectId()) + .append("planInspectCode", getPlanInspectCode()) + .append("planInspectName", getPlanInspectName()) + .append("inspectType", getInspectType()) + .append("inspectRouteId", getInspectRouteId()) + .append("deviceAmount", getDeviceAmount()) + .append("planTime", getPlanTime()) + .append("cyclePeriod", getCyclePeriod()) + .append("performer", getPerformer()) + .append("isFlag", getIsFlag()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseInspectProjectMapper.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseInspectProjectMapper.java new file mode 100644 index 00000000..efe3e83e --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseInspectProjectMapper.java @@ -0,0 +1,61 @@ +package com.hw.dms.mapper; + +import java.util.List; +import com.hw.dms.domain.DmsBaseInspectProject; + +/** + * 巡检项目信息Mapper接口 + * + * @author Open Platform + * @date 2024-01-17 + */ +public interface DmsBaseInspectProjectMapper +{ + /** + * 查询巡检项目信息 + * + * @param inspectProjectId 巡检项目信息主键 + * @return 巡检项目信息 + */ + public DmsBaseInspectProject selectDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId); + + /** + * 查询巡检项目信息列表 + * + * @param dmsBaseInspectProject 巡检项目信息 + * @return 巡检项目信息集合 + */ + public List selectDmsBaseInspectProjectList(DmsBaseInspectProject dmsBaseInspectProject); + + /** + * 新增巡检项目信息 + * + * @param dmsBaseInspectProject 巡检项目信息 + * @return 结果 + */ + public int insertDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject); + + /** + * 修改巡检项目信息 + * + * @param dmsBaseInspectProject 巡检项目信息 + * @return 结果 + */ + public int updateDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject); + + /** + * 删除巡检项目信息 + * + * @param inspectProjectId 巡检项目信息主键 + * @return 结果 + */ + public int deleteDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId); + + /** + * 批量删除巡检项目信息 + * + * @param inspectProjectIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteDmsBaseInspectProjectByInspectProjectIds(Long[] inspectProjectIds); +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseInspectStandardMapper.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseInspectStandardMapper.java new file mode 100644 index 00000000..0d599a4f --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsBaseInspectStandardMapper.java @@ -0,0 +1,61 @@ +package com.hw.dms.mapper; + +import java.util.List; +import com.hw.dms.domain.DmsBaseInspectStandard; + +/** + * 巡检标准信息Mapper接口 + * + * @author Open Platform + * @date 2024-01-17 + */ +public interface DmsBaseInspectStandardMapper +{ + /** + * 查询巡检标准信息 + * + * @param inspectStandardId 巡检标准信息主键 + * @return 巡检标准信息 + */ + public DmsBaseInspectStandard selectDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId); + + /** + * 查询巡检标准信息列表 + * + * @param dmsBaseInspectStandard 巡检标准信息 + * @return 巡检标准信息集合 + */ + public List selectDmsBaseInspectStandardList(DmsBaseInspectStandard dmsBaseInspectStandard); + + /** + * 新增巡检标准信息 + * + * @param dmsBaseInspectStandard 巡检标准信息 + * @return 结果 + */ + public int insertDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard); + + /** + * 修改巡检标准信息 + * + * @param dmsBaseInspectStandard 巡检标准信息 + * @return 结果 + */ + public int updateDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard); + + /** + * 删除巡检标准信息 + * + * @param inspectStandardId 巡检标准信息主键 + * @return 结果 + */ + public int deleteDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId); + + /** + * 批量删除巡检标准信息 + * + * @param inspectStandardIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteDmsBaseInspectStandardByInspectStandardIds(Long[] inspectStandardIds); +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsPlanInspectMapper.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsPlanInspectMapper.java new file mode 100644 index 00000000..99404475 --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsPlanInspectMapper.java @@ -0,0 +1,61 @@ +package com.hw.dms.mapper; + +import java.util.List; +import com.hw.dms.domain.DmsPlanInspect; + +/** + * 巡检计划信息Mapper接口 + * + * @author Open Platform + * @date 2024-01-17 + */ +public interface DmsPlanInspectMapper +{ + /** + * 查询巡检计划信息 + * + * @param planInspectId 巡检计划信息主键 + * @return 巡检计划信息 + */ + public DmsPlanInspect selectDmsPlanInspectByPlanInspectId(Long planInspectId); + + /** + * 查询巡检计划信息列表 + * + * @param dmsPlanInspect 巡检计划信息 + * @return 巡检计划信息集合 + */ + public List selectDmsPlanInspectList(DmsPlanInspect dmsPlanInspect); + + /** + * 新增巡检计划信息 + * + * @param dmsPlanInspect 巡检计划信息 + * @return 结果 + */ + public int insertDmsPlanInspect(DmsPlanInspect dmsPlanInspect); + + /** + * 修改巡检计划信息 + * + * @param dmsPlanInspect 巡检计划信息 + * @return 结果 + */ + public int updateDmsPlanInspect(DmsPlanInspect dmsPlanInspect); + + /** + * 删除巡检计划信息 + * + * @param planInspectId 巡检计划信息主键 + * @return 结果 + */ + public int deleteDmsPlanInspectByPlanInspectId(Long planInspectId); + + /** + * 批量删除巡检计划信息 + * + * @param planInspectIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteDmsPlanInspectByPlanInspectIds(Long[] planInspectIds); +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseInspectProjectService.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseInspectProjectService.java new file mode 100644 index 00000000..ec629ccf --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseInspectProjectService.java @@ -0,0 +1,61 @@ +package com.hw.dms.service; + +import java.util.List; +import com.hw.dms.domain.DmsBaseInspectProject; + +/** + * 巡检项目信息Service接口 + * + * @author Open Platform + * @date 2024-01-17 + */ +public interface IDmsBaseInspectProjectService +{ + /** + * 查询巡检项目信息 + * + * @param inspectProjectId 巡检项目信息主键 + * @return 巡检项目信息 + */ + public DmsBaseInspectProject selectDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId); + + /** + * 查询巡检项目信息列表 + * + * @param dmsBaseInspectProject 巡检项目信息 + * @return 巡检项目信息集合 + */ + public List selectDmsBaseInspectProjectList(DmsBaseInspectProject dmsBaseInspectProject); + + /** + * 新增巡检项目信息 + * + * @param dmsBaseInspectProject 巡检项目信息 + * @return 结果 + */ + public int insertDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject); + + /** + * 修改巡检项目信息 + * + * @param dmsBaseInspectProject 巡检项目信息 + * @return 结果 + */ + public int updateDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject); + + /** + * 批量删除巡检项目信息 + * + * @param inspectProjectIds 需要删除的巡检项目信息主键集合 + * @return 结果 + */ + public int deleteDmsBaseInspectProjectByInspectProjectIds(Long[] inspectProjectIds); + + /** + * 删除巡检项目信息信息 + * + * @param inspectProjectId 巡检项目信息主键 + * @return 结果 + */ + public int deleteDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId); +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseInspectStandardService.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseInspectStandardService.java new file mode 100644 index 00000000..a2fa4f45 --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsBaseInspectStandardService.java @@ -0,0 +1,61 @@ +package com.hw.dms.service; + +import java.util.List; +import com.hw.dms.domain.DmsBaseInspectStandard; + +/** + * 巡检标准信息Service接口 + * + * @author Open Platform + * @date 2024-01-17 + */ +public interface IDmsBaseInspectStandardService +{ + /** + * 查询巡检标准信息 + * + * @param inspectStandardId 巡检标准信息主键 + * @return 巡检标准信息 + */ + public DmsBaseInspectStandard selectDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId); + + /** + * 查询巡检标准信息列表 + * + * @param dmsBaseInspectStandard 巡检标准信息 + * @return 巡检标准信息集合 + */ + public List selectDmsBaseInspectStandardList(DmsBaseInspectStandard dmsBaseInspectStandard); + + /** + * 新增巡检标准信息 + * + * @param dmsBaseInspectStandard 巡检标准信息 + * @return 结果 + */ + public int insertDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard); + + /** + * 修改巡检标准信息 + * + * @param dmsBaseInspectStandard 巡检标准信息 + * @return 结果 + */ + public int updateDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard); + + /** + * 批量删除巡检标准信息 + * + * @param inspectStandardIds 需要删除的巡检标准信息主键集合 + * @return 结果 + */ + public int deleteDmsBaseInspectStandardByInspectStandardIds(Long[] inspectStandardIds); + + /** + * 删除巡检标准信息信息 + * + * @param inspectStandardId 巡检标准信息主键 + * @return 结果 + */ + public int deleteDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId); +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsPlanInspectService.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsPlanInspectService.java new file mode 100644 index 00000000..c464434c --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/IDmsPlanInspectService.java @@ -0,0 +1,61 @@ +package com.hw.dms.service; + +import java.util.List; +import com.hw.dms.domain.DmsPlanInspect; + +/** + * 巡检计划信息Service接口 + * + * @author Open Platform + * @date 2024-01-17 + */ +public interface IDmsPlanInspectService +{ + /** + * 查询巡检计划信息 + * + * @param planInspectId 巡检计划信息主键 + * @return 巡检计划信息 + */ + public DmsPlanInspect selectDmsPlanInspectByPlanInspectId(Long planInspectId); + + /** + * 查询巡检计划信息列表 + * + * @param dmsPlanInspect 巡检计划信息 + * @return 巡检计划信息集合 + */ + public List selectDmsPlanInspectList(DmsPlanInspect dmsPlanInspect); + + /** + * 新增巡检计划信息 + * + * @param dmsPlanInspect 巡检计划信息 + * @return 结果 + */ + public int insertDmsPlanInspect(DmsPlanInspect dmsPlanInspect); + + /** + * 修改巡检计划信息 + * + * @param dmsPlanInspect 巡检计划信息 + * @return 结果 + */ + public int updateDmsPlanInspect(DmsPlanInspect dmsPlanInspect); + + /** + * 批量删除巡检计划信息 + * + * @param planInspectIds 需要删除的巡检计划信息主键集合 + * @return 结果 + */ + public int deleteDmsPlanInspectByPlanInspectIds(Long[] planInspectIds); + + /** + * 删除巡检计划信息信息 + * + * @param planInspectId 巡检计划信息主键 + * @return 结果 + */ + public int deleteDmsPlanInspectByPlanInspectId(Long planInspectId); +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseInspectProjectServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseInspectProjectServiceImpl.java new file mode 100644 index 00000000..f7277b42 --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseInspectProjectServiceImpl.java @@ -0,0 +1,102 @@ +package com.hw.dms.service.impl; + +import java.util.List; +import com.hw.common.core.utils.DateUtils; +import com.hw.system.api.model.LoginUser; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.hw.dms.mapper.DmsBaseInspectProjectMapper; +import com.hw.dms.domain.DmsBaseInspectProject; +import com.hw.dms.service.IDmsBaseInspectProjectService; + +/** + * 巡检项目信息Service业务层处理 + * + * @author Open Platform + * @date 2024-01-17 + */ +@Service +public class DmsBaseInspectProjectServiceImpl implements IDmsBaseInspectProjectService +{ + @Autowired + private DmsBaseInspectProjectMapper dmsBaseInspectProjectMapper; + + /** + * 查询巡检项目信息 + * + * @param inspectProjectId 巡检项目信息主键 + * @return 巡检项目信息 + */ + @Override + public DmsBaseInspectProject selectDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId) + { + return dmsBaseInspectProjectMapper.selectDmsBaseInspectProjectByInspectProjectId(inspectProjectId); + } + + /** + * 查询巡检项目信息列表 + * + * @param dmsBaseInspectProject 巡检项目信息 + * @return 巡检项目信息 + */ + @Override + public List selectDmsBaseInspectProjectList(DmsBaseInspectProject dmsBaseInspectProject) + { + return dmsBaseInspectProjectMapper.selectDmsBaseInspectProjectList(dmsBaseInspectProject); + } + + /** + * 新增巡检项目信息 + * + * @param dmsBaseInspectProject 巡检项目信息 + * @return 结果 + */ + @Override + public int insertDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject) + { + LoginUser user = new LoginUser(); + dmsBaseInspectProject.setIsFlag("1"); + dmsBaseInspectProject.setCreateBy(user.getUsername()); + dmsBaseInspectProject.setCreateTime(DateUtils.getNowDate()); + return dmsBaseInspectProjectMapper.insertDmsBaseInspectProject(dmsBaseInspectProject); + } + + /** + * 修改巡检项目信息 + * + * @param dmsBaseInspectProject 巡检项目信息 + * @return 结果 + */ + @Override + public int updateDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject) + { + LoginUser user = new LoginUser(); + dmsBaseInspectProject.setUpdateBy(user.getUsername()); + dmsBaseInspectProject.setUpdateTime(DateUtils.getNowDate()); + return dmsBaseInspectProjectMapper.updateDmsBaseInspectProject(dmsBaseInspectProject); + } + + /** + * 批量删除巡检项目信息 + * + * @param inspectProjectIds 需要删除的巡检项目信息主键 + * @return 结果 + */ + @Override + public int deleteDmsBaseInspectProjectByInspectProjectIds(Long[] inspectProjectIds) + { + return dmsBaseInspectProjectMapper.deleteDmsBaseInspectProjectByInspectProjectIds(inspectProjectIds); + } + + /** + * 删除巡检项目信息信息 + * + * @param inspectProjectId 巡检项目信息主键 + * @return 结果 + */ + @Override + public int deleteDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId) + { + return dmsBaseInspectProjectMapper.deleteDmsBaseInspectProjectByInspectProjectId(inspectProjectId); + } +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseInspectStandardServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseInspectStandardServiceImpl.java new file mode 100644 index 00000000..f7fd628a --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBaseInspectStandardServiceImpl.java @@ -0,0 +1,102 @@ +package com.hw.dms.service.impl; + +import java.util.List; +import com.hw.common.core.utils.DateUtils; +import com.hw.system.api.model.LoginUser; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.hw.dms.mapper.DmsBaseInspectStandardMapper; +import com.hw.dms.domain.DmsBaseInspectStandard; +import com.hw.dms.service.IDmsBaseInspectStandardService; + +/** + * 巡检标准信息Service业务层处理 + * + * @author Open Platform + * @date 2024-01-17 + */ +@Service +public class DmsBaseInspectStandardServiceImpl implements IDmsBaseInspectStandardService +{ + @Autowired + private DmsBaseInspectStandardMapper dmsBaseInspectStandardMapper; + + /** + * 查询巡检标准信息 + * + * @param inspectStandardId 巡检标准信息主键 + * @return 巡检标准信息 + */ + @Override + public DmsBaseInspectStandard selectDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId) + { + return dmsBaseInspectStandardMapper.selectDmsBaseInspectStandardByInspectStandardId(inspectStandardId); + } + + /** + * 查询巡检标准信息列表 + * + * @param dmsBaseInspectStandard 巡检标准信息 + * @return 巡检标准信息 + */ + @Override + public List selectDmsBaseInspectStandardList(DmsBaseInspectStandard dmsBaseInspectStandard) + { + return dmsBaseInspectStandardMapper.selectDmsBaseInspectStandardList(dmsBaseInspectStandard); + } + + /** + * 新增巡检标准信息 + * + * @param dmsBaseInspectStandard 巡检标准信息 + * @return 结果 + */ + @Override + public int insertDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard) + { + dmsBaseInspectStandard.setIsFlag("1"); + LoginUser user = new LoginUser(); + dmsBaseInspectStandard.setCreateBy(user.getUsername()); + dmsBaseInspectStandard.setCreateTime(DateUtils.getNowDate()); + return dmsBaseInspectStandardMapper.insertDmsBaseInspectStandard(dmsBaseInspectStandard); + } + + /** + * 修改巡检标准信息 + * + * @param dmsBaseInspectStandard 巡检标准信息 + * @return 结果 + */ + @Override + public int updateDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard) + { + LoginUser user = new LoginUser(); + dmsBaseInspectStandard.setUpdateBy(user.getUsername()); + dmsBaseInspectStandard.setUpdateTime(DateUtils.getNowDate()); + return dmsBaseInspectStandardMapper.updateDmsBaseInspectStandard(dmsBaseInspectStandard); + } + + /** + * 批量删除巡检标准信息 + * + * @param inspectStandardIds 需要删除的巡检标准信息主键 + * @return 结果 + */ + @Override + public int deleteDmsBaseInspectStandardByInspectStandardIds(Long[] inspectStandardIds) + { + return dmsBaseInspectStandardMapper.deleteDmsBaseInspectStandardByInspectStandardIds(inspectStandardIds); + } + + /** + * 删除巡检标准信息信息 + * + * @param inspectStandardId 巡检标准信息主键 + * @return 结果 + */ + @Override + public int deleteDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId) + { + return dmsBaseInspectStandardMapper.deleteDmsBaseInspectStandardByInspectStandardId(inspectStandardId); + } +} diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanInspectServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanInspectServiceImpl.java new file mode 100644 index 00000000..56f9c5e7 --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanInspectServiceImpl.java @@ -0,0 +1,102 @@ +package com.hw.dms.service.impl; + +import java.util.List; +import com.hw.common.core.utils.DateUtils; +import com.hw.system.api.model.LoginUser; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.hw.dms.mapper.DmsPlanInspectMapper; +import com.hw.dms.domain.DmsPlanInspect; +import com.hw.dms.service.IDmsPlanInspectService; + +/** + * 巡检计划信息Service业务层处理 + * + * @author Open Platform + * @date 2024-01-17 + */ +@Service +public class DmsPlanInspectServiceImpl implements IDmsPlanInspectService +{ + @Autowired + private DmsPlanInspectMapper dmsPlanInspectMapper; + + /** + * 查询巡检计划信息 + * + * @param planInspectId 巡检计划信息主键 + * @return 巡检计划信息 + */ + @Override + public DmsPlanInspect selectDmsPlanInspectByPlanInspectId(Long planInspectId) + { + return dmsPlanInspectMapper.selectDmsPlanInspectByPlanInspectId(planInspectId); + } + + /** + * 查询巡检计划信息列表 + * + * @param dmsPlanInspect 巡检计划信息 + * @return 巡检计划信息 + */ + @Override + public List selectDmsPlanInspectList(DmsPlanInspect dmsPlanInspect) + { + return dmsPlanInspectMapper.selectDmsPlanInspectList(dmsPlanInspect); + } + + /** + * 新增巡检计划信息 + * + * @param dmsPlanInspect 巡检计划信息 + * @return 结果 + */ + @Override + public int insertDmsPlanInspect(DmsPlanInspect dmsPlanInspect) + { + LoginUser user = new LoginUser(); + dmsPlanInspect.setCreateBy(user.getUsername()); + dmsPlanInspect.setIsFlag("1"); + dmsPlanInspect.setCreateTime(DateUtils.getNowDate()); + return dmsPlanInspectMapper.insertDmsPlanInspect(dmsPlanInspect); + } + + /** + * 修改巡检计划信息 + * + * @param dmsPlanInspect 巡检计划信息 + * @return 结果 + */ + @Override + public int updateDmsPlanInspect(DmsPlanInspect dmsPlanInspect) + { + LoginUser user = new LoginUser(); + dmsPlanInspect.setUpdateBy(user.getUsername()); + dmsPlanInspect.setUpdateTime(DateUtils.getNowDate()); + return dmsPlanInspectMapper.updateDmsPlanInspect(dmsPlanInspect); + } + + /** + * 批量删除巡检计划信息 + * + * @param planInspectIds 需要删除的巡检计划信息主键 + * @return 结果 + */ + @Override + public int deleteDmsPlanInspectByPlanInspectIds(Long[] planInspectIds) + { + return dmsPlanInspectMapper.deleteDmsPlanInspectByPlanInspectIds(planInspectIds); + } + + /** + * 删除巡检计划信息信息 + * + * @param planInspectId 巡检计划信息主键 + * @return 结果 + */ + @Override + public int deleteDmsPlanInspectByPlanInspectId(Long planInspectId) + { + return dmsPlanInspectMapper.deleteDmsPlanInspectByPlanInspectId(planInspectId); + } +} diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseInspectProjectMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseInspectProjectMapper.xml new file mode 100644 index 00000000..0409f3cd --- /dev/null +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseInspectProjectMapper.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + select inspect_project_id, inspect_project_code, inspect_project, inspect_type, record_method, up_limit, low_limit, def_value, is_flag, remark, create_by, create_time, update_by, update_time from dms_base_inspect_project + + + + + + + + insert into dms_base_inspect_project + + inspect_project_code, + inspect_project, + inspect_type, + record_method, + up_limit, + low_limit, + def_value, + is_flag, + remark, + create_by, + create_time, + update_by, + update_time, + + + #{inspectProjectCode}, + #{inspectProject}, + #{inspectType}, + #{recordMethod}, + #{upLimit}, + #{lowLimit}, + #{defValue}, + #{isFlag}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update dms_base_inspect_project + + inspect_project_code = #{inspectProjectCode}, + inspect_project = #{inspectProject}, + inspect_type = #{inspectType}, + record_method = #{recordMethod}, + up_limit = #{upLimit}, + low_limit = #{lowLimit}, + def_value = #{defValue}, + is_flag = #{isFlag}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where inspect_project_id = #{inspectProjectId} + + + + delete from dms_base_inspect_project where inspect_project_id = #{inspectProjectId} + + + + delete from dms_base_inspect_project where inspect_project_id in + + #{inspectProjectId} + + + \ No newline at end of file diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseInspectStandardMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseInspectStandardMapper.xml new file mode 100644 index 00000000..340536ec --- /dev/null +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBaseInspectStandardMapper.xml @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + select inspect_standard_id, standard_code, standard_name, inspect_objective, inspect_project_id, inspect_item_count, is_flag, remark, create_by, create_time, update_by, update_time from dms_base_inspect_standard + + + + + + + + insert into dms_base_inspect_standard + + standard_code, + standard_name, + inspect_objective, + inspect_project_id, + inspect_item_count, + is_flag, + remark, + create_by, + create_time, + update_by, + update_time, + + + #{standardCode}, + #{standardName}, + #{inspectObjective}, + #{inspectProjectId}, + #{inspectItemCount}, + #{isFlag}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update dms_base_inspect_standard + + standard_code = #{standardCode}, + standard_name = #{standardName}, + inspect_objective = #{inspectObjective}, + inspect_project_id = #{inspectProjectId}, + inspect_item_count = #{inspectItemCount}, + is_flag = #{isFlag}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where inspect_standard_id = #{inspectStandardId} + + + + delete from dms_base_inspect_standard where inspect_standard_id = #{inspectStandardId} + + + + delete from dms_base_inspect_standard where inspect_standard_id in + + #{inspectStandardId} + + + \ No newline at end of file diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsPlanInspectMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsPlanInspectMapper.xml new file mode 100644 index 00000000..9b776231 --- /dev/null +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsPlanInspectMapper.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + select plan_inspect_id, plan_inspect_code, plan_inspect_name, inspect_type, inspect_route_id, device_amount, plan_time, cycle_period, performer, is_flag, remark, create_by, create_time, update_by, update_time from dms_plan_inspect + + + + + + + + insert into dms_plan_inspect + + plan_inspect_code, + plan_inspect_name, + inspect_type, + inspect_route_id, + device_amount, + plan_time, + cycle_period, + performer, + is_flag, + remark, + create_by, + create_time, + update_by, + update_time, + + + #{planInspectCode}, + #{planInspectName}, + #{inspectType}, + #{inspectRouteId}, + #{deviceAmount}, + #{planTime}, + #{cyclePeriod}, + #{performer}, + #{isFlag}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update dms_plan_inspect + + plan_inspect_code = #{planInspectCode}, + plan_inspect_name = #{planInspectName}, + inspect_type = #{inspectType}, + inspect_route_id = #{inspectRouteId}, + device_amount = #{deviceAmount}, + plan_time = #{planTime}, + cycle_period = #{cyclePeriod}, + performer = #{performer}, + is_flag = #{isFlag}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where plan_inspect_id = #{planInspectId} + + + + delete from dms_plan_inspect where plan_inspect_id = #{planInspectId} + + + + delete from dms_plan_inspect where plan_inspect_id in + + #{planInspectId} + + + \ No newline at end of file diff --git a/hw-ui/src/api/dms/dmsBaseInspectProject.js b/hw-ui/src/api/dms/dmsBaseInspectProject.js new file mode 100644 index 00000000..6240664b --- /dev/null +++ b/hw-ui/src/api/dms/dmsBaseInspectProject.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询巡检项目信息列表 +export function listDmsBaseInspectProject(query) { + return request({ + url: '/dms/dmsBaseInspectProject/list', + method: 'get', + params: query + }) +} + +// 查询巡检项目信息详细 +export function getDmsBaseInspectProject(inspectProjectId) { + return request({ + url: '/dms/dmsBaseInspectProject/' + inspectProjectId, + method: 'get' + }) +} + +// 新增巡检项目信息 +export function addDmsBaseInspectProject(data) { + return request({ + url: '/dms/dmsBaseInspectProject', + method: 'post', + data: data + }) +} + +// 修改巡检项目信息 +export function updateDmsBaseInspectProject(data) { + return request({ + url: '/dms/dmsBaseInspectProject', + method: 'put', + data: data + }) +} + +// 删除巡检项目信息 +export function delDmsBaseInspectProject(inspectProjectId) { + return request({ + url: '/dms/dmsBaseInspectProject/' + inspectProjectId, + method: 'delete' + }) +} diff --git a/hw-ui/src/api/dms/dmsBaseInspectStandard.js b/hw-ui/src/api/dms/dmsBaseInspectStandard.js new file mode 100644 index 00000000..fcf26b33 --- /dev/null +++ b/hw-ui/src/api/dms/dmsBaseInspectStandard.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询巡检标准信息列表 +export function listDmsBaseInspectStandard(query) { + return request({ + url: '/dms/dmsBaseInspectStandard/list', + method: 'get', + params: query + }) +} + +// 查询巡检标准信息详细 +export function getDmsBaseInspectStandard(inspectStandardId) { + return request({ + url: '/dms/dmsBaseInspectStandard/' + inspectStandardId, + method: 'get' + }) +} + +// 新增巡检标准信息 +export function addDmsBaseInspectStandard(data) { + return request({ + url: '/dms/dmsBaseInspectStandard', + method: 'post', + data: data + }) +} + +// 修改巡检标准信息 +export function updateDmsBaseInspectStandard(data) { + return request({ + url: '/dms/dmsBaseInspectStandard', + method: 'put', + data: data + }) +} + +// 删除巡检标准信息 +export function delDmsBaseInspectStandard(inspectStandardId) { + return request({ + url: '/dms/dmsBaseInspectStandard/' + inspectStandardId, + method: 'delete' + }) +} diff --git a/hw-ui/src/api/dms/dmsPlanInspect.js b/hw-ui/src/api/dms/dmsPlanInspect.js new file mode 100644 index 00000000..78daaf7b --- /dev/null +++ b/hw-ui/src/api/dms/dmsPlanInspect.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询巡检计划信息列表 +export function listDmsPlanInspect(query) { + return request({ + url: '/dms/dmsPlanInspect/list', + method: 'get', + params: query + }) +} + +// 查询巡检计划信息详细 +export function getDmsPlanInspect(planInspectId) { + return request({ + url: '/dms/dmsPlanInspect/' + planInspectId, + method: 'get' + }) +} + +// 新增巡检计划信息 +export function addDmsPlanInspect(data) { + return request({ + url: '/dms/dmsPlanInspect', + method: 'post', + data: data + }) +} + +// 修改巡检计划信息 +export function updateDmsPlanInspect(data) { + return request({ + url: '/dms/dmsPlanInspect', + method: 'put', + data: data + }) +} + +// 删除巡检计划信息 +export function delDmsPlanInspect(planInspectId) { + return request({ + url: '/dms/dmsPlanInspect/' + planInspectId, + method: 'delete' + }) +} diff --git a/hw-ui/src/views/dms/dmsBaseInspectProject/index.vue b/hw-ui/src/views/dms/dmsBaseInspectProject/index.vue new file mode 100644 index 00000000..d6323be5 --- /dev/null +++ b/hw-ui/src/views/dms/dmsBaseInspectProject/index.vue @@ -0,0 +1,371 @@ + + + diff --git a/hw-ui/src/views/dms/dmsBaseInspectRoute/index.vue b/hw-ui/src/views/dms/dmsBaseInspectRoute/index.vue index a2d11e23..59929245 100644 --- a/hw-ui/src/views/dms/dmsBaseInspectRoute/index.vue +++ b/hw-ui/src/views/dms/dmsBaseInspectRoute/index.vue @@ -106,11 +106,11 @@ - - - + + + + + @@ -180,15 +180,15 @@ - - - {{dict.label}} - - + + + + + + + + + @@ -213,6 +213,7 @@ export default { dicts:['dms_inspect_type'], data() { return { + inspectType:'', devicetypeList:[], // 遮罩层 loading: true, @@ -275,6 +276,16 @@ export default { }, /** 查询巡检线路信息列表 */ getList() { + if (this.$route.path=='/dms/inspect/dmsBaseInspectRoute') + { + this.queryParams.inspectType =1; + this.inspectType = 1; + } + else + { + this.queryParams.inspectType = 2 + this.inspectType = 2; + } this.loading = true; listDmsBaseInspectRoute(this.queryParams).then(response => { this.dmsBaseInspectRouteList = response.rows; @@ -342,12 +353,14 @@ export default { this.$refs["form"].validate(valid => { if (valid) { if (this.form.inspectRouteId != null) { + this.form.inspectType = this.inspectType; updateDmsBaseInspectRoute(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); }); } else { + this.form.inspectType = this.inspectType; addDmsBaseInspectRoute(this.form).then(response => { this.$modal.msgSuccess("新增成功"); this.open = false; diff --git a/hw-ui/src/views/dms/dmsBaseInspectStandard/index.vue b/hw-ui/src/views/dms/dmsBaseInspectStandard/index.vue new file mode 100644 index 00000000..d10823c1 --- /dev/null +++ b/hw-ui/src/views/dms/dmsBaseInspectStandard/index.vue @@ -0,0 +1,372 @@ + + + diff --git a/hw-ui/src/views/dms/dmsInspectRouteDetail/index.vue b/hw-ui/src/views/dms/dmsInspectRouteDetail/index.vue index fdaddf06..49c4a107 100644 --- a/hw-ui/src/views/dms/dmsInspectRouteDetail/index.vue +++ b/hw-ui/src/views/dms/dmsInspectRouteDetail/index.vue @@ -285,8 +285,9 @@ export default { console.log(inspectRouteid) this.inspectRouteIdCheck = inspectRouteid; this.queryParams.inspectRouteId = inspectRouteid; - this.getList(this.queryParams); - this.getRoute(this.queryParams); + this.form.inspectRouteId = inspectRouteid; + this.getList(); + this.getRoute(); this.getDevice(); }, methods: { @@ -307,6 +308,14 @@ export default { }, /** 查询巡检线路明细列表 */ getList() { + // if (this.$route.path=='/dms/inspect/dmsInspectRouteDetail') + // { + // this.queryParams.inspectType =1 + // } + // else + // { + // this.queryParams.inspectType = 2 + // } this.loading = true; listDmsInspectRouteDetail(this.queryParams).then(response => { this.dmsInspectRouteDetailList = response.rows; @@ -352,6 +361,7 @@ export default { handleAdd() { this.reset(); this.open = true; + this.form.inspectRouteId = this.inspectRouteIdCheck; this.title = "添加巡检线路明细"; }, /** 修改按钮操作 */ diff --git a/hw-ui/src/views/dms/dmsPlanInspect/index.vue b/hw-ui/src/views/dms/dmsPlanInspect/index.vue new file mode 100644 index 00000000..17909757 --- /dev/null +++ b/hw-ui/src/views/dms/dmsPlanInspect/index.vue @@ -0,0 +1,427 @@ + + + diff --git a/hw-ui/src/views/dms/dmsRecordInspect/index.vue b/hw-ui/src/views/dms/dmsRecordInspect/index.vue index 765c9320..d9b783d2 100644 --- a/hw-ui/src/views/dms/dmsRecordInspect/index.vue +++ b/hw-ui/src/views/dms/dmsRecordInspect/index.vue @@ -82,27 +82,27 @@ - - 新增 - - - 修改 - + + + + + + + + + + + + + + + + + + + + + --> - - - + + + + +