Package org.jeecgframework.core.common.exception

Examples of org.jeecgframework.core.common.exception.BusinessException


              try {
              MyBeanUtils.copyBeanNotNull2Bean(sendE,oldE);
              this.saveOrUpdate(oldE);
            } catch (Exception e) {
              e.printStackTrace();
              throw new BusinessException(e.getMessage());
            }
            isUpdate= true;
              break;
            }
          }
View Full Code Here


              try {
              MyBeanUtils.copyBeanNotNull2Bean(sendE,oldE);
              this.saveOrUpdate(oldE);
            } catch (Exception e) {
              e.printStackTrace();
              throw new BusinessException(e.getMessage());
            }
            isUpdate= true;
              break;
            }
          }
View Full Code Here

    if(oConvertUtils.isEmpty(sql)){
      return null;
    }
    List<Map<String, Object>> result = jdbcDao.findForJdbc(sql, 1, 1);
    if(result.size()<1){
      throw new BusinessException("该报表sql没有数据");
    }
    Set fieldsSet= result.get(0).keySet();
    List<String> fileds = new ArrayList<String>(fieldsSet);
    return fileds;
  }
View Full Code Here

          }
        }
      }catch (Exception e) {
        //这里出现异常原因是因为取值表达式不正确
        e.printStackTrace();
        throw new BusinessException("取值表达式不正确");
      }
    }
  }
View Full Code Here

    //查询条件组装器
    org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, cgreportConfigHead);
    try{
    //自定义追加查询条件
    }catch (Exception e) {
      throw new BusinessException(e.getMessage());
    }
    cq.add();
    this.cgreportConfigHeadService.getDataGridReturn(cq, true);
    TagUtil.datagrid(response, dataGrid);
  }
View Full Code Here

      cgreportConfigHeadService.delete(cgreportConfigHead);
      systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
    }catch(Exception e){
      e.printStackTrace();
      message = "动态报表配置抬头删除失败";
      throw new BusinessException(e.getMessage());
    }
    j.setMsg(message);
    return j;
  }
View Full Code Here

        systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
      }
    }catch(Exception e){
      e.printStackTrace();
      message = "动态报表配置抬头删除失败";
      throw new BusinessException(e.getMessage());
    }
    j.setMsg(message);
    return j;
  }
View Full Code Here

      cgreportConfigHeadService.addMain(cgreportConfigHead, cgreportConfigItemList);
      systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
    }catch(Exception e){
      e.printStackTrace();
      message = "动态报表配置抬头添加失败";
      throw new BusinessException(e.getMessage());
    }
    j.setMsg(message);
    return j;
  }
View Full Code Here

      cgreportConfigHeadService.updateMain(cgreportConfigHead, cgreportConfigItemList);
      systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
    }catch(Exception e){
      e.printStackTrace();
      message = "更新动态报表配置抬头失败";
      throw new BusinessException(e.getMessage());
    }
    j.setMsg(message);
    return j;
  }
View Full Code Here

        } catch (IOException e) {

        }
      }
    } else {
      throw new BusinessException("参数错误");
    }
   
  }
View Full Code Here

TOP

Related Classes of org.jeecgframework.core.common.exception.BusinessException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.