智慧农业后台管理
guoshilong
2022-10-17 991770ca69d356362f123d1ff6d8df1ec7046c9c
src/main/java/org/springblade/modules/sale/mapper/SaleMapper.xml
@@ -89,6 +89,12 @@
        <if test="sale.farmId != null and sale.farmId !=''">
            AND (land.farm_id = #{sale.farmId} OR inv.fps_id = #{sale.farmId})
        </if>
        <if test="sale.type != null and sale.type !='' ">
            AND sale.type = #{sale.type}
        </if>
        <if test="sale.kind != null and sale.kind !='' ">
            AND (inv.product_id = #{sale.kind} OR sale.strain_id = #{sale.kind})
        </if>
        AND sale.is_deleted = 0
        ORDER BY
        sale.create_time DESC