|
1
2
3
4
|
public FcLatestSumDeliver findByAccount(String account) { String jpql = " select a from FcLatestSumDeliver a where a.account = :account"; return entityManager.createQuery(jpql, FcLatestSumDeliver.class).setParameter("account", account).getSingleResult(); } |
|
1
2
3
4
5
6
7
8
9
|
public FcLatestSumSupplier findByAccount(String account) { String jpql = " select a from FcLatestSumSupplier a where a.account = :account"; List<FcLatestSumSupplier> rs = entityManager.createQuery(jpql, FcLatestSumSupplier.class).setParameter("account", account).getResultList(); if (rs.size() > 0) { return rs.get(0); } else { return null; } } |
1154





