package cn.reghao.tnb.file.app.zjob.db;

import cn.reghao.jutil.jdk.web.db.BaseMapper;
import cn.reghao.tnb.file.app.zjob.model.po.JobDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author reghao
 * @date 2024-11-25 09:11:20
 */
@Mapper
public interface JobDetailMapper extends BaseMapper<JobDetail> {
    void updateSetEnd(@Param("jobId") long jobId,
                      @Param("status") String status,
                      @Param("endAt") LocalDateTime endAt);
    List<JobDetail> findByStatus(int status);
}
