智慧农业后台管理
guoshilong
2022-10-18 6b6725aac343f6decf4e475ff8b03f5b474e5759
src/main/java/org/springblade/modules/InventoryLoss/mapper/InventoryMapper.xml
@@ -24,6 +24,12 @@
        <if test="inventory.farmId != null and inventory.farmId !=''">
            AND (land.farm_id = #{inventory.farmId} OR inv.fps_id = #{inventory.farmId})
        </if>
        <if test="inventory.type != null and inventory.type !='' ">
            AND inventory.type = #{inventory.type}
        </if>
        <if test="inventory.kind != null and inventory.kind !='' ">
            AND (inv.product_id = #{inventory.kind} OR inventory.strain_id = #{inventory.kind})
        </if>
            AND bdb.code = "lossReason"
            AND inventory.is_deleted = 0
            ORDER BY inventory.create_time DESC