智慧农业后台管理
Administrator
2022-05-30 0c90b05a7df664f8dcab2c4b330c07c7b80745a4
src/main/java/org/springblade/modules/farmplant/mapper/StrainMapper.xml
@@ -5,6 +5,12 @@
    <!--自定义查询农场检测报告/证书分页数据-->
    <select id="selectStrainPage" resultType="org.springblade.modules.farmplant.vo.StrainVO">
        select * from sys_strain where 1=1
        <if test="strain.strainType!=null and strain.strainType!=''">
            and strain_type = #{strain.strainType}
        </if>
        <if test="strain.strainName!=null and strain.strainName!=''">
            and strain_name like concat('%',#{strain.strainName},'%')
        </if>
    </select>
</mapper>