Integer.parseInt()把String 型转换为Int型,
CollectionUtils.isEmpty(list);
CollectionUtils.isNotEmpty(list);
StringUtils.isEmpty(str);
StringUtils.isNotEmpty(str);
在 switch ( 变量 ) 这一行里,变量只能是整型或字符。没有布尔型……
switch (Integer.parseInt(String字符串)) {
case 0:
str= "一般";
break;
case 1:
str= "主任";
break;
default:
userPostCd1 = "班长";
break;
}
TableModel model;
// DB检索结果list