29 lines
868 B
Java
29 lines
868 B
Java
package com.whdc.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.whdc.model.entity.AutoCallTask;
|
|
import com.whdc.model.entity.QXWarning;
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @author lyf
|
|
* @since 2025-07-08
|
|
*/
|
|
public interface AutoCallTaskMapper extends BaseMapper<AutoCallTask> {
|
|
List<QXWarning> listWarnsThatNotGeneratedTask();
|
|
|
|
default List<AutoCallTask> listShouldGenerate() {
|
|
return selectList(
|
|
new QueryWrapper<AutoCallTask>()
|
|
.eq("status", AutoCallTask.STATUS_SHOULD_GENERATE)
|
|
.orderByAsc("id")
|
|
);
|
|
}
|
|
|
|
@Select("update auto_call_task set status = #{status} where id = #{taskId}")
|
|
void setStatus(Integer taskId, int status);
|
|
}
|