package com.xunmei.job.task;


import com.alibaba.fastjson.JSON;
import com.xunmei.common.core.constant.SecurityConstants;
import com.xunmei.common.core.domain.R;
import com.xunmei.system.api.RemoteSyncOrgAndUserService;
import com.xunmei.system.api.RemoteUserService;
import com.xunmei.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 *
 * @author xunmei
 */

@Component("SyncFjnxOrgUserTask")
public class SyncFjnxOrgUserTask {

    @Autowired
    private RemoteSyncOrgAndUserService remoteSyncOrgAndUserService;

    /**
     * 同步 fjnx 机构、用户
     */
    public void syncFjnxOrgAndUser()
    {
        System.out.println("执行无参方法");
        R<Boolean> booleanR = remoteSyncOrgAndUserService.syncOrgAndUser(SecurityConstants.INNER);
        System.out.println(JSON.toJSONString(booleanR));
    }



}
