格式化

This commit is contained in:
Lemon
2023-10-14 09:30:07 +08:00
parent 881a619d16
commit 5a14be81e6

View File

@@ -82,6 +82,7 @@ public class JumpController extends BaseController {
/** /**
* 上传到阿里云oss * 上传到阿里云oss
* http://localhost:8080/app-xcx-h5/uploadOSS * http://localhost:8080/app-xcx-h5/uploadOSS
*
* @param file * @param file
* @return * @return
*/ */
@@ -96,7 +97,7 @@ public class JumpController extends BaseController {
ajax.put("newFileName", FileUtils.getName(url)); ajax.put("newFileName", FileUtils.getName(url));
ajax.put("originalFilename", file.getOriginalFilename()); ajax.put("originalFilename", file.getOriginalFilename());
return ajax; return ajax;
}catch (Exception e){ } catch (Exception e) {
return AjaxResult.error(e.getMessage()); return AjaxResult.error(e.getMessage());
} }
} }
@@ -104,6 +105,7 @@ public class JumpController extends BaseController {
/** /**
* 获取地锁列表信息 * 获取地锁列表信息
* http://localhost:8080/app-xcx-h5/getGroundLockInfo/{stationId} * http://localhost:8080/app-xcx-h5/getGroundLockInfo/{stationId}
*
* @param stationId * @param stationId
* @return * @return
*/ */
@@ -118,11 +120,10 @@ public class JumpController extends BaseController {
} }
List<GroundLockInfoVO> list = pileBasicInfoService.getGroundLockInfo(stationId); List<GroundLockInfoVO> list = pileBasicInfoService.getGroundLockInfo(stationId);
response = new RestApiResponse<>(list); response = new RestApiResponse<>(list);
}catch (BusinessException e) { } catch (BusinessException e) {
logger.error("获取地锁列表信息 error,", e); logger.error("获取地锁列表信息 error,", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage()); response = new RestApiResponse<>(e.getCode(), e.getMessage());
} } catch (Exception e) {
catch (Exception e) {
logger.error("获取地锁列表信息 error, ", e); logger.error("获取地锁列表信息 error, ", e);
response = new RestApiResponse<>(e); response = new RestApiResponse<>(e);
} }