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

重构部分功能模块

parent 82a8111a
Pipeline #2338 canceled with stages
...@@ -235,15 +235,15 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD ...@@ -235,15 +235,15 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
} }
List<String> colKeys = StrSplitter.split(colVal, "_", true, true); List<String> colKeys = StrSplitter.split(colVal, "_", true, true);
//提取当前table中的列元素 //提取当前table中的列元素
if (colKeys.size() > 3) { if (colKeys.size() > 2) {
String colLabel = colKeys.get(3); String colLabel = colKeys.get(2);
String colType = colKeys.get(1); String colType = colKeys.get(0);
TableColItem tableColItem = new TableColItem(); TableColItem tableColItem = new TableColItem();
tableColItem.setLabel(colLabel); tableColItem.setLabel(colLabel);
tableColItem.setColType(colType); tableColItem.setColType(colType);
tableColItem.setVal(colVal); tableColItem.setVal(colVal);
colList.add(tableColItem); colList.add(tableColItem);
//System.out.println("列元素" + col.variable()); log.info("列元素" + col.variable());
} }
} }
cons.setColList(colList); cons.setColList(colList);
...@@ -439,4 +439,15 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD ...@@ -439,4 +439,15 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
return Rest.ok(msg); 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