Commit acbd176b authored by neo's avatar neo

[dev] add deault templete id for emtpy

parent e89577d7
......@@ -123,6 +123,7 @@ public class ReportServiceImpl extends VatAbstractService implements ReportServi
}
private void clearPeriodData(String projectId, Integer period, List<Long> templateIds) {
if (templateIds.isEmpty()) templateIds.add(Long.MAX_VALUE);
PeriodFormulaBlockExample periodFormulaBlockExample = new PeriodFormulaBlockExample();
periodFormulaBlockExample.createCriteria().andProjectIdEqualTo(projectId).andPeriodEqualTo(period);
periodFormulaBlockMapper.deleteByExample(periodFormulaBlockExample);
......
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