智慧农业后台管理
Administrator
2022-07-13 3df8757ade3bdef3b5a142c846680102589260bc
src/main/java/org/springblade/modules/farm/mapper/FarmPaperMapper.xml
File was renamed from src/main/java/org/springblade/modules/farm/mapper/StrainService.xml
@@ -5,8 +5,11 @@
    <!--自定义查询农场检测报告/证书分页数据-->
    <select id="selectFarmPaperPage" resultType="org.springblade.modules.farm.vo.FarmPaperVO">
        select * from sys_farm_paper where 1=1
        <if test="farmPaper.type!=null">
        <if test="farmPaper.type!=null and farmPaper.type!=''">
            and type = #{farmPaper.type}
        </if>
        <if test="farmPaper.deptId!=null and farmPaper.deptId!=''">
            and dept_id = #{farmPaper.deptId}
        </if>
        <if test="farmPaper.farmId!=null">
            and farm_id = #{farmPaper.farmId}
@@ -16,4 +19,9 @@
        </if>
    </select>
    <!--查询相关检测信息-->
    <select id="getFarmPaperList" resultType="org.springblade.modules.farm.vo.FarmPaperVO">
        select * from sys_farm_paper sfp where dept_id = #{deptId}
    </select>
</mapper>