|
@@ -196,7 +196,7 @@ public class OnlinePageController {
|
|
|
* @return 应答结果对象,包含对象详情。
|
|
|
*/
|
|
|
@GetMapping("/view")
|
|
|
- public ResponseResult<OnlinePageVo> view(@RequestParam Long pageId) {
|
|
|
+ public ResponseResult<OnlinePageVo> view(@RequestParam String pageId) {
|
|
|
if (MyCommonUtil.existBlankArgument(pageId)) {
|
|
|
return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST);
|
|
|
}
|
|
@@ -219,7 +219,7 @@ public class OnlinePageController {
|
|
|
*/
|
|
|
@PostMapping("/listNotInOnlinePageDatasource")
|
|
|
public ResponseResult<MyPageData<OnlineDatasourceVo>> listNotInOnlinePageDatasource(
|
|
|
- @MyRequestBody Long pageId,
|
|
|
+ @MyRequestBody String pageId,
|
|
|
@MyRequestBody OnlineDatasourceDto onlineDatasourceDtoFilter,
|
|
|
@MyRequestBody MyOrderParam orderParam,
|
|
|
@MyRequestBody MyPageParam pageParam) {
|
|
@@ -248,7 +248,7 @@ public class OnlinePageController {
|
|
|
*/
|
|
|
@PostMapping("/listOnlinePageDatasource")
|
|
|
public ResponseResult<MyPageData<OnlineDatasourceVo>> listOnlinePageDatasource(
|
|
|
- @MyRequestBody Long pageId,
|
|
|
+ @MyRequestBody String pageId,
|
|
|
@MyRequestBody OnlineDatasourceDto onlineDatasourceDtoFilter,
|
|
|
@MyRequestBody MyOrderParam orderParam,
|
|
|
@MyRequestBody MyPageParam pageParam) {
|
|
@@ -276,7 +276,7 @@ public class OnlinePageController {
|
|
|
@OperationLog(type = SysOperationLogType.ADD_M2M)
|
|
|
@PostMapping("/addOnlinePageDatasource")
|
|
|
public ResponseResult<Void> addOnlinePageDatasource(
|
|
|
- @MyRequestBody Long pageId,
|
|
|
+ @MyRequestBody String pageId,
|
|
|
@MyRequestBody(value = "onlinePageDatasourceList") List<OnlinePageDatasourceDto> onlinePageDatasourceDtoList) {
|
|
|
if (MyCommonUtil.existBlankArgument(pageId, onlinePageDatasourceDtoList)) {
|
|
|
return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST);
|
|
@@ -330,17 +330,17 @@ public class OnlinePageController {
|
|
|
@OperationLog(type = SysOperationLogType.DELETE_M2M)
|
|
|
@PostMapping("/deleteOnlinePageDatasource")
|
|
|
public ResponseResult<Void> deleteOnlinePageDatasource(
|
|
|
- @MyRequestBody Long pageId, @MyRequestBody Long datasourceId) {
|
|
|
+ @MyRequestBody String pageId, @MyRequestBody String datasourceId) {
|
|
|
if (MyCommonUtil.existBlankArgument(pageId, datasourceId)) {
|
|
|
return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST);
|
|
|
}
|
|
|
- if (!onlinePageService.removeOnlinePageDatasource(pageId + "", datasourceId + "")) {
|
|
|
+ if (!onlinePageService.removeOnlinePageDatasource(pageId, datasourceId)) {
|
|
|
return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST);
|
|
|
}
|
|
|
return ResponseResult.success();
|
|
|
}
|
|
|
|
|
|
- private ResponseResult<Void> doOnlinePageDatasourceVerify(Long pageId) {
|
|
|
+ private ResponseResult<Void> doOnlinePageDatasourceVerify(String pageId) {
|
|
|
if (MyCommonUtil.existBlankArgument(pageId)) {
|
|
|
return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST);
|
|
|
}
|