|
@@ -91,13 +91,14 @@ public class InvoiceUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static String defdocAdd(JSONObject json) throws Exception {
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- String token = InvoiceUtil.getToken(util);
|
|
|
- util.setApiUrl("nccloud/api/wxyy/uapbd/defdoc/add");
|
|
|
- log.info("楼栋或房间新增传参:{}", json.toJSONString());
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- log.info("楼栋或房间新增结果:{}", result);
|
|
|
- return result;
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// String token = InvoiceUtil.getToken(util);
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/uapbd/defdoc/add");
|
|
|
+// log.info("楼栋或房间新增传参:{}", json.toJSONString());
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// log.info("楼栋或房间新增结果:{}", result);
|
|
|
+// return result;
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -122,12 +123,13 @@ public class InvoiceUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static String defdocUpdate(JSONObject json) throws Exception {
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- String token = InvoiceUtil.getToken(util);
|
|
|
- util.setApiUrl("nccloud/api/wxyy/uapbd/defdoc/update");
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- log.info("楼栋或房间更新结果:{}", result);
|
|
|
- return result;
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// String token = InvoiceUtil.getToken(util);
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/uapbd/defdoc/update");
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// log.info("楼栋或房间更新结果:{}", result);
|
|
|
+// return result;
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -137,12 +139,13 @@ public class InvoiceUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static String defdocDisable(JSONObject json) throws Exception {
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- String token = InvoiceUtil.getToken(util);
|
|
|
- util.setApiUrl("nccloud/api/wxyy/uapbd/defdoc/disable");
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- log.info("楼栋或房间禁用结果:{}", result);
|
|
|
- return result;
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// String token = InvoiceUtil.getToken(util);
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/uapbd/defdoc/disable");
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// log.info("楼栋或房间禁用结果:{}", result);
|
|
|
+// return result;
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
|
|
@@ -152,12 +155,13 @@ public class InvoiceUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static String customerAdd(JSONObject json) throws Exception {
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- String token = InvoiceUtil.getToken(util);
|
|
|
- util.setApiUrl("nccloud/api/wxyy/uapbd/customer/add");
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- log.info("客户新增结果:{}", result);
|
|
|
- return result;
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// String token = InvoiceUtil.getToken(util);
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/uapbd/customer/add");
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// log.info("客户新增结果:{}", result);
|
|
|
+// return result;
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -168,11 +172,12 @@ public class InvoiceUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static String customerAdd(JSONObject json,String token) throws Exception {
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- util.setApiUrl("nccloud/api/wxyy/uapbd/customer/add");
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- log.info("客户新增结果:{}", result);
|
|
|
- return result;
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/uapbd/customer/add");
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// log.info("客户新增结果:{}", result);
|
|
|
+// return result;
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
|
|
@@ -182,11 +187,11 @@ public class InvoiceUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static void customerAssign(JSONObject json) throws Exception {
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- String token = InvoiceUtil.getToken(util);
|
|
|
- util.setApiUrl("nccloud/api/wxyy/uapbd/customer/assign");
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- log.info("客户分配结果:{}", result);
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// String token = InvoiceUtil.getToken(util);
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/uapbd/customer/assign");
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// log.info("客户分配结果:{}", result);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -210,12 +215,13 @@ public class InvoiceUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static String customerUpdate(JSONObject json) throws Exception {
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- String token = InvoiceUtil.getToken(util);
|
|
|
- util.setApiUrl("nccloud/api/wxyy/uapbd/customer/update");
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- log.info("客户修改:{}", result);
|
|
|
- return result;
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// String token = InvoiceUtil.getToken(util);
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/uapbd/customer/update");
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// log.info("客户修改:{}", result);
|
|
|
+// return result;
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -224,13 +230,14 @@ public class InvoiceUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static String paybillAdd(JSONObject json) throws Exception {
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- String token = InvoiceUtil.getToken(util);
|
|
|
- util.setApiUrl("nccloud/api/wxyy/arap/paybill/saveandcommit");
|
|
|
-
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- log.info("付款单接口_退款单:{}", result);
|
|
|
- return result;
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// String token = InvoiceUtil.getToken(util);
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/arap/paybill/saveandcommit");
|
|
|
+//
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// log.info("付款单接口_退款单:{}", result);
|
|
|
+// return result;
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -239,11 +246,12 @@ public class InvoiceUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static String recbillAdd(JSONObject json) throws Exception {
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- String token = InvoiceUtil.getToken(util);
|
|
|
- util.setApiUrl("nccloud/api/wxyy/arap/recbill/saveandcommit");
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- return result;
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// String token = InvoiceUtil.getToken(util);
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/arap/recbill/saveandcommit");
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// return result;
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -253,12 +261,13 @@ public class InvoiceUtil {
|
|
|
*/
|
|
|
public static String gatheringbillAdd(JSONObject json) throws Exception {
|
|
|
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- String token = InvoiceUtil.getToken(util);
|
|
|
- util.setApiUrl("nccloud/api/wxyy/arap/gatheringbill/saveandcommit");
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- log.info("收款单接口-新增提交结果:{}", result);
|
|
|
- return result;
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// String token = InvoiceUtil.getToken(util);
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/arap/gatheringbill/saveandcommit");
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// log.info("收款单接口-新增提交结果:{}", result);
|
|
|
+// return result;
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
public static String informerQuery(JSONObject json) throws Exception {
|
|
@@ -294,12 +303,13 @@ public class InvoiceUtil {
|
|
|
*/
|
|
|
public static String gatheringbillTurn(JSONObject json) throws Exception {
|
|
|
|
|
|
- APICurUtils util = new APICurUtils();
|
|
|
- String token = InvoiceUtil.getToken(util);
|
|
|
- util.setApiUrl("nccloud/api/wxyy/arap/gatheringbill/saveandcommit");
|
|
|
- String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
- log.info("单据提交——转账单结果:{}", result);
|
|
|
- return result;
|
|
|
+// APICurUtils util = new APICurUtils();
|
|
|
+// String token = InvoiceUtil.getToken(util);
|
|
|
+// util.setApiUrl("nccloud/api/wxyy/arap/gatheringbill/saveandcommit");
|
|
|
+// String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+// log.info("单据提交——转账单结果:{}", result);
|
|
|
+// return result;
|
|
|
+ return "";
|
|
|
}
|
|
|
|
|
|
/**
|