public QueryListObj getBhFixedvaluebillByHql(
      String hql, int beginPage, int pageSize, String sql) {
    QueryListObj obj = bhFixedvaluebillDao.getQueryListByHql(hql, beginPage, pageSize);
    if (obj.getElemList() != null) {
      List dtos = (List) BeanHelper.buildBeans(BhFixedvaluebillDto.class, obj.getElemList());
      obj.setElemList(dtos);
    }

    List sumList = bhFixedvaluebillDao.getObjPropertySums(sql);
    // System.out.println("sumList.size():"+sumList.size());
    obj.setPropertySum(sumList);
    return obj;
  }
 // 用于实现基本DTOLOAD操作
 public BhFixedvaluebillDto loadBhFixedvaluebill(String fixvaluebillno) {
   BhFixedvaluebill bhFixedvaluebill =
       (BhFixedvaluebill) bhFixedvaluebillDao.findByPk(fixvaluebillno);
   BhFixedvaluebillDto dto =
       (BhFixedvaluebillDto) BeanHelper.buildBean(BhFixedvaluebillDto.class, bhFixedvaluebill);
   return dto;
 }
 // 用于实现列表操作
 public QueryListObj listBhFixedvaluebill() {
   QueryListObj obj = bhFixedvaluebillDao.getQueryList();
   if (obj.getElemList() != null) {
     List dtos = (List) BeanHelper.buildBeans(BhFixedvaluebillDto.class, obj.getElemList());
     obj.setElemList(dtos);
   }
   return obj;
 }
 public void saveOrUpdateBhFixedvaluebill(BhFixedvaluebillDto dto) {
   if (StringUtils.isEmpty(dto.getFixvaluebillno())) {
     if (StringUtils.isEmpty(dto.getFixvaluebillno())) {
       dto.setFixvaluebillno(new SequenceCreator().getUID());
     }
   }
   BhFixedvaluebill bhFixedvaluebill =
       (BhFixedvaluebill) BeanHelper.buildBean(BhFixedvaluebill.class, dto);
   bhFixedvaluebillDao.saveOrUpdate(bhFixedvaluebill);
 }
  public void saveOrUpdateBhFixedvaluebill(List dtos) {
    List pos = new ArrayList();
    for (int i = 0; i < dtos.size(); i++) {
      BhFixedvaluebillDto bhFixedvaluebillDto = (BhFixedvaluebillDto) dtos.get(i);
      BhFixedvaluebill bhFixedvaluebill =
          (BhFixedvaluebill) BeanHelper.buildBean(BhFixedvaluebill.class, bhFixedvaluebillDto);
      pos.add(bhFixedvaluebill);
    }

    bhFixedvaluebillDao.saveOrUpdateAll(pos);
  }
 // 用于实现基本删除集合操作
 public void deleteBhFixedvaluebill(List dtos) {
   List pos = new ArrayList();
   pos = (List) BeanHelper.buildBeans(BhFixedvaluebill.class, dtos);
   bhFixedvaluebillDao.deleteAll(pos);
 }
 // 用于实现基本删除操作
 public void deleteBhFixedvaluebill(String bhFixedvaluebillId) {
   BhFixedvaluebill bhFixedvaluebill = new BhFixedvaluebill();
   bhFixedvaluebill.setFixvaluebillno(bhFixedvaluebillId);
   bhFixedvaluebillDao.delete(bhFixedvaluebill);
 }