Commit 74d5a1b4 by wnb0128

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

1 parent fb9c752a
......@@ -58,13 +58,11 @@ public class SceneTemplateController extends BaseController{
sceneTemplate.setCreateTime(now);
sceneTemplate.setCreateBy(-1L);
templateFeignClient.add(sceneTemplate);
return templateFeignClient.add(sceneTemplate) ? R.ok("保存成功")
: R.error("保存失败");
return R.ok().data(templateFeignClient.add(sceneTemplate));
}else{
sceneTemplate.setUpdateTime(now);
sceneTemplate.setUpdateBy(-1L);
return templateFeignClient.update(sceneTemplate) ? R.ok("保存成功")
: R.error("保存失败");
return R.ok().data(templateFeignClient.update(sceneTemplate));
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!