|
@@ -90,7 +90,7 @@ public class InnerController extends BaseController {
|
|
*/
|
|
*/
|
|
@GetMapping("/info/{rtkSnCode}/{cameraSn}")
|
|
@GetMapping("/info/{rtkSnCode}/{cameraSn}")
|
|
public synchronized ResultData info(@PathVariable String rtkSnCode,
|
|
public synchronized ResultData info(@PathVariable String rtkSnCode,
|
|
- @PathVariable(required = false) String cameraSn){
|
|
|
|
|
|
+ @PathVariable(value = "cameraSn",required = false) String cameraSn){
|
|
if(StringUtils.isBlank(rtkSnCode)){
|
|
if(StringUtils.isBlank(rtkSnCode)){
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
}
|
|
}
|
|
@@ -118,7 +118,7 @@ public class InnerController extends BaseController {
|
|
*/
|
|
*/
|
|
@GetMapping("/stop/{rtkSnCode}/{cameraSn}")
|
|
@GetMapping("/stop/{rtkSnCode}/{cameraSn}")
|
|
public ResultData stop(@PathVariable String rtkSnCode,
|
|
public ResultData stop(@PathVariable String rtkSnCode,
|
|
- @PathVariable(required = false) String cameraSn){
|
|
|
|
|
|
+ @PathVariable(value = "cameraSn",required = false) String cameraSn){
|
|
if(StringUtils.isBlank(rtkSnCode)){
|
|
if(StringUtils.isBlank(rtkSnCode)){
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
}
|
|
}
|