| | |
| | | import com.doumee.service.business.ext.ERPSyncService; |
| | | import com.doumee.service.business.impl.hksync.fhk.HkSyncOrgUserFromHKServiceImpl; |
| | | import com.doumee.service.business.impl.hksync.fhk.HkSyncOrgUserFromSelfServiceImpl; |
| | | import com.taobao.api.ApiException; |
| | | import io.swagger.annotations.*; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | }else if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.self){ |
| | | hkSyncOrgUserFromSelfService.syncUserData(this.getLoginUser(token)); |
| | | return ApiResponse.success("同步成功"); |
| | | }else if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.jdy){ |
| | | memberService.syncJdyUserInfo(); |
| | | return ApiResponse.success("同步成功"); |
| | | }else if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.dingding){ |
| | | memberService.syncDDUserInfo(); |
| | | return ApiResponse.success("同步成功"); |
| | | } |
| | | return ApiResponse.success("同步成功"); |
| | | } |
| | |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("全量人员信息同步 - 钉钉") |
| | | @PostMapping("/syncAllDingding") |
| | | // @CloudRequiredPermission("business:company:sync") |
| | | public ApiResponse syncAllDingding() throws ApiException { |
| | | memberService.syncDDUserInfo(); |
| | | return ApiResponse.success("同步成功"); |
| | | } |
| | | |
| | | @ApiOperation("全量人员信息同步 - 简道云") |
| | | @PostMapping("/syncAllJdy") |
| | | // @CloudRequiredPermission("business:company:sync") |
| | | public ApiResponse syncAllJdy() throws ApiException { |
| | | memberService.syncJdyUserInfo(); |
| | | return ApiResponse.success("同步成功"); |
| | | } |
| | | |
| | | |
| | | } |