Commit a8ab749c authored by neo's avatar neo

[dev] use single bb ds item

parent c022969c
......@@ -8,8 +8,9 @@ import pwc.taxtech.atms.vat.entity.CellData;
@Getter
@Setter
public class ReportCellDataSourceDto extends FormulaDataSourceDto {
public class ReportCellDataSourceDto {
String tag = "BB";
String name;
Integer year;
Integer period;
Integer columnIndex;
......@@ -22,9 +23,9 @@ public class ReportCellDataSourceDto extends FormulaDataSourceDto {
String cellTemplateID;
Boolean isOnlyManualInput;
Integer type;
Integer resultType;
public ReportCellDataSourceDto() {
super();
this.type = FormulaDataSourceType.Report.getCode();
}
......
......@@ -540,12 +540,12 @@ public class ReportServiceImpl extends VatAbstractService implements ReportServi
.filter(y -> y.getItem1().equals(a.getCellTemplateID())).collect(Collectors.toList());
List<DataSourceDto> dataSourceDtoList = new ArrayList<>();
entryList.forEach(z -> {
// if (z.getItem2().getItems() != null && !z.getItem2().getItems().isEmpty() && z.getItem2().getItems().get(0).contains("tag")) {
// z.getItem2().getItems().forEach(m -> {
// ReportCellDataSourceDto dto = JSON.parseObject(m, ReportCellDataSourceDto.class);
// dataSourceDtoList.add(dto);
// });
// } else
if (z.getItem2().getItems() != null && !z.getItem2().getItems().isEmpty() && z.getItem2().getItems().get(0).contains("tag")) {
z.getItem2().getItems().forEach(m -> {
ReportCellDataSourceDto dto = JSON.parseObject(m, ReportCellDataSourceDto.class);
dataSourceDtoList.add(dto);
});
} else
dataSourceDtoList.add(z.getItem2());
});
cellDataDto.setDataSourceList(dataSourceDtoList);
......
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