|
|
@@ -16,6 +16,8 @@ import com.uas.sso.support.SyncFail;
|
|
|
import com.uas.sso.util.ExecuteUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
@@ -39,6 +41,7 @@ public class CrawlerUserSpaceServiceImpl implements CrawlerUserSpaceService {
|
|
|
private SyncBufferedLogger syncLogger = LoggerManager.getLogger(SyncBufferedLogger.class);
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public void completeUserspaceInfo(String json) {
|
|
|
// 1.解析json
|
|
|
List<Userspace> newSpaceList = JSON.parseArray(json, Userspace.class);
|