|
|
@@ -63,20 +63,27 @@ public class TaskScoreServiceImpl extends BaseMybatisDao<TaskScoreMapper> implem
|
|
|
taskScore.setId(taskScore2.getId());
|
|
|
this.taskScoreMapper.update(taskScore);
|
|
|
}
|
|
|
- if (taskScore.getMonthlyReport()==null)taskScore.setMonthlyReport(0);
|
|
|
- if (taskScore.getYearReport()==null)taskScore.setYearReport(0);
|
|
|
+ //修改项目评分
|
|
|
+ getTOrderTask(taskScore);
|
|
|
+ //计算项目与订单评分与状态
|
|
|
+ updateTOrderNewByTid(taskScore.getTid());
|
|
|
+ //为当事人计算评分
|
|
|
+ updateAdminByTid(taskScore.getTid());
|
|
|
+ return taskScore;
|
|
|
+ }
|
|
|
+
|
|
|
+ private void getTOrderTask(TaskScore taskScore) {
|
|
|
int scoreNumber = taskScore.getServiceAttitude() + taskScore.getProfessionalism() + taskScore.getPublicImage()
|
|
|
- + taskScore.getResponsiveness() + taskScore.getMonthlyReport()+taskScore.getCommunicationSkills()+taskScore.getYearReport();
|
|
|
+ + taskScore.getResponsiveness() + taskScore.getCommunicationSkills();
|
|
|
+
|
|
|
+ if (taskScore.getMonthlyReport()!=null)scoreNumber+= taskScore.getMonthlyReport();
|
|
|
+ if (taskScore.getYearReport()!=null)scoreNumber+= taskScore.getYearReport();
|
|
|
TOrderTask taskTask = new TOrderTask();
|
|
|
taskTask.setId(taskScore.getTid());
|
|
|
taskTask.setScoreNumber(scoreNumber);
|
|
|
taskTask.setScoreStatus(2);
|
|
|
tOrderTaskMapper.update(taskTask);
|
|
|
- //计算项目与订单评分与状态
|
|
|
- updateTOrderNewByTid(taskScore.getTid());
|
|
|
- //为当事人计算评分
|
|
|
- updateAdminByTid(taskScore.getTid());
|
|
|
- return taskScore;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|