IInspectionTaskService.java 1.5 KB
package com.skua.modules.inspection.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skua.modules.inspection.entity.InspectionTask;
import com.skua.modules.inspection.vo.InspectionTaskVO;

import java.util.List;
import java.util.Map;

/**
 * 巡检任务
 */
public interface IInspectionTaskService extends IService<InspectionTask> {

    InspectionTaskVO getTaskByInspectionPlanId(QueryWrapper<InspectionTask> inspectionTaskQueryWrapper);

    List<InspectionTaskVO> getInspectionTask(QueryWrapper<InspectionTaskVO> inspectionTaskVOQueryWrapper);

    void finishInspectionTask(String userId, String taskId) throws Exception ;

    InspectionTask addInpsectionTask(String inspectionPlanId, String userId, Integer inspectionCycleIndex, String inspectionCycleStartDate)throws Exception;

    List<JSONObject> getInspectionTaskByUserId(String userId,String moduleType)throws Exception;

    String checkInspectionTriggerMode(String taskId, String code);

    List<Map<String, Object>> getInspectionPointByTaskId(String taskId);

    List<Map<String, Object>> getInspectionFillGroupByInspectionPointId(String inspectionPointId,String taskId);

    List<Map<String, Object>> getPipenetworkTubewellIdByTaskId(String taskId);

    List<Map<String, Object>> getInspectionFill(String pipenetworkTubewellId, String taskId);

    boolean checkInspectionTriggerEquipQr(String equipmentInfoId, String code);
}