Browse Source

wip:临时提交

wangkaiyue 1 year ago
parent
commit
b359ea030e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      internal/service/invoiceCallback.go

+ 4 - 3
internal/service/invoiceCallback.go

@@ -117,9 +117,10 @@ func selfInvoicing(ctx context.Context, identifyingValue string) {
 		} else {
 			updateData["applybill_status"] = 3
 		}
-		_, err := g.DB().Update(ctx, "dataexport_order", map[string]interface{}{
-			"order_code": v,
-		}, updateData)
+		_, err := g.DB().Update(ctx, "dataexport_order", updateData, " order_code=? ", v)
+		if err != nil {
+			g.Log().Errorf(ctx, "自助开票更新订单异常 orderCode:%v %v", v, err)
+		}
 		if err != nil {
 			g.Log().Errorf(ctx, "自助开票更新订单异常 orderCode:%v %v", v, err)
 		}