|
@@ -1,5 +1,6 @@
|
|
|
package com.fdkankan.ucenter.controller;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fdkankan.ucenter.common.BaseController;
|
|
|
import com.fdkankan.ucenter.common.Result;
|
|
|
import com.fdkankan.ucenter.service.IScenePlusService;
|
|
@@ -36,7 +37,10 @@ public class DeviceSceneController extends BaseController {
|
|
|
@RequestMapping(value = "/list", method = RequestMethod.POST)
|
|
|
public Result getScenes(@RequestBody SceneParam param) throws Exception {
|
|
|
param.setHasFolder(0);
|
|
|
- return Result.success(sceneProService.newList(param,null));
|
|
|
+ JSONObject data = sceneProService.newList(param, null);
|
|
|
+ JSONObject pageInfo = data.getJSONObject("pageInfo");
|
|
|
+ pageInfo.put("sceneNum",data.getInteger("sceneNum"));
|
|
|
+ return Result.success(pageInfo);
|
|
|
}
|
|
|
|
|
|
/**
|