spring 事物管理的bug
public class DayAtmRunHistory implements IBOTask {@Autowiredprivate DayAtmRunHistoryService dayAtmRunHistoryService;private static final Logger logger=LoggerFactory.getLogger(DayAtmRunHistory.class);/* (non-Javadoc) * @see boframework.IBOTask#process(boframework.IBOTaskRecorder, java.lang.String[], boframework.data.TaskTrace) */@Overridepublic void process(IBOTaskRecorder recoder, String[] parms, TaskTrace taskTrace)throws Exception {//dayAtmRunHistoryService.service(recoder, parms, taskTrace);logger.info("DayAtmRunHistory entry!");System.out.println(taskTrace==null);if(!dayAtmRunHistoryService.initData(recoder, parms, taskTrace)){String info="数据初始化校验失败!";dayAtmRunHistoryService.recoderTraceInfo(TaskInfo.FAILURE, info, taskTrace, recoder);return;}System.out.println(dayAtmRunHistoryService.taskTrace==null);
public boolean initData(IBOTaskRecorder recoder, String[] parms,TaskTrace taskTrace) {this.recoder = recoder;this.taskTrace = taskTrace;}