新增摄像头查询接口
This commit is contained in:
parent
bd84986e44
commit
a632953649
|
@ -279,6 +279,19 @@ public class Controller {
|
|||
return success;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param page
|
||||
* @param pageSize
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("selectCamera")
|
||||
public Result selectNLAll(Integer page,Integer pageSize){
|
||||
List<CameraChannelNLDto> selectNLAll = cameraChannelMapper.selectNLAll(page,pageSize);
|
||||
Result success = Result.success(selectNLAll);
|
||||
return success;
|
||||
}
|
||||
|
||||
//查询视频点播巡检结果,只取异常的
|
||||
// @RequestMapping("listChannelPlayStates")
|
||||
// public Result listChannelPlayStates(
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.hisense.monitormanage.controller;
|
||||
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
|
@ -15,7 +14,7 @@ import java.net.URLConnection;
|
|||
public class FordController {
|
||||
|
||||
@GetMapping("components/**")
|
||||
public void ford(HttpServletRequest request, HttpServletResponse response)throws Exception{
|
||||
public void ford(HttpServletRequest request, HttpServletResponse response){
|
||||
|
||||
String imageDomain = "http://10.132.191.48:30080";
|
||||
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
package com.hisense.monitormanage.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class CameraChannelNLDto {
|
||||
|
||||
private String labelCode;
|
||||
|
||||
private String labelName;
|
||||
|
||||
private String channelCode;
|
||||
|
||||
private String channelId;
|
||||
|
||||
private String channelName;
|
||||
|
||||
private String gpsX;
|
||||
|
||||
private String gpsY;
|
||||
|
||||
private Integer status;//1在线;0离线
|
||||
|
||||
private String nodeName;
|
||||
|
||||
private Integer checkStatus;//1正常;0异常
|
||||
|
||||
}
|
|
@ -3,6 +3,7 @@ package com.hisense.monitormanage.mapper;
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.hisense.monitormanage.dto.CameraChannelDto;
|
||||
import com.hisense.monitormanage.dto.CameraChannelDto1;
|
||||
import com.hisense.monitormanage.dto.CameraChannelNLDto;
|
||||
import com.hisense.monitormanage.dto.ChannelLabelDto;
|
||||
import com.hisense.monitormanage.entity.CameraChannel;
|
||||
import com.hisense.monitormanage.entity.Label;
|
||||
|
@ -50,4 +51,7 @@ public interface CameraChannelMapper extends BaseMapper<CameraChannel> {
|
|||
@Param("gpsY") String gpsY,
|
||||
@Param("gpsY1") String gpsY1);
|
||||
|
||||
|
||||
List<CameraChannelNLDto> selectNLAll(@Param("page") Integer page,@Param("pageSize") Integer pageSize);
|
||||
|
||||
}
|
||||
|
|
|
@ -24,4 +24,12 @@
|
|||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="selectNLAll" resultType="com.hisense.monitormanage.dto.CameraChannelNLDto">
|
||||
SELECT a.label_name,d.* from t_label a RIGHT JOIN (select b.label_code,c.* from t_camera_channel c
|
||||
LEFT JOIN t_channel_mtm_label b on c.channel_code = b.channel_code) d
|
||||
on d.label_code = a.label_code
|
||||
<bind name="page" value="(page-1)*pageSize"/>
|
||||
limit #{page},#{pageSize}
|
||||
</select>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue