|
|
@@ -170,11 +170,14 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
// 班长扣分加上成员的扣分
|
|
|
for (TaskAndScore s : taskAndScores) {
|
|
|
if (s.getMonitor_user_id().intValue() == b.getUser().getId().intValue()
|
|
|
- && s.getCheck_item_score() != null) {
|
|
|
+ && s.getCheck_item_score() != null && ((s.getChecked_person1()==null && s.getChecked_person().intValue() != s.getMonitor_user_id().intValue())
|
|
|
+ ||(s.getChecked_person1()!=null && s.getChecked_person1().intValue() !=s.getMonitor_user_id().intValue()))) {
|
|
|
b.setCheck_all_m_score(b.getCheck_all_m_score() + s.getCheck_item_score());
|
|
|
}
|
|
|
|
|
|
- if (s.getMonitor_user_id().intValue() == b.getUser().getId().intValue()) {
|
|
|
+ if (s.getMonitor_user_id().intValue() == b.getUser().getId().intValue() &&
|
|
|
+ ((s.getChecked_person1()==null && s.getChecked_person().intValue() != s.getMonitor_user_id().intValue())
|
|
|
+ ||(s.getChecked_person1()!=null && s.getChecked_person1().intValue() !=s.getMonitor_user_id().intValue()))) {
|
|
|
b.setChecked_m_num(b.getChecked_m_num() + 1);
|
|
|
}
|
|
|
}
|
|
|
@@ -1787,8 +1790,21 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
masterMap.put(score.getMonitor_user_id(), new StatisticsBo());
|
|
|
}
|
|
|
StatisticsBo sb = masterMap.get(score.getMonitor_user_id());
|
|
|
- sb.setCheck_all_m_score(sb.getCheck_all_m_score()+(score.getCheck_item_score()==null?0:score.getCheck_item_score()));
|
|
|
- sb.setChecked_m_num(sb.getChecked_m_num()+1);
|
|
|
+
|
|
|
+
|
|
|
+ if (score.getCheck_item_score() != null && ((score.getChecked_person1()==null && score.getChecked_person().intValue() != score.getMonitor_user_id().intValue())
|
|
|
+ ||(score.getChecked_person1()!=null && score.getChecked_person1().intValue() !=score.getMonitor_user_id().intValue()))) {
|
|
|
+ sb.setCheck_all_m_score(sb.getCheck_all_m_score() + score.getCheck_item_score());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (((score.getChecked_person1()==null && score.getChecked_person().intValue() != score.getMonitor_user_id().intValue())
|
|
|
+ ||(score.getChecked_person1()!=null && score.getChecked_person1().intValue() !=score.getMonitor_user_id().intValue())) ) {
|
|
|
+ sb.setChecked_m_num(sb.getChecked_m_num() + 1);
|
|
|
+ }
|
|
|
+//
|
|
|
+//
|
|
|
+// sb.setCheck_all_m_score(sb.getCheck_all_m_score()+(score.getCheck_item_score()==null?0:score.getCheck_item_score()));
|
|
|
+// sb.setChecked_m_num(sb.getChecked_m_num()+1);
|
|
|
}
|
|
|
return masterMap;
|
|
|
}
|