Exception用了throws 就不要用catch

来源:互联网 发布:多个表格数据汇总公式 编辑:程序博客网 时间:2024/06/14 11:49

用了throws 就不要用catch,如果配置了事务,或异常处理,系统就会自动监听到

@Override

public List<TbWhInformation> getTipByCustomerKey(Map<String, Object> param) throws Exception {

// TODO Auto-generated method stub

Map<String,Object> paramChk = new HashMap<String,Object>();

StringBuffer sb1 = new StringBuffer();

sb1.append("CHKTYPE=0");

paramChk.put("P_INPARA", sb1.toString());

tbWhInformationMapper.getTmpChkmesendAll(param);

List<TbWhInformation> info= tbWhInformationMapper.getAllTip(param);

return info;

}

0 0