智慧保安后台管理-验收版本
Administrator
2021-09-16 6b7dfddb2325267574e84b375b9147a8b2c2bc02
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -1856,9 +1856,9 @@
        on
        si.jurisdiction = sj.id
        where 1=1
        and (stats = 2 or stats = 4)
        and (stats = 0 or stats = 1 or stats = 2 or stats = 4)
        <if test="information.jurisdiction!=null and information.jurisdiction!=''">
            and sj.id = #{information.jurisdiction}
            and (sj.id = #{information.jurisdiction} or sj.parent_id =  #{information.jurisdiction})
        </if>
    </select>
@@ -1912,7 +1912,7 @@
        where 1=1
        and (si.stats = 2 or si.stats = 4)
        <if test="information.jurisdiction!=null and information.jurisdiction!=''">
            and sj.id = #{information.jurisdiction}
            and (sj.id = #{information.jurisdiction} or sj.parent_id =  #{information.jurisdiction})
        </if>
    </select>
@@ -1960,7 +1960,7 @@
        and (c.stats = 2 or c.stats = 4)
        and pnum &lt; #{information.proportion}
        <if test="information.jurisdiction!=null and information.jurisdiction!='' and information.jurisdiction!='1372091709474910209'">
            and sj.id = #{information.jurisdiction}
            and (sj.id = #{information.jurisdiction} or sj.parent_id =  #{information.jurisdiction})
        </if>
        <if test="information.departmentid!=null and information.departmentid!=''">
            and c.departmentid = #{information.departmentid}
@@ -2056,7 +2056,7 @@
        and (d.stats = 2 or d.stats = 4)
        and pnum &lt; #{information.proportion}
        <if test="information.jurisdiction!=null and information.jurisdiction!='' and information.jurisdiction!='1372091709474910209'">
            and sj.id = #{information.jurisdiction}
            and (sj.id = #{information.jurisdiction} or sj.parent_id =  #{information.jurisdiction})
        </if>
    </select>
@@ -2191,7 +2191,7 @@
            a.dept_id = si.departmentid
            where 1=1
            <if test="information.jurisdiction!=null and information.jurisdiction!='' and information.jurisdiction!='1372091709474910209'">
                and sj.id = #{information.jurisdiction}
                and (sj.id = #{information.jurisdiction} or sj.parent_id =  #{information.jurisdiction})
            </if>
        ) b
        where b.znum &lt; 2