yangyue 1 anno fa
parent
commit
0ceff41be6

+ 6 - 4
video/src/main/java/cn/com/taiji/video/cotroller/VideoUrlController.java

@@ -1,10 +1,7 @@
 package cn.com.taiji.video.cotroller;
 
 
-import cn.com.taiji.video.model.VideoAnalysisLineDTO;
-import cn.com.taiji.video.model.VideoAnalysisPieDTO;
-import cn.com.taiji.video.model.VideoDTO;
-import cn.com.taiji.video.model.VideoRecord;
+import cn.com.taiji.video.model.*;
 import cn.com.taiji.video.service.IVideoUrlService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -60,4 +57,9 @@ public class VideoUrlController {
         return urlService.queryLineRecord(type);
     }
 
+    @GetMapping("yjtj/record")
+    public YjtjDTO queryYjtjRecord() {
+        return urlService.queryYjtjRecord();
+    }
+
 }

+ 8 - 0
video/src/main/java/cn/com/taiji/video/mapper/HtDpVideoMapper.java

@@ -3,6 +3,7 @@ package cn.com.taiji.video.mapper;
 import cn.com.taiji.video.model.HtDpVideo;
 import cn.com.taiji.video.model.VideoDTO;
 import cn.com.taiji.video.model.VideoRecord;
+import cn.com.taiji.video.model.YjtjDTO;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import org.apache.ibatis.annotations.Mapper;
 
@@ -31,4 +32,11 @@ public interface HtDpVideoMapper extends BaseMapper<HtDpVideo> {
      */
     List<VideoRecord> selectVideoRecord();
 
+    /**
+     * 59国预警统计
+     *
+     * @return YjtjDTO
+     */
+    YjtjDTO selectYjtjRecord();
+
 }

+ 23 - 0
video/src/main/java/cn/com/taiji/video/model/YjtjDTO.java

@@ -0,0 +1,23 @@
+package cn.com.taiji.video.model;
+
+import lombok.Data;
+
+/**
+ * @Description 59国预警统计
+ * @Author yangyue
+ * @Date 2023/7/28
+ */
+@Data
+public class YjtjDTO {
+
+    private Integer total;
+
+    private String ffld;
+
+    private String cqzl;
+
+    private String bbbzs;
+
+    private String qt;
+
+}

+ 7 - 4
video/src/main/java/cn/com/taiji/video/service/IVideoUrlService.java

@@ -1,10 +1,7 @@
 package cn.com.taiji.video.service;
 
 
-import cn.com.taiji.video.model.VideoAnalysisLineDTO;
-import cn.com.taiji.video.model.VideoAnalysisPieDTO;
-import cn.com.taiji.video.model.VideoDTO;
-import cn.com.taiji.video.model.VideoRecord;
+import cn.com.taiji.video.model.*;
 
 import java.time.LocalDate;
 import java.util.List;
@@ -63,4 +60,10 @@ public interface IVideoUrlService {
      */
     List<VideoAnalysisLineDTO> queryLineRecord(Integer type);
 
+    /**
+     * 59国预警统计
+     * @return YjtjDTO
+     */
+    YjtjDTO queryYjtjRecord();
+
 }

+ 5 - 0
video/src/main/java/cn/com/taiji/video/service/impl/VideoUrlServiceImpl.java

@@ -245,4 +245,9 @@ public class VideoUrlServiceImpl implements IVideoUrlService {
 
         return analysisLineDTO;
     }
+
+    @Override
+    public YjtjDTO queryYjtjRecord() {
+        return videoMapper.selectYjtjRecord();
+    }
 }

+ 4 - 0
video/src/main/resources/mapper/HtDpVideoMapper.xml

@@ -47,4 +47,8 @@
         order by sort
     </select>
 
+    <select id="selectYjtjRecord" resultType="YjtjDTO">
+        select * from ht_dp_59_record
+    </select>
+
 </mapper>