罗元桥
2021-10-12 117e0945d9d7c94915c44e74c136d21a8fb17043
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/EventMapper.xml
@@ -1045,7 +1045,7 @@
            egd1.grid_community_id = #{communityId}
            AND e1.event_category = 1
            AND e1.event_process_status = 1
            AND e1.event_status
            AND e1.event_status = 2
            AND e1.event_deal_status = 1
         ) AS pendingNum,
         (
@@ -1068,7 +1068,7 @@
         WHERE
            e3.event_status = 2
            AND e3.create_at LIKE CONCAT(#{nowDate},'%')) as currentNum,
            (select count(id) from com_act_easy_photo where community_id = 2 and del_tag = 0 and create_at LIKE CONCAT('2021-07','%')) as sspCurrentNum
            (select count(id) from com_act_easy_photo where community_id = 2 and del_tag = 0 and create_at LIKE CONCAT(#{nowDate},'%')) as sspCurrentNum
            FROM
               `event` AS e
@@ -1228,7 +1228,7 @@
            AND e5.event_type = 6
            AND egd5.grid_community_id = #{communityId}
         ) AS tsTotal,
         (select count(id) from com_act_easy_photo as caep where community_id = #{communityId} and del_tag = 0 and handle_status = 2) as sspTotal
         (select count(id) from com_act_easy_photo as caep where community_id = #{communityId} and del_tag = 0 and status = 4) as sspTotal
      FROM
         `event` AS e
         LEFT JOIN event_grid_data AS egd ON egd.id = e.grid_id
@@ -1302,7 +1302,7 @@
            AND e5.event_type = 6
            AND egd5.grid_community_id = #{communityId}
         ) AS tsTotal,
         (select count(id) from com_act_easy_photo as caep where community_id = #{communityId} and del_tag = 0 and handle_status = 1) as sspTotal
         (select count(id) from com_act_easy_photo as caep where community_id = #{communityId} and del_tag = 0 and status in (1,2)) as sspTotal
      FROM
         `event` AS e
         LEFT JOIN event_grid_data AS egd ON egd.id = e.grid_id