Commit 06cd3b39 authored by neo's avatar neo

[Bugfix] fixed only copy template where is active

parent 2605ea45
......@@ -421,7 +421,7 @@ public class ReportServiceImpl {
private void copyTemplateAndConfigFromAdmin(String projectId, Long templateGroupId, Integer period) {
TemplateExample example = new TemplateExample();
example.createCriteria().andTemplateGroupIdEqualTo(templateGroupId);
example.createCriteria().andTemplateGroupIdEqualTo(templateGroupId).andIsActiveAssociationEqualTo(true);
List<Template> templates = templateMapper.selectByExample(example);
List<PeriodTemplate> periodTemplateList = new ArrayList<>();
......
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