GetSchedulePlanThread.java 873 Bytes
package com.bsth.vehicle;

import java.text.SimpleDateFormat;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.bsth.entity.schedule.SchedulePlanInfo;
import com.bsth.repository.schedule.SchedulePlanInfoRepository;

/**
 * 
 * @ClassName: GetSchedulePlanThread 
 * @Description: TODO(从计划排班表抓取当天实际排班) 
 * @author PanZhao
 * @date 2016年6月6日 下午7:42:43 
 *
 */
@Component
public class GetSchedulePlanThread  extends Thread{

	@Autowired
	SchedulePlanInfoRepository schedulePlanInfoRepository;
	
	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
	
	@Override
	public void run() {
		List<SchedulePlanInfo> list = schedulePlanInfoRepository.findByDate(/*sdf.format(new Date())*/"2016-06-01");
		
	}
}