错误:
sql语句中尽量不要使用*,只查询需要的字段出来。
解决:
select id,tran_code,tran_name,tran_date,tran_time,tran_amount,1 as count from app_cash_trans_log order by app_cash_trans_log.id desc limit 5
select id,tran_code,tran_name,tran_date,tran_time,tran_amount,1 as count from app_cash_trans_log where app_cash_trans_log.tran_amount>=(select pla_config.cfg_value from pla_config where pla_config.cfg_name='tranMaxMmount') order by app_cash_trans_log.id desc limit 5