崔向南 | 03d21b9 | 2025-06-05 17:42:23 +0800 | [diff] [blame] | 1 | package bounty.mapper; |
| 2 | |
| 3 | import bounty.domain.BountySubmission; |
| 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 5 | import com.baomidou.mybatisplus.core.metadata.IPage; |
| 6 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 7 | import org.apache.ibatis.annotations.Param; |
| 8 | import org.apache.ibatis.annotations.Mapper; |
| 9 | import org.springframework.http.ResponseEntity; |
| 10 | import org.springframework.web.bind.annotation.PathVariable; |
| 11 | import org.springframework.web.bind.annotation.PutMapping; |
| 12 | |
| 13 | import java.util.List; |
| 14 | import java.util.Map; |
| 15 | |
| 16 | // 悬赏提交 Mapper 接口 |
| 17 | @Mapper |
| 18 | public interface BountySubmissionMapper extends BaseMapper<BountySubmission> { |
| 19 | // 与 XML 中 id="getBountySubmissionsByPage" 的 SQL 匹配 |
| 20 | IPage<BountySubmission> getBountySubmissionsByPage(Page<BountySubmission> page, @Param("bountyId") Long bountyId); |
| 21 | // 导入 List 类 |
| 22 | List<BountySubmission> getSubmissionsByBountyId(@Param("bountyId") Long bountyId); |
| 23 | } |
| 24 | |
| 25 | |