package com.doumee.biz.system.impl;
|
|
import com.doumee.biz.system.AreasBiz;
|
import com.doumee.dao.business.model.Areas;
|
import com.doumee.service.business.AreasService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
/**
|
* 区划信息业务封装实现
|
*
|
* @author rk
|
* @date 2026/04/10
|
*/
|
@Service
|
public class AreasBizImpl implements AreasBiz {
|
|
@Autowired
|
private AreasService areasService;
|
|
@Override
|
public Areas resolveArea(Integer areaId) {
|
if (areaId == null) {
|
return null;
|
}
|
// cacheData 中已为每条区县记录填充了 provinceId/provinceName/cityId/cityName
|
return areasService.findById(areaId);
|
}
|
|
}
|