wangkaiyue 1 жил өмнө
parent
commit
446a639bdf

+ 1 - 3
internal/service/invoiceCallback.go

@@ -114,9 +114,7 @@ func selfInvoicing(ctx context.Context, orderCode 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)
 		}