1414import org .springframework .stereotype .Controller ;
1515import org .springframework .ui .Model ;
1616import 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 .*;
2118import org .springframework .web .multipart .MultipartFile ;
2219
2320import javax .annotation .Resource ;
2825import java .util .*;
2926
3027/**
31- *
3228 * @author wangn
3329 * @date 2017/5/19
3430 */
@@ -77,6 +73,7 @@ public String index(Model model) throws Exception {
7773
7874 /**
7975 * 更改密码方法
76+ *
8077 * @param model
8178 * @param password
8279 * @param firstlogin
@@ -123,6 +120,7 @@ public String changePassword(Model model, String password, String firstlogin, Ht
123120
124121 /**
125122 * 更改密码入口方法
123+ *
126124 * @param model
127125 * @return
128126 */
@@ -145,6 +143,7 @@ List<OrderInfo> getOnameBysubject(String subject) throws Exception {
145143
146144 /**
147145 * 文件上传方法
146+ *
148147 * @param file
149148 * @return
150149 * @throws Exception
@@ -184,7 +183,7 @@ public String upfileByID(MultipartFile[] file) throws Exception {
184183
185184 @ RequestMapping ("userselect" )
186185 public @ ResponseBody
187- Boolean userSelect (Integer userselectOid ) throws Exception {
186+ Boolean userSelect (@ RequestParam ( "userselect_oid" ) Integer userselectOid ) throws Exception {
188187 if (userselectOid != null ) {
189188 User user = (User ) SecurityUtils .getSubject ().getPrincipal ();
190189 user .setUserselect_oid (userselectOid );
@@ -195,6 +194,7 @@ Boolean userSelect(Integer userselectOid) throws Exception {
195194
196195 /**
197196 * 删除文件方法
197+ *
198198 * @param delHid
199199 * @return
200200 * @throws Exception
0 commit comments