|
|
@ -5,6 +5,7 @@ import com.inspect.simulator.domain.Infrared.*; |
|
|
import com.inspect.simulator.hikVision.utils.StringUtils; |
|
|
import com.inspect.simulator.hikVision.utils.StringUtils; |
|
|
import com.inspect.simulator.service.HikVisionService; |
|
|
import com.inspect.simulator.service.HikVisionService; |
|
|
import com.inspect.simulator.hikVision.utils.AjaxResult; |
|
|
import com.inspect.simulator.hikVision.utils.AjaxResult; |
|
|
|
|
|
import com.inspect.simulator.service.ResultAnalysisService; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.LoggerFactory; |
|
|
import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -12,6 +13,7 @@ import org.springframework.core.io.InputStreamResource; |
|
|
import org.springframework.http.ResponseEntity; |
|
|
import org.springframework.http.ResponseEntity; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
import java.io.InputStream; |
|
|
import java.io.InputStream; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
import java.util.HashMap; |
|
|
import java.util.HashMap; |
|
|
@ -27,6 +29,9 @@ public class InfraredController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private HikVisionService hikVisionService; |
|
|
private HikVisionService hikVisionService; |
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
private ResultAnalysisService resultAnnalysisService; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* ----登录---- |
|
|
* ----登录---- |
|
|
* nvrIp nvrIp |
|
|
* nvrIp nvrIp |
|
|
@ -146,5 +151,9 @@ public class InfraredController { |
|
|
response.put("close", 1); |
|
|
response.put("close", 1); |
|
|
return response; |
|
|
return response; |
|
|
} |
|
|
} |
|
|
|
|
|
@PostMapping("/ir/channelImg") |
|
|
|
|
|
public String getChannelImg(@RequestParam("patrolPointId") String patrolPointId) { |
|
|
|
|
|
return resultAnnalysisService.selectChannelImgByPatrolPointId(patrolPointId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |