AreaDao.java 568 B

123456789101112131415161718192021
  1. package com.nokia.dao;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Mapper;
  4. import org.apache.ibatis.annotations.Select;
  5. import com.nokia.pojo.Area;
  6. @Mapper
  7. public interface AreaDao {
  8. @Select("select * from sqmdb_rpt.acl_area order by type_code, area_id")
  9. List<Area> getAll();
  10. @Select("select * from sqmdb_rpt.acl_area where parent_id = #{parentId} order by type_code, area_id")
  11. List<Area> getByParentId(int parent_id);
  12. @Select("select * from sqmdb_rpt.acl_area where area_id = #{areaId}")
  13. Area getByAreaId(int areaId);
  14. }