bug 9161: better fix

This commit is contained in:
anthony 2011-03-31 18:23:32 -07:00
parent f3fbe7b9fe
commit 513236b100
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ public class ItWorkDaoImpl extends GenericDaoBase<ItWorkVO, String> implements I
AllFieldsSearch = createSearchBuilder();
AllFieldsSearch.and("instance", AllFieldsSearch.entity().getInstanceId(), Op.EQ);
AllFieldsSearch.and("op", AllFieldsSearch.entity().getType(), Op.EQ);
AllFieldsSearch.and("step", AllFieldsSearch.entity().getStep(), Op.NEQ);
AllFieldsSearch.and("step", AllFieldsSearch.entity().getStep(), Op.EQ);
AllFieldsSearch.done();
CleanupSearch = createSearchBuilder();
@ -64,7 +64,7 @@ public class ItWorkDaoImpl extends GenericDaoBase<ItWorkVO, String> implements I
@Override
public ItWorkVO findByOutstandingWork(long instanceId, State state) {
SearchCriteria<ItWorkVO> sc = AllFieldsSearch.create();
SearchCriteria<ItWorkVO> sc = OutstandingWorkSearch.create();
sc.setParameters("instance", instanceId);
sc.setParameters("op", state);
sc.setParameters("step", Step.Done);