Commit fcb4ca9c authored by 赵啸非's avatar 赵啸非

添加网关考勤绩效路由

parent 4d570bd2
......@@ -450,14 +450,17 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
if (ObjectUtils.isEmpty(siteId)) {
throw new AppException("站点Id不能为空!");
}
SiteEntity siteCache = this.getCache(siteId.toString());
SiteEntity siteCache = this.get(siteId);
if (ObjectUtils.isEmpty(siteCache)) {
throw new AppException("站点不存在,siteId:" + siteId);
}
//siteList.add(siteCache);
AreaEntity areaEntity = areaService.getExtCache(siteCache.getAreaCode());
if (ObjectUtils.isEmpty(areaEntity)) {
throw new AppException(String.format("区域不存在!区域编码:%s", siteCache.getAreaCode()));
areaEntity = areaService.selectOne(new AreaQuery().areaCode(siteCache.getAreaCode()));
if (ObjectUtils.isEmpty(areaEntity)) {
throw new AppException(String.format("区域不存在!区域编码:%s", siteCache.getAreaCode()));
}
}
String matchCode = siteCache.getAreaCode().replaceAll("(0)+$", "");
......
......@@ -6,7 +6,7 @@
"baseUrl": "http://192.168.0.60:17211/base"
},
"base-test": {
"baseUrl": "http://192.168.0.124:11078/base"
"baseUrl": "http://192.168.0.98:11078/base"
},
"base-test-https": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment