|
@@ -10,6 +10,7 @@ import com.fdkankan.manage.entity.MqSendLog;
|
|
import com.fdkankan.manage.entity.ScenePlus;
|
|
import com.fdkankan.manage.entity.ScenePlus;
|
|
import com.fdkankan.manage.entity.ScenePlusExt;
|
|
import com.fdkankan.manage.entity.ScenePlusExt;
|
|
import com.fdkankan.manage.httpClient.client.OverallClient;
|
|
import com.fdkankan.manage.httpClient.client.OverallClient;
|
|
|
|
+import com.fdkankan.manage.httpClient.service.OverallService;
|
|
import com.fdkankan.manage.httpClient.vo.OverallParam;
|
|
import com.fdkankan.manage.httpClient.vo.OverallParam;
|
|
import com.fdkankan.manage.httpClient.vo.OverallVo;
|
|
import com.fdkankan.manage.httpClient.vo.OverallVo;
|
|
import com.fdkankan.manage.service.ICommonService;
|
|
import com.fdkankan.manage.service.ICommonService;
|
|
@@ -38,11 +39,8 @@ import java.util.stream.Collectors;
|
|
@RequestMapping("/service/manage/overall")
|
|
@RequestMapping("/service/manage/overall")
|
|
public class OverallController {
|
|
public class OverallController {
|
|
|
|
|
|
- private static String appId ="BDA385EC848C1A425F746869011C8D23";
|
|
|
|
- private static String key ="appId";
|
|
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- OverallClient overallClient;
|
|
|
|
|
|
+ OverallService overallService;
|
|
@Autowired
|
|
@Autowired
|
|
IScenePlusService scenePlusService;
|
|
IScenePlusService scenePlusService;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -54,7 +52,7 @@ public class OverallController {
|
|
|
|
|
|
@PostMapping("/list")
|
|
@PostMapping("/list")
|
|
public ResultData list(@RequestBody OverallParam param){
|
|
public ResultData list(@RequestBody OverallParam param){
|
|
- OverallVo vo = overallClient.list(param,appId,key);
|
|
|
|
|
|
+ OverallVo vo = overallService.list(param);
|
|
if(vo.getCode() != 0 ){
|
|
if(vo.getCode() != 0 ){
|
|
return ResultData.error(vo.getCode(),vo.getMsg());
|
|
return ResultData.error(vo.getCode(),vo.getMsg());
|
|
}
|
|
}
|
|
@@ -79,7 +77,7 @@ public class OverallController {
|
|
@PostMapping("/cameraSceneList")
|
|
@PostMapping("/cameraSceneList")
|
|
public ResultData cameraSceneList(@RequestBody OverallParam param){
|
|
public ResultData cameraSceneList(@RequestBody OverallParam param){
|
|
param.setType(2);
|
|
param.setType(2);
|
|
- OverallVo vo = overallClient.list(param,appId,key);
|
|
|
|
|
|
+ OverallVo vo = overallService.list(param);
|
|
if(vo.getCode() != 0 ){
|
|
if(vo.getCode() != 0 ){
|
|
return ResultData.error(vo.getCode(),vo.getMsg());
|
|
return ResultData.error(vo.getCode(),vo.getMsg());
|
|
}
|
|
}
|
|
@@ -101,7 +99,7 @@ public class OverallController {
|
|
|
|
|
|
for (Object o : array) {
|
|
for (Object o : array) {
|
|
JSONObject obj = (JSONObject) o;
|
|
JSONObject obj = (JSONObject) o;
|
|
- obj.put("thumb",obj.getString("share"));
|
|
|
|
|
|
+ obj.put("webSite",obj.getString("share"));
|
|
obj.put("sceneCodes",obj.getString("id"));
|
|
obj.put("sceneCodes",obj.getString("id"));
|
|
String name = obj.getString("name");
|
|
String name = obj.getString("name");
|
|
if(StringUtils.isBlank(name)){
|
|
if(StringUtils.isBlank(name)){
|
|
@@ -137,7 +135,7 @@ public class OverallController {
|
|
|
|
|
|
@PostMapping("/delete")
|
|
@PostMapping("/delete")
|
|
public ResultData delete(@RequestBody OverallParam param){
|
|
public ResultData delete(@RequestBody OverallParam param){
|
|
- OverallVo vo = overallClient.delete(param.getId(),appId,key);
|
|
|
|
|
|
+ OverallVo vo = overallService.delete(param.getId());
|
|
if(vo.getCode() != 0 ){
|
|
if(vo.getCode() != 0 ){
|
|
return ResultData.error(vo.getCode(),vo.getMsg());
|
|
return ResultData.error(vo.getCode(),vo.getMsg());
|
|
}
|
|
}
|