gunshi-project-ss/src/main/java/com/gunshi/project/xyt/mapper/RescueTeamFileMapper.java

26 lines
835 B
Java
Raw Normal View History

2024-07-08 13:18:54 +08:00
package com.gunshi.project.xyt.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
2024-07-09 09:39:21 +08:00
import com.gunshi.file.model.FileDescriptor;
2024-07-08 13:18:54 +08:00
import com.gunshi.project.xyt.model.RescueTeamFile;
import org.apache.ibatis.annotations.Mapper;
2024-07-09 09:39:21 +08:00
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
2024-07-08 13:18:54 +08:00
2024-07-08 17:47:02 +08:00
/**
* : -
* author: xusan
* date: 2024-07-08 15:44:08
*/
2024-07-08 13:18:54 +08:00
@Mapper
public interface RescueTeamFileMapper extends BaseMapper<RescueTeamFile> {
2024-07-09 09:39:21 +08:00
@Select("""
<script>
select * from public.file_descriptor
where file_id in (select file_id from public.rescue_team_file where team_id = #{teamId})
</script>
""")
List<FileDescriptor> queryFiles(@Param("teamId") Long teamId);
2024-07-08 13:18:54 +08:00
}