| | |
| | | |
| | | <!--自定义查询采收记录分页数据--> |
| | | <select id="selectRecoveryPage" resultType="org.springblade.modules.recovery.vo.RecoveryVO"> |
| | | select sr.*,sl.land_name landName,ss.strain_name strainName from sys_recovery sr |
| | | select sr.*,sl.land_name landName,ss.strain_name strainName,user.real_name as realName 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 |
| | | left join blade_user user ON user.id = sr.operator |
| | | where 1=1 |
| | | <if test="recovery.strainName!=null and recovery.strainName!=''"> |
| | | and ss.strain_name like concat ('%',#{recovery.strainName},'%') |
| | | </if> |
| | | <if test="recovery.strainId!=null and recovery.strainId!=''"> |
| | | and sr.strain_id = #{recovery.strainId} |
| | | </if> |
| | |
| | | <if test="recovery.operator!=null and recovery.operator!=''"> |
| | | and sr.operator = #{recovery.operator} |
| | | </if> |
| | | <if test="recovery.deptId!=null and recovery.deptId!=''"> |
| | | and sr.dept_id = #{recovery.deptId} |
| | | <if test="recovery.farmId != null and recovery.farmId != ''"> |
| | | and sl.farm_id = #{recovery.farmId} |
| | | </if> |
| | | <if test="recovery.tenantId!=null and recovery.tenantId!=''"> |
| | | and sr.tenant_id = #{recovery.tenantId} |