This commit is contained in:
gyhanggd 2024-04-12 09:24:23 +08:00
parent a82654cc5c
commit 0bea212c5f
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ class User_model extends CI_Model
// END // END
// ) type_name,b.supplier_name from tb_account a left join tb_supplier b on a.supplier_id=b.id where a.id >0 and a.user_id = ".$user_id." order by a.type_id asc")->result_array(); // ) type_name,b.supplier_name from tb_account a left join tb_supplier b on a.supplier_id=b.id where a.id >0 and a.user_id = ".$user_id." order by a.type_id asc")->result_array();
$account_list = $this->db->query("select a.*,b.supplier_name,b.id supplier_id from tb_account a left join tb_supplier b on a.supplier_id=b.id where a.user_id = ".$user_id." order by a.type_id asc")->result_array(); $account_list = $this->db->query("select a.*,b.supplier_name,b.id supplier_id,sum( a.account ) as account from tb_account a left join tb_supplier b on a.supplier_id=b.id where a.user_id = ".$user_id." group by a.supplier_id,a.type_id,a.recharge_fund_type order by a.type_id asc")->result_array();
$account_list_new = array(); $account_list_new = array();
foreach ($account_list as $k => $v){ foreach ($account_list as $k => $v){