@Deprecated
protected int getUnsuccessfulCount(String planId,String planDetailId ){
ListPage<PlanDetail> page = new ListPage<PlanDetail>(0);
SearchCondition sc = new SearchCondition();
sc.equal("plan.id", planId);
sc.notEqual("id", planDetailId);
sc.notEqual("status", Status.SUCCESS );
page = planDetailDao.list(page, sc);
return page.getAllSize();