1. public BigInteger countBackInfoTodo(BooleanBuilder builder) {
    2. QErpSrmBackInfo qErpSrmBackInfo = erpSrmBackInfo;
    3. QErpSrmInputHeader qErpSrmInputHeader = qErpSrmBackInfo.header;
    4. JPAQuery<ErpSrmBackInfo> query = new JPAQuery<>(entityManager);
    5. long result = query
    6. .distinct()
    7. .select(qErpSrmInputHeader.id)
    8. .from(qErpSrmBackInfo)
    9. .where(builder)
    10. .fetchCount();
    11. return BigInteger.valueOf(result);
    12. }