Authored by zhaoyue

Merge branch 'zhaoyue-dev' into 'master'

Fix little bug



See merge request !10
1 git add --all src/* 1 git add --all src/*
2 git add push.sh 2 git add push.sh
3 git add pom.xml 3 git add pom.xml
4 -git commit -m "ADD code for uspih " 4 +git commit -m "Fix little bug"
5 git push origin zhaoyue-dev 5 git push origin zhaoyue-dev
6 git status 6 git status
@@ -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);