智慧农业后台管理
Administrator
2022-05-19 84b2e543d0acffa9afede334e65ae9b5bde1888c
src/main/java/org/springblade/modules/recovery/mapper/RecoveryMapper.xml
@@ -4,9 +4,15 @@
    <!--自定义查询采收记录分页数据-->
    <select id="selectRecoveryPage" resultType="org.springblade.modules.recovery.vo.RecoveryVO">
        select sfr.*,sl.land_name landName from sys_recovery sr
        select sr.*,sl.land_name landName from sys_recovery sr
        left join sys_land sl on sl.id = sr.land_id
        where 1=1
        <if test="recovery.strainId!=null and recovery.strainId!=''">
            and sr.strain_id = #{recovery.strainId}
        </if>
        <if test="recovery.leaves!=null and recovery.leaves!=''">
            and sr.leaves = #{recovery.leaves}
        </if>
        <if test="recovery.landId!=null and recovery.landId!=''">
            and sr.land_id = #{recovery.landId}
        </if>