You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
600 B

7 months ago
7 months ago
7 months ago
6 months ago
7 months ago
7 months ago
7 months ago
  1. package com.lh.mapper;
  2. import com.lh.bean.Voter;
  3. import org.apache.ibatis.annotations.Mapper;
  4. import org.apache.ibatis.annotations.Param;
  5. import java.util.List;
  6. @Mapper
  7. public interface VoterMapper {
  8. // 查询用户今日投票信息
  9. List<Voter> countVotesToday(@Param("jwcode") String jwcode);
  10. //插入投票记录
  11. void insertVote(@Param("jwcode") String jwcode, @Param("candidateJwcode") String candidateJwcode,@Param("name") String namne);
  12. //根据候选人的jwcode查询投票记录
  13. List<Voter> getVotesByCandidate(@Param("candidateJwcode") String candidateJwcode);
  14. }