Commit ad2d281c by shiwenbo

查询场站列表去掉已停业的场站

parent 04eddef4
......@@ -187,7 +187,7 @@ public class StationDaoImpl extends AbstractBaseDao implements StationDao, Stat
@Override
public List<KObject> queryStationByRegionalCompany(UUID id) {
return template.execute(session -> {
Query<KObject> query = session.createQuery(" from " + StationConstant.ENTITY + " where regionalCompany.id=:id and del=:del", KObject.class);
Query<KObject> query = session.createQuery(" from " + StationConstant.ENTITY + " where regionalCompany.id=:id and del=:del and stationStatus=1", KObject.class);
query.setParameter("id", id);
query.setParameter("del", false);
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