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
f3bbca0a
Commit
f3bbca0a
authored
Jul 08, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
14c205ed
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
workspace.xml
lib/java/bi-report-service/.idea/workspace.xml
+1
-1
EmailServiceImpl.java
...ei/data/gateway/server/service/impl/EmailServiceImpl.java
+6
-1
ExcelServiceImpl.java
...ei/data/gateway/server/service/impl/ExcelServiceImpl.java
+0
-2
SparksqlServiceImpl.java
...data/gateway/server/service/impl/SparksqlServiceImpl.java
+1
-1
No files found.
lib/java/bi-report-service/.idea/workspace.xml
View file @
f3bbca0a
...
...
@@ -199,7 +199,7 @@
<workItem
from=
"1592568026557"
duration=
"772000"
/>
<workItem
from=
"1593835574199"
duration=
"4438000"
/>
<workItem
from=
"1594091429524"
duration=
"3648000"
/>
<workItem
from=
"1594173992446"
duration=
"
408
000"
/>
<workItem
from=
"1594173992446"
duration=
"
1574
000"
/>
</task>
<servers
/>
</component>
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/EmailServiceImpl.java
View file @
f3bbca0a
...
...
@@ -28,6 +28,8 @@ public class EmailServiceImpl implements EmailService {
private
String
filePath
;
@Value
(
"${proper.file.path}"
)
private
String
properFilePath
;
@Value
(
"${proper.base.path}"
)
private
String
properBasePath
;
@Autowired
private
JavaMailSender
mailSender
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
EmailServiceImpl
.
class
);
...
...
@@ -37,7 +39,10 @@ public class EmailServiceImpl implements EmailService {
int
rs
=
Constants
.
SUCCESS
;
String
subject
=
""
;
String
value
=
ProperUtils
.
getValue
(
properFilePath
,
name
);
String
properPath
=
properBasePath
+
"pm/"
+
name
+
"/en-cn.properties"
;
logger
.
info
(
"邮件主题属性文件目录为:{}"
,
properPath
);
String
value
=
ProperUtils
.
getValue
(
properPath
,
name
);
//String value = ProperUtils.getValue(properFilePath, name);
if
(
null
!=
value
){
subject
=
value
;
}
else
{
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/ExcelServiceImpl.java
View file @
f3bbca0a
...
...
@@ -37,8 +37,6 @@ public class ExcelServiceImpl implements ExcelService {
@Value
(
"${excel.output.path}"
)
private
String
filePath
;
@Value
(
"${proper.file.path}"
)
private
String
properFilePath
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ExcelServiceImpl
.
class
);
/**
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/SparksqlServiceImpl.java
View file @
f3bbca0a
...
...
@@ -104,7 +104,7 @@ public class SparksqlServiceImpl implements SparksqlService {
String
nameStr
=
fileName
.
replace
(
".sql"
,
""
);
String
subject
=
""
;
String
properPath
=
properBasePath
+
"pm/"
+
name
+
"/en-cn.properties"
;
logger
.
info
(
"属性文件目录为:{}"
,
properPath
);
logger
.
info
(
"
Sheets
属性文件目录为:{}"
,
properPath
);
String
value
=
ProperUtils
.
getValue
(
properPath
,
nameStr
);
if
(
null
!=
value
){
subject
=
value
;
...
...
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