package cn.exrick.xboot.modules.your.util;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@Api(description = "身份证判断出生城市的工具接口")
@RequestMapping("/xboot/city")
@Transactional
public class CityIdCardUtil {
@RequestMapping(value = "/getCity", method = RequestMethod.GET)
@ApiOperation(value = "通过id获取")
public static String getNativePlace(@RequestParam String cityIds) {
int nativePlaceCode = Integer.parseInt(cityIds);
int shengCode = nativePlaceCode / 10000;
int shiCode = nativePlaceCode / 100;
int quxianCode = nativePlaceCode;
String sheng = getNameString(shengCode);
String shi = getNameString(shiCode);
String quxian = getNameString(quxianCode);
String nativePlace = "";
if (sheng != null) {
nativePlace += sheng;
}
if (shi != null) {
nativePlace += shi;
}
if (quxian != null) {
nativePlace += quxian;
}
return nativePlace;
}
private static String getNameString(int code) {
switch (code) {
case 11:
return "北京市";
case 1101:
return "市辖区";
case 110101:
return "东城区";
case 110102:
return "西城区";
case 110105:
return "朝阳区";
case 110106:
return "丰台区";
case 110107:
return "石景山区";
case 110108:
return "海淀区";
case 110109:
return "门头沟区";
case 110111:
return "房山区";
case 110112:
return "通州区";
case 110113:
return "顺义区";
case 110114:
return "昌平区";
case 110115:
return "大兴区";
case 110116:
return "怀柔区";
case 110117:
return "平谷区";
case 1102:
return "县";
case 110228:
return "密云县";
case 110229:
return "延庆县";
case 12:
return "天津市";
case 1201:
return "市辖区";
case 120101:
return "和平区";
case 120102:
return "河东区";
case 120103:
return "河西区";
case 120104:
return "南开区";
case 120105:
return "河北区";
case 120106:
return "红桥区";
case 120110:
return "东丽区";
case 120111:
return "西青区";
case 120112:
return "津南区";
case 120113:
return "北辰区";
case 120114:
return "武清区";
case 120115:
return "宝坻区";
case 120116:
return "滨海新区";
case 1202:
return "县";
case 120221:
return "宁河县";
case 120223:
return "静海县";
case 120225:
return "蓟县";
case 13:
return "河北省";
case 1301:
return "石家庄市";
case 130101:
return "市辖区";
case 130102:
return "长安区";
case 130104:
return "桥西区";
case 130105:
return "新华区";
case 130107:
return "井陉矿区";
case 130108:
return "裕华区";
case 130109:
return "藁城区";
case 130110:
return "鹿泉区";
case 130111:
return "栾城区";
case 130121:
return "井陉县";
case 130123:
return "正定县";
case 130125:
return "行唐县";
case 130126:
return "灵寿县";
case 130127:
return "高邑县";
case 130128:
return "深泽县";
case 130129:
return "赞皇县";
case 130130:
return "无极县";
case 130131:
return "平山县";
case 130132:
return "元氏县";
case 130133:
return "赵县";
case 130183:
return "晋州市";
case 130184:
return "新乐市";
case 1302:
return "唐山市";
case 130201:
return "市辖区";
case 130202:
return "路南区";
case 130203:
return "路北区";
case 130204:
return "古冶区";
case 130205:
return "开平区";
case 130207:
return "丰南区";
case 130208:
return "丰润区";
case 130209:
return "曹妃甸区";
case 130223:
return "滦县";
case 130224:
return "滦南县";
case 130225:
return "乐亭县";
case 130227:
return "迁西县";
case 130229:
return "玉田县";
case 130281:
return "遵化市";
case 130283:
return "迁安市";
case 1303:
return "秦皇岛市";
case 130301:
return "市辖区";
case 130302:
return "海港区";
case 130303:
return "山海关区";
case 130304:
return "北戴河区";
case 130321:
return "青龙满族自治县";
case 130322:
return "昌黎县";
case 130323:
return "抚宁县";
case 130324:
return "卢龙县";
case 1304:
return "邯郸市";
case 130401:
return "市辖区";
case 130402:
return "邯山区";
case 130403:
return "丛台区";
case 130404:
return "复兴区";
case 130406:
return "峰峰矿区";
case 130421:
return "邯郸县";
case 130423:
return "临漳县";
case 130424:
return "成安县";
case 130425:
return "大名县";
case 130426:
return "涉县";
case 130427:
return "磁县";
case 130428:
return "肥乡县";
case 130429:
return "永年县";
case 130430:
return "邱县";
case 130431:
return "鸡泽县";
case 130432:
return "广平县";
case 130433:
return "馆陶县";
case 130434:
return "魏县";
case 130435:
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
基于Vue和SpringBoot,前端采用View UI组件库,后端集成MyBatisPlus连接MySQL数据库,采用Spring Security做权限控制。 整个系统分为系统基础、人事模块、后勤模块、基础档案 四大模块 系统基础包含角色权限控制、数据字典、菜单配置等等 人事模块包含登入用户、人事档案、岗位岗级、社保商保 后勤模块包含资产出入库,宿舍模块、水电通讯费 安装教程 1.前端使用VsCode打开front文件夹,控制台输入npm i 安装依赖 2.前端控制台输入npm run dev 运行(默认8080端口) 3.控制台cd到redis目录,运行以下命令 redis-server.exe redis.windows.conf 4.导入数据库(oa.sql) 5.使用idea导入back后端项目,maven方式导入,运行(默认1314端口)! 6运行项目,账号admin 密码123456
资源推荐
资源详情
资源评论
收起资源包目录
Java毕业设计基于SpringBoot的OA协同办公系统源码+数据库+项目文档 (1784个子文件)
.browserslistrc 21B
tree.btl 26KB
table.btl 26KB
tableIndex.btl 18KB
add.btl 9KB
edit.btl 9KB
treeController.btl 6KB
controller.btl 4KB
mpController.btl 3KB
serviceImpl.btl 3KB
entity.btl 3KB
plus.btl 2KB
service.btl 1KB
mplus.btl 1KB
mpServiceImpl.btl 886B
treeApi.btl 876B
dao.btl 715B
api.btl 635B
mapper.btl 327B
mpService.btl 326B
mapperXml.btl 225B
CHANGES 3KB
style.css 172KB
homestyle.css 172KB
bootstrap.min.css 118KB
bootstrap.min.css 118KB
bootstrap.min.css 118KB
bootstrap.css 118KB
bootstrap.min.css 98KB
ionicons.min.css 50KB
font-awesome.min.css 30KB
style-common.css 26KB
bootstrap-theme.min.css 23KB
bootstrap-theme.css 15KB
bootstrap-theme.min.css 13KB
style-editor.css 10KB
magnific-popup.css 9KB
owl.carousel.css 9KB
owl.carousel.css 9KB
style.css 8KB
ng-grid-2.0.7.min.css 7KB
flexslider.css 7KB
daterangepicker-bs3.css 5KB
editor.css 3KB
style.css 2KB
jasmine.css 2KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
activiti-admin-webfont.eot 5KB
loading3.gif 80KB
loading.gif 71KB
loading.gif 17KB
loading2.gif 13KB
vaptcha-loading.gif 1KB
nw-handle-dark.gif 839B
se-handle-dark.gif 838B
.gitignore 214B
.gitignore 23B
code-email.html 10KB
act-message-email.html 10KB
event-listeners-popup.html 10KB
form-properties-popup.html 9KB
modeler.html 8KB
execution-listeners-popup.html 8KB
editor.html 8KB
task-listeners-popup.html 7KB
index.html 7KB
index.html 5KB
fields-popup.html 4KB
out-parameters-popup.html 3KB
in-parameters-popup.html 3KB
signal-definitions-popup.html 3KB
assignment-popup.html 3KB
message-definitions-popup.html 2KB
subprocess-reference-popup.html 2KB
sequenceflow-order-popup.html 2KB
save-model.html 2KB
index.html 2KB
index.min.html 2KB
condition-expression-popup.html 1KB
stencil-item-template.html 1012B
unsaved-changes.html 1006B
feedback-popup.html 898B
select-shape.html 886B
text-popup.html 819B
assignment-display-template.html 796B
root-stencil-item-template.html 463B
message-property-write-template.html 275B
signal-property-write-template.html 268B
string-property-write-mode-template.html 239B
multiinstance-property-write-template.html 232B
default-value-display-template.html 231B
execution-listeners-display-template.html 209B
event-listeners-display-template.html 197B
form-properties-display-template.html 195B
out-parameters-display-template.html 192B
task-listeners-display-template.html 192B
in-parameters-display-template.html 189B
message-definitions-display-template.html 189B
共 1784 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
资源评论
程序员柳
- 粉丝: 6050
- 资源: 1123
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于python的高性能爬虫程序,使用了多线程+缓存+xpath实现的,这里以彼-岸图库为例,实现,仅用于学习交流
- 中分辨率成像光谱仪(MODIS)烧毁面积产品信息MODIS-C6-BA-User-Guide-1.2.pdf
- Screenshot_20240427_172613_com.huawei.browser.jpg
- 关于学习Python的相关资源网站链接及相关介绍.docx
- (HAL库)基于STM32F103C8T6的温控PID系统[Dht11、ESP8266、无线透传、L298N……]
- VoLTE高丢包优化指导书.xlsx
- Rust资源文件.zip
- 前后端分离实践:使用 React 和 Express 搭建完整登录注册流程
- gradle-publish-to-MavenLocal.zip
- 10份网络优化创新案例.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功