| 1234567891011121314 |
- package com.etotem.cfc.mapper;
- import com.baomidou.mybatisplus.core.mapper.BaseMapper;
- import com.etotem.cfc.entity.Task;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Param;
- import org.apache.ibatis.annotations.Select;
- @Mapper
- public interface TaskMapper extends BaseMapper<Task> {
- @Select("SELECT * FROM tasks WHERE source_type = #{sourceType} AND source_id = #{sourceId} LIMIT 1")
- Task selectBySource(@Param("sourceType") String sourceType, @Param("sourceId") Long sourceId);
- }
|