|
|
@ -144,7 +144,8 @@ public class ObjectServiceImpl extends ServiceImpl<InspectObjectMapper, ObjectEn |
|
|
|
throw new ServiceException("巡检点象描述不能为空!"); |
|
|
|
throw new ServiceException("巡检点象描述不能为空!"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (StringUtil.isNotBlank(entity.getSupportAutoVideo())) { |
|
|
|
if (StringUtil.isNotBlank(entity.getSupportAutoVideo())) { |
|
|
|
if ("0".equals(entity.getSupportAutoVideo()) || "1".equals(entity.getSupportAutoVideo()) || "2".equals(entity.getSupportAutoVideo())) { |
|
|
|
if ("0".equals(entity.getSupportAutoVideo()) || "1".equals(entity.getSupportAutoVideo()) |
|
|
|
|
|
|
|
|| "2".equals(entity.getSupportAutoVideo()) || "3".equals(entity.getSupportAutoVideo())) { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
throw new ServiceException("巡检点类型只支持数字: 0普通巡检,1,视频自动巡检,2机器人巡检"); |
|
|
|
throw new ServiceException("巡检点类型只支持数字: 0普通巡检,1,视频自动巡检,2机器人巡检"); |
|
|
|
} |
|
|
|
} |
|
|
|