本地配置
This commit is contained in:
parent
bf4d9f2e19
commit
e1faf486ce
|
@ -14,7 +14,7 @@ spring:
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||||
username: root
|
username: root
|
||||||
password: 62e4295b615a30dbf3b8ee96f41c820b
|
password: bd993088e8a7c3dc5f44441617f9b4bf
|
||||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||||
savefile:
|
savefile:
|
||||||
# 文件保存路径
|
# 文件保存路径
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
package com.hzya.frame;
|
package com.hzya.frame;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerdjml.dto.FileInfoDTO;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerdjml.service.IOerDjmlExtService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerdjml.service.impl.OerDjmlExtServiceImpl;
|
||||||
import com.hzya.frame.plugin.grp.plugin.ExpensePluginInitializer;
|
import com.hzya.frame.plugin.grp.plugin.ExpensePluginInitializer;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
@ -8,6 +11,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.test.context.junit4.SpringRunner;
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description
|
* @Description
|
||||||
|
@ -20,7 +24,8 @@ public class PluginTest {
|
||||||
@Resource
|
@Resource
|
||||||
private ExpensePluginInitializer expensePluginInitializer;
|
private ExpensePluginInitializer expensePluginInitializer;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private OerDjmlExtServiceImpl oerDjmlExtServiceImpl;
|
||||||
@Test
|
@Test
|
||||||
public void dingTest(){
|
public void dingTest(){
|
||||||
JSONObject jsonObject = JSONObject.parseObject("{\n" +
|
JSONObject jsonObject = JSONObject.parseObject("{\n" +
|
||||||
|
@ -39,4 +44,12 @@ public class PluginTest {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void fileDownloadTest(){
|
||||||
|
List<FileInfoDTO> fileInfoDTOList = oerDjmlExtServiceImpl.fileDownload("3304665242408406647", "8000400011");
|
||||||
|
String djmlStr = JSONObject.toJSONString(fileInfoDTOList);
|
||||||
|
System.out.println(djmlStr);
|
||||||
|
System.out.println(fileInfoDTOList.size());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue