Commit f3bbca0a authored by 赵建伟's avatar 赵建伟

update codes

parent 14c205ed
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
<workItem from="1592568026557" duration="772000" /> <workItem from="1592568026557" duration="772000" />
<workItem from="1593835574199" duration="4438000" /> <workItem from="1593835574199" duration="4438000" />
<workItem from="1594091429524" duration="3648000" /> <workItem from="1594091429524" duration="3648000" />
<workItem from="1594173992446" duration="408000" /> <workItem from="1594173992446" duration="1574000" />
</task> </task>
<servers /> <servers />
</component> </component>
......
...@@ -28,6 +28,8 @@ public class EmailServiceImpl implements EmailService { ...@@ -28,6 +28,8 @@ public class EmailServiceImpl implements EmailService {
private String filePath; private String filePath;
@Value("${proper.file.path}") @Value("${proper.file.path}")
private String properFilePath; private String properFilePath;
@Value("${proper.base.path}")
private String properBasePath;
@Autowired @Autowired
private JavaMailSender mailSender; private JavaMailSender mailSender;
private static final Logger logger = LoggerFactory.getLogger(EmailServiceImpl.class); private static final Logger logger = LoggerFactory.getLogger(EmailServiceImpl.class);
...@@ -37,7 +39,10 @@ public class EmailServiceImpl implements EmailService { ...@@ -37,7 +39,10 @@ public class EmailServiceImpl implements EmailService {
int rs = Constants.SUCCESS; int rs = Constants.SUCCESS;
String subject = ""; 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){ if(null != value){
subject = value; subject = value;
}else{ }else{
......
...@@ -37,8 +37,6 @@ public class ExcelServiceImpl implements ExcelService { ...@@ -37,8 +37,6 @@ public class ExcelServiceImpl implements ExcelService {
@Value("${excel.output.path}") @Value("${excel.output.path}")
private String filePath; private String filePath;
@Value("${proper.file.path}")
private String properFilePath;
private static final Logger logger = LoggerFactory.getLogger(ExcelServiceImpl.class); private static final Logger logger = LoggerFactory.getLogger(ExcelServiceImpl.class);
/** /**
......
...@@ -104,7 +104,7 @@ public class SparksqlServiceImpl implements SparksqlService { ...@@ -104,7 +104,7 @@ public class SparksqlServiceImpl implements SparksqlService {
String nameStr =fileName.replace(".sql",""); String nameStr =fileName.replace(".sql","");
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("Sheets属性文件目录为:{}",properPath);
String value = ProperUtils.getValue(properPath , nameStr); String value = ProperUtils.getValue(properPath , nameStr);
if(null != value){ if(null != value){
subject = value; subject = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment