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
70e2e2bc
Commit
70e2e2bc
authored
Jul 11, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
efc66085
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
92 additions
and
63 deletions
+92
-63
workspace.xml
lib/java/bi-report-service/.idea/workspace.xml
+37
-21
EmailServiceImpl.java
...ei/data/gateway/server/service/impl/EmailServiceImpl.java
+53
-40
ExcelServiceImpl.java
...ei/data/gateway/server/service/impl/ExcelServiceImpl.java
+1
-1
EmailServiceTest.java
...om/gmei/data/gateway/server/service/EmailServiceTest.java
+1
-1
No files found.
lib/java/bi-report-service/.idea/workspace.xml
View file @
70e2e2bc
...
@@ -79,11 +79,11 @@
...
@@ -79,11 +79,11 @@
</component>
</component>
<component
name=
"RunAnythingCache"
>
<component
name=
"RunAnythingCache"
>
<option
name=
"myCommands"
>
<option
name=
"myCommands"
>
<command
value=
"mvn clean install -DskipTests"
/>
<command
value=
"mvn clean"
/>
<command
value=
"mvn clean"
/>
<command
value=
"mvn clean install -DskipTests"
/>
</option>
</option>
</component>
</component>
<component
name=
"RunManager"
selected=
"
Application.Test
"
>
<component
name=
"RunManager"
selected=
"
JUnit.EmailServiceTest.testSendAttachmentsMail
"
>
<configuration
name=
"ExcelServiceImpl"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"ExcelServiceImpl"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.gmei.data.gateway.server.service.impl.ExcelServiceImpl"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.gmei.data.gateway.server.service.impl.ExcelServiceImpl"
/>
<module
name=
"service-server"
/>
<module
name=
"service-server"
/>
...
@@ -176,10 +176,10 @@
...
@@ -176,10 +176,10 @@
</configuration>
</configuration>
<recent_temporary>
<recent_temporary>
<list>
<list>
<item
itemvalue=
"JUnit.EmailServiceTest.testSendAttachmentsMail"
/>
<item
itemvalue=
"Application.Test"
/>
<item
itemvalue=
"Application.Test"
/>
<item
itemvalue=
"JUnit.ExcelServiceTest.testGenExcel"
/>
<item
itemvalue=
"JUnit.ExcelServiceTest.testGenExcel"
/>
<item
itemvalue=
"Application.ExcelServiceImpl"
/>
<item
itemvalue=
"Application.ExcelServiceImpl"
/>
<item
itemvalue=
"JUnit.EmailServiceTest.testSendAttachmentsMail"
/>
<item
itemvalue=
"Spring Boot.ServiceServerApplication"
/>
<item
itemvalue=
"Spring Boot.ServiceServerApplication"
/>
</list>
</list>
</recent_temporary>
</recent_temporary>
...
@@ -215,45 +215,60 @@
...
@@ -215,45 +215,60 @@
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
</state>
<state
x=
"773"
y=
"303"
key=
"#com.intellij.ide.util.MemberChooser/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1593835959317"
/>
<state
x=
"773"
y=
"303"
key=
"#com.intellij.ide.util.MemberChooser/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1593835959317"
/>
<state
width=
"1878"
height=
"
313"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1594454800942
"
>
<state
width=
"1878"
height=
"
693"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1594459289785
"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
</state>
<state
width=
"1878"
height=
"
313"
key=
"GridCell.Tab.0.bottom/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594454800942
"
/>
<state
width=
"1878"
height=
"
693"
key=
"GridCell.Tab.0.bottom/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594459289785
"
/>
<state
width=
"1878"
height=
"243"
key=
"GridCell.Tab.0.bottom/1752.1200.1920.1151/0.22.1920.1178/1920.120.1920.1080@1752.1200.1920.1151"
timestamp=
"1590742520783"
/>
<state
width=
"1878"
height=
"243"
key=
"GridCell.Tab.0.bottom/1752.1200.1920.1151/0.22.1920.1178/1920.120.1920.1080@1752.1200.1920.1151"
timestamp=
"1590742520783"
/>
<state
width=
"1878"
height=
"
313"
key=
"GridCell.Tab.0.center"
timestamp=
"1594454800941
"
>
<state
width=
"1878"
height=
"
693"
key=
"GridCell.Tab.0.center"
timestamp=
"1594459289783
"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
</state>
<state
width=
"1878"
height=
"
313"
key=
"GridCell.Tab.0.center/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594454800941
"
/>
<state
width=
"1878"
height=
"
693"
key=
"GridCell.Tab.0.center/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594459289783
"
/>
<state
width=
"1878"
height=
"243"
key=
"GridCell.Tab.0.center/1752.1200.1920.1151/0.22.1920.1178/1920.120.1920.1080@1752.1200.1920.1151"
timestamp=
"1590742520781"
/>
<state
width=
"1878"
height=
"243"
key=
"GridCell.Tab.0.center/1752.1200.1920.1151/0.22.1920.1178/1920.120.1920.1080@1752.1200.1920.1151"
timestamp=
"1590742520781"
/>
<state
width=
"1878"
height=
"
313"
key=
"GridCell.Tab.0.left"
timestamp=
"1594454800940
"
>
<state
width=
"1878"
height=
"
693"
key=
"GridCell.Tab.0.left"
timestamp=
"1594459289782
"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
</state>
<state
width=
"1878"
height=
"
313"
key=
"GridCell.Tab.0.left/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594454800940
"
/>
<state
width=
"1878"
height=
"
693"
key=
"GridCell.Tab.0.left/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594459289782
"
/>
<state
width=
"1878"
height=
"243"
key=
"GridCell.Tab.0.left/1752.1200.1920.1151/0.22.1920.1178/1920.120.1920.1080@1752.1200.1920.1151"
timestamp=
"1590742520781"
/>
<state
width=
"1878"
height=
"243"
key=
"GridCell.Tab.0.left/1752.1200.1920.1151/0.22.1920.1178/1920.120.1920.1080@1752.1200.1920.1151"
timestamp=
"1590742520781"
/>
<state
width=
"1878"
height=
"
313"
key=
"GridCell.Tab.0.right"
timestamp=
"1594454800942
"
>
<state
width=
"1878"
height=
"
693"
key=
"GridCell.Tab.0.right"
timestamp=
"1594459289784
"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
</state>
<state
width=
"1878"
height=
"
313"
key=
"GridCell.Tab.0.right/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594454800942
"
/>
<state
width=
"1878"
height=
"
693"
key=
"GridCell.Tab.0.right/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594459289784
"
/>
<state
width=
"1878"
height=
"243"
key=
"GridCell.Tab.0.right/1752.1200.1920.1151/0.22.1920.1178/1920.120.1920.1080@1752.1200.1920.1151"
timestamp=
"1590742520782"
/>
<state
width=
"1878"
height=
"243"
key=
"GridCell.Tab.0.right/1752.1200.1920.1151/0.22.1920.1178/1920.120.1920.1080@1752.1200.1920.1151"
timestamp=
"1590742520782"
/>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.bottom"
timestamp=
"159
167134752
7"
>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.bottom"
timestamp=
"159
445925097
7"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
</state>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.bottom/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"159
167134752
7"
/>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.bottom/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"159
445925097
7"
/>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.center"
timestamp=
"159
1671347526
"
>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.center"
timestamp=
"159
4459250975
"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
</state>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.center/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"159
1671347526
"
/>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.center/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"159
4459250975
"
/>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.left"
timestamp=
"159
167134752
5"
>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.left"
timestamp=
"159
445925097
5"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
</state>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.left/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"159
167134752
5"
/>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.left/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"159
445925097
5"
/>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.right"
timestamp=
"159
167134752
6"
>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.right"
timestamp=
"159
445925097
6"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
</state>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.right/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"159
167134752
6"
/>
<state
width=
"1878"
height=
"386"
key=
"GridCell.Tab.1.right/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"159
445925097
6"
/>
<state
x=
"62
5"
y=
"273"
width=
"670"
height=
"675"
key=
"run.anything.popup"
timestamp=
"1594454130020
"
>
<state
x=
"62
6"
y=
"343"
width=
"667"
height=
"486"
key=
"find.popup"
timestamp=
"1594455372378
"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
</state>
<state
x=
"625"
y=
"273"
width=
"670"
height=
"675"
key=
"run.anything.popup/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594454130020"
/>
<state
x=
"626"
y=
"343"
width=
"667"
height=
"486"
key=
"find.popup/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594455372378"
/>
<state
x=
"625"
y=
"273"
width=
"670"
height=
"675"
key=
"run.anything.popup"
timestamp=
"1594459250950"
>
<screen
x=
"0"
y=
"22"
width=
"1920"
height=
"1129"
/>
</state>
<state
x=
"625"
y=
"273"
width=
"670"
height=
"675"
key=
"run.anything.popup/0.22.1920.1129/-981.-1200.1920.1200/939.-1080.1920.1080@0.22.1920.1129"
timestamp=
"1594459250950"
/>
</component>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
<breakpoints>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
file://$PROJECT_DIR$/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/EmailServiceImpl.java
</url>
<line>
125
</line>
<option
name=
"timeStamp"
value=
"9"
/>
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
</component>
</project>
</project>
\ No newline at end of file
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/EmailServiceImpl.java
View file @
70e2e2bc
...
@@ -10,19 +10,18 @@ import org.slf4j.LoggerFactory;
...
@@ -10,19 +10,18 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.core.io.FileSystemResource
;
import
org.springframework.core.io.FileSystemResource
;
import
org.springframework.mail.MailSendException
;
import
org.springframework.mail.javamail.JavaMailSender
;
import
org.springframework.mail.javamail.JavaMailSender
;
import
org.springframework.mail.javamail.MimeMessageHelper
;
import
org.springframework.mail.javamail.MimeMessageHelper
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
javax.mail.Address
;
import
javax.mail.Address
;
import
javax.mail.MessagingException
;
import
javax.mail.SendFailedException
;
import
javax.mail.SendFailedException
;
import
javax.mail.internet.InternetAddress
;
import
javax.mail.internet.MimeMessage
;
import
javax.mail.internet.MimeMessage
;
import
java.io.File
;
import
java.io.File
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
@Component
@Component
...
@@ -43,12 +42,45 @@ public class EmailServiceImpl implements EmailService {
...
@@ -43,12 +42,45 @@ public class EmailServiceImpl implements EmailService {
private
JavaMailSender
mailSender
;
private
JavaMailSender
mailSender
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
EmailServiceImpl
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
EmailServiceImpl
.
class
);
private
void
sendAttachMail
(
String
[]
toUsers
,
String
[]
ccUsers
,
String
name
)
throws
Exception
{
private
List
<
String
>
getInvalidAddresses
(
Throwable
throwable
)
{
List
<
String
>
rsList
=
new
ArrayList
<
String
>();
if
(
throwable
==
null
)
{
return
rsList
;
}
if
(
throwable
instanceof
MailSendException
)
{
Exception
[]
exceptions
=
((
MailSendException
)
throwable
).
getMessageExceptions
();
for
(
Exception
exception
:
exceptions
)
{
if
(
exception
instanceof
SendFailedException
)
{
rsList
=
getStringAddress
(((
SendFailedException
)
exception
).
getInvalidAddresses
());
}
}
}
if
(
throwable
instanceof
SendFailedException
)
{
rsList
=
getStringAddress
(((
SendFailedException
)
throwable
).
getInvalidAddresses
());
}
return
rsList
;
}
private
List
<
String
>
getStringAddress
(
Address
[]
addresses
)
{
List
<
String
>
invalid
=
new
ArrayList
<
String
>();
for
(
Address
a
:
addresses
)
{
String
address
=
((
InternetAddress
)
a
).
getAddress
();
if
(
address
!=
null
&&
StringUtils
.
isNotEmpty
(
address
))
{
invalid
.
add
(
address
);
}
}
return
invalid
;
}
@Override
public
int
sendAttachmentsMail
(
String
to
,
String
cc
,
String
name
){
String
[]
toUsers
=
to
.
split
(
","
);
String
[]
ccUsers
=
cc
.
split
(
","
);
try
{
String
subject
=
""
;
String
subject
=
""
;
String
properPath
=
properBasePath
+
"pm/"
+
name
+
"/en-cn.properties"
;
String
properPath
=
properBasePath
+
"pm/"
+
name
+
"/en-cn.properties"
;
logger
.
info
(
"邮件主题属性文件目录为:{}"
,
properPath
);
logger
.
info
(
"邮件主题属性文件目录为:{}"
,
properPath
);
String
value
=
ProperUtils
.
getValue
(
properPath
,
name
);
String
value
=
ProperUtils
.
getValue
(
properPath
,
name
);
//String value = ProperUtils.getValue(properFilePath, name);
if
(
null
!=
value
){
if
(
null
!=
value
){
subject
=
value
;
subject
=
value
;
}
else
{
}
else
{
...
@@ -69,49 +101,30 @@ public class EmailServiceImpl implements EmailService {
...
@@ -69,49 +101,30 @@ public class EmailServiceImpl implements EmailService {
String
fileNameSrc
=
name
+
"-"
+
DateUtils
.
getYesterdayDateSimpleStr
()
+
".xlsx"
;
String
fileNameSrc
=
name
+
"-"
+
DateUtils
.
getYesterdayDateSimpleStr
()
+
".xlsx"
;
FileSystemResource
file
=
new
FileSystemResource
(
new
File
(
filePath
+
fileNameSrc
));
FileSystemResource
file
=
new
FileSystemResource
(
new
File
(
filePath
+
fileNameSrc
));
helper
.
addAttachment
(
fileName
,
file
);
helper
.
addAttachment
(
fileName
,
file
);
//helper.addAttachment(MimeUtility.encodeWord(file.getFilename(),"utf-8","B"), file);
mailSender
.
send
(
message
);
mailSender
.
send
(
message
);
}
}
catch
(
Throwable
e
){
String
validToUsers
=
""
;
@Override
List
<
String
>
invalid
=
getInvalidAddresses
(
e
);
public
int
sendAttachmentsMail
(
String
to
,
String
cc
,
String
name
){
for
(
String
toUser
:
toUsers
){
String
[]
toUsers
=
to
.
split
(
","
);
if
(
invalid
.
contains
(
toUser
)){
String
[]
ccUsers
=
cc
.
split
(
","
);
logger
.
warn
(
"剔除无效接收人邮箱地址:{}"
,
toUser
);
try
{
sendAttachMail
(
toUsers
,
ccUsers
,
name
);
logger
.
info
(
"带附件的邮件已经发送。"
);
}
catch
(
SendFailedException
sendFailedException
)
{
Set
<
String
>
failMails
=
new
HashSet
<
String
>();
for
(
Address
address:
sendFailedException
.
getInvalidAddresses
()){
failMails
.
add
(
address
.
toString
().
trim
());
}
List
<
String
>
validToMails
=
new
ArrayList
<
String
>();
for
(
String
toMail
:
toUsers
){
if
(
StringUtils
.
isBlank
(
toMail
)||
failMails
.
contains
(
toMail
.
trim
())){
logger
.
warn
(
"剔除无效邮箱地址:{}"
,
toMail
);
continue
;
continue
;
}
}
validTo
Mails
.
add
(
toMail
)
;
validTo
Users
=
validToUsers
+
toUser
+
","
;
}
}
List
<
String
>
validCcMails
=
new
ArrayList
<
String
>()
;
String
validCcUsers
=
""
;
for
(
String
cc
Mail
:
ccUsers
){
for
(
String
cc
User
:
ccUsers
){
if
(
StringUtils
.
isBlank
(
ccMail
)||
failMails
.
contains
(
ccMail
.
trim
()
)){
if
(
invalid
.
contains
(
ccUser
)){
logger
.
warn
(
"剔除无效
邮箱地址:{}"
,
ccMail
);
logger
.
warn
(
"剔除无效
抄送人邮箱地址:{}"
,
ccUser
);
continue
;
continue
;
}
}
validCc
Mails
.
add
(
ccMail
)
;
validCc
Users
=
validCcUsers
+
ccUser
+
","
;
}
}
try
{
if
(
invalid
.
size
()
>
0
)
{
sendAttachMail
((
String
[])
validToMails
.
toArray
(),(
String
[])
validCcMails
.
toArray
(),
name
);
validToUsers
=
validToUsers
.
substring
(
0
,
validToUsers
.
length
()
-
1
);
}
catch
(
Exception
e
){
validCcUsers
=
validCcUsers
.
substring
(
0
,
validCcUsers
.
length
()
-
1
);
e
.
printStackTrace
();
sendAttachmentsMail
(
validToUsers
,
validCcUsers
,
name
);
logger
.
error
(
e
.
getMessage
());
return
Constants
.
FAIL
;
}
}
}
catch
(
Exception
e
){
e
.
printStackTrace
();
logger
.
error
(
e
.
getMessage
());
return
Constants
.
FAIL
;
}
}
return
Constants
.
SUCCESS
;
return
Constants
.
SUCCESS
;
}
}
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/ExcelServiceImpl.java
View file @
70e2e2bc
...
@@ -156,7 +156,7 @@ public class ExcelServiceImpl implements ExcelService {
...
@@ -156,7 +156,7 @@ public class ExcelServiceImpl implements ExcelService {
}
}
}
else
{
}
else
{
cell
.
setCellValue
(
""
);
cell
.
setCellValue
(
""
);
logger
.
error
(
"the value is null!"
);
logger
.
warn
(
"the value is null!"
);
}
}
}
}
...
...
lib/java/bi-report-service/service-server/src/test/java/com/gmei/data/gateway/server/service/EmailServiceTest.java
View file @
70e2e2bc
...
@@ -21,7 +21,7 @@ public class EmailServiceTest {
...
@@ -21,7 +21,7 @@ public class EmailServiceTest {
// @Test
// @Test
// public void testSendAttachmentsMail() {
// public void testSendAttachmentsMail() {
// emailService.sendAttachmentsMail("zhaojianwei@igengmei.com
","jianweizhao@yeah.net
","demo");
// emailService.sendAttachmentsMail("zhaojianwei@igengmei.com
,zjw@igengmei.com","jianweizhao@yeah.net,aa@bb.com
","demo");
// }
// }
//
//
// @Test
// @Test
...
...
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