提交 3dfaf467 authored 作者: 李炎's avatar 李炎

修改配置

上级 b16e748d
...@@ -18,7 +18,7 @@ public class CategoryDao { ...@@ -18,7 +18,7 @@ public class CategoryDao {
// static String uid = "Administrator"; // static String uid = "Administrator";
// static String pwd = "888888"; // static String pwd = "888888";
// static int lang = 2052; // static int lang = 2052;
static String K3CloudURL = "http://cwxt.kingsware.cn/k3cloud/";//指定地址 static String K3CloudURL = "https://cwxt.kingsware.cn:8090/k3cloud/";//指定地址
static String dbId = "613ef0b02c911d"; static String dbId = "613ef0b02c911d";
static String uid = "kingdee"; static String uid = "kingdee";
static String pwd = "123456"; static String pwd = "123456";
......
...@@ -17,7 +17,7 @@ public class CategoryDaoSql { ...@@ -17,7 +17,7 @@ public class CategoryDaoSql {
// static String uid = "Administrator"; // static String uid = "Administrator";
// static String pwd = "888888"; // static String pwd = "888888";
// static int lang = 2052; // static int lang = 2052;
static String K3CloudURL = "http://cwxt.kingsware.cn/k3cloud/";//指定地址 static String K3CloudURL = "https://cwxt.kingsware.cn:8090/k3cloud/";//指定地址
static String dbId = "613ef0b02c911d"; static String dbId = "613ef0b02c911d";
static String uid = "kingdee"; static String uid = "kingdee";
static String pwd = "123456"; static String pwd = "123456";
......
...@@ -8,6 +8,7 @@ import org.quartz.JobExecutionContext; ...@@ -8,6 +8,7 @@ import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.io.IOException; import java.io.IOException;
......
...@@ -14,6 +14,7 @@ import org.jeecg.modules.iost.API.webapi.LoanInterfaceWebapi; ...@@ -14,6 +14,7 @@ import org.jeecg.modules.iost.API.webapi.LoanInterfaceWebapi;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
...@@ -34,14 +35,29 @@ public class ApiTestContrller { ...@@ -34,14 +35,29 @@ public class ApiTestContrller {
@Autowired @Autowired
LoanInterfaceWebapi loanInterfaceWebapi; LoanInterfaceWebapi loanInterfaceWebapi;
@GetMapping("/test") @GetMapping("/test/1011")
public Object dtr() { public Object dtr(@RequestParam(required = false) Map object) {
Map returnResult = new HashMap(); Map returnResult = new HashMap();
Map params = new LinkedHashMap() {{ Map params = new LinkedHashMap() {{
put("method", "queryConcludeData"); put("method", "queryConcludeData");
put("type", "ER_ExpenseRequest"); put("type", "ER_ExpenseRequest");
put("date", beforeDayByNowDay()); put("date", beforeDayByNowDay());
}}; }};
try {
if (null != object && null != object.get("date")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String date = sdf.format(sdf.parse(object.get("date").toString()));
params = new LinkedHashMap() {{
put("method", "queryConcludeData");
put("type", "ER_ExpenseRequest");
put("date", date);
}};
}
}catch (Exception e){
returnResult.put("message", "手动同步失败");
returnResult.put("result", "参数无法解析");
return returnResult;
}
String responsejson = ""; String responsejson = "";
responsejson = loanInterfaceApi.getSelect(params);//获取借款 responsejson = loanInterfaceApi.getSelect(params);//获取借款
return responsejson; return responsejson;
......
...@@ -26,7 +26,7 @@ import java.util.*; ...@@ -26,7 +26,7 @@ import java.util.*;
@Slf4j @Slf4j
@EnableScheduling @EnableScheduling
public class SecurityToolsTest { public class SecurityToolsTest {
static String K3CloudURL = "http://192.168.2.243/k3cloud/";//指定地址 static String K3CloudURL = "http://cwxt.kingsware.cn/k3cloud/";//指定地址
static String dbId = "6136b7c51f0e4f"; static String dbId = "6136b7c51f0e4f";
static String uid = "Administrator"; static String uid = "Administrator";
static String pwd = "888888"; static String pwd = "888888";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论