wang jun há 2 anos atrás
pai
commit
484cb3d2ba
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      prjcenter/prjKLY/base/AboutWorker.php

+ 1 - 1
prjcenter/prjKLY/base/AboutWorker.php

@@ -145,7 +145,7 @@ function bizbase_workerAccountInfo($bizWorker)
         }
     }
     //$frozenBalance = round($frozenOut - $frozenIn, 2); //冻结余额,即当前实际冻结的金额
-    $frozenSql = "select sum(ifnull(money,0)) as sum from biz_worker_account where biz_id in (select id from biz_todowork as btw where btw.biz_workerid=:workerid and btw.`status` in (1,2,4) ) and biz_catalog=2";
+    $frozenSql = "select ifnull(sum(ifnull(money,0)),0) as sum from biz_worker_account where biz_id in (select id from biz_todowork as btw where btw.biz_workerid=:workerid and btw.`status` in (1,2,4) ) and biz_catalog=2";
     $frozenBalance = pdo_fetch($frozenSql, [':workerid' => intval($bizWorker["id"])]);
     $frozenBalance = round(floatval($frozenBalance['sum']), 2);
     $balance = round($income - $outgoing, 2);