双重预防项目-国泰新华二开定制版
kongzy
2024-08-14 135a322f44708b1187d37ea4b6859b5d82113e89
src/main/java/com/ruoyi/doublePrevention/repository/PreventRiskJobAndMeasureRepository.java
@@ -1,39 +1,45 @@
package com.ruoyi.doublePrevention.repository;
import com.ruoyi.doublePrevention.entity.PreventRiskJobAndMeasure;
import com.ruoyi.doublePrevention.repository.param.HandlerReportParam;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface PreventRiskJobAndMeasureRepository {
    /**
     * 插入管控措施与job的对应关系
     * */
    int insertJobAndMeasure(PreventRiskJobAndMeasure jobAndMeasure);
    /**
     * 查询JobAndMeasure - By JobId
     */
    PreventRiskJobAndMeasure getJobAndMeasureByJobId(Long jobId);
    /**
     * 删除job管控措施的附属表关联信息
     */
    int deleteJobAndMeasure(Long jobId);
    /**
     * 检索需要上报的隐患排查任务
     */
    List<PreventRiskJobAndMeasure> listReportWork();
    /**
     * 根据jobId查询对应的管控措施
     */
    List<PreventRiskJobAndMeasure> getMeasureListByJobId(Long jobId);
    /**
     * 修改上报状态
     */
    int updateWorkReportStatus(HandlerReportParam handlerReportParam);
}
package com.ruoyi.doublePrevention.repository;
import com.ruoyi.doublePrevention.entity.PreventRiskJobAndMeasure;
import com.ruoyi.doublePrevention.repository.param.HandlerReportParam;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface PreventRiskJobAndMeasureRepository {
    /**
     * 插入管控措施与job的对应关系
     * */
    int insertJobAndMeasure(PreventRiskJobAndMeasure jobAndMeasure);
    /**
     * 查询JobAndMeasure - By JobId
     */
    PreventRiskJobAndMeasure getJobAndMeasureByJobId(Long jobId);
    List<PreventRiskJobAndMeasure> getJobAndMeasureListByJobId(Long jobId);
    /**
     * 删除job管控措施的附属表关联信息
     */
    int deleteJobAndMeasure(Long jobId);
    /**
     * 检索需要上报的隐患排查任务
     */
    List<PreventRiskJobAndMeasure> listReportWork();
    /**
     * 根据jobId查询对应的管控措施
     */
    List<PreventRiskJobAndMeasure> getMeasureListByJobId(Long jobId);
    /**
     * 修改上报状态
     */
    int updateWorkReportStatus(HandlerReportParam handlerReportParam);
    List<PreventRiskJobAndMeasure> listReportWorkTest();
    List<PreventRiskJobAndMeasure> getRectifyJobData(Long jobId);
}