parent
d297362ba8
commit
8b06bbca2e
16 changed files with 724 additions and 0 deletions
@ -0,0 +1,126 @@ |
||||
/** |
||||
* Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com). |
||||
* <p> |
||||
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* <p> |
||||
* http://www.gnu.org/licenses/lgpl.html
|
||||
* <p> |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
package org.energy.modules.inspection.controller; |
||||
|
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import io.swagger.annotations.ApiParam; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import lombok.AllArgsConstructor; |
||||
import javax.validation.Valid; |
||||
|
||||
import com.dayu.daf.core.mp.support.Condition; |
||||
import com.dayu.daf.core.mp.support.Query; |
||||
import com.dayu.daf.core.tool.api.R; |
||||
import com.dayu.daf.core.tool.utils.Func; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.energy.modules.inspection.entity.InspectionResult; |
||||
import org.energy.modules.inspection.vo.InspectionResultVO; |
||||
import org.energy.modules.inspection.service.IInspectionResultService; |
||||
import com.dayu.daf.core.boot.ctrl.DafController; |
||||
|
||||
/** |
||||
* 巡检结果 控制器 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/inspection/inspectionresult") |
||||
@Api(value = "巡检结果", tags = "巡检结果接口") |
||||
public class InspectionResultController extends DafController { |
||||
|
||||
private IInspectionResultService inspectionResultService; |
||||
|
||||
/** |
||||
* 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "详情", notes = "传入inspectionResult") |
||||
public R<InspectionResult> detail(InspectionResult inspectionResult) { |
||||
InspectionResult detail = inspectionResultService.getOne(Condition.getQueryWrapper(inspectionResult)); |
||||
return R.data(detail); |
||||
} |
||||
|
||||
/** |
||||
* 分页 巡检结果 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入inspectionResult") |
||||
public R<IPage<InspectionResult>> list(InspectionResult inspectionResult, Query query) { |
||||
IPage<InspectionResult> pages = inspectionResultService.page(Condition.getPage(query), Condition.getQueryWrapper(inspectionResult)); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 自定义分页 巡检结果 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@ApiOperation(value = "分页", notes = "传入inspectionResult") |
||||
public R<IPage<InspectionResultVO>> page(InspectionResultVO inspectionResult, Query query) { |
||||
IPage<InspectionResultVO> pages = inspectionResultService.selectInspectionResultPage(Condition.getPage(query), inspectionResult); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 新增 巡检结果 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@ApiOperation(value = "新增", notes = "传入inspectionResult") |
||||
public R save(@Valid @RequestBody InspectionResult inspectionResult) { |
||||
return R.status(inspectionResultService.save(inspectionResult)); |
||||
} |
||||
|
||||
/** |
||||
* 修改 巡检结果 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@ApiOperation(value = "修改", notes = "传入inspectionResult") |
||||
public R update(@Valid @RequestBody InspectionResult inspectionResult) { |
||||
return R.status(inspectionResultService.updateById(inspectionResult)); |
||||
} |
||||
|
||||
/** |
||||
* 新增或修改 巡检结果 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入inspectionResult") |
||||
public R submit(@Valid @RequestBody InspectionResult inspectionResult) { |
||||
return R.status(inspectionResultService.saveOrUpdate(inspectionResult)); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 删除 巡检结果 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(inspectionResultService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
} |
@ -0,0 +1,126 @@ |
||||
/** |
||||
* Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com). |
||||
* <p> |
||||
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* <p> |
||||
* http://www.gnu.org/licenses/lgpl.html
|
||||
* <p> |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
package org.energy.modules.inspection.controller; |
||||
|
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import io.swagger.annotations.ApiParam; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import lombok.AllArgsConstructor; |
||||
import javax.validation.Valid; |
||||
|
||||
import com.dayu.daf.core.mp.support.Condition; |
||||
import com.dayu.daf.core.mp.support.Query; |
||||
import com.dayu.daf.core.tool.api.R; |
||||
import com.dayu.daf.core.tool.utils.Func; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.energy.modules.inspection.entity.InspectionTasks; |
||||
import org.energy.modules.inspection.vo.InspectionTasksVO; |
||||
import org.energy.modules.inspection.service.IInspectionTasksService; |
||||
import com.dayu.daf.core.boot.ctrl.DafController; |
||||
|
||||
/** |
||||
* 巡检任务 控制器 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/inspection/inspectiontasks") |
||||
@Api(value = "巡检任务", tags = "巡检任务接口") |
||||
public class InspectionTasksController extends DafController { |
||||
|
||||
private IInspectionTasksService inspectionTasksService; |
||||
|
||||
/** |
||||
* 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "详情", notes = "传入inspectionTasks") |
||||
public R<InspectionTasks> detail(InspectionTasks inspectionTasks) { |
||||
InspectionTasks detail = inspectionTasksService.getOne(Condition.getQueryWrapper(inspectionTasks)); |
||||
return R.data(detail); |
||||
} |
||||
|
||||
/** |
||||
* 分页 巡检任务 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入inspectionTasks") |
||||
public R<IPage<InspectionTasks>> list(InspectionTasks inspectionTasks, Query query) { |
||||
IPage<InspectionTasks> pages = inspectionTasksService.page(Condition.getPage(query), Condition.getQueryWrapper(inspectionTasks)); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 自定义分页 巡检任务 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@ApiOperation(value = "分页", notes = "传入inspectionTasks") |
||||
public R<IPage<InspectionTasksVO>> page(InspectionTasksVO inspectionTasks, Query query) { |
||||
IPage<InspectionTasksVO> pages = inspectionTasksService.selectInspectionTasksPage(Condition.getPage(query), inspectionTasks); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 新增 巡检任务 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@ApiOperation(value = "新增", notes = "传入inspectionTasks") |
||||
public R save(@Valid @RequestBody InspectionTasks inspectionTasks) { |
||||
return R.status(inspectionTasksService.save(inspectionTasks)); |
||||
} |
||||
|
||||
/** |
||||
* 修改 巡检任务 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@ApiOperation(value = "修改", notes = "传入inspectionTasks") |
||||
public R update(@Valid @RequestBody InspectionTasks inspectionTasks) { |
||||
return R.status(inspectionTasksService.updateById(inspectionTasks)); |
||||
} |
||||
|
||||
/** |
||||
* 新增或修改 巡检任务 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入inspectionTasks") |
||||
public R submit(@Valid @RequestBody InspectionTasks inspectionTasks) { |
||||
return R.status(inspectionTasksService.saveOrUpdate(inspectionTasks)); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 删除 巡检任务 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(inspectionTasksService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
} |
@ -0,0 +1,18 @@ |
||||
package org.energy.modules.inspection.dto; |
||||
|
||||
import org.energy.modules.inspection.entity.InspectionResult; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 巡检结果数据传输对象实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class InspectionResultDTO extends InspectionResult { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,18 @@ |
||||
package org.energy.modules.inspection.dto; |
||||
|
||||
import org.energy.modules.inspection.entity.InspectionTasks; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 巡检任务数据传输对象实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class InspectionTasksDTO extends InspectionTasks { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,67 @@ |
||||
package org.energy.modules.inspection.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.dayu.daf.core.mp.base.BaseEntity; |
||||
import java.io.Serializable; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
|
||||
/** |
||||
* 巡检结果实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
@Data |
||||
@TableName("i_inspection_result") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "InspectionResult对象", description = "巡检结果") |
||||
public class InspectionResult extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@ApiModelProperty(value = "主键") |
||||
private Long id; |
||||
/** |
||||
* 巡检任务主键 |
||||
*/ |
||||
@ApiModelProperty(value = "巡检任务主键") |
||||
private Long inspectionRaskId; |
||||
/** |
||||
* 任务执行开始时间 |
||||
*/ |
||||
@ApiModelProperty(value = "任务执行开始时间") |
||||
private String executeStartDate; |
||||
/** |
||||
* 发生原因 |
||||
*/ |
||||
@ApiModelProperty(value = "发生原因") |
||||
private String happenReason; |
||||
/** |
||||
* 任务执行结束时间 |
||||
*/ |
||||
@ApiModelProperty(value = "任务执行结束时间") |
||||
private String executeEndDate; |
||||
/** |
||||
* 巡检结果 |
||||
*/ |
||||
@ApiModelProperty(value = "巡检结果") |
||||
private String inspectiontResult; |
||||
/** |
||||
* 处理过程描述 |
||||
*/ |
||||
@ApiModelProperty(value = "处理过程描述") |
||||
private String processDescription; |
||||
/** |
||||
* 巡检报告 |
||||
*/ |
||||
@ApiModelProperty(value = "巡检报告") |
||||
private String inspectionReport; |
||||
|
||||
|
||||
} |
@ -0,0 +1,112 @@ |
||||
package org.energy.modules.inspection.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.dayu.daf.core.mp.base.BaseEntity; |
||||
import java.io.Serializable; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
|
||||
/** |
||||
* 巡检任务实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
@Data |
||||
@TableName("i_inspection_tasks") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "InspectionTasks对象", description = "巡检任务") |
||||
public class InspectionTasks extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@ApiModelProperty(value = "主键") |
||||
private Long id; |
||||
/** |
||||
* 巡检对象主键 |
||||
*/ |
||||
@ApiModelProperty(value = "巡检对象主键") |
||||
private Long inspectionObjId; |
||||
/** |
||||
* 巡检路线主键 |
||||
*/ |
||||
@ApiModelProperty(value = "巡检路线主键") |
||||
private Long inspectionRouteId; |
||||
/** |
||||
* 巡检计划主键 |
||||
*/ |
||||
@ApiModelProperty(value = "巡检计划主键") |
||||
private Long inspectionPlanId; |
||||
/** |
||||
* 任务名称 |
||||
*/ |
||||
@ApiModelProperty(value = "任务名称") |
||||
private String taskName; |
||||
/** |
||||
* 场站 |
||||
*/ |
||||
@ApiModelProperty(value = "场站") |
||||
private String station; |
||||
/** |
||||
* 责任人 |
||||
*/ |
||||
@ApiModelProperty(value = "责任人") |
||||
private String responsiblePerson; |
||||
/** |
||||
* 任务生成日期时间 |
||||
*/ |
||||
@ApiModelProperty(value = "任务生成日期时间") |
||||
private String taskStartDate; |
||||
/** |
||||
* 任务结束日期时间 |
||||
*/ |
||||
@ApiModelProperty(value = "任务结束日期时间") |
||||
private String taskEndDate; |
||||
/** |
||||
* 取消原因 |
||||
*/ |
||||
@ApiModelProperty(value = "取消原因") |
||||
private String cancelReason; |
||||
/** |
||||
* 任务状态 |
||||
*/ |
||||
@ApiModelProperty(value = "任务状态") |
||||
private String taskStatus; |
||||
/** |
||||
* 对象名称 |
||||
*/ |
||||
@ApiModelProperty(value = "对象名称") |
||||
private String objectName; |
||||
/** |
||||
* 对象类型 |
||||
*/ |
||||
@ApiModelProperty(value = "对象类型") |
||||
private String objectType; |
||||
/** |
||||
* 路线名称 |
||||
*/ |
||||
@ApiModelProperty(value = "路线名称") |
||||
private String routeName; |
||||
/** |
||||
* 路线类型 |
||||
*/ |
||||
@ApiModelProperty(value = "路线类型") |
||||
private String routeType; |
||||
/** |
||||
* 计划名称 |
||||
*/ |
||||
@ApiModelProperty(value = "计划名称") |
||||
private String planName; |
||||
/** |
||||
* 计划类型 |
||||
*/ |
||||
@ApiModelProperty(value = "计划类型") |
||||
private String planType; |
||||
|
||||
|
||||
} |
@ -0,0 +1,26 @@ |
||||
package org.energy.modules.inspection.mapper; |
||||
|
||||
import org.energy.modules.inspection.entity.InspectionResult; |
||||
import org.energy.modules.inspection.vo.InspectionResultVO; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 巡检结果 Mapper 接口 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
public interface InspectionResultMapper extends BaseMapper<InspectionResult> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param inspectionResult |
||||
* @return |
||||
*/ |
||||
List<InspectionResultVO> selectInspectionResultPage(IPage page, InspectionResultVO inspectionResult); |
||||
|
||||
} |
@ -0,0 +1,28 @@ |
||||
<?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="org.energy.modules.inspection.mapper.InspectionResultMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="inspectionResultResultMap" type="org.energy.modules.inspection.entity.InspectionResult"> |
||||
<id column="id" property="id"/> |
||||
<result column="status" property="status"/> |
||||
<result column="create_time" property="createTime"/> |
||||
<result column="create_user" property="createUser"/> |
||||
<result column="update_time" property="updateTime"/> |
||||
<result column="update_user" property="updateUser"/> |
||||
<result column="is_deleted" property="isDeleted"/> |
||||
<result column="inspection_rask_id" property="inspectionRaskId"/> |
||||
<result column="execute_start_date" property="executeStartDate"/> |
||||
<result column="happen_reason" property="happenReason"/> |
||||
<result column="execute_end_date" property="executeEndDate"/> |
||||
<result column="inspectiont_result" property="inspectiontResult"/> |
||||
<result column="process_description" property="processDescription"/> |
||||
<result column="inspection_report" property="inspectionReport"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectInspectionResultPage" resultMap="inspectionResultResultMap"> |
||||
select * from i_inspection_result where is_deleted = 0 |
||||
</select> |
||||
|
||||
</mapper> |
@ -0,0 +1,26 @@ |
||||
package org.energy.modules.inspection.mapper; |
||||
|
||||
import org.energy.modules.inspection.entity.InspectionTasks; |
||||
import org.energy.modules.inspection.vo.InspectionTasksVO; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 巡检任务 Mapper 接口 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
public interface InspectionTasksMapper extends BaseMapper<InspectionTasks> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param inspectionTasks |
||||
* @return |
||||
*/ |
||||
List<InspectionTasksVO> selectInspectionTasksPage(IPage page, InspectionTasksVO inspectionTasks); |
||||
|
||||
} |
@ -0,0 +1,37 @@ |
||||
<?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="org.energy.modules.inspection.mapper.InspectionTasksMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="inspectionTasksResultMap" type="org.energy.modules.inspection.entity.InspectionTasks"> |
||||
<id column="id" property="id"/> |
||||
<result column="status" property="status"/> |
||||
<result column="create_time" property="createTime"/> |
||||
<result column="create_user" property="createUser"/> |
||||
<result column="update_time" property="updateTime"/> |
||||
<result column="update_user" property="updateUser"/> |
||||
<result column="is_deleted" property="isDeleted"/> |
||||
<result column="inspection_obj_id" property="inspectionObjId"/> |
||||
<result column="inspection_route_id" property="inspectionRouteId"/> |
||||
<result column="inspection_plan_id" property="inspectionPlanId"/> |
||||
<result column="task_name" property="taskName"/> |
||||
<result column="station" property="station"/> |
||||
<result column="responsible_person" property="responsiblePerson"/> |
||||
<result column="task_start_date" property="taskStartDate"/> |
||||
<result column="task_end_date" property="taskEndDate"/> |
||||
<result column="cancel_reason" property="cancelReason"/> |
||||
<result column="task_status" property="taskStatus"/> |
||||
<result column="object_name" property="objectName"/> |
||||
<result column="object_type" property="objectType"/> |
||||
<result column="route_name" property="routeName"/> |
||||
<result column="route_type" property="routeType"/> |
||||
<result column="plan_name" property="planName"/> |
||||
<result column="plan_type" property="planType"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectInspectionTasksPage" resultMap="inspectionTasksResultMap"> |
||||
select * from i_inspection_tasks where is_deleted = 0 |
||||
</select> |
||||
|
||||
</mapper> |
@ -0,0 +1,25 @@ |
||||
package org.energy.modules.inspection.service; |
||||
|
||||
import org.energy.modules.inspection.entity.InspectionResult; |
||||
import org.energy.modules.inspection.vo.InspectionResultVO; |
||||
import com.dayu.daf.core.mp.base.BaseService; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
||||
/** |
||||
* 巡检结果 服务类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
public interface IInspectionResultService extends BaseService<InspectionResult> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param inspectionResult |
||||
* @return |
||||
*/ |
||||
IPage<InspectionResultVO> selectInspectionResultPage(IPage<InspectionResultVO> page, InspectionResultVO inspectionResult); |
||||
|
||||
} |
@ -0,0 +1,25 @@ |
||||
package org.energy.modules.inspection.service; |
||||
|
||||
import org.energy.modules.inspection.entity.InspectionTasks; |
||||
import org.energy.modules.inspection.vo.InspectionTasksVO; |
||||
import com.dayu.daf.core.mp.base.BaseService; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
||||
/** |
||||
* 巡检任务 服务类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
public interface IInspectionTasksService extends BaseService<InspectionTasks> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param inspectionTasks |
||||
* @return |
||||
*/ |
||||
IPage<InspectionTasksVO> selectInspectionTasksPage(IPage<InspectionTasksVO> page, InspectionTasksVO inspectionTasks); |
||||
|
||||
} |
@ -0,0 +1,25 @@ |
||||
package org.energy.modules.inspection.service.impl; |
||||
|
||||
import org.energy.modules.inspection.entity.InspectionResult; |
||||
import org.energy.modules.inspection.vo.InspectionResultVO; |
||||
import org.energy.modules.inspection.mapper.InspectionResultMapper; |
||||
import org.energy.modules.inspection.service.IInspectionResultService; |
||||
import com.dayu.daf.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
||||
/** |
||||
* 巡检结果 服务实现类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
@Service |
||||
public class InspectionResultServiceImpl extends BaseServiceImpl<InspectionResultMapper, InspectionResult> implements IInspectionResultService { |
||||
|
||||
@Override |
||||
public IPage<InspectionResultVO> selectInspectionResultPage(IPage<InspectionResultVO> page, InspectionResultVO inspectionResult) { |
||||
return page.setRecords(baseMapper.selectInspectionResultPage(page, inspectionResult)); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,25 @@ |
||||
package org.energy.modules.inspection.service.impl; |
||||
|
||||
import org.energy.modules.inspection.entity.InspectionTasks; |
||||
import org.energy.modules.inspection.vo.InspectionTasksVO; |
||||
import org.energy.modules.inspection.mapper.InspectionTasksMapper; |
||||
import org.energy.modules.inspection.service.IInspectionTasksService; |
||||
import com.dayu.daf.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
||||
/** |
||||
* 巡检任务 服务实现类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
@Service |
||||
public class InspectionTasksServiceImpl extends BaseServiceImpl<InspectionTasksMapper, InspectionTasks> implements IInspectionTasksService { |
||||
|
||||
@Override |
||||
public IPage<InspectionTasksVO> selectInspectionTasksPage(IPage<InspectionTasksVO> page, InspectionTasksVO inspectionTasks) { |
||||
return page.setRecords(baseMapper.selectInspectionTasksPage(page, inspectionTasks)); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,20 @@ |
||||
package org.energy.modules.inspection.vo; |
||||
|
||||
import org.energy.modules.inspection.entity.InspectionResult; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import io.swagger.annotations.ApiModel; |
||||
|
||||
/** |
||||
* 巡检结果视图实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "InspectionResultVO对象", description = "巡检结果") |
||||
public class InspectionResultVO extends InspectionResult { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,20 @@ |
||||
package org.energy.modules.inspection.vo; |
||||
|
||||
import org.energy.modules.inspection.entity.InspectionTasks; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import io.swagger.annotations.ApiModel; |
||||
|
||||
/** |
||||
* 巡检任务视图实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-10 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "InspectionTasksVO对象", description = "巡检任务") |
||||
public class InspectionTasksVO extends InspectionTasks { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
Loading…
Reference in new issue