Ver código fonte

fengji 修改支付方式

yanite 3 anos atrás
pai
commit
9817c0117e

+ 5 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentServiceImpl.java

@@ -156,6 +156,11 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
             if (studentPreRegistration.getUserName() != null) {
             if (studentPreRegistration.getUserName() != null) {
                 user.setUsername(studentPreRegistration.getUserName());
                 user.setUsername(studentPreRegistration.getUserName());
             }
             }
+            if (user.getUserType() == null) {
+                user.setUserType("STUDENT");
+            } else if (!user.getUserType().contains("STUDENT")) {
+                user.setUserType(user.getUserType() + ",STUDENT");
+            }
             user.setUpdateTime(date);
             user.setUpdateTime(date);
             teacherDao.updateUser(user);
             teacherDao.updateUser(user);
         }else{
         }else{