Commit 4490d7d0 by 翁国栋

禅道id--

395、在合同证照当中添加一个导出合同证照的功能
parent 4d7dbfd6
......@@ -593,6 +593,10 @@ public class OSSUtil {
OSSObject ossObject;
String Suffix;
try {
File folder = new File(zipPath);
if(!folder.exists()&& !folder .isDirectory()){
folder.mkdirs();
}
fos = new FileOutputStream(zipPath+fileName);
zos = new ZipOutputStream(fos);
OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
......
......@@ -26,12 +26,12 @@ spring:
datasource:
# username: root
# password: youlingHR73!
username: youling8timer
password: (!0YouLing8Timer0!)
username: root
password: H0YouLing8T-imer0LKjhG193*
# username: tang
# 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://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://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
......@@ -108,9 +108,9 @@ spring:
mail:
port: 465
host: smtp.youlingrc.com
username: postmaster@youlingrc.com
password: YoulingRC2020
host: smtp.qq.com
username: 862422848@qq.com
password: fonzpklhmnnebbeb
default-encoding: utf-8
properties:
mail:
......@@ -234,5 +234,7 @@ config-8timer:
crm-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