|
|
@@ -93,14 +93,24 @@ public class TaskScoreServiceImpl extends BaseMybatisDao<TaskScoreMapper> implem
|
|
|
@Override
|
|
|
public void updateAdminByTid(Integer tid) {
|
|
|
List<TOrderTaskBo> tOrderTaskBos = tOrderTaskMapper.selectAdminTaskByTid(tid);
|
|
|
- String aid=null;
|
|
|
//项目数量
|
|
|
+ pushAdminProjectStatistics(tOrderTaskBos, null);
|
|
|
+ }
|
|
|
+ @Override
|
|
|
+ public void updateAdminByAid(String aid) {
|
|
|
+ pushAdminProjectStatistics(null, aid);
|
|
|
+ }
|
|
|
+
|
|
|
+ private void pushAdminProjectStatistics(List<TOrderTaskBo> tOrderTaskBos, String aid) {
|
|
|
+ if (tOrderTaskBos==null){
|
|
|
+ tOrderTaskBos=tOrderTaskMapper.selectAdminTaskByAid(aid);
|
|
|
+ }
|
|
|
int htSatCount = 0,htSatScoreCount = 0,htSatNotScoreCount = 0,
|
|
|
memberCount=0,memberScoreCount = 0,memberNotScoreCount = 0;
|
|
|
BigDecimal ht_satSum=new BigDecimal(0);
|
|
|
BigDecimal hySum=new BigDecimal(0);
|
|
|
for (TOrderTaskBo tOrderTaskBo : tOrderTaskBos) {
|
|
|
- if (aid==null)aid=tOrderTaskBo.getTaskReceiver();
|
|
|
+ if (aid ==null) aid =tOrderTaskBo.getTaskReceiver();
|
|
|
if (tOrderTaskBo.getcSort()==3||tOrderTaskBo.getcSort()==9){
|
|
|
htSatCount++;
|
|
|
if (tOrderTaskBo.getScoreStatus()==1){
|
|
|
@@ -144,6 +154,8 @@ public class TaskScoreServiceImpl extends BaseMybatisDao<TaskScoreMapper> implem
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 通过ID查询单条数据
|
|
|
*
|