Commit 4490d7d0 by 翁国栋

禅道id--

395、在合同证照当中添加一个导出合同证照的功能
parent 4d7dbfd6
...@@ -593,6 +593,10 @@ public class OSSUtil { ...@@ -593,6 +593,10 @@ public class OSSUtil {
OSSObject ossObject; OSSObject ossObject;
String Suffix; String Suffix;
try { try {
File folder = new File(zipPath);
if(!folder.exists()&& !folder .isDirectory()){
folder.mkdirs();
}
fos = new FileOutputStream(zipPath+fileName); fos = new FileOutputStream(zipPath+fileName);
zos = new ZipOutputStream(fos); zos = new ZipOutputStream(fos);
OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret); OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
......
...@@ -26,12 +26,12 @@ spring: ...@@ -26,12 +26,12 @@ spring:
datasource: datasource:
# username: root # username: root
# password: youlingHR73! # password: youlingHR73!
username: youling8timer username: root
password: (!0YouLing8Timer0!) password: H0YouLing8T-imer0LKjhG193*
# username: tang # username: tang
# password: Tang123456! # password: Tang123456!
# url: jdbc:mysql://120.24.172.51:3306/youlingrc_tang?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL # url: jdbc:mysql://120.24.172.51:3306/youlingrc_tang?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
url: jdbc:mysql://test-8timer-api.youlingrc.com/8timer_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL url: jdbc:mysql://120.78.162.177:3306/8timer_20210904?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://192.168.172.200:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL # url: jdbc:mysql://192.168.172.200:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://db.hhlsz.com:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL # url: jdbc:mysql://db.hhlsz.com:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
...@@ -108,9 +108,9 @@ spring: ...@@ -108,9 +108,9 @@ spring:
mail: mail:
port: 465 port: 465
host: smtp.youlingrc.com host: smtp.qq.com
username: postmaster@youlingrc.com username: 862422848@qq.com
password: YoulingRC2020 password: fonzpklhmnnebbeb
default-encoding: utf-8 default-encoding: utf-8
properties: properties:
mail: mail:
...@@ -234,5 +234,7 @@ config-8timer: ...@@ -234,5 +234,7 @@ config-8timer:
crm-excel: crm-excel:
realPath: 'D:/excel/' realPath: 'D:/excel/'
#导出zip临时地址
zip:
path: 'D:/zip/'
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