Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Commit ad3e69d

Browse files
committed
修复与服务器交互数据失败的BUG
1 parent 0016292 commit ad3e69d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/com/ning/file/action/FileAction.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
import org.springframework.stereotype.Controller;
1515
import org.springframework.ui.Model;
1616
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.*;
2118
import org.springframework.web.multipart.MultipartFile;
2219

2320
import javax.annotation.Resource;
@@ -28,7 +25,6 @@
2825
import 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

Comments
 (0)