Commit 8a56e81f by 王勇飞

gyq

parent 425b8b69
......@@ -532,6 +532,7 @@ class TxHandler {
}
async ServiceCreate(datajson) { //获取融易算服务实例到队列
console.log("ServiceCreate----------------------------------------------",datajson);
var obj = {
"pushUrl": this.bookUrl + "/deliverybillCtl/insertInfo",
"actionType": "insertInfo",
......@@ -547,6 +548,7 @@ class TxHandler {
}
async ServiceUpdate(datajson) { //更新融易算服务信息到队列
console.log("ServiceUpdate----------------------------------------------",datajson);
var obj = {
"pushUrl": this.bookUrl + "/deliverybillCtl/updateServer",
"actionType": "updateServer",
......@@ -563,6 +565,7 @@ class TxHandler {
//融易算创建需求
async LeadsCreate(datajson) {
console.log("LeadsCreate----------------------------------------------",datajson);
var obj = {
"pushUrl": this.bookUrl + "/bizOptCtl/insertInfo",
"actionType": "insertInfo",
......@@ -579,6 +582,7 @@ class TxHandler {
//融易算更新需求状态
async LeadsUpdate(datajson) {
console.log("LeadsUpdate----------------------------------------------",datajson);
var obj = {
"pushUrl": this.bookUrl + "/bizoptCtl/updatepayStatusByDemandCode",
"actionType": "updatepayStatusByDemandCode",
......@@ -596,6 +600,7 @@ class TxHandler {
// 融易算服务状态变更通知
async ServiceStatusNotify(datajson) {
console.log("ServiceStatusNotify----------------------------------------------",datajson);
let ab = Object.assign({}, datajson);
ab.status = ab.status === 6 ? "inserivice" : "closed";
var obj = {
......@@ -614,6 +619,7 @@ class TxHandler {
//融易算报表确认
async ConfirmReport(datajson) {
console.log("ConfirmReport----------------------------------------------",datajson);
var messageBody = datajson;
messageBody.dataType = "2";
messageBody.rysCheck = "1";
......@@ -634,6 +640,7 @@ class TxHandler {
//融易算报税确认
async ConfirmTax(datajson) {
console.log("ConfirmTax----------------------------------------------",datajson);
var messageBody = datajson;
messageBody.dataType = "3";
messageBody.rysCheck = "1";
......@@ -654,6 +661,7 @@ class TxHandler {
//融易算接收票据快递单号
async ReceivePaperPost(datajson) {
console.log("ReceivePaperPost----------------------------------------------",datajson);
var obj = {
"pushUrl": this.bookUrl + "/deliverybillCtl/receivePaperPost",
"actionType": "receivePaperPost",
......@@ -668,34 +676,26 @@ class TxHandler {
return system.rysQueueOper(obj);
}
async test(datajson) {
var rc = system.getObject("util.execClient");
var reqUrl = this.bookUrl + "/bizOptCtl/insertInfo";
var result = await rc.execPost3(datajson, reqUrl);
//var j = JSON.parse(result.stdout);
return result;
}
}
module.exports = new TxHandler();
(async () => {
var task = new TxHandler();
var obj = {
"requestId": "825da0a74432-738f-4bed-b48d-d51aa808",
"bizId": "5892748825678",
"contactsPhone": "18510669321",
"userId": "10973452443103825",
"orderId": "3411844566204567789111",
"areatype": "city",
"area": "100010",
"topOrgCode": "rong_yi_suan",
"taxpayerType": 1
}
var d = await task.test(obj);
console.log("ddddddddddddd");
console.log(JSON.stringify(d));
console.log("dddddddddddddd");
})()
// (async () => {
// var task = new TxHandler();
// var obj = {
// "requestId": "825da0a74432-738f-4bed-b48d-d51aa808",
// "bizId": "5892748825678",
// "contactsPhone": "18510669321",
// "userId": "10973452443103825",
// "orderId": "3411844566204567789111",
// "areatype": "city",
// "area": "100010",
// "topOrgCode": "rong_yi_suan",
// "taxpayerType": 1
// }
// var d = await task.test(obj);
// console.log("ddddddddddddd");
// console.log(JSON.stringify(d));
// console.log("dddddddddddddd");
// })()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment