|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.collect.Maps;
|
|
|
+import com.jeeplus.common.config.Global;
|
|
|
import com.jeeplus.common.persistence.Page;
|
|
|
import com.jeeplus.common.service.CrudService;
|
|
|
import com.jeeplus.common.utils.Collections3;
|
|
@@ -67,6 +68,8 @@ import java.util.*;
|
|
|
@Service
|
|
|
@Transactional(readOnly = true)
|
|
|
public class ProjectReportedImportService extends CrudService<ProjectReportedImportDao, ProjectReportedImport> {
|
|
|
+ //上报接口路径
|
|
|
+ private static final String REPORTEDURL = Global.getConfig("reportedUrl");
|
|
|
//AES 对称加密公钥
|
|
|
private static final String AES_KEY = "63304b5db43265c103ebe576d38bd9f8";
|
|
|
//RSA 非对称加密密钥
|
|
@@ -354,7 +357,7 @@ public class ProjectReportedImportService extends CrudService<ProjectReportedImp
|
|
|
//测试接口
|
|
|
//String url = "http://comp.jszj.com.cn:8031/api/testAddProject";
|
|
|
//正式接口
|
|
|
- String url = "http://comp.jszj.com.cn:8031/api/addProject";
|
|
|
+ String url = REPORTEDURL;
|
|
|
//发送请求
|
|
|
/*String returnResult = HttpPostTool.doPost(url, encryptByAes);
|
|
|
HashMap hashMap = JSON.parseObject(returnResult, HashMap.class);
|
|
@@ -930,7 +933,7 @@ public class ProjectReportedImportService extends CrudService<ProjectReportedImp
|
|
|
//测试接口
|
|
|
//String url = "http://comp.jszj.com.cn:8031/api/testAddProject";
|
|
|
//正式接口
|
|
|
- String url = "http://comp.jszj.com.cn:8031/api/addProject";
|
|
|
+ String url = REPORTEDURL;
|
|
|
//发送请求
|
|
|
String returnResult = HttpPostTool.doPost(url, encryptByAes);
|
|
|
HashMap hashMap = JSON.parseObject(returnResult, HashMap.class);
|