|
@@ -586,10 +586,13 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
public AjaxResult cameraTree(@RequestParam(value = "name", required = false) String name,
|
|
|
@RequestParam(value = "lineDir", required = false) Integer lineDir,
|
|
|
@RequestParam(value = "beginMile", required = false) String mils) {
|
|
|
- if (!mils.matches(PATTERN)) {
|
|
|
- return error("里程位置填写格式不正确!");
|
|
|
+ Integer milsInt = null;
|
|
|
+ if (!StringUtils.isEmpty(mils)) {
|
|
|
+ if (!mils.matches(PATTERN)) {
|
|
|
+ return error("里程位置填写格式不正确!");
|
|
|
+ }
|
|
|
+ milsInt = AppendUtils.stringSplit(mils);
|
|
|
}
|
|
|
- Integer milsInt = AppendUtils.stringSplit(mils);
|
|
|
CameraTree cameraTree = baseDeviceDynamicManagementService.cameraTree(name, lineDir, milsInt);
|
|
|
List<CameraTree> children = cameraTree.getChildren();
|
|
|
children.sort(new Comparator<CameraTree>() {
|