不能为空 @param v 值 @param excelCheck 注解 @param i 行数 @param fieldName excel段名 @param errList 错误信息集合
(Object v, ExcelCheck excelCheck, int i, String fieldName, List<String> errList)
| 232 | * @param errList 错误信息集合 |
| 233 | */ |
| 234 | public static void isNotNull(Object v, ExcelCheck excelCheck, int i, String fieldName, List<String> errList) { |
| 235 | if (excelCheck.isNotNull() && ObjectUtil.isEmpty(v)) { |
| 236 | StringBuilder err = new StringBuilder("第").append(i).append("行,").append(fieldName).append("不能为空;"); |
| 237 | errList.add(err.toString()); |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | /** |
| 242 | * excel 对象数据校验 |