init
This commit is contained in:
26
src/main/java/com/weilab/biology/mapper/JobMapper.java
Normal file
26
src/main/java/com/weilab/biology/mapper/JobMapper.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package com.weilab.biology.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.weilab.biology.core.data.dto.JobLessDto;
|
||||
import com.weilab.biology.core.data.po.Job;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.python.modules.itertools.count;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by skyyemperor on 2021-09-19
|
||||
* Description :
|
||||
*/
|
||||
@Mapper
|
||||
public interface JobMapper extends BaseMapper<Job> {
|
||||
|
||||
List<Job> selectRunningJobs();
|
||||
|
||||
Job selectNextWaitingJob();
|
||||
|
||||
List<Job> selectJobList(@Param("type") Integer type,
|
||||
@Param("count") Integer count);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user