zhongrj
2023-12-22 c5dc6db7a22b375f2f9302260fd084953edd9068
src/main/java/org/springblade/modules/grid/mapper/GridmanMapper.xml
@@ -33,6 +33,9 @@
        <if test="gridman.gridId!=null">
            and jg.id = #{gridman.gridId}
        </if>
        <if test="gridman.communityCode!=null and gridman.communityCode!=''">
            and jg.community_code like concat('%',#{gridman.communityCode},'%')
        </if>
    </select>
    <!--自定义分页查询-->
@@ -55,6 +58,9 @@
                 LEFT JOIN jczz_gridman jgm ON jg.id = jgm.grid_id
        WHERE jg.community_code = #{code}
          AND jg.is_deleted = 0
        <if test="userId!=null">
          and jgm.user_id= #{userId}
        </if>
    </select>
    <select id="getCompanyStatistics" resultType="java.lang.Integer">