package com.gkhy.safePlatform.doublePrevention.service.baseService;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.gkhy.safePlatform.doublePrevention.entity.PreventDangerCheckTaskUnit;
|
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventDangerCheckTaskUnitQueryReqDTO;
|
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDangerCheckTaskUnitDeleteParams;
|
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDangerCheckTaskUnitUpdateParams;
|
|
import java.util.List;
|
|
public interface PreventDangerCheckTaskUnitService extends IService<PreventDangerCheckTaskUnit> {
|
|
/**
|
* 隐患排查任务单元-分页查询
|
*/
|
IPage<PreventDangerCheckTaskUnit> getTaskUnitPage(Page<Object> objectPage, PreventDangerCheckTaskUnitQueryReqDTO taskUnitQueryReqDTO);
|
/**
|
* 隐患排查任务单元-通过名称查询单元信息
|
*/
|
PreventDangerCheckTaskUnit getTaskUnitByName(String taskUnitName);
|
/**
|
* 隐患排查任务单元-新增
|
*/
|
int saveTaskUnit(PreventDangerCheckTaskUnit taskUnit);
|
|
/**
|
* 隐患排查任务单元-修改
|
*/
|
int updateTaskUnit(PreventDangerCheckTaskUnitUpdateParams updateParams);
|
/**
|
* 隐患排查任务单元-删除
|
*/
|
int deleteTaskUnit(PreventDangerCheckTaskUnitDeleteParams deleteParams);
|
/**
|
* 隐患排查任务单元-
|
* 根据名称修改关联作业id
|
*/
|
PreventDangerCheckTaskUnit updateWorkIdByUnitName(String taskUnitName, Long checkWorkId);
|
/**
|
* 隐患排查任务单元-
|
* 根据workId 查询
|
*/
|
PreventDangerCheckTaskUnit getTaskUnitByWorkId(Long workId);
|
|
/**
|
* 隐患排查任务单元-重置关联任务单元workId
|
* 根据taskUnitName
|
*/
|
void deleteWorkIdByUnitName(String taskUnitName);
|
|
/**
|
* 隐患排查任务单元-根据Id查询
|
*/
|
PreventDangerCheckTaskUnit getTaskUnitById(Long id);
|
/**
|
* 隐患排查任务单元-
|
* 根据unitId 修改 workId
|
*/
|
void updateWorkIdByUnitId(Long taskUnitId, Long checkWorkId , String checkWorkUuid);
|
/**
|
* 隐患作业id,重置与任务单元的关联
|
*/
|
void deleteByWorkId(Long workId);
|
/**
|
* 隐患排查任务单元-任务单元列表
|
*/
|
List<PreventDangerCheckTaskUnit> listTaskUnit();
|
}
|