|
@ -21,6 +21,7 @@ import org.jfw.apt.web.annotation.operate.Post;
|
21
|
21
|
import org.jfw.apt.web.annotation.operate.Put;
|
22
|
22
|
import org.jfw.apt.web.annotation.param.JdbcConn;
|
23
|
23
|
import org.jfw.apt.web.annotation.param.PathVar;
|
|
24
|
import org.jfw.apt.web.annotation.param.RequestBody;
|
24
|
25
|
import org.jfw.util.jdbc.JdbcTask;
|
25
|
26
|
import org.jfw.util.jdbc.JdbcUtil;
|
26
|
27
|
|
|
@ -62,7 +63,7 @@ public class SysResourceService {
|
62
|
63
|
|
63
|
64
|
@Put
|
64
|
65
|
@Path
|
65
|
|
public void update(@JdbcConn(true) final Connection con, final SysResource sres) throws SQLException {
|
|
66
|
public void update(@JdbcConn(true) final Connection con,@RequestBody final SysResource sres) throws SQLException {
|
66
|
67
|
final AtomicBoolean ab = new AtomicBoolean(false);
|
67
|
68
|
JdbcUtil.executeAutoCommit(con, new JdbcTask() {
|
68
|
69
|
@Override
|