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