Commit 9d33e440 authored by 赵啸非's avatar 赵啸非

添加用户扩展xml

parent 0963be60
......@@ -204,8 +204,7 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
throw new AppException(String.format("区域不存在!区域编码:%s", areaCode));
}
List<SiteEntity> siteEntities = this.getCacheList();
List<SiteEntity> siteEntities = this.find(new SiteQuery());
for (SiteEntity siteEntity : siteEntities) {
boolean bool = getSite(areaCode,siteEntity.getAreaCode(), siteList, siteEntity);
if (bool) continue;
......
......@@ -90,15 +90,14 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
* 根据区域查询站点列表
*/
@PostMapping(value = "getFlatSitesByAreaCode")
public String getFlatSitesByAreaCode(@RequestParam(value = "areaCode")String areaCode) {
public String getFlatSitesByAreaCode(@RequestBody SiteEntity site) {
JSONObject jsonObject = new JSONObject();
Map<String, Object> model = new HashMap<>();
String busiDesc = "根据区域编码查询站点列表" + this.getModuleDesc();
try {
List<SiteEntity> siteEntityList = this.service.getFlatSitesByAreaCode(areaCode, getContext());
model.put(KEY_RESULT_DATA, siteEntityList);
List<SiteEntity> siteEntityList = this.service.getFlatSitesByAreaCode(site.getAreaCode(), getContext());
recordSysLog(request, busiDesc + " 【成功】");
jsonObject.put(KEY_RESULT_DATA, model);
jsonObject.put(KEY_RESULT_DATA, siteEntityList);
jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
jsonObject.put(KEY_RESULT_MSG, "查询站点列表成功!");
} catch (Exception e) {
......
......@@ -72,7 +72,7 @@ Accept: application/json
###站点列表
POST {{baseUrl}}/site/getFlatSitesByAreaCode?areaCode=510000000000
POST {{baseUrl}}/site/getFlatSitesByAreaCode
Authorization: {{authToken}}
Content-Type: application/json
......
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