GetSchedulePlanThread.java
932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.bsth.common;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
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");
}
}