|
@@ -1,6 +1,7 @@
|
|
|
package com.ym.mec.collectfee.controller;
|
|
|
|
|
|
|
|
|
+import com.sun.tracing.dtrace.Attributes;
|
|
|
import com.ym.mec.collectfee.common.web.BaseController;
|
|
|
import com.ym.mec.collectfee.entity.*;
|
|
|
import com.ym.mec.collectfee.service.ApplyInfoService;
|
|
@@ -15,10 +16,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.dao.DuplicateKeyException;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
@@ -193,7 +191,7 @@ public class UserController extends BaseController {
|
|
|
*/
|
|
|
@ApiOperation(value = "修改学生信息")
|
|
|
@PostMapping("/updateUser")
|
|
|
- public Object updateUser(ApplyInfo applyInfo){
|
|
|
+ public Object updateUser(@ModelAttribute ApplyInfo applyInfo){
|
|
|
applyInfo.setUpdateTime(new Date());
|
|
|
applyInfoService.update(applyInfo);
|
|
|
return succeed("修改成功");
|