智慧农业后台管理
zengh
2022-07-12 3efd7f01cba4aaa09f75662e287bfa4c780990cf
src/main/java/org/springblade/modules/farmplant/mapper/FarmProductStockMapper.xml
@@ -30,7 +30,7 @@
    </select>
    <select id="selectFarmProductStockPages" resultType="org.springblade.modules.farmplant.vo.FarmProductStockVO">
        select sfps.strain_id strainId,sum(sfps.weight) weight,ss.url,ss.strain_name strainName from
        select sfps.strain_id strainId,sfps.land_id,sum(sfps.weight) weight,ss.url,ss.strain_name strainName from
        sys_farm_product_stock sfps
        left join sys_strain ss on ss.id = sfps.strain_id
        where 1=1
@@ -52,7 +52,7 @@
        <if test="farmProductStock.tenantId!=null and farmProductStock.tenantId!=''">
            and sfps.tenant_id = #{farmProductStock.tenantId}
        </if>
        group by sfps.strain_id,ss.url,ss.strain_name
        group by sfps.strain_id,ss.url,ss.strain_name,sfps.land_id
    </select>