提交修改

This commit is contained in:
daihh
2023-06-07 18:50:07 +08:00
parent 421fe87fc0
commit f98f8660a4
6 changed files with 20 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.system.ApplicationPid;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
@Configuration
@SpringBootApplication

View File

@@ -121,6 +121,7 @@ public class DataUserSyncServiceImpl implements IDataUserSyncService{
accountDao.saveOrUpdate(a);
userDao.saveOrUpdate(u);
userDao.flush();
if(org!=null) {
orgDao.saveOrUpdate(org);
log.info("更新用户对应的机构信息");

View File

@@ -2,14 +2,16 @@ package com.xboe.school.api;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
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.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.xboe.common.PageList;
import com.xboe.common.Pagination;
import com.xboe.core.JsonResponse;
import com.xboe.core.api.ApiBaseController;