智慧农业后台管理
tangzy
2022-07-14 7abdd3ba7fa34c059f3c867e366d1a2137ae702f
src/main/java/org/springblade/modules/traceability/mapper/SweepRecordMapper.xml
@@ -195,7 +195,7 @@
            left join sys_traceability st on ssr.code = st.id
            left join sys_recovery sr on sr.id = st.recovery_id
            left join sys_land sl on sl.id = sr.land_id
            where  year(ssr.create_time) = #{sweepRecord.farmId}
            where  year(ssr.create_time) = #{sweepRecord.time}
            and sl.farm_id = #{sweepRecord.farmId}
            GROUP BY month(ssr.create_time)
        ) n