src/main/java/org/springblade/modules/farm/mapper/FarmPaperMapper.xml
@@ -5,6 +5,15 @@ <!--自定义查询农场检测报告/证书分页数据--> <select id="selectFarmPaperPage" resultType="org.springblade.modules.farm.vo.FarmPaperVO"> select * from sys_farm_paper where 1=1 <if test="farmPaper.type!=null"> and type = #{farmPaper.type} </if> <if test="farmPaper.farmId!=null"> and farm_id = #{farmPaper.farmId} </if> <if test="farmPaper.name!=null and farmPaper.name!=''"> and name like concat('%',#{farmPaper.name},'%') </if> </select> </mapper>