智慧农业后台管理
Administrator
2022-05-19 84b2e543d0acffa9afede334e65ae9b5bde1888c
src/main/java/org/springblade/modules/farmplant/mapper/FarmProductStockMapper.xml
@@ -5,5 +5,12 @@
    <!--自定义查询农产品库存分页数据-->
    <select id="selectFarmProductStockPage" resultType="org.springblade.modules.farmplant.vo.FarmProductStockVO">
        select * from sys_farm_product_stock
        where 1=1
        <if test="farmProductStock.strainId!=null and farmProductStock.strainId!=''">
            and strain_id = #{farmProductStock.strainId}
        </if>
        <if test="farmProductStock.leaves!=null and farmProductStock.leaves!=''">
            and leaves = #{farmProductStock.leaves}
        </if>
    </select>
</mapper>