/** * 创建 配置表 * @param id * @return deleted count */ public Eterminfo createEterminfo(Eterminfo eterminfo) throws SQLException{ if(eterminfo.getId()>0){ throw new SQLException("ID must <= 0."); } eterminfo.setId(DBTools.getID(getSqlMapClientTemplate().getDataSource().getConnection(), "T_ETERMINFO")); getSqlMapClientTemplate().insert("createEterminfo",eterminfo); return eterminfo; }