Commit 25164454 by 熊付

【报表导出】

1 parent ac05818e
......@@ -285,8 +285,7 @@ public class ContractServiceImpl implements ContractService {
exportModel.setProvince_name((String)_map.get("name"));
}
}
financeConfig.setCityurl("http://192.168.9.162:20080/api/v1/codes/countries/0E229CD043/provinces/"+exportModel.getProvince()+"/cities");
String cityurl=financeConfig.getCityurl();
String cityurl=String.format(financeConfig.getCityurl(),exportModel.getProvince());
String city_results=HttpNetClient.doGet(cityurl, null);
Map map_cities=JavaBean2Json.Json2JavaBean(city_results, Map.class);
list_city=(List<Map>) map_cities.get("list_data");
......@@ -296,8 +295,7 @@ public class ContractServiceImpl implements ContractService {
exportModel.setCity_name((String)_map.get("name"));
}
}
financeConfig.setCountyurl("http://192.168.9.162:20080/api/v1/codes/countries/0E229CD043/provinces/"+exportModel.getProvince()+"/cities/"+exportModel.getCity()+"/counties");
String countyurl=financeConfig.getCountyurl();
String countyurl=String.format(financeConfig.getCountyurl(),exportModel.getProvince(),exportModel.getCity());
String county_results=HttpNetClient.doGet(countyurl, null);
Map map_ciunties=JavaBean2Json.Json2JavaBean(county_results, Map.class);
list_county=(List<Map>) map_ciunties.get("list_data");
......
......@@ -48,8 +48,8 @@ finance:
appendsavepath: /data/face-web/www/static/pics/cache/finance
appendurl: http://192.168.9.162:20080/static/pics/cache/finance/
provinceurl: http://192.168.9.162:20080/api/v1/codes/countries/0E229CD043/provinces
cityurl: http://192.168.9.162:20080/api/v1/codes/countries/0E229CD043/provinces/{$province_unid}/cities
countyurl: http://192.168.9.162:20080/api/v1/codes/countries/0E229CD043/provinces/{$province_unid}/cities/{$city_unid}/counties
cityurl: http://192.168.9.162:20080/api/v1/codes/countries/0E229CD043/provinces/%s/cities
countyurl: http://192.168.9.162:20080/api/v1/codes/countries/0E229CD043/provinces/%s/cities/%s/counties
#pagehelper:
# helperDialect: postgresql
# reasonable: true
......
......@@ -45,6 +45,9 @@ finance:
authurl: http://PH_AUTH_SERV_IP:20080/api/v1/auth/users
appendsavepath: /data/finance/
appendurl: http://PH_AUTH_SERV_IP:20080/static/pics/cache/finance/
provinceurl: http://PH_AUTH_SERV_IP:20080/api/v1/codes/countries/0E229CD043/provinces
cityurl: http://PH_AUTH_SERV_IP:20080/api/v1/codes/countries/0E229CD043/provinces/%s/cities
countyurl: http://PH_AUTH_SERV_IP:20080/api/v1/codes/countries/0E229CD043/provinces/%s/cities/%s/counties
#pagehelper:
# helperDialect: postgresql
# reasonable: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!