package com.weaver.seconddev.chapanda.beisen.esb;

import com.alibaba.fastjson.JSONArray;
import com.weaver.common.base.entity.result.WeaResult;
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
import com.weaver.seconddev.chapanda.beisen.dao.HrmFormFieldDao;
import com.weaver.seconddev.chapanda.beisen.dao.HrmBeisenPositionDao;
import com.weaver.seconddev.chapanda.beisen.util.EbuilderOperateUtils;
import com.weaver.seconddev.chapanda.beisen.util.Esb2BeiSenAssessment360Util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;

@Service("Esb2BeisenAssessment360FullCronJob")
public class Esb2BeisenAssessment360FullCronJob implements EsbServerlessRpcRemoteInterface {
    private final static Logger log = LoggerFactory.getLogger(Esb2BeisenAssessment360FullCronJob.class);

    @Autowired
    HrmFormFieldDao hrmFormFieldDao;

    @Autowired
    HrmBeisenPositionDao hrmBeisenPositionDao;

    @Autowired
    EbuilderOperateUtils ebuilderOperateUtils;

    @Autowired
    Esb2BeiSenAssessment360Util esb2BeiSenAssessment360Util;
    @Override
    public WeaResult<Map<String, Object>> execute(Map<String, Object> params) {

        JSONArray assessmentArray = new JSONArray();

        esb2BeiSenAssessment360Util.queryAssessment360Data();

        Map<String, Object> actionMap = new HashMap<String, Object>();
        actionMap.put("code",200);
        actionMap.put("msg","同步成功");
        return WeaResult.success(actionMap);
    }



}
