Browse Source

组织机构人员同步

fangpy 1 year ago
parent
commit
f24a262992

+ 1 - 0
.gitignore

@@ -7,6 +7,7 @@ applog
 rwadminserver
 rwcommonserverlog
 rwtenantserver
+business-log
 temp/
 .mvn
 mvnw.cmd

+ 7 - 15
cx_question/business-server/src/main/java/com/rongwei/controller/QuestionController.java

@@ -26,11 +26,7 @@ public class QuestionController {
     @Autowired
     private SrmIssuesListService srmIssuesListService;
     @Autowired
-    private SlaveSourceService slaveSourceService;
-    @Autowired
     private OrgUserSyncService orgUserSyncService;
-    @Autowired
-    private QuShiftService quShiftService;
 
     /**
      * 故障树图片保存
@@ -53,25 +49,21 @@ public class QuestionController {
     }
 
     /**
-     * 测试
+     * 组织机构同步
      * @return
      */
-    @PostMapping("/testOne")
-    public R testOne(@RequestBody Map<String,Object> map) throws IOException {
-//        orgUserSyncService.orgSync();
-
-        QuShiftDo quShiftDo = new QuShiftDo();
-        quShiftDo.setId("11111");
-        quShiftService.save(quShiftDo);
+    @PostMapping("/orgSync")
+    public R orgSync(@RequestBody Map<String,Object> map) throws IOException {
+        orgUserSyncService.orgSync();
         return R.ok();
     }
 
     /**
-     * 测试
+     * 人员同步
      * @return
      */
-    @PostMapping("/testTwo")
-    public R testTwo(@RequestBody Map<String,Object> map) throws IOException {
+    @PostMapping("/userSync")
+    public R userSync(@RequestBody Map<String,Object> map) throws IOException {
         orgUserSyncService.userSync();
         return R.ok();
     }