From 02dde7ab2973726f13ab4a292fad714076655ed3 Mon Sep 17 00:00:00 2001
From: Redkale <22250530@qq.com>
Date: Thu, 2 Mar 2017 14:26:44 +0800
Subject: [PATCH]
---
plugin_rest.html | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/plugin_rest.html b/plugin_rest.html
index ebbdb198b..f5aa7a08e 100644
--- a/plugin_rest.html
+++ b/plugin_rest.html
@@ -313,7 +313,7 @@
@RestMapping(name = "partupdate")
public void updateHello(HelloEntity entity, @RestParam("cols") String[] columns) { //通过 /hello/update?bean={...} 修改对象
entity.setUpdatetime(System.currentTimeMillis());
- source.updateColumns(entity, columns);
+ source.updateColumn(entity, columns);
}
//查询Sheet列表
@@ -329,7 +329,6 @@
//查询单个
@RestMapping(name = "find")
- @RestMapping(name = "jsfind", jsvar = "varhello")
public HelloEntity findHello(@RestParam("#") int id) { //通过 /hello/find/1234 查询对象
return source.find(HelloEntity.class, id);
}
@@ -403,14 +402,6 @@
HelloEntity bean = _service.findHello(id);
resp.finishJson(bean);
}
-
- @AuthIgnore
- @WebAction(url = "/hello/jsfind/")
- public void jsfind(HttpRequest req, HttpResponse resp) throws IOException {
- int id = Integer.parseInt(req.getRequstURILastPath());
- HelloEntity bean = _service.findHello(id);
- resp.finishJsResult("varhello", bean);
- }
}