Commit fbc7f1f1 authored by neo's avatar neo

[bugfix] add report id to query cellData

parent 3375c01b
......@@ -71,7 +71,7 @@ public class FormulaAgent extends VatAbstractService {
private CellData getCellDataListByTemplate(String templateId, Long reportId) {
CellDataExample dataExample = new CellDataExample();
dataExample.createCriteria().andCellTemplateIdEqualTo(Long.valueOf(templateId));
dataExample.createCriteria().andCellTemplateIdEqualTo(Long.valueOf(templateId)).andReportIdEqualTo(reportId);
List<CellData> cellDataList = cellDataMapper.selectByExample(dataExample);
if (cellDataList != null && !cellDataList.isEmpty()) return cellDataList.get(FIRST_OR_DEFAULT);
......
......@@ -270,7 +270,7 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
Row row = sheet.getRow(rowNum - 1);
if (row != null) {
Cell cell = row.getCell(colNum - 1);
if (cell != null) {
if (cell != null) {
//开始取值然后存放到DataSource
DataSource dataSource = new DataSource();
dataSource.setId(distributedIDService.nextId());
......
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