|
@@ -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();
|
|
|
}
|