ArchiveMapper.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.gz.mapper.archive;
  2. import com.gz.dto.archive.ArchiveDTO;
  3. import com.gz.rvo.archive.ArchiveRVO;
  4. import com.gz.rvo.borrow.ArchiveBorrowListRVO;
  5. import com.gz.vo.archive.SearchArchiveVO;
  6. import org.apache.ibatis.annotations.Param;
  7. import org.apache.ibatis.annotations.Select;
  8. import tk.mybatis.mapper.common.Mapper;
  9. import java.util.List;
  10. /**
  11. * @description 档案Mapper
  12. * @author LiuChangLan
  13. * @since 2021/2/23 18:11
  14. */
  15. public interface ArchiveMapper extends Mapper<ArchiveDTO> {
  16. List<ArchiveRVO> searchList(SearchArchiveVO vo);
  17. /**
  18. * @description 查询当前件号
  19. * @author LiuChangLan
  20. * @since 2021/2/24 17:44
  21. */
  22. @Select("SELECT auto_increment FROM information_schema.tables where table_schema=\"guihua_archives\" and table_name=\"tab_archives\";")
  23. Integer selectCurrAutoIncrement();
  24. List<ArchiveBorrowListRVO> selectBorrowList(@Param("roleId") Integer roleId);
  25. Integer selectMaxJH(String mlCode);
  26. List<ArchiveDTO> selectRoleAll(Integer roleId);
  27. ArchiveDTO selectByRolePrimaryKey(Integer RoleId, Object id);
  28. }