registry-service: fix report name, fix npe
This commit is contained in:
parent
157658962a
commit
cb49f07b10
2 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ public class MoneyBalanceRegisterReportBuilder extends XLSXReportBuilder<MoneyBa
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String reportName() {
|
protected String reportName() {
|
||||||
return "security_register";
|
return "money_register";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ public abstract class XLSXReportBuilder<R extends FileReport, I extends SpcexObj
|
||||||
CsvBindByPosition positionAnnotation = field.getAnnotation(CsvBindByPosition.class);
|
CsvBindByPosition positionAnnotation = field.getAnnotation(CsvBindByPosition.class);
|
||||||
if (positionAnnotation == null) continue;
|
if (positionAnnotation == null) continue;
|
||||||
field.setAccessible(true);
|
field.setAccessible(true);
|
||||||
|
Object rawValue = field.get(obj);
|
||||||
|
if (rawValue == null) continue;
|
||||||
int position = positionAnnotation.position();
|
int position = positionAnnotation.position();
|
||||||
Cell cell = xlsxRow.createCell(position);
|
Cell cell = xlsxRow.createCell(position);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue