智慧农业后台管理
zengh
2022-07-12 3efd7f01cba4aaa09f75662e287bfa4c780990cf
src/main/java/org/springblade/modules/farmplant/mapper/FarmPlantMapper.xml
@@ -12,8 +12,14 @@
        <if test="farmPlant.plant!=null and farmPlant.plant!=''">
            and sfp.plant = #{farmPlant.plant}
        </if>
        <if test="farmPlant.year!=null and farmPlant.year!=''">
            and sfp.create_time like concat('%',#{farmPlant.year},'%')
        </if>
        <if test="farmPlant.landId!=null and farmPlant.landId!=''">
            and sfp.land_id = #{farmPlant.landId}
        </if>
        <if test="farmPlant.strainId!=null and farmPlant.strainId!=''">
            and sfp.strain_id = #{farmPlant.strainId}
        </if>
        <if test="farmPlant.plantingWay!=null and farmPlant.plantingWay!=''">
            and sfp.planting_way = #{farmPlant.plantingWay}
@@ -181,9 +187,6 @@
    </select>
    <!--种植采收监管 产品等级(0:一等品)-->
    <select id="selectProduct" resultType="java.util.HashMap">
        SELECT
@@ -300,4 +303,5 @@
        </if>
        group by sfp.strain_id,strain_name,land_unit
    </select>
</mapper>