| | |
| | | |
| | | <!--自定义查询农场养殖记录分页数据--> |
| | | <select id="selectFarmPlantPage" resultType="org.springblade.modules.farmplant.vo.FarmPlantVO"> |
| | | select sfp.*,ss.strain_name strainName from sys_farm_plant sfp |
| | | select sfp.*,ss.strain_name strainName,url,sl.land_name landName 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.plant!=null and farmPlant.plant!=''"> |
| | | and sfp.plant = #{farmPlant.plant} |
| | |
| | | <!--自定义查询农场检测报告/证书分页数据--> |
| | | <select id="selectStrainPage" resultType="org.springblade.modules.farmplant.vo.StrainVO"> |
| | | select * from sys_strain where 1=1 |
| | | <if test="strain.strainType!=null and strain.strainType!=''"> |
| | | and strain_type = #{strain.strainType} |
| | | </if> |
| | | <if test="strain.strainName!=null and strain.strainName!=''"> |
| | | and strain_name like concat('%',#{strain.strainName},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | */ |
| | | private String strainName; |
| | | |
| | | /** |
| | | * 农产品图片 url |
| | | */ |
| | | private String url; |
| | | |
| | | /** |
| | | * 地块名称 |
| | | */ |
| | | private String landName; |
| | | |
| | | } |