123456789101112131415161718192021222324 |
- package com.nokia.dao;
- import com.baomidou.mybatisplus.core.mapper.BaseMapper;
- import com.nokia.pojo.Area;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Select;
- import java.util.List;
- @Mapper
- public interface AreaDao extends BaseMapper<Area> {
- @Select("select * from sqmdb_rpt.acl_area order by type_code, area_id")
- List<Area> getAll();
- @Select("select * from sqmdb_rpt.acl_area where parent_id = #{parentId} order by type_code, area_id")
- List<Area> getByParentId(int parent_id);
- @Select("select * from sqmdb_rpt.acl_area where area_id = #{areaId}")
- Area getByAreaId(int areaId);
- @Select("select * from sqmdb_rpt.acl_area where parent_id = #{cityId} and type_code = 3 order by type_code, area_id")
- List<Area> getAreasByCityId(Integer cityId);
- }
|