src/main/java/org/springblade/modules/process/mapper/ProcessMapper.xml
@@ -74,12 +74,13 @@ SELECT SUM(p.process_num) AS sum FROM sys_process p LEFT JOIN sys_land land ON land.id = p.land_id LEFT JOIN sys_process_inv inv ON inv.product_id = p.process_id WHERE 1=1 AND p.is_deleted = 0 <if test="year!=null and year!=''"> and YEAR ( p.sale_time ) = #{year} </if> <if test="farmId!=null and farmId!=''"> and land.farm_id = #{farmId} and (land.farm_id = #{farmId} or inv.fps_id = #{farmId}) </if> </select> <select id="statisticsMonth" resultType="java.util.Map">