作者 tangxvhui

调整任务列表输出

@@ -521,7 +521,7 @@ func (srv StaffAssessServeice) buildTaskRecord(staffAssess *domain.StaffAssess) @@ -521,7 +521,7 @@ func (srv StaffAssessServeice) buildTaskRecord(staffAssess *domain.StaffAssess)
521 nowTime := time.Now() 521 nowTime := time.Now()
522 for index := range taskList2 { 522 for index := range taskList2 {
523 if taskList2[index].UseEndTime > 0 { 523 if taskList2[index].UseEndTime > 0 {
524 - if !(taskList2[index].EndTime > nowTime.Unix()) { 524 + if taskList2[index].EndTime < nowTime.Unix() {
525 continue 525 continue
526 } 526 }
527 } 527 }
@@ -1367,7 +1367,9 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i @@ -1367,7 +1367,9 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i
1367 tk.Marks["d"] = val3.Marks["d"] 1367 tk.Marks["d"] = val3.Marks["d"]
1368 } 1368 }
1369 case domain.AnomalyCategoryType3: 1369 case domain.AnomalyCategoryType3:
1370 - if isChildUser { 1370 + if userId == val.LeaderId {
  1371 + //空
  1372 + } else if isChildUser {
1371 // 去辅导 1373 // 去辅导
1372 tk.Marks["d"] = val3.Marks["d"] 1374 tk.Marks["d"] = val3.Marks["d"]
1373 } 1375 }
@@ -1648,7 +1650,9 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s @@ -1648,7 +1650,9 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s
1648 tk.Marks["d"] = val3.Marks["d"] 1650 tk.Marks["d"] = val3.Marks["d"]
1649 } 1651 }
1650 case domain.AnomalyCategoryType3: 1652 case domain.AnomalyCategoryType3:
1651 - if isChildUser { 1653 + if userId == val.LeaderId {
  1654 + //空
  1655 + } else if isChildUser {
1652 // 去辅导 1656 // 去辅导
1653 tk.Marks["d"] = val3.Marks["d"] 1657 tk.Marks["d"] = val3.Marks["d"]
1654 } 1658 }