| | |
| | | <if test="farm.farmName!=null and farm.farmName!=''"> |
| | | and farm_name like concat('%',#{farm.farmName},'%') |
| | | </if> |
| | | <if test="farm.deptId!=null and farm.deptId!=''"> |
| | | and dept_id = #{farm.deptId} |
| | | </if> |
| | | </select> |
| | | |
| | | <!--自定义查询农场列表数据(不分页)--> |
| | | <select id="getFarmList" resultType="org.springblade.modules.farm.vo.FarmVO"> |
| | | select id, |
| | | farm_name, |
| | | farm_address, |
| | | farm_area, |
| | | slogan, |
| | | introduce, |
| | | picture, |
| | | ST_ASTEXT(position) as position |
| | | from |
| | | sys_farm |
| | | where 1=1 |
| | | <if test="farm.farmName!=null and farm.farmName!=''"> |
| | | and farm_name like concat('%',#{farm.farmName},'%') |
| | | </if> |
| | | <if test="farm.deptId!=null and farm.deptId!=''"> |
| | | and dept_id = #{farm.deptId} |
| | | </if> |
| | | </select> |
| | | |
| | | <!--自定义修改农场围栏数据--> |