智慧农业后台管理
guoshilong
2022-08-12 e7f5c0e502a89b2f91c4b57f42c56d7eb2484563
src/main/java/org/springblade/modules/farm/mapper/FarmMapper.xml
@@ -43,6 +43,12 @@
        <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>
    <!--自定义修改农场围栏数据-->
@@ -102,9 +108,10 @@
    <!--农场数量-->
    <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>
    <!--人员数量-->