@Override
 public boolean isPaidUp(Long iloanOrd) {
   LoanOrdPlanCondition cond = new LoanOrdPlanCondition();
   cond.setIloanOrd(iloanOrd);
   cond.setLtstat(PlanStat.PAID_UP_LOAN);
   List<LoanOrdPlan> list = this.loanOrdPlanDao.queryBy(cond);
   if (CollectionUtils.isEmpty(list)) return true;
   return false;
 }
 @Override
 public List<LoanOrdPlan> queryPlanById(Long iloanOrd) throws Exception {
   LoanOrdPlanCondition cond = new LoanOrdPlanCondition();
   cond.setIloanOrd(iloanOrd);
   List<Order> orders = new ArrayList<Order>();
   orders.add(Order.asc("period"));
   cond.setOrders(orders);
   return this.loanOrdPlanDao.queryBy(cond);
 }