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 4bbf1084
authored
Aug 07, 2018
by
谢明辉
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://192.168.9.26/platform/finance_serv
into develop
2 parents
02e5a422
96b175f3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
code/finance_serv/src/main/java/com/vion/financial/service/imp/AppendixServiceImpl.java
deploy/application.yml.in
deploy/deploy.sh
code/finance_serv/src/main/java/com/vion/financial/service/imp/AppendixServiceImpl.java
View file @
4bbf108
...
...
@@ -112,11 +112,11 @@ public class AppendixServiceImpl implements AppendixService {
appendix
.
setBusiness_table
(
appendixVo
.
getBusiness_table
());
String
suffix
=
appendix
.
getAppendix_name
().
substring
(
appendix
.
getAppendix_name
().
lastIndexOf
(
"."
)
+
1
);
appendix
.
setAppendix_type
(
suffix
);
appendix
.
setAppendix_url
(
financeConfig
.
getAppendurl
()+
multipartFile
.
getOriginalFilename
()
);
appendix
.
setAppendix_url
(
financeConfig
.
getAppendurl
()+
System
.
currentTimeMillis
()+
"."
+
suffix
);
addAppendix
(
appendix
);
list
.
add
(
appendix
);
InputStream
inputStream
=
multipartFile
.
getInputStream
();
File
file
=
new
File
(
financeConfig
.
getAppendsavepath
()+
multipartFile
.
getOriginalFilename
()
);
File
file
=
new
File
(
financeConfig
.
getAppendsavepath
()+
System
.
currentTimeMillis
()+
"."
+
suffix
);
OutputStream
os
=
new
FileOutputStream
(
file
);
byte
[]
read
=
new
byte
[
2048
];
int
off
=
0
;
...
...
deploy/application.yml.in
View file @
4bbf108
...
...
@@ -43,7 +43,7 @@ logging:
finance:
authurl: http://PH_AUTH_SERV_IP:20080/api/v1/auth/users
appendsavepath: /data/f
ace-web/www/static/pics/cache/finance
appendsavepath: /data/f
inance/
appendurl: http://PH_AUTH_SERV_IP:20080/static/pics/cache/finance/
#pagehelper:
# helperDialect: postgresql
...
...
deploy/deploy.sh
View file @
4bbf108
...
...
@@ -6,6 +6,8 @@ prj_name="finance_serv"
serv_port
=
19111
host_log_dir
=
/data/vion-data/
$cont_name
/logs
cont_log_dir
=
/data/vion-data/
$cont_name
/logs
host_appendix_path
=
/data/face-web/www/static/pics/cache/finance/
cont_appendix_path
=
/data/finance/
#cont_log_dir=/usr/local/tomcat/logs
echo
=============
env check
===============
...
...
@@ -32,7 +34,7 @@ echo ========== env check end ==============
echo
"delete old
$cont_name
container."
docker rm -f
$cont_name
echo
"docker run --name
$cont_name
--restart=always -d -p
$serv_port
:8080 -v
$host_log_dir
:
$cont_log_dir
192.168.9.26:5000/tomcat85_oraclejdk:latest"
docker run --name
$cont_name
--restart
=
always -d -p
$serv_port
:8080 -v
$host_log_dir
:
$cont_log_dir
192.168.9.26:5000/tomcat85_oraclejdk:latest
docker run --name
$cont_name
--restart
=
always -d -p
$serv_port
:8080 -v
$host_log_dir
:
$cont_log_dir
-v
$host_appendix_path
:
$cont_appendix_path
192.168.9.26:5000/tomcat85_oraclejdk:latest
echo
"cd
$script_dir
"
cd
$script_dir
...
...
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