shish hace 2 años
padre
commit
0ff03beefa
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      console/controllers/RefundController.php

+ 2 - 0
console/controllers/RefundController.php

@@ -35,6 +35,8 @@ class RefundController extends Controller
                     $cgRefund = CgRefundClass::getById($cgRefundId, true);
                     $cgRefund = CgRefundClass::getById($cgRefundId, true);
                     if (empty($cgRefund)) {
                     if (empty($cgRefund)) {
                         echo "{$orderSn} 没有找到采购的退款信息\n";
                         echo "{$orderSn} 没有找到采购的退款信息\n";
+                        RefundOrderItemClass::deleteByCondition(['orderSn'=>$orderSn]);
+                        RefundOrderClass::deleteByCondition(['orderSn'=>$orderSn]);
                         continue;
                         continue;
                     }
                     }
                     $cgRefundStatus = $cgRefund->status;
                     $cgRefundStatus = $cgRefund->status;