XMTT 6 gadi atpakaļ
vecāks
revīzija
559b7edc7a

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

1
package com.ekexiu.project.platform.info;
1
package com.ekexiu.project.platform.info;
2
2
3
import com.ekexiu.project.platform.system.vo.SessionManager;
3
import org.jfw.apt.annotation.Autowrie;
4
import org.jfw.apt.annotation.Autowrie;
5
import org.jfw.apt.web.annotation.LoginUser;
4
import org.jfw.apt.web.annotation.Path;
6
import org.jfw.apt.web.annotation.Path;
5
import org.jfw.apt.web.annotation.operate.Get;
7
import org.jfw.apt.web.annotation.operate.Get;
6
import org.jfw.apt.web.annotation.operate.Put;
8
import org.jfw.apt.web.annotation.operate.Put;
30
32
31
    @Path("/update")
33
    @Path("/update")
32
    @Put
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
        return platformDao.update(con, platform);
37
        return platformDao.update(con, platform);
35
    }
38
    }
36
39
40
    @LoginUser
37
    @Path("/get")
41
    @Path("/get")
38
    @Get
42
    @Get
39
    public Platform query(@JdbcConn Connection con)throws SQLException, JfwBaseException {
43
    public Platform query(@JdbcConn Connection con) throws SQLException, JfwBaseException {
40
        return platformDao.query(con);
44
        return platformDao.query(con);
41
    }
45
    }
42
46