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

添加网关考勤绩效路由

parent 4d570bd2
...@@ -450,15 +450,18 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE ...@@ -450,15 +450,18 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
if (ObjectUtils.isEmpty(siteId)) { if (ObjectUtils.isEmpty(siteId)) {
throw new AppException("站点Id不能为空!"); throw new AppException("站点Id不能为空!");
} }
SiteEntity siteCache = this.getCache(siteId.toString()); SiteEntity siteCache = this.get(siteId);
if (ObjectUtils.isEmpty(siteCache)) { if (ObjectUtils.isEmpty(siteCache)) {
throw new AppException("站点不存在,siteId:" + siteId); throw new AppException("站点不存在,siteId:" + siteId);
} }
//siteList.add(siteCache); //siteList.add(siteCache);
AreaEntity areaEntity = areaService.getExtCache(siteCache.getAreaCode()); AreaEntity areaEntity = areaService.getExtCache(siteCache.getAreaCode());
if (ObjectUtils.isEmpty(areaEntity)) {
areaEntity = areaService.selectOne(new AreaQuery().areaCode(siteCache.getAreaCode()));
if (ObjectUtils.isEmpty(areaEntity)) { if (ObjectUtils.isEmpty(areaEntity)) {
throw new AppException(String.format("区域不存在!区域编码:%s", siteCache.getAreaCode())); throw new AppException(String.format("区域不存在!区域编码:%s", siteCache.getAreaCode()));
} }
}
String matchCode = siteCache.getAreaCode().replaceAll("(0)+$", ""); String matchCode = siteCache.getAreaCode().replaceAll("(0)+$", "");
SiteQuery siteQuery = new SiteQuery(); SiteQuery siteQuery = new SiteQuery();
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"baseUrl": "http://192.168.0.60:17211/base" "baseUrl": "http://192.168.0.60:17211/base"
}, },
"base-test": { "base-test": {
"baseUrl": "http://192.168.0.124:11078/base" "baseUrl": "http://192.168.0.98:11078/base"
}, },
"base-test-https": { "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