双重预防项目-国泰新华二开定制版
16639036659
2024-06-18 4fb65d8e3c5fc8ddb8882a355cd31ecb9d51f3d9
src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskDangerCheckLogServiceImpl.java
@@ -9,6 +9,8 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Service("PreventRiskDangerCheckLogService")
@@ -58,4 +60,22 @@
    public PreventRiskDangerCheckLog getByDangerCheckByCheckId(Long checkId) {
        return preventRiskDangerCheckLogRepository.getByDangerCheckByCheckId(checkId);
    }
    @Override
    public PreventRiskDangerCheckLog getByDangerCheckByJobId(Long jobId) {
        return preventRiskDangerCheckLogRepository.getByDangerCheckByJobId(jobId);
    }
    @Override
    public int updateCheckLog(Long checkId, Long mobileCode) {
        return preventRiskDangerCheckLogRepository.updateCheckLog(checkId, mobileCode);
    }
    @Override
    public int updateTaskReportStatusByList(List<Long> taskIds) {
        List<Long> ids = new ArrayList<>();
        Byte reportStatus = 1;
        Date reportTime = new Date();
        return preventRiskDangerCheckLogRepository.updateTaskReportStatusByList(taskIds, reportStatus, reportTime);
    }
}