lyq hace 10 meses
padre
commit
2f9a9ab4cf

+ 1 - 0
src/main/java/com/sooka/sponest/event/centereventteventcatalogue/service/impl/CenterEventViewServiceImpl.java

@@ -288,6 +288,7 @@ public class CenterEventViewServiceImpl extends BaseService implements ICenterEv
         String token = RemoteApiUtil.getInstance().getToken();// 大华token
         List<String> eventCodes = result.stream().map(VisuForestCloudMapEventListBO::getEventCode).collect(Collectors.toList());
         visuForestCloudMapVO.setEventStatus(eventCodes);
+        visuForestCloudMapVO.setTemplateType("true");
         List<VisuForestCloudMapEventListBO> attachs = centerEventViewMapper.getEventFile(visuForestCloudMapVO);
         result.forEach(event -> {
             for (VisuForestCloudMapEventListBO attach : attachs) {

+ 3 - 1
src/main/resources/mapper/centereventteventcatalogue/CenterEventViewMapper.xml

@@ -165,7 +165,9 @@
         </where>
         group by event_code) l
         left join ${database_data}.centerdata_t_attach f on f.bus_id = l.id
-        group by bus_id
+        <if test="templateType != null and templateType != ''">
+            group by bus_id
+        </if>
     </select>
 
     <select id="selectEventByCalendar" parameterType="VisuForestCloudMapVO" resultType="VisuForestCloudCalendarBO">