|
|
|
@ -1,7 +1,8 @@ |
|
|
|
package com.project.information.domain.service; |
|
|
|
package com.project.information.domain.service.impl; |
|
|
|
|
|
|
|
import com.project.information.domain.dto.KnowledgePointDTO; |
|
|
|
import com.project.information.domain.dto.KnowledgePointStatisticsDTO; |
|
|
|
import com.project.information.domain.service.SearchKnowledgePointDomainService; |
|
|
|
import com.project.information.mapper.KnowledgePointMapper; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -20,9 +21,9 @@ public class SearchKnowledgePointDomainServiceImpl implements SearchKnowledgePoi |
|
|
|
Integer blurSum = 0; |
|
|
|
for (KnowledgePointDTO knowledgePointDTO : knowledgePointDTOList) { |
|
|
|
if (knowledgePointDTO.getBackgroundColor() == 0){ |
|
|
|
preciseSum += knowledgePointDTO.getBackgroundColor(); |
|
|
|
preciseSum ++; |
|
|
|
}else if(knowledgePointDTO.getBackgroundColor() == 1){ |
|
|
|
blurSum += knowledgePointDTO.getBackgroundColor(); |
|
|
|
preciseSum ++; |
|
|
|
} |
|
|
|
} |
|
|
|
KnowledgePointStatisticsDTO knowledgePointStatisticsDTO = new KnowledgePointStatisticsDTO(); |