|
|
@@ -198,7 +198,7 @@ class QueryRefund extends Command
|
|
|
$order = RechargeOrder::where('id',$order_id)->findOrEmpty();
|
|
|
$work = ServiceWork::where('id',$order->work_id)->findOrEmpty();
|
|
|
if(!$work->isEmpty()){
|
|
|
- if(($work->work_pay_status == '1' || $work->work_pay_status == '2') and $work->service_status != '5' and $work->work_status != '9'){
|
|
|
+ if(($work->work_pay_status == '1' || $work->work_pay_status == '2') and $work->work_status != '9'){
|
|
|
//工程师余额变动
|
|
|
$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);
|