Browse Source

知识点计算

master
luogw 1 month ago
parent
commit
3623cc7c30
  1. 7
      src/main/java/com/project/information/domain/service/impl/SearchKnowledgePointDomainServiceImpl.java

7
src/main/java/com/project/information/domain/service/SearchKnowledgePointDomainServiceImpl.java → src/main/java/com/project/information/domain/service/impl/SearchKnowledgePointDomainServiceImpl.java

@ -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();
Loading…
Cancel
Save