14
14
import org .springframework .stereotype .Controller ;
15
15
import org .springframework .ui .Model ;
16
16
import org .springframework .web .bind .WebDataBinder ;
17
- import org .springframework .web .bind .annotation .InitBinder ;
18
- import org .springframework .web .bind .annotation .RequestMapping ;
19
- import org .springframework .web .bind .annotation .RequestMethod ;
20
- import org .springframework .web .bind .annotation .ResponseBody ;
17
+ import org .springframework .web .bind .annotation .*;
21
18
import org .springframework .web .multipart .MultipartFile ;
22
19
23
20
import javax .annotation .Resource ;
28
25
import java .util .*;
29
26
30
27
/**
31
- *
32
28
* @author wangn
33
29
* @date 2017/5/19
34
30
*/
@@ -77,6 +73,7 @@ public String index(Model model) throws Exception {
77
73
78
74
/**
79
75
* 更改密码方法
76
+ *
80
77
* @param model
81
78
* @param password
82
79
* @param firstlogin
@@ -123,6 +120,7 @@ public String changePassword(Model model, String password, String firstlogin, Ht
123
120
124
121
/**
125
122
* 更改密码入口方法
123
+ *
126
124
* @param model
127
125
* @return
128
126
*/
@@ -145,6 +143,7 @@ List<OrderInfo> getOnameBysubject(String subject) throws Exception {
145
143
146
144
/**
147
145
* 文件上传方法
146
+ *
148
147
* @param file
149
148
* @return
150
149
* @throws Exception
@@ -184,7 +183,7 @@ public String upfileByID(MultipartFile[] file) throws Exception {
184
183
185
184
@ RequestMapping ("userselect" )
186
185
public @ ResponseBody
187
- Boolean userSelect (Integer userselectOid ) throws Exception {
186
+ Boolean userSelect (@ RequestParam ( "userselect_oid" ) Integer userselectOid ) throws Exception {
188
187
if (userselectOid != null ) {
189
188
User user = (User ) SecurityUtils .getSubject ().getPrincipal ();
190
189
user .setUserselect_oid (userselectOid );
@@ -195,6 +194,7 @@ Boolean userSelect(Integer userselectOid) throws Exception {
195
194
196
195
/**
197
196
* 删除文件方法
197
+ *
198
198
* @param delHid
199
199
* @return
200
200
* @throws Exception
0 commit comments