如何简单的干掉if else

直接上代码,熟以至用:设计模式 //原始代码不少if else public int selectByPrimaryKey(int i) { if(i==1){ return 1; }else if(i==3){ return 3; }else if(i==4){ retur
相关文章
相关标签/搜索