lidongdong
2023-09-04 9c5078803c433693a80112c6f824055a7b74e287
修改社区动态加载不出来
2个文件已修改
76 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventMapper.xml 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
@@ -1014,7 +1014,11 @@
                    comEvent.setSpecialistId(expert.getId());
                    isExpertCheck=true;
                    expertId=expert.getId();
                    level=expert.getLevel();
                    id=expert.getCommunityId();
            }
            }else if (loginUserInfoVO.getType().equals(12)){
                //行业分中心权限
                comEvent.setUserType(3);
@@ -1033,7 +1037,7 @@
                List<Long> cids = comActDAO.selectCommunityByStreetId(loginUserInfoVO.getStreetId());
                comEvent.setUserType(5);
                comEvent.setCommunityIds(cids);
         }
        }
        if (isExpertCheck){
            List<Long> eventIds = comEventMapper.listEventIds(expertId);
            if(eventIds!=null && eventIds.size()>0){
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventMapper.xml
@@ -185,47 +185,47 @@
        <where>
            event_process_status not in (9)
            AND app_id=#{comEvent.appId}
        <if test="comEvent.userType == 1">
            AND request_user_id=#{comEvent.requestUserId}
        </if>
        <if test="comEvent.userType == 2">
            <if test="comEvent.eventIds != null">
                AND id in
                <foreach collection="comEvent.eventIds" item="id" separator="," open="(" close=")">
            <if test="comEvent.userType == 1">
                AND request_user_id=#{comEvent.requestUserId}
            </if>
            <if test="comEvent.userType == 2">
                <if test="comEvent.eventIds != null">
                    AND id in
                    <foreach collection="comEvent.eventIds" item="id" separator="," open="(" close=")">
                        #{id}
                    </foreach>
                </if>
            </if>
            <if test="comEvent.userType == 3">
                AND center_id=#{comEvent.centerId}
            </if>
            <if test="comEvent.userType == 4">
                AND request_user_community=#{comEvent.communityId}
            </if>
            <if test="comEvent.userType == 5">
                AND request_user_community in
                <foreach collection="comEvent.communityIds" item="id" separator="," open="(" close=")">
                    #{id}
                </foreach>
            </if>
        </if>
        <if test="comEvent.userType == 3">
            AND center_id=#{comEvent.centerId}
        </if>
        <if test="comEvent.userType == 4">
            AND request_user_community=#{comEvent.communityId}
        </if>
        <if test="comEvent.userType == 5">
            AND request_user_community in
            <foreach collection="comEvent.communityIds" item="id" separator="," open="(" close=")">
                #{id}
            </foreach>
        </if>
            <if test="comEvent.level != null and comEvent.level != ''">
                <if test="comEvent.level == 1">
                    AND current_process_type=4
                </if>
                <if test="comEvent.searchId != null and comEvent.searchId != ''">
                    <if test="comEvent.level == 2">
                        AND center_id=#{comEvent.searchId} AND current_process_type in(1,5)
                <if test="comEvent.level != null and comEvent.level != ''">
                    <if test="comEvent.level == 1">
                        AND current_process_type=4
                    </if>
                    <if test="comEvent.level == 3">
                        AND request_user_community in (select community_id from com_act where street_id=#{comEvent.searchId})
                        AND current_process_type in (3,5)
                    </if>
                    <if test="comEvent.level == 4">
                        AND request_user_community=#{comEvent.searchId} AND current_process_type in (2,5)
                    <if test="comEvent.searchId != null and comEvent.searchId != ''">
                        <if test="comEvent.level == 2">
                            AND center_id=#{comEvent.searchId} AND current_process_type in(1,5)
                        </if>
                        <if test="comEvent.level == 3">
                            AND request_user_community in (select community_id from com_act where street_id=#{comEvent.searchId})
                            AND current_process_type in (3,5)
                        </if>
                        <if test="comEvent.level == 4">
                            AND request_user_community=#{comEvent.searchId} AND current_process_type in (2,5)
                        </if>
                    </if>
                </if>
            </if>
    </where>
        </where>
        group by event_process_status
    </select>