nidapeng
2024-03-22 720c137ef8bb03b84ca8a8444a39642762ab29fc
server/dmvisit_admin/src/main/java/com/doumee/api/business/CompanyController.java
@@ -171,10 +171,11 @@
    @RequiresPermissions("business:company:sync")
    public ApiResponse sync(){
        if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.erp){
            erpSyncService.syncCompany(null);
            return ApiResponse.success( erpSyncService.syncCompany(null));
        }else if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.hk){
            hkSyncOrgUserFHKService.syncOrgData();
             hkSyncOrgUserFHKService.syncOrgData();
            return ApiResponse.success("同步成功");
        }
        return ApiResponse.success("同步成功");
        return ApiResponse.failed("无效操作");
    }
}