Commit fb9c752a by wnb0128

车家智能数据场景模板数据保存--think.wang

1 parent 12549f17
...@@ -58,12 +58,14 @@ public class SceneTemplateController extends BaseController{ ...@@ -58,12 +58,14 @@ public class SceneTemplateController extends BaseController{
sceneTemplate.setCreateTime(now); sceneTemplate.setCreateTime(now);
sceneTemplate.setCreateBy(-1L); sceneTemplate.setCreateBy(-1L);
templateFeignClient.add(sceneTemplate); templateFeignClient.add(sceneTemplate);
return templateFeignClient.add(sceneTemplate) ? R.ok("保存成功")
: R.error("保存失败");
}else{ }else{
sceneTemplate.setUpdateTime(now); sceneTemplate.setUpdateTime(now);
sceneTemplate.setUpdateBy(-1L); sceneTemplate.setUpdateBy(-1L);
templateFeignClient.update(sceneTemplate); return templateFeignClient.update(sceneTemplate) ? R.ok("保存成功")
: R.error("保存失败");
} }
return R.ok();
} }
@RequestMapping(value = "/updateStatus", method = {RequestMethod.POST}) @RequestMapping(value = "/updateStatus", method = {RequestMethod.POST})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!