巡检、点检模块添加
parent
9c1b143d5e
commit
607ade70ae
@ -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<DmsBaseInspectProject> 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<DmsBaseInspectProject> list = dmsBaseInspectProjectService.selectDmsBaseInspectProjectList(dmsBaseInspectProject);
|
||||
ExcelUtil<DmsBaseInspectProject> util = new ExcelUtil<DmsBaseInspectProject>(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));
|
||||
}
|
||||
}
|
||||
@ -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<DmsBaseInspectStandard> 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<DmsBaseInspectStandard> list = dmsBaseInspectStandardService.selectDmsBaseInspectStandardList(dmsBaseInspectStandard);
|
||||
ExcelUtil<DmsBaseInspectStandard> util = new ExcelUtil<DmsBaseInspectStandard>(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));
|
||||
}
|
||||
}
|
||||
@ -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<DmsPlanInspect> 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<DmsPlanInspect> list = dmsPlanInspectService.selectDmsPlanInspectList(dmsPlanInspect);
|
||||
ExcelUtil<DmsPlanInspect> util = new ExcelUtil<DmsPlanInspect>(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));
|
||||
}
|
||||
}
|
||||
@ -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<DmsBaseInspectProject> 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);
|
||||
}
|
||||
@ -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<DmsBaseInspectStandard> 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);
|
||||
}
|
||||
@ -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<DmsPlanInspect> 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);
|
||||
}
|
||||
@ -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<DmsBaseInspectProject> 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);
|
||||
}
|
||||
@ -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<DmsBaseInspectStandard> 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);
|
||||
}
|
||||
@ -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<DmsPlanInspect> 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);
|
||||
}
|
||||
@ -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<DmsBaseInspectProject> 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);
|
||||
}
|
||||
}
|
||||
@ -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<DmsBaseInspectStandard> 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);
|
||||
}
|
||||
}
|
||||
@ -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<DmsPlanInspect> 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);
|
||||
}
|
||||
}
|
||||
@ -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.hw.dms.mapper.DmsBaseInspectProjectMapper">
|
||||
|
||||
<resultMap type="DmsBaseInspectProject" id="DmsBaseInspectProjectResult">
|
||||
<result property="inspectProjectId" column="inspect_project_id" />
|
||||
<result property="inspectProjectCode" column="inspect_project_code" />
|
||||
<result property="inspectProject" column="inspect_project" />
|
||||
<result property="inspectType" column="inspect_type" />
|
||||
<result property="recordMethod" column="record_method" />
|
||||
<result property="upLimit" column="up_limit" />
|
||||
<result property="lowLimit" column="low_limit" />
|
||||
<result property="defValue" column="def_value" />
|
||||
<result property="isFlag" column="is_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDmsBaseInspectProjectVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectDmsBaseInspectProjectList" parameterType="DmsBaseInspectProject" resultMap="DmsBaseInspectProjectResult">
|
||||
<include refid="selectDmsBaseInspectProjectVo"/>
|
||||
<where>
|
||||
<if test="inspectProjectCode != null and inspectProjectCode != ''"> and inspect_project_code = #{inspectProjectCode}</if>
|
||||
<if test="inspectProject != null and inspectProject != ''"> and inspect_project = #{inspectProject}</if>
|
||||
<if test="inspectType != null and inspectType != ''"> and inspect_type = #{inspectType}</if>
|
||||
<if test="recordMethod != null and recordMethod != ''"> and record_method = #{recordMethod}</if>
|
||||
<if test="upLimit != null "> and up_limit = #{upLimit}</if>
|
||||
<if test="lowLimit != null "> and low_limit = #{lowLimit}</if>
|
||||
<if test="defValue != null "> and def_value = #{defValue}</if>
|
||||
<if test="isFlag != null and isFlag != ''"> and is_flag = #{isFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDmsBaseInspectProjectByInspectProjectId" parameterType="Long" resultMap="DmsBaseInspectProjectResult">
|
||||
<include refid="selectDmsBaseInspectProjectVo"/>
|
||||
where inspect_project_id = #{inspectProjectId}
|
||||
</select>
|
||||
|
||||
<insert id="insertDmsBaseInspectProject" parameterType="DmsBaseInspectProject" useGeneratedKeys="true" keyProperty="inspectProjectId">
|
||||
insert into dms_base_inspect_project
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="inspectProjectCode != null">inspect_project_code,</if>
|
||||
<if test="inspectProject != null and inspectProject != ''">inspect_project,</if>
|
||||
<if test="inspectType != null and inspectType != ''">inspect_type,</if>
|
||||
<if test="recordMethod != null">record_method,</if>
|
||||
<if test="upLimit != null">up_limit,</if>
|
||||
<if test="lowLimit != null">low_limit,</if>
|
||||
<if test="defValue != null">def_value,</if>
|
||||
<if test="isFlag != null and isFlag != ''">is_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="inspectProjectCode != null">#{inspectProjectCode},</if>
|
||||
<if test="inspectProject != null and inspectProject != ''">#{inspectProject},</if>
|
||||
<if test="inspectType != null and inspectType != ''">#{inspectType},</if>
|
||||
<if test="recordMethod != null">#{recordMethod},</if>
|
||||
<if test="upLimit != null">#{upLimit},</if>
|
||||
<if test="lowLimit != null">#{lowLimit},</if>
|
||||
<if test="defValue != null">#{defValue},</if>
|
||||
<if test="isFlag != null and isFlag != ''">#{isFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDmsBaseInspectProject" parameterType="DmsBaseInspectProject">
|
||||
update dms_base_inspect_project
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="inspectProjectCode != null">inspect_project_code = #{inspectProjectCode},</if>
|
||||
<if test="inspectProject != null and inspectProject != ''">inspect_project = #{inspectProject},</if>
|
||||
<if test="inspectType != null and inspectType != ''">inspect_type = #{inspectType},</if>
|
||||
<if test="recordMethod != null">record_method = #{recordMethod},</if>
|
||||
<if test="upLimit != null">up_limit = #{upLimit},</if>
|
||||
<if test="lowLimit != null">low_limit = #{lowLimit},</if>
|
||||
<if test="defValue != null">def_value = #{defValue},</if>
|
||||
<if test="isFlag != null and isFlag != ''">is_flag = #{isFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where inspect_project_id = #{inspectProjectId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDmsBaseInspectProjectByInspectProjectId" parameterType="Long">
|
||||
delete from dms_base_inspect_project where inspect_project_id = #{inspectProjectId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDmsBaseInspectProjectByInspectProjectIds" parameterType="String">
|
||||
delete from dms_base_inspect_project where inspect_project_id in
|
||||
<foreach item="inspectProjectId" collection="array" open="(" separator="," close=")">
|
||||
#{inspectProjectId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,101 @@
|
||||
<?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.hw.dms.mapper.DmsBaseInspectStandardMapper">
|
||||
|
||||
<resultMap type="DmsBaseInspectStandard" id="DmsBaseInspectStandardResult">
|
||||
<result property="inspectStandardId" column="inspect_standard_id" />
|
||||
<result property="standardCode" column="standard_code" />
|
||||
<result property="standardName" column="standard_name" />
|
||||
<result property="inspectObjective" column="inspect_objective" />
|
||||
<result property="inspectProjectId" column="inspect_project_id" />
|
||||
<result property="inspectItemCount" column="inspect_item_count" />
|
||||
<result property="isFlag" column="is_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDmsBaseInspectStandardVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectDmsBaseInspectStandardList" parameterType="DmsBaseInspectStandard" resultMap="DmsBaseInspectStandardResult">
|
||||
<include refid="selectDmsBaseInspectStandardVo"/>
|
||||
<where>
|
||||
<if test="standardCode != null and standardCode != ''"> and standard_code = #{standardCode}</if>
|
||||
<if test="standardName != null and standardName != ''"> and standard_name like concat('%', #{standardName}, '%')</if>
|
||||
<if test="inspectObjective != null and inspectObjective != ''"> and inspect_objective = #{inspectObjective}</if>
|
||||
<if test="inspectProjectId != null "> and inspect_project_id = #{inspectProjectId}</if>
|
||||
<if test="inspectItemCount != null "> and inspect_item_count = #{inspectItemCount}</if>
|
||||
<if test="isFlag != null and isFlag != ''"> and is_flag = #{isFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDmsBaseInspectStandardByInspectStandardId" parameterType="Long" resultMap="DmsBaseInspectStandardResult">
|
||||
<include refid="selectDmsBaseInspectStandardVo"/>
|
||||
where inspect_standard_id = #{inspectStandardId}
|
||||
</select>
|
||||
|
||||
<insert id="insertDmsBaseInspectStandard" parameterType="DmsBaseInspectStandard" useGeneratedKeys="true" keyProperty="inspectStandardId">
|
||||
insert into dms_base_inspect_standard
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="standardCode != null">standard_code,</if>
|
||||
<if test="standardName != null and standardName != ''">standard_name,</if>
|
||||
<if test="inspectObjective != null">inspect_objective,</if>
|
||||
<if test="inspectProjectId != null">inspect_project_id,</if>
|
||||
<if test="inspectItemCount != null">inspect_item_count,</if>
|
||||
<if test="isFlag != null and isFlag != ''">is_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="standardCode != null">#{standardCode},</if>
|
||||
<if test="standardName != null and standardName != ''">#{standardName},</if>
|
||||
<if test="inspectObjective != null">#{inspectObjective},</if>
|
||||
<if test="inspectProjectId != null">#{inspectProjectId},</if>
|
||||
<if test="inspectItemCount != null">#{inspectItemCount},</if>
|
||||
<if test="isFlag != null and isFlag != ''">#{isFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDmsBaseInspectStandard" parameterType="DmsBaseInspectStandard">
|
||||
update dms_base_inspect_standard
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="standardCode != null">standard_code = #{standardCode},</if>
|
||||
<if test="standardName != null and standardName != ''">standard_name = #{standardName},</if>
|
||||
<if test="inspectObjective != null">inspect_objective = #{inspectObjective},</if>
|
||||
<if test="inspectProjectId != null">inspect_project_id = #{inspectProjectId},</if>
|
||||
<if test="inspectItemCount != null">inspect_item_count = #{inspectItemCount},</if>
|
||||
<if test="isFlag != null and isFlag != ''">is_flag = #{isFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where inspect_standard_id = #{inspectStandardId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDmsBaseInspectStandardByInspectStandardId" parameterType="Long">
|
||||
delete from dms_base_inspect_standard where inspect_standard_id = #{inspectStandardId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDmsBaseInspectStandardByInspectStandardIds" parameterType="String">
|
||||
delete from dms_base_inspect_standard where inspect_standard_id in
|
||||
<foreach item="inspectStandardId" collection="array" open="(" separator="," close=")">
|
||||
#{inspectStandardId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,116 @@
|
||||
<?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.hw.dms.mapper.DmsPlanInspectMapper">
|
||||
|
||||
<resultMap type="DmsPlanInspect" id="DmsPlanInspectResult">
|
||||
<result property="planInspectId" column="plan_inspect_id" />
|
||||
<result property="planInspectCode" column="plan_inspect_code" />
|
||||
<result property="planInspectName" column="plan_inspect_name" />
|
||||
<result property="inspectType" column="inspect_type" />
|
||||
<result property="inspectRouteId" column="inspect_route_id" />
|
||||
<result property="deviceAmount" column="device_amount" />
|
||||
<result property="planTime" column="plan_time" />
|
||||
<result property="cyclePeriod" column="cycle_period" />
|
||||
<result property="performer" column="performer" />
|
||||
<result property="isFlag" column="is_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDmsPlanInspectVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectDmsPlanInspectList" parameterType="DmsPlanInspect" resultMap="DmsPlanInspectResult">
|
||||
<include refid="selectDmsPlanInspectVo"/>
|
||||
<where>
|
||||
<if test="planInspectCode != null and planInspectCode != ''"> and plan_inspect_code = #{planInspectCode}</if>
|
||||
<if test="planInspectName != null and planInspectName != ''"> and plan_inspect_name like concat('%', #{planInspectName}, '%')</if>
|
||||
<if test="inspectType != null and inspectType != ''"> and inspect_type = #{inspectType}</if>
|
||||
<if test="inspectRouteId != null "> and inspect_route_id = #{inspectRouteId}</if>
|
||||
<if test="deviceAmount != null "> and device_amount = #{deviceAmount}</if>
|
||||
<if test="planTime != null "> and plan_time = #{planTime}</if>
|
||||
<if test="cyclePeriod != null and cyclePeriod != ''"> and cycle_period = #{cyclePeriod}</if>
|
||||
<if test="performer != null and performer != ''"> and performer = #{performer}</if>
|
||||
<if test="isFlag != null and isFlag != ''"> and is_flag = #{isFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDmsPlanInspectByPlanInspectId" parameterType="Long" resultMap="DmsPlanInspectResult">
|
||||
<include refid="selectDmsPlanInspectVo"/>
|
||||
where plan_inspect_id = #{planInspectId}
|
||||
</select>
|
||||
|
||||
<insert id="insertDmsPlanInspect" parameterType="DmsPlanInspect" useGeneratedKeys="true" keyProperty="planInspectId">
|
||||
insert into dms_plan_inspect
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="planInspectCode != null">plan_inspect_code,</if>
|
||||
<if test="planInspectName != null">plan_inspect_name,</if>
|
||||
<if test="inspectType != null">inspect_type,</if>
|
||||
<if test="inspectRouteId != null">inspect_route_id,</if>
|
||||
<if test="deviceAmount != null">device_amount,</if>
|
||||
<if test="planTime != null">plan_time,</if>
|
||||
<if test="cyclePeriod != null">cycle_period,</if>
|
||||
<if test="performer != null">performer,</if>
|
||||
<if test="isFlag != null and isFlag != ''">is_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="planInspectCode != null">#{planInspectCode},</if>
|
||||
<if test="planInspectName != null">#{planInspectName},</if>
|
||||
<if test="inspectType != null">#{inspectType},</if>
|
||||
<if test="inspectRouteId != null">#{inspectRouteId},</if>
|
||||
<if test="deviceAmount != null">#{deviceAmount},</if>
|
||||
<if test="planTime != null">#{planTime},</if>
|
||||
<if test="cyclePeriod != null">#{cyclePeriod},</if>
|
||||
<if test="performer != null">#{performer},</if>
|
||||
<if test="isFlag != null and isFlag != ''">#{isFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDmsPlanInspect" parameterType="DmsPlanInspect">
|
||||
update dms_plan_inspect
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="planInspectCode != null">plan_inspect_code = #{planInspectCode},</if>
|
||||
<if test="planInspectName != null">plan_inspect_name = #{planInspectName},</if>
|
||||
<if test="inspectType != null">inspect_type = #{inspectType},</if>
|
||||
<if test="inspectRouteId != null">inspect_route_id = #{inspectRouteId},</if>
|
||||
<if test="deviceAmount != null">device_amount = #{deviceAmount},</if>
|
||||
<if test="planTime != null">plan_time = #{planTime},</if>
|
||||
<if test="cyclePeriod != null">cycle_period = #{cyclePeriod},</if>
|
||||
<if test="performer != null">performer = #{performer},</if>
|
||||
<if test="isFlag != null and isFlag != ''">is_flag = #{isFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where plan_inspect_id = #{planInspectId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDmsPlanInspectByPlanInspectId" parameterType="Long">
|
||||
delete from dms_plan_inspect where plan_inspect_id = #{planInspectId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDmsPlanInspectByPlanInspectIds" parameterType="String">
|
||||
delete from dms_plan_inspect where plan_inspect_id in
|
||||
<foreach item="planInspectId" collection="array" open="(" separator="," close=")">
|
||||
#{planInspectId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -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'
|
||||
})
|
||||
}
|
||||
@ -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'
|
||||
})
|
||||
}
|
||||
@ -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'
|
||||
})
|
||||
}
|
||||
Loading…
Reference in New Issue