Merge branch 'zhaoyue-dev' into 'master'
Fix little bug See merge request !10
Showing
2 changed files
with
2 additions
and
2 deletions
@@ -126,7 +126,7 @@ public class ReportController { | @@ -126,7 +126,7 @@ public class ReportController { | ||
126 | double score = 0; | 126 | double score = 0; |
127 | XklAmpReportEntity report=xklAmpReportRespository.findOne(report_id); | 127 | XklAmpReportEntity report=xklAmpReportRespository.findOne(report_id); |
128 | if(report != null ){ | 128 | if(report != null ){ |
129 | - if(report.getScore()==0){//首次调用接口,score为0 | 129 | + if (report.getScore() == 0 || report.getScore() == null) {//首次调用接口,score为0 |
130 | //TODO:可以在上传时直接打分? | 130 | //TODO:可以在上传时直接打分? |
131 | //单独测试需要删除xkl_amp_report_health_scroe表中数据 | 131 | //单独测试需要删除xkl_amp_report_health_scroe表中数据 |
132 | score = scoreService.getScore(report_id); | 132 | score = scoreService.getScore(report_id); |
-
Please register or login to post a comment