|
|
|
|
21
|
import org.jfw.apt.web.annotation.operate.Put;
|
21
|
import org.jfw.apt.web.annotation.operate.Put;
|
22
|
import org.jfw.apt.web.annotation.param.JdbcConn;
|
22
|
import org.jfw.apt.web.annotation.param.JdbcConn;
|
23
|
import org.jfw.apt.web.annotation.param.PathVar;
|
23
|
import org.jfw.apt.web.annotation.param.PathVar;
|
|
|
24
|
import org.jfw.apt.web.annotation.param.RequestBody;
|
24
|
import org.jfw.util.jdbc.JdbcTask;
|
25
|
import org.jfw.util.jdbc.JdbcTask;
|
25
|
import org.jfw.util.jdbc.JdbcUtil;
|
26
|
import org.jfw.util.jdbc.JdbcUtil;
|
26
|
|
27
|
|
|
|
|
|
62
|
|
63
|
|
63
|
@Put
|
64
|
@Put
|
64
|
@Path
|
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
|
final AtomicBoolean ab = new AtomicBoolean(false);
|
67
|
final AtomicBoolean ab = new AtomicBoolean(false);
|
67
|
JdbcUtil.executeAutoCommit(con, new JdbcTask() {
|
68
|
JdbcUtil.executeAutoCommit(con, new JdbcTask() {
|
68
|
@Override
|
69
|
@Override
|