Default Changelist
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
package com.xkrs.controller;
|
||||
|
||||
import com.xkrs.dao.CameraDao;
|
||||
import com.xkrs.dao.DeviceManagementDao;
|
||||
import com.xkrs.model.entity.CameraInformation;
|
||||
import com.xkrs.model.entity.DeviceManagement;
|
||||
import com.xkrs.service.CameraService;
|
||||
import com.xkrs.service.FireService;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@ -23,13 +25,16 @@ public class CameraController {
|
||||
@Resource
|
||||
private CameraDao cameraDao;
|
||||
|
||||
@GetMapping("/Select")
|
||||
@Resource
|
||||
private DeviceManagementDao deviceManagementDao;
|
||||
|
||||
@GetMapping("/getCameraInformation")
|
||||
public List<CameraInformation> getCameraInformation(){
|
||||
|
||||
return cameraService.SelectCameraAll();
|
||||
}
|
||||
|
||||
@GetMapping("/Insert")
|
||||
@GetMapping("/insertCameraInformation")
|
||||
public boolean insertCameraInformation(CameraInformation cameraInformation){
|
||||
try {
|
||||
cameraService.InsertCamera(cameraInformation);
|
||||
@ -39,7 +44,12 @@ public class CameraController {
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@GetMapping("/SelectDeviceManagement")
|
||||
public List<DeviceManagement> SelectDeviceManagement()
|
||||
{
|
||||
return cameraService.SelectDevice();
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user