|
@ -1,11 +1,14 @@
|
1
|
1
|
package com.ekexiu.portal.platform;
|
2
|
2
|
|
3
|
3
|
import org.jfw.apt.annotation.Autowrie;
|
|
4
|
import org.jfw.apt.annotation.DefaultValue;
|
|
5
|
import org.jfw.apt.annotation.Nullable;
|
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.Post;
|
7
|
9
|
import org.jfw.apt.web.annotation.param.JdbcConn;
|
8
|
10
|
import org.jfw.apt.web.annotation.param.PathVar;
|
|
11
|
import org.jfw.util.PageQueryResult;
|
9
|
12
|
import org.jfw.util.StringUtil;
|
10
|
13
|
|
11
|
14
|
import java.sql.Connection;
|
|
@ -72,7 +75,7 @@ public class Console {
|
72
|
75
|
}
|
73
|
76
|
|
74
|
77
|
@Path("/editCheck")
|
75
|
|
@Get
|
|
78
|
@Post
|
76
|
79
|
public int editCheck(@JdbcConn Connection con, String id, String name, String email) throws SQLException {
|
77
|
80
|
PlatformUser platformUser = this.platformDao.queryUser(con, email);
|
78
|
81
|
if ((platformUser != null)&&(!Objects.equals(platformUser.getId(), id))) {
|
|
@ -94,11 +97,13 @@ public class Console {
|
94
|
97
|
map.put("id", id);
|
95
|
98
|
map.put("email", platformUser.getEmail());
|
96
|
99
|
map.put("name", platformInfo.getName());
|
|
100
|
map.put("state", platformUser.getState());
|
97
|
101
|
return map;
|
98
|
102
|
}
|
99
|
103
|
|
100
|
|
|
101
|
|
|
102
|
|
|
103
|
|
|
|
104
|
@Get
|
|
105
|
@Path("/pq")
|
|
106
|
public PageQueryResult<PlatformInfo> query(@JdbcConn Connection con, @Nullable String name, @Nullable String bt, @Nullable String et, @DefaultValue("1") int pageNo, @DefaultValue("10") int pageSize) throws SQLException {
|
|
107
|
return this.platformDao.query(con, name == null ? null : "%" + name + "%", bt == null ? null : bt + "000000", et == null ? null : et + "235959", pageSize, pageNo);
|
|
108
|
}
|
104
|
109
|
}
|