src/main/resources/mapper/DataMapper.xml
@@ -10,6 +10,7 @@ ROW_NUMBER() OVER (PARTITION BY county ORDER BY create_time DESC) AS rn FROM t_data WHERE del_flag = 0 AND create_time < #{createTime} <if test="county!=null and county !=0"> and county=#{county} </if>