Browse Source

REPORT-80693 - 数据脱敏二期(报表)

代码质量检查问题,加个注释
feature/x
Yvan-欧阳帆 2 years ago
parent
commit
7f1f72ec74
  1. 6
      designer-base/src/main/java/com/fr/design/data/datapane/preview/desensitization/TableDataPreviewDesensitizeManager.java

6
designer-base/src/main/java/com/fr/design/data/datapane/preview/desensitization/TableDataPreviewDesensitizeManager.java

@ -177,6 +177,12 @@ public class TableDataPreviewDesensitizeManager implements DesensitizationManage
return departmentId + CONNECTOR + positionId; return departmentId + CONNECTOR + positionId;
} }
/**
* 根据列名从PreviewTableModel中匹配列序号如果返回-1代表未匹配到
* @param desensitizationItem
* @param previewModel
* @return
*/
public int matchColumnIndex(TableDataDesensitizationItem desensitizationItem, PreviewTableModel previewModel) { public int matchColumnIndex(TableDataDesensitizationItem desensitizationItem, PreviewTableModel previewModel) {
return previewModel.getColumnIndexWithExceptionIngore(desensitizationItem.getColumnName()); return previewModel.getColumnIndexWithExceptionIngore(desensitizationItem.getColumnName());
} }

Loading…
Cancel
Save