XMTT 6 years ago
parent
commit
559b7edc7a

+ 6 - 2
src/main/java/com/ekexiu/project/platform/info/PlatformService.java

@ -1,6 +1,8 @@
1 1
package com.ekexiu.project.platform.info;
2 2
3
import com.ekexiu.project.platform.system.vo.SessionManager;
3 4
import org.jfw.apt.annotation.Autowrie;
5
import org.jfw.apt.web.annotation.LoginUser;
4 6
import org.jfw.apt.web.annotation.Path;
5 7
import org.jfw.apt.web.annotation.operate.Get;
6 8
import org.jfw.apt.web.annotation.operate.Put;
@ -30,13 +32,15 @@ public class PlatformService {
30 32
31 33
    @Path("/update")
32 34
    @Put
33
    public int update(@JdbcConn(true) Connection con,@RequestBody Platform platform) throws SQLException {
35
    public int update(@JdbcConn(true) Connection con, @RequestBody Platform platform, @LoginUser SessionManager manager) throws SQLException {
36
        platform.setModifier(manager.getId());
34 37
        return platformDao.update(con, platform);
35 38
    }
36 39
40
    @LoginUser
37 41
    @Path("/get")
38 42
    @Get
39
    public Platform query(@JdbcConn Connection con)throws SQLException, JfwBaseException {
43
    public Platform query(@JdbcConn Connection con) throws SQLException, JfwBaseException {
40 44
        return platformDao.query(con);
41 45
    }
42 46