whitefang 1 год назад
Родитель
Сommit
8f7b6cfb6f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/common/command/QueryRefund.php

+ 1 - 1
app/common/command/QueryRefund.php

@@ -205,7 +205,7 @@ class QueryRefund extends Command
         $work = ServiceWork::where('id',$order->work_id)->findOrEmpty();
         Log::channel('re_fund')->info('工单ID'.$order->work_id.':'.json_encode($work,JSON_UNESCAPED_UNICODE));
         if(!$work->isEmpty()){
-            if(($work->work_pay_status == '1' || $work->work_pay_status == '2') and $work->work_status != '9'){
+            if(($work->work_pay_status == '1' || $work->work_pay_status == '2') and $work->work_status != '9' and $work->refund_approval != '2'){
                 //工程师余额变动
                 $change_amount = MasterWorkerAccountLog::where(['work_sn'=>$work->work_sn,'action'=>1])->value('change_amount');
                 WorkerAccountLogLogic::addAccountLog($work,$change_amount,WorkerAccountLogEnum::UM_DEC_ADMIN,WorkerAccountLogEnum::DEC);