OutUserMapper.java 984 B

12345678910111213141516171819202122232425262728
  1. package com.bofeng.dao;
  2. import com.baomidou.mybatisplus.mapper.BaseMapper;
  3. import com.bofeng.entity.OutUser;
  4. import com.yvan.PageDb;
  5. import org.apache.ibatis.annotations.Mapper;
  6. import org.apache.ibatis.annotations.Param;
  7. import org.apache.ibatis.annotations.Select;
  8. import org.springframework.stereotype.Repository;
  9. import java.util.List;
  10. import java.util.Map;
  11. @Mapper
  12. @Repository
  13. public interface OutUserMapper extends BaseMapper<OutUser> {
  14. @Select("SELECT * FROM out_user WHERE name = #{name} and phone = #{phone} and start_date <= curdate() and end_date >= curdate()")
  15. OutUser getOutUserByPhone(@Param("name") String name, @Param("phone") Long phone);
  16. @Select("SELECT * FROM out_user WHERE phone = #{phone} and start_date <= curdate() and end_date >= curdate()")
  17. OutUser queryOutUserByPhone(@Param("phone") Long phone);
  18. List<OutUser> getAllOutUser(PageDb pageDb, Map<String, Object> queryParam);
  19. Integer deleteOutUsers(@Param("ids") String ids);
  20. }