| | |
| | | String before_func = dt.getString(i, CmnConst.FIELD_BEFORE_FUNC); |
| | | String after_func = dt.getString(i, CmnConst.FIELD_AFTER_FUNC); |
| | | String table_name = dt.getString(i, CmnConst.TABLE_NAME); |
| | | String startRowIndex = dt.getString(i, "start_row_index"); |
| | | FieldSetEntity f = new FieldSetEntity(); |
| | | f.setTableName("sheet_info"); |
| | | f.setValue(CmnConst.FIELD_BEFORE_FUNC, before_func); |
| | | f.setValue(CmnConst.FIELD_AFTER_FUNC, after_func); |
| | | f.setValue(CmnConst.UUID, dt.getString(i, CmnConst.UUID)); |
| | | f.setValue(CmnConst.TABLE_NAME, table_name); |
| | | f.setValue("start_row_index", startRowIndex); |
| | | f.setSubData(dt.getFieldSetEntity(i).getSubData()); |
| | | sub.addFieldSetEntity(f); |
| | | } |
| | |
| | | //表头开始行 cheng update 2023年6月30日15:48:22 多行头时,表头开始行不一定是第一行 |
| | | int startRowIndex = 1; |
| | | if (!StringUtils.isEmpty(curTemplateFse.getString("start_row_index")) && NumberUtil.isNumber(curTemplateFse.getString("start_row_index"))) { |
| | | startRowIndex = Integer.parseInt(curTemplateFse.getString("start_row_index")) + 1; |
| | | startRowIndex = Integer.parseInt(curTemplateFse.getString("start_row_index")); |
| | | if (startRowIndex < 1) { |
| | | startRowIndex = 1; |
| | | } |
| | |
| | | } else { |
| | | headerDataList.add(new ArrayList<>()); |
| | | } |
| | | for (int i = startRowIndex; i < dataList.size(); i++) { |
| | | for (int i = startRowIndex + 1; i < dataList.size(); i++) { |
| | | rowList = dataList.get(i); |
| | | recordFse = new FieldSetEntity(); |
| | | recordFse.setTableName(curTemplateFse.getString(CmnConst.FIELD_TABLE_NAME)); |