Bläddra i källkod

Merge remote-tracking branch 'origin/master'

Joburgess 5 år sedan
förälder
incheckning
2f78c19ad1

+ 0 - 1
edu-user/edu-student-server/src/main/java/com/keao/edu/controller/SysSuggestionController.java

@@ -21,7 +21,6 @@ public class SysSuggestionController extends BaseController {
 
     @ApiOperation(value = "新增")
     @RequestMapping("/add")
-    @PreAuthorize("@pcs.hasPermissions('sysSuggestion/add')")
     public Object add(SysSuggestion sysSuggestion) {
         sysSuggestionService.insert(sysSuggestion);
         return succeed();

+ 2 - 4
edu-user/edu-user-biz/src/main/java/com/keao/edu/user/service/impl/StudentServiceImpl.java

@@ -25,10 +25,7 @@ import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Isolation;
 import org.springframework.transaction.annotation.Transactional;
 
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
+import java.util.*;
 import java.util.stream.Collectors;
 
 /**
@@ -157,6 +154,7 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
     @Transactional
     public Student updateInfo(Student student) {
         student.setId(student.getUserId());
+        student.setUpdateTime(new Date());
         if (sysUserDao.update(student) <= 0 || studentDao.update(student) <= 0) {
             throw new BizException("学生信息更新失败,请重试");
         }