|
@@ -35,6 +35,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.io.InputStream;
|
|
@@ -514,6 +515,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
// return AjaxResult.success("ok");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @param cameraCode
|
|
@@ -521,8 +523,11 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
*/
|
|
|
@GetMapping("/getDate/{cameraCode}")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
- public AjaxResult getDate(@PathVariable(value = "cameraCode",required = false) String cameraCode) {
|
|
|
- if (StringUtils.isEmptySunhh(cameraCode)){
|
|
|
+ public AjaxResult getDate(HttpServletRequest request) {
|
|
|
+
|
|
|
+ String[] splits = request.getRequestURL().toString().split("/");
|
|
|
+ String cameraCode = splits[splits.length -1];
|
|
|
+ if (StringUtils.isBlank(cameraCode)){
|
|
|
return success();
|
|
|
}
|
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|