|
@@ -126,12 +126,13 @@ public class D00008Service extends D00008BaseModel implements ExecProcessFlow {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
private void JobSucces(Integer jid) {
|
|
private void JobSucces(Integer jid) {
|
|
- DJobMapper dJobDao= (DJobMapper) UtilTools.getBean("dJobMapper");
|
|
|
|
|
|
+ System.out.println("JobSucces--------start");
|
|
|
|
+ DJobMapper dJobDao= UtilTools.getBean(DJobMapper.class);
|
|
DJob job =dJobDao.selectByPrimaryKey(jid);
|
|
DJob job =dJobDao.selectByPrimaryKey(jid);
|
|
job.setEndtime(XIDateTimeUtils.getNowStr());
|
|
job.setEndtime(XIDateTimeUtils.getNowStr());
|
|
job.setState("1");//完成
|
|
job.setState("1");//完成
|
|
dJobDao.updateByPrimaryKey(job);
|
|
dJobDao.updateByPrimaryKey(job);
|
|
- System.out.println("job:"+jid);
|
|
|
|
|
|
+ System.out.println("JobSucces--------end");
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 任务失败
|
|
* 任务失败
|
|
@@ -139,7 +140,7 @@ public class D00008Service extends D00008BaseModel implements ExecProcessFlow {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
private void JobError(Integer jid) {
|
|
private void JobError(Integer jid) {
|
|
- DJobMapper dJobDao= (DJobMapper) UtilTools.getBean("dJobMapper");
|
|
|
|
|
|
+ DJobMapper dJobDao= UtilTools.getBean(DJobMapper.class);
|
|
DJob job =dJobDao.selectByPrimaryKey(jid);
|
|
DJob job =dJobDao.selectByPrimaryKey(jid);
|
|
job.setEndtime(XIDateTimeUtils.getNowStr());
|
|
job.setEndtime(XIDateTimeUtils.getNowStr());
|
|
job.setState("-1");//任务失败
|
|
job.setState("-1");//任务失败
|
|
@@ -234,7 +235,6 @@ public class D00008Service extends D00008BaseModel implements ExecProcessFlow {
|
|
}
|
|
}
|
|
LogService.addLog(aid,jid,"Fire","求解——————————————————成功");
|
|
LogService.addLog(aid,jid,"Fire","求解——————————————————成功");
|
|
JobSucces(jid);
|
|
JobSucces(jid);
|
|
- System.out.println("job:"+jid);
|
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
LogService.addLog(aid,jid,"Fire","求解——————————————————失败");
|
|
LogService.addLog(aid,jid,"Fire","求解——————————————————失败");
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|