@@ -43,8 +43,8 @@ class UAccountBalance extends Model
$where_str.=" and user_id = {$params['user_id']}";
}
$sql="SELECT * FROM (
( SELECT id, user_id,source_id, money, user_name,create_time, 1 AS is_essay FROM `u_account_balance` WHERE `status` = 0 $where_str) UNION
( SELECT id, user_id,0 as source_id ,money, user_name,create_time, 2 AS is_essay FROM `u_account_check` WHERE `status` IN ( 0, 1, 2 ) $where_str)
( SELECT id, user_id,source_id, money, user_name,create_time, 1 AS is_essay,status FROM `u_account_balance` WHERE `status` = 0 $where_str) UNION
( SELECT id, user_id,0 as source_id ,money, user_name,create_time, 2 AS is_essay,status FROM `u_account_check` WHERE `status` IN ( 0, 1, 2 ) $where_str)
) AS aaa ORDER BY `create_time` DESC LIMIT {$pageNo}, {$pageSize}";