//package com.yizhi.application.rangeExport;
//
//import java.util.Map;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//import com.yizhi.application.context.RequestContext;
////import com.yizhi.application.feign.VoteClient;
//import com.yizhi.application.file.task.AbstractDefaultTask;
//import com.yizhi.application.model.AccountRangeExportParam;
//import com.yizhi.application.system.remote.AccountRangeClient;
//import com.yizhi.application.vo.VisibleRangeExport;
//
//@Component
//public class VoteVisibleRangeExport extends AbstractDefaultTask<String, Map<String,Object>> {
//
//
//	private static final Logger logger = LoggerFactory.getLogger(VoteVisibleRangeExport.class);
//
//
////	@Autowired
////	private VoteClient voteClient;
//	@Autowired
//	private AccountRangeClient accountRangeClient;
//
//
//
//	@Override
//	protected String execute(Map<String, Object> map) {
//		// TODO Auto-generated method stub
//		Long voteId=(Long) map.get("voteId");
//		RequestContext context=(RequestContext) map.get("context");
//
//		VisibleRangeExport visibleRangeExport=voteClient.exportVisibleRange(voteId);
//		AccountRangeExportParam accountRangeImportParam=new AccountRangeExportParam();
//		if(visibleRangeExport!=null) {
//			accountRangeImportParam.setAccountIds(visibleRangeExport.getAccountIds());
//			accountRangeImportParam.setBizName(visibleRangeExport.getBizName());
//			accountRangeImportParam.setContext(context);
//			accountRangeImportParam.setOrgIds(visibleRangeExport.getOrgIds());
//		}
//		System.out.println(accountRangeImportParam);
//		String result=accountRangeClient.doExport(accountRangeImportParam);
//		return result;
//
//	}
//
//}
