瀏覽代碼

fengji 修改支付方式

yanite 3 年之前
父節點
當前提交
9817c0117e
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentServiceImpl.java

+ 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) {
                 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);
             teacherDao.updateUser(user);
         }else{