提交 6c69b053 authored 作者: zjm's avatar zjm

修改考评接口的bug

上级 cf961be0
流水线 #48 已取消 于阶段
...@@ -3,8 +3,8 @@ package com.zjty.tynotes.job.basic.repository; ...@@ -3,8 +3,8 @@ package com.zjty.tynotes.job.basic.repository;
import com.zjty.tynotes.job.basic.entity.database.ScoreCoefficient; import com.zjty.tynotes.job.basic.entity.database.ScoreCoefficient;
import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@Repository @Repository
public interface ScoreCoefficientRepository extends MongoRepository<ScoreCoefficient, String> { public interface ScoreCoefficientRepository extends MongoRepository<ScoreCoefficient, String> {
ScoreCoefficient findByWordId(String workId);
} }
...@@ -180,7 +180,7 @@ public class BusinessTreeManagementImpl implements BusinessTreeManagement { ...@@ -180,7 +180,7 @@ public class BusinessTreeManagementImpl implements BusinessTreeManagement {
break; break;
case 9: case 9:
ScoreCoefficient scoreCoefficient= scoreCoefficientRepository.findById(noteResource.getTaskId()).get(); ScoreCoefficient scoreCoefficient= scoreCoefficientRepository.findByWordId(noteResource.getTaskId());
String actionMsg=""; String actionMsg="";
if (scoreCoefficient.getScore1()!=null){ if (scoreCoefficient.getScore1()!=null){
actionMsg=name+"对任务进行了自我评价"; actionMsg=name+"对任务进行了自我评价";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论