|
|
@@ -24,12 +24,14 @@ public class StatisticsServiceImpl implements StatisticsService { |
|
|
|
public TodoCenterStatisticsPO getStatistics(String employeeCode) { |
|
|
|
TodoCenterStatisticsPO res = new TodoCenterStatisticsPO(); |
|
|
|
|
|
|
|
TodoCenterStatisticsPO todoOrIdo = mapper.getTodoOrIdo(employeeCode); |
|
|
|
if(Objects.nonNull(todoOrIdo)){ |
|
|
|
res.setTodoNum(todoOrIdo.getTodoNum()); |
|
|
|
res.setIdoNum(todoOrIdo.getIdoNum()); |
|
|
|
TodoCenterStatisticsPO todo = mapper.getTodoOrIdo(employeeCode); |
|
|
|
if(Objects.nonNull(todo)){ |
|
|
|
res.setTodoNum(todo.getTodoNum()); |
|
|
|
} |
|
|
|
TodoCenterStatisticsPO ido = mapper.getIdo(employeeCode); |
|
|
|
if(Objects.nonNull(ido)){ |
|
|
|
res.setIdoNum(ido.getIdoNum()); |
|
|
|
} |
|
|
|
|
|
|
|
TodoCenterStatisticsPO submit = mapper.mysubmitNum(employeeCode); |
|
|
|
if(Objects.nonNull(submit)){ |
|
|
|
res.setMysubmitNum(submit.getMysubmitNum()); |
|
|
|