智慧农业后台管理
guoshilong
2022-08-16 2554204fef319bf429e3932799488de817aa5b47
src/main/java/org/springblade/modules/farmplant/mapper/FarmProductStockMapper.xml
@@ -390,6 +390,7 @@
        select sfps.strain_id strainId,sfps.weight,ss.url,ss.strain_name strainName from
        sys_farm_product_stock sfps
        left join sys_strain ss on ss.id = sfps.strain_id
        LEFT JOIN sys_land land ON land.id = sfps.land_id
        where 1=1
        <if test="farmProductStock.strainId!=null and farmProductStock.strainId!=''">
            and sfps.strain_id = #{farmProductStock.strainId}
@@ -412,6 +413,9 @@
        <if test="farmProductStock.strainType !=null and farmProductStock.strainType !='' ">
            and ss.strain_type = #{farmProductStock.strainType}
        </if>
        <if test="farmProductStock.farmId !=null and farmProductStock.farmId !='' ">
            and land.farm_id = #{farmProductStock.farmId}
        </if>
    </select>
    <!--销售对比库存是否充足-->