Commit 8846c846 authored by 赵啸非's avatar 赵啸非

重构部分功能模块

parent 82a8111a
Pipeline #2338 canceled with stages
......@@ -235,15 +235,15 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
}
List<String> colKeys = StrSplitter.split(colVal, "_", true, true);
//提取当前table中的列元素
if (colKeys.size() > 3) {
String colLabel = colKeys.get(3);
String colType = colKeys.get(1);
if (colKeys.size() > 2) {
String colLabel = colKeys.get(2);
String colType = colKeys.get(0);
TableColItem tableColItem = new TableColItem();
tableColItem.setLabel(colLabel);
tableColItem.setColType(colType);
tableColItem.setVal(colVal);
colList.add(tableColItem);
//System.out.println("列元素" + col.variable());
log.info("列元素" + col.variable());
}
}
cons.setColList(colList);
......@@ -439,4 +439,15 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
return Rest.ok(msg);
}
public static void main(String[] args) {
String colVal="i_1_变更登记事项";
List<String> colKeys = StrSplitter.split(colVal, "_", true, true);
System.out.println(colKeys.size());
System.out.println(colKeys.get(0));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment