|
@@ -91,14 +91,13 @@ 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;
|
|
|
- return "";
|
|
|
+ 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;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -123,13 +122,12 @@ 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;
|
|
|
- return "";
|
|
|
+ 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;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -139,13 +137,12 @@ 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;
|
|
|
- return "";
|
|
|
+ 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;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -155,13 +152,12 @@ 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;
|
|
|
- return "";
|
|
|
+ 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;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -172,12 +168,11 @@ 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;
|
|
|
- return "";
|
|
|
+ APICurUtils util = new APICurUtils();
|
|
|
+ util.setApiUrl("nccloud/api/wxyy/uapbd/customer/add");
|
|
|
+ String result = util.getAPIRetrun(token, json.toJSONString());
|
|
|
+ log.info("客户新增结果:{}", result);
|
|
|
+ return result;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -187,11 +182,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);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -215,13 +210,12 @@ 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;
|
|
|
- return "";
|
|
|
+ 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;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -230,14 +224,13 @@ 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;
|
|
|
- return "";
|
|
|
+ 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;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -246,12 +239,11 @@ 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;
|
|
|
- return "";
|
|
|
+ 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;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -261,13 +253,12 @@ 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;
|
|
|
- return "";
|
|
|
+ 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;
|
|
|
}
|
|
|
|
|
|
public static String informerQuery(JSONObject json) throws Exception {
|
|
@@ -303,13 +294,12 @@ 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;
|
|
|
- return "";
|
|
|
+ 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;
|
|
|
}
|
|
|
|
|
|
/**
|