Commit 7d0fa51e authored by neo's avatar neo

[Bugfix] fixe query period template used id should use templateid

parent 8ebd5674
...@@ -441,7 +441,7 @@ public class ReportGeneratorImpl { ...@@ -441,7 +441,7 @@ public class ReportGeneratorImpl {
private List<PeriodTemplate> queryPeriodTemplates(String projectId, Integer period, List<Long> templateIds) { private List<PeriodTemplate> queryPeriodTemplates(String projectId, Integer period, List<Long> templateIds) {
PeriodTemplateExample periodTemplateExample = new PeriodTemplateExample(); PeriodTemplateExample periodTemplateExample = new PeriodTemplateExample();
periodTemplateExample.createCriteria().andProjectIdEqualTo(projectId).andPeriodEqualTo(period).andIdIn(templateIds); periodTemplateExample.createCriteria().andProjectIdEqualTo(projectId).andPeriodEqualTo(period).andTemplateIdIn(templateIds);
return periodTemplateMapper.selectByExample(periodTemplateExample); return periodTemplateMapper.selectByExample(periodTemplateExample);
} }
......
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