Commit c2d71525 by shiwenbo

根据区域公司查询场站时过滤掉已删除的场站

parent 7c40c2e0
...@@ -184,8 +184,9 @@ public class StationDaoImpl extends AbstractBaseDao implements StationDao, Stat ...@@ -184,8 +184,9 @@ public class StationDaoImpl extends AbstractBaseDao implements StationDao, Stat
@Override @Override
public List<KObject> queryStationByRegionalCompany(UUID id) { public List<KObject> queryStationByRegionalCompany(UUID id) {
return template.execute(session -> { return template.execute(session -> {
Query<KObject> query = session.createQuery(" from " + StationConstant.ENTITY + " where regionalCompany.id=:id ", KObject.class); Query<KObject> query = session.createQuery(" from " + StationConstant.ENTITY + " where regionalCompany.id=:id and del=:del", KObject.class);
query.setParameter("id", id); query.setParameter("id", id);
query.setParameter("del", false);
return query.getResultList(); return query.getResultList();
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment