星空对接接口开发:新增直接调拨单反审核删除方法
This commit is contained in:
parent
cd925d4f7c
commit
14a76d365d
|
@ -176,6 +176,16 @@ public class ApiPostBack {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除直接调拨单
|
||||||
|
* return: true 成功删除
|
||||||
|
*/
|
||||||
|
public boolean deleteSTKTD(String fid) throws IOException {
|
||||||
|
STKTDUnAudit(fid);
|
||||||
|
STKTDDelete(fid);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
//单据下推
|
//单据下推
|
||||||
public void pushPoundBillFormData(String id) throws IOException {
|
public void pushPoundBillFormData(String id) throws IOException {
|
||||||
PoundBill poundBill = poundBillService.selectPoundBillById(id);
|
PoundBill poundBill = poundBillService.selectPoundBillById(id);
|
||||||
|
@ -362,4 +372,42 @@ public class ApiPostBack {
|
||||||
sendPostRequest(url, jsonInputString,"save");
|
sendPostRequest(url, jsonInputString,"save");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 直接调拨单反审核接口
|
||||||
|
*/
|
||||||
|
public void STKTDUnAudit(String fid) throws IOException {
|
||||||
|
//查询单据是否存在下游
|
||||||
|
// 目标URL
|
||||||
|
String url = sysConfigService.selectConfigByKey("OA_Url")+"/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.UnAudit.common.kdsvc";
|
||||||
|
String jsonInputString = "{\n" +
|
||||||
|
" “Formid”:”STK_TransferDirect”,\n" +
|
||||||
|
" “data”:\n" +
|
||||||
|
"{\n" +
|
||||||
|
" \"Numbers\": [],\n" +
|
||||||
|
" \"Ids\": "+fid+"\"\",\n" +
|
||||||
|
" \"NetworkCtrl\": \"false\",\n" +
|
||||||
|
" \"IsVerifyProcInst\": \"true\"\n" +
|
||||||
|
"}\n" +
|
||||||
|
"}";
|
||||||
|
String oaData = sendPostRequest(url, jsonInputString,"save");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 直接调拨单删除接口
|
||||||
|
*/
|
||||||
|
public void STKTDDelete(String fid) throws IOException {
|
||||||
|
//查询单据是否存在下游
|
||||||
|
// 目标URL
|
||||||
|
String url = sysConfigService.selectConfigByKey("OA_Url")+"/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Delete.common.kdsvc";
|
||||||
|
String jsonInputString = "{\n" +
|
||||||
|
"\t\"Formid\": \"STK_TransferDirect\",\n" +
|
||||||
|
"\t\"data\": {\n" +
|
||||||
|
"\t\t\"Numbers\": [],\n" +
|
||||||
|
"\t\t\"Ids\": \""+fid+"\",\n" +
|
||||||
|
"\t\t\"NetworkCtrl\": \"false\"\n" +
|
||||||
|
"\t}\n" +
|
||||||
|
"}";
|
||||||
|
sendPostRequest(url, jsonInputString,"save");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue