老师身份同步的问题修正

This commit is contained in:
daihh
2023-06-13 16:05:05 +08:00
parent 7352684ecb
commit b75e6e099f
2 changed files with 6 additions and 3 deletions

View File

@@ -129,8 +129,9 @@ public class DataUserSyncServiceImpl implements IDataUserSyncService{
userDao.flush(); userDao.flush();
//老师信息 //老师信息
if(u.getUserType()!=null && u.getUserType()==2) { //if(u.getUserType()!=null && u.getUserType()==2) {
Teacher t = teacherDao.get(u.getId()); if((user.getTeacher()!=null && user.getTeacher()) || (user.getUserType()!=null && user.getUserType()==2)){
Teacher t = teacherDao.get(user.getId());
log.info("用户有教师身份,处理教师身份"); log.info("用户有教师身份,处理教师身份");
if(t==null) { if(t==null) {
log.info("添加教师身份"); log.info("添加教师身份");

View File

@@ -5,12 +5,14 @@ import org.junit.jupiter.api.Test;
//@SpringBootTest //@SpringBootTest
class BoeServerAllApplicationTests { class BoeServerAllApplicationTests {
@Test //@Test
void contextLoads() { void contextLoads() {
// for(int i=0;i<100;i++) { // for(int i=0;i<100;i++) {
// System.out.println(IDGenerator.generate()); // System.out.println(IDGenerator.generate());
// } // }
} }
} }