|
@@ -3,6 +3,7 @@ package com.dgtly.sync.controller;
|
|
|
import java.util.List;
|
|
|
|
|
|
import com.dgtly.sync.domain.SyncFailDetail;
|
|
|
+import com.dgtly.sync.service.IAnalysisSysUserService;
|
|
|
import com.dgtly.sync.service.ISyncFailDetailService;
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -34,7 +35,8 @@ public class SyncLogController extends BaseController
|
|
|
|
|
|
@Autowired
|
|
|
private ISyncLogService syncLogService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private IAnalysisSysUserService analysisSysUserService;
|
|
|
|
|
|
@Autowired
|
|
|
private ISyncFailDetailService syncFailDetailService;
|
|
@@ -98,5 +100,21 @@ public class SyncLogController extends BaseController
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 解析用户数据
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequiresPermissions("sync:synclog:resyncuser")
|
|
|
+ @GetMapping("reSyncUser")
|
|
|
+ @ResponseBody
|
|
|
+ public Object user(){
|
|
|
+ try{
|
|
|
+ analysisSysUserService.analysisSysUser(null);
|
|
|
+ }catch (Exception e){
|
|
|
+ logger.error("解析用户出错",e);
|
|
|
+ }
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|