Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 25164454
authored
Aug 08, 2018
by
熊付
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【报表导出】
1 parent
ac05818e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
code/finance_serv/src/main/resources/application.yml
deploy/application.yml.in
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
View file @
2516445
...
...
@@ -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"
);
...
...
code/finance_serv/src/main/resources/application.yml
View file @
2516445
...
...
@@ -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
...
...
deploy/application.yml.in
View file @
2516445
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment