|
@@ -155,7 +155,6 @@ public class DilBatchServiceImpl implements IDilBatchService {
|
|
|
|
|
|
@Scheduled(fixedRate = 1000*60*60)
|
|
|
public void AutoBindBatch(){
|
|
|
- System.out.println("定时绑定批次:"+new Date());
|
|
|
List<Map<String, Object>> list=dilBatchMapper.findBatchForBind(new HashMap<>());
|
|
|
int i=0;
|
|
|
if(list!=null&&list.size()>0){
|
|
@@ -167,17 +166,12 @@ public class DilBatchServiceImpl implements IDilBatchService {
|
|
|
bindBatch(bindMap);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
- System.out.println("======更新失败=======");
|
|
|
- System.out.println(bindMap);
|
|
|
- System.out.println("====================");
|
|
|
}
|
|
|
i++;
|
|
|
}
|
|
|
}
|
|
|
- }else{
|
|
|
- System.out.println("没有数据需要绑定");
|
|
|
+ System.out.println("一共"+i+"个已经更新");
|
|
|
}
|
|
|
- System.out.println("一共"+i+"个已经更新");
|
|
|
}
|
|
|
|
|
|
@Override
|