Explorar el Código

查收师傅提成金额

whitefang hace 1 año
padre
commit
ce139816ad
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      app/adminapi/logic/works/ServiceWorkLogic.php

+ 4 - 0
app/adminapi/logic/works/ServiceWorkLogic.php

@@ -452,6 +452,10 @@ class ServiceWorkLogic extends BaseLogic
                 }
                 $result['spare_parts'] = array_values($spare_parts)??[];
             }
+
+            //查收师傅提成金额
+            $result['change_amount'] = MasterWorkerAccountLog::where(['work_sn'=>$result['work_sn'],'action'=>1])->value('change_amount');
+
             return  $result;
         }catch(\Exception $e){
             Db::rollback();