|
@@ -11,7 +11,7 @@ import java.util.Map;
|
|
|
* json_chinaUnicom_hb18_complaintManagement_usercomplaintQuerys
|
|
|
*/
|
|
|
public class UsercomplaintQuerys extends AbstractQuery {
|
|
|
- private static final String url = "http://133.96.94.184:47996/ete/v1/rest/openApi/usercomplaintQuerys";
|
|
|
+ private static final String url = "http://10.245.50.26:8000/api/chinaUnicom/hb18/complaintManagement/usercomplaintQuerys/v1";
|
|
|
private static final String urlTest = "http://10.124.150.230:8000/api/chinaUnicom/hb18/complaintManagement/usercomplaintQuerys/v1";
|
|
|
|
|
|
public String query(String mobile, String destAddr, String complaintType, String isMobile,
|
|
@@ -31,4 +31,28 @@ public class UsercomplaintQuerys extends AbstractQuery {
|
|
|
ResponseEntity<String> response = restTemplate.postForEntity(realUrl, req, String.class);
|
|
|
return response.getBody();
|
|
|
}
|
|
|
+
|
|
|
+// public COMPConnectionContext query(String mobile, String destAddr, String complaintType, String isMobile,
|
|
|
+// String flowNo, String beginTime, String endTime, String token, boolean test) {
|
|
|
+// String realAppSecret = test ? appSecretTest : appSecret;
|
|
|
+// String realUrl = test ? urlTest : url;
|
|
|
+// COMPConnection compConnection = new COMPJsonConnection(appId, realAppSecret);
|
|
|
+//
|
|
|
+// // REQ
|
|
|
+// Map<String, Object> req = new HashMap<>();
|
|
|
+//
|
|
|
+// Map<String, Object> userComplaintQuerysReq = new HashMap<>();
|
|
|
+// req.put("USERCOMPLAINT_QUERYS_REQ", userComplaintQuerysReq);
|
|
|
+//
|
|
|
+// userComplaintQuerysReq.put("mobile", mobile);
|
|
|
+// userComplaintQuerysReq.put("destAddr", destAddr);
|
|
|
+// userComplaintQuerysReq.put("complaintType", complaintType);
|
|
|
+// userComplaintQuerysReq.put("isMobile", isMobile);
|
|
|
+// userComplaintQuerysReq.put("flowNo", flowNo);
|
|
|
+// userComplaintQuerysReq.put("beginTime", beginTime);
|
|
|
+// userComplaintQuerysReq.put("endTime", endTime);
|
|
|
+// userComplaintQuerysReq.put("token", token);
|
|
|
+//
|
|
|
+// return compConnection.excute(Const.HttpMethodType.POST, realUrl, req, false);
|
|
|
+// }
|
|
|
}
|