CityDao.java 587 B

12345678910111213141516
  1. package com.nokia.dao;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.nokia.pojo.CityEntity;
  4. import com.nokia.vo.FlowOrgVo;
  5. import org.apache.ibatis.annotations.Mapper;
  6. import org.apache.ibatis.annotations.Select;
  7. @Mapper
  8. public interface CityDao extends BaseMapper<CityEntity> {
  9. @Select("select * from sqmdb_rpt.acl_city where city_id = #{cityId}")
  10. CityEntity findByCityId(Integer cityId);
  11. @Select("select city_id as org_id, city_name_zh as org_name from sqmdb_rpt.acl_city where city_id = #{cityId}")
  12. FlowOrgVo findOrgByCityId(Integer cityId);
  13. }