| | |
| | | |
| | | <!--自定义查询农场养殖记录分页数据--> |
| | | <select id="selectFarmPlantPage" resultType="org.springblade.modules.farmplant.vo.FarmPlantVO"> |
| | | select sfp.*,ss.strain_name strainName,url,sl.land_name landName from sys_farm_plant sfp |
| | | select sfp.*,ss.strain_name strainName,url,sl.land_name landName,sl.land_area area,land_unit landUnit from sys_farm_plant sfp |
| | | left join sys_strain ss on ss.id = sfp.strain_id |
| | | left join sys_land sl on sl.id = sfp.land_id |
| | | where 1=1 |
| | |
| | | <if test="farmPlant.jobWay!=null and farmPlant.jobWay!=''"> |
| | | and sfp.job_way = #{farmPlant.jobWay} |
| | | </if> |
| | | <if test="farmPlant.status!=null and farmPlant.status!=''"> |
| | | and sfp.status = #{farmPlant.status} |
| | | </if> |
| | | <if test="farmPlant.strainName!=null and farmPlant.strainName!=''"> |
| | | and ss.strain_name like concat('%',#{farmPlant.strainName},'%') |
| | | </if> |