Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data
bi-report
Commits
b4873e4b
Commit
b4873e4b
authored
May 01, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upadte codes
parent
c24450ea
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
20 deletions
+21
-20
workspace.xml
.idea/workspace.xml
+1
-1
workspace.xml
lib/java/bi-report-service/.idea/workspace.xml
+9
-9
EmailServiceImpl.java
...ei/data/gateway/server/service/impl/EmailServiceImpl.java
+2
-1
ExcelServiceImpl.java
...ei/data/gateway/server/service/impl/ExcelServiceImpl.java
+8
-8
application.yml
...service/service-server/src/main/resources/application.yml
+1
-1
No files found.
.idea/workspace.xml
View file @
b4873e4b
...
...
@@ -120,7 +120,7 @@
<workItem
from=
"1588154352798"
duration=
"195000"
/>
<workItem
from=
"1588220085338"
duration=
"7993000"
/>
<workItem
from=
"1588248522289"
duration=
"2820000"
/>
<workItem
from=
"1588344251422"
duration=
"1
165
000"
/>
<workItem
from=
"1588344251422"
duration=
"1
726
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"add init codes."
>
<created>
1587723565207
</created>
...
...
lib/java/bi-report-service/.idea/workspace.xml
View file @
b4873e4b
...
...
@@ -216,7 +216,7 @@
<workItem
from=
"1588148891822"
duration=
"2318000"
/>
<workItem
from=
"1588152718016"
duration=
"1463000"
/>
<workItem
from=
"1588154601852"
duration=
"28557000"
/>
<workItem
from=
"1588344252163"
duration=
"
2588
000"
/>
<workItem
from=
"1588344252163"
duration=
"
3149
000"
/>
</task>
<servers
/>
</component>
...
...
@@ -285,28 +285,28 @@
</state>
<state
x=
"553"
y=
"153"
key=
"CommitChangelistDialog2/246.1080.1920.1151/0.22.1920.1058@0.22.1920.1058"
timestamp=
"1584956237641"
/>
<state
x=
"784"
y=
"1223"
key=
"CommitChangelistDialog2/246.1080.1920.1151/0.22.1920.1058@246.1080.1920.1151"
timestamp=
"1588154132365"
/>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.bottom"
timestamp=
"158834
5465517
"
>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.bottom"
timestamp=
"158834
7196873
"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.bottom/0.22.1920.1129@0.22.1920.1129"
timestamp=
"158834
5465517
"
/>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.bottom/0.22.1920.1129@0.22.1920.1129"
timestamp=
"158834
7196873
"
/>
<state
width=
"1878"
height=
"321"
key=
"GridCell.Tab.0.bottom/246.1080.1920.1151/0.22.1920.1058@0.22.1920.1058"
timestamp=
"1584688137007"
/>
<state
width=
"1878"
height=
"244"
key=
"GridCell.Tab.0.bottom/246.1080.1920.1151/0.22.1920.1058@246.1080.1920.1151"
timestamp=
"1588242806115"
/>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.center"
timestamp=
"158834
5465516
"
>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.center"
timestamp=
"158834
7196872
"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.center/0.22.1920.1129@0.22.1920.1129"
timestamp=
"158834
5465516
"
/>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.center/0.22.1920.1129@0.22.1920.1129"
timestamp=
"158834
7196872
"
/>
<state
width=
"1878"
height=
"321"
key=
"GridCell.Tab.0.center/246.1080.1920.1151/0.22.1920.1058@0.22.1920.1058"
timestamp=
"1584688137005"
/>
<state
width=
"1878"
height=
"244"
key=
"GridCell.Tab.0.center/246.1080.1920.1151/0.22.1920.1058@246.1080.1920.1151"
timestamp=
"1588242806111"
/>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.left"
timestamp=
"158834
5465515
"
>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.left"
timestamp=
"158834
7196871
"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.left/0.22.1920.1129@0.22.1920.1129"
timestamp=
"158834
5465515
"
/>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.left/0.22.1920.1129@0.22.1920.1129"
timestamp=
"158834
7196871
"
/>
<state
width=
"1878"
height=
"321"
key=
"GridCell.Tab.0.left/246.1080.1920.1151/0.22.1920.1058@0.22.1920.1058"
timestamp=
"1584688137005"
/>
<state
width=
"1878"
height=
"244"
key=
"GridCell.Tab.0.left/246.1080.1920.1151/0.22.1920.1058@246.1080.1920.1151"
timestamp=
"1588242806108"
/>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.right"
timestamp=
"158834
5465517
"
>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.right"
timestamp=
"158834
7196873
"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.right/0.22.1920.1129@0.22.1920.1129"
timestamp=
"158834
5465517
"
/>
<state
width=
"1878"
height=
"238"
key=
"GridCell.Tab.0.right/0.22.1920.1129@0.22.1920.1129"
timestamp=
"158834
7196873
"
/>
<state
width=
"1878"
height=
"321"
key=
"GridCell.Tab.0.right/246.1080.1920.1151/0.22.1920.1058@0.22.1920.1058"
timestamp=
"1584688137006"
/>
<state
width=
"1878"
height=
"244"
key=
"GridCell.Tab.0.right/246.1080.1920.1151/0.22.1920.1058@246.1080.1920.1151"
timestamp=
"1588242806112"
/>
<state
width=
"1878"
height=
"319"
key=
"GridCell.Tab.1.bottom"
timestamp=
"1588216559611"
>
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/EmailServiceImpl.java
View file @
b4873e4b
...
...
@@ -61,7 +61,8 @@ public class EmailServiceImpl implements EmailService {
helper
.
setBcc
(
bcc
);
}
String
fileName
=
subject
+
"-"
+
DateUtils
.
getCurrentDateSimpleStr
()
+
".xlsx"
;
FileSystemResource
file
=
new
FileSystemResource
(
new
File
(
filePath
+
fileName
));
String
fileNameSrc
=
name
+
"-"
+
DateUtils
.
getCurrentDateSimpleStr
()
+
".xlsx"
;
FileSystemResource
file
=
new
FileSystemResource
(
new
File
(
filePath
+
fileNameSrc
));
helper
.
addAttachment
(
fileName
,
file
);
mailSender
.
send
(
message
);
logger
.
info
(
"带附件的邮件已经发送。"
);
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/ExcelServiceImpl.java
View file @
b4873e4b
...
...
@@ -60,15 +60,15 @@ public class ExcelServiceImpl implements ExcelService {
rs
=
Constants
.
FAIL
;
logger
.
error
(
"Error!"
);
}
String
subject
=
""
;
String
value
=
ProperUtils
.
getValue
(
properFilePath
,
name
);
if
(
null
!=
value
){
subject
=
value
;
}
else
{
subject
=
name
;
}
//
String subject = "";
//
String value = ProperUtils.getValue(properFilePath, name);
//
if(null != value){
//
subject = value;
//
}else{
//
subject = name;
//
}
try
{
FileOutputStream
out
=
new
FileOutputStream
(
filePath
+
subject
+
"-"
+
DateUtils
.
getCurrentDateSimpleStr
()
+
".xlsx"
);
FileOutputStream
out
=
new
FileOutputStream
(
filePath
+
name
+
"-"
+
DateUtils
.
getCurrentDateSimpleStr
()
+
".xlsx"
);
wb
.
write
(
out
);
out
.
close
();
}
catch
(
IOException
e
)
{
...
...
lib/java/bi-report-service/service-server/src/main/resources/application.yml
View file @
b4873e4b
...
...
@@ -29,7 +29,7 @@ sql:
#---excel config---
excel
:
output
:
path
:
/
tmp
/
path
:
/
data/bi-report/result
/
#---log config---
logging
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment