| | |
| | | <if test="farm.deptId!=null and farm.deptId!=''"> |
| | | and dept_id = #{farm.deptId} |
| | | </if> |
| | | <if test="farm.ids!=null and farm.ids!=''"> |
| | | and id in |
| | | <foreach item="id" collection="farm.ids.split(',')" open="(" separator=" , " close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | |
| | | <!--自定义修改农场围栏数据--> |
| | |
| | | |
| | | <!--农场数量--> |
| | | <select id="selectCountFarm" resultType="java.lang.Integer"> |
| | | SELECT COUNT(*) as count |
| | | FROM `blade_dept` |
| | | WHERE tenant_id='000000' AND is_deleted=0 AND parent_id!=0 |
| | | SELECT |
| | | COUNT( * ) AS count |
| | | FROM |
| | | sys_farm |
| | | </select> |
| | | |
| | | <!--人员数量--> |