Commit 49d313aa by 宋毅

tj

parent f9fe13bf
...@@ -38,7 +38,7 @@ class EntService extends APIBase { ...@@ -38,7 +38,7 @@ class EntService extends APIBase {
opResult = await this.orderDeliverySve.submitDeliveryInfo(pobj); opResult = await this.orderDeliverySve.submitDeliveryInfo(pobj);
break; break;
case "updateOrderStatus"://服务商修改订单交付状态 case "updateOrderStatus"://服务商修改订单交付状态
opResult = await this.orderDeliverySve.updateOrderStatus(pobj); opResult = await this.orderDeliverySve.updateOrderStatus(pobj,req);
break; break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
......
...@@ -82,10 +82,13 @@ class TxPushLogService extends ServiceBase { ...@@ -82,10 +82,13 @@ class TxPushLogService extends ServiceBase {
if (!orderInfo) { if (!orderInfo) {
return self.returnTX(-1, "cgateway", "资源不存在", null) return self.returnTX(-1, "cgateway", "资源不存在", null)
} }
var status = 0; var status = 2;
if (orderInfo.status == 320) { if (orderInfo.status == 320) {
status = 3; status = 3;
} }
if (orderInfo.status == 300) {
status = 0;
}
return self.returnTX(0, "cgateway", "ok", { "status": status }) return self.returnTX(0, "cgateway", "ok", { "status": status })
} }
......
...@@ -267,9 +267,9 @@ class OrderInfoService extends ServiceBase { ...@@ -267,9 +267,9 @@ class OrderInfoService extends ServiceBase {
if (!ispush) { if (!ispush) {
return system.getResultSuccess(); return system.getResultSuccess();
} }
txorderdetail.goodsDetail.formInfo.buyTime=new Date(txorderdetail.payEndTime); txorderdetail.goodsDetail.formInfo.buyTime = new Date(txorderdetail.payEndTime);
txorderdetail.goodsDetail.formInfo.timeSpan=1; txorderdetail.goodsDetail.formInfo.timeSpan = 1;
txorderdetail.goodsDetail.formInfo.timeUnit="y"; txorderdetail.goodsDetail.formInfo.timeUnit = "y";
//生产者------订单推送 //生产者------订单推送
var pushobj = { var pushobj = {
"actionType": "produceData",// Y 功能名称 "actionType": "produceData",// Y 功能名称
...@@ -847,9 +847,12 @@ class OrderInfoService extends ServiceBase { ...@@ -847,9 +847,12 @@ class OrderInfoService extends ServiceBase {
if (!orderProduct) { if (!orderProduct) {
return system.getResultFail(-101, "orderProduct is empty"); return system.getResultFail(-101, "orderProduct is empty");
} }
if(orderProduct.status == 320) { if (orderProduct.status == 320) {
return system.getResultSuccess(); return system.getResultSuccess();
} }
if (orderProduct.status == 300) {
return system.getResultFail(-301, "订单状态错误");
}
var productType = "p_business_registration"; var productType = "p_business_registration";
if (orderProduct.dataValues.product_type.indexOf("/qcfw/") > -1) { if (orderProduct.dataValues.product_type.indexOf("/qcfw/") > -1) {
productType = "p_vat"; productType = "p_vat";
...@@ -868,12 +871,13 @@ class OrderInfoService extends ServiceBase { ...@@ -868,12 +871,13 @@ class OrderInfoService extends ServiceBase {
"msgContent": { "msgContent": {
"type": orderProduct.tx_order_snapshot.goodsDetail.goodsSubType, "type": orderProduct.tx_order_snapshot.goodsDetail.goodsSubType,
"dealName": pobj.orderNum, "dealName": pobj.orderNum,
"deliveryResult": 3 "deliveryResult": 3,
"resourceIds": [pobj.orderNum]
} }
} }
} }
} }
var r = await this.execPostByTimeOut(req,o, "http://msgqueue.sandbox.com"); var r = await this.execPostByTimeOut(req, o, "http://msgqueue.sandbox.com");
if (r.status < 1) { if (r.status < 1) {
return system.getResultFail(-102, "Post error"); return system.getResultFail(-102, "Post error");
} }
......
...@@ -4,7 +4,7 @@ module.exports = { ...@@ -4,7 +4,7 @@ module.exports = {
push_return_type: { "0": "推送失败", "1": "推送成功" }, push_return_type: { "0": "推送失败", "1": "推送成功" },
pay_type:{"1":"微信","2":"qq钱包","3":"网银支付","4":"余额支付"}, pay_type:{"1":"微信","2":"qq钱包","3":"网银支付","4":"余额支付"},
order_op_type:{"1":"收","2":"支"}, order_op_type:{"1":"收","2":"支"},
order_status:{"0":"待付款","1":"已付款", "310":"部分已退款","320":"已退款","330":"已作废"}, order_status:{"0":"待付款","1":"已付款", "310":"部分已退款","320":"已退款","330":"已作废","300":"已完成"},
order_delivery_status:{ order_delivery_status:{
"1":"待接单", "1":"待接单",
"20":"已接单", "20":"已接单",
......
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