这个:select count(*) from t_inspection where insp_status = 4 group by create_time为什么要group by呢,确实有可能返回多行数据啊可是你放到大的查询里,是不能出现多行的去掉group by就行了select count(*) from t_inspection where insp_status = 4