Commit d91edc45 by 高晓磊

采砂许可证没有加执行

parent 97dc3ad5
......@@ -112,6 +112,7 @@ public class SandMiningDaoImpl extends AbstractBaseDao implements SandMiningDao,
template.execute(session -> {
Query query = session.createQuery("update " + ENTITY + " as a set a.status =1 where a.sandMiningStart >= :startDate and a.status = 0 and a.del=false");
query.setParameter("startDate", new Date());
query.executeUpdate();
return query;
});
......@@ -119,6 +120,7 @@ public class SandMiningDaoImpl extends AbstractBaseDao implements SandMiningDao,
template.execute(session -> {
Query query = session.createQuery("update " + ENTITY + " as a set a.status =2 where a.sandMiningEnd >= :endDate and a.status = 1 and a.del=false");
query.setParameter("endDate", new Date());
query.executeUpdate();
return query;
});
}
......
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