package com.xiaopeng.operation.mapper;
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.xiaopeng.api.model.operation.XpRegion;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 省市区三级联动 Mapper 接口
|
* </p>
|
*
|
* @author liu
|
* @since 2026-02-03
|
*/
|
public interface XpRegionMapper extends BaseMapper<XpRegion> {
|
|
/**
|
* 查询缺失的区级数据
|
* @return 待同步区级数据
|
*/
|
List<XpRegion> selectMissingDistrictFromRegionAll();
|
|
/**
|
* 查询可参与同步的市级总数
|
* @return 市级总数
|
*/
|
Long countCityForDistrictSync();
|
|
/**
|
* 查询候选区级总数(无论是否已存在)
|
* @return 候选区级总数
|
*/
|
Long countCandidateDistrictForSync();
|
|
}
|