| | |
| | |
|
| | | import lombok.RequiredArgsConstructor;
|
| | | import me.zhengjie.exception.BadRequestException;
|
| | | import me.zhengjie.modules.attendance.repository.AttendanceBusinessTravelRepository;
|
| | | import me.zhengjie.modules.constant.Constant;
|
| | | import me.zhengjie.modules.contract.repository.ContractProjectRepository;
|
| | | import me.zhengjie.modules.cost.repository.CostRepository;
|
| | |
| | | import javax.servlet.http.HttpServletResponse;
|
| | | import java.io.IOException;
|
| | | import java.math.BigDecimal;
|
| | | import java.math.RoundingMode;
|
| | | import java.sql.Timestamp;
|
| | | import java.text.ParseException;
|
| | | import java.text.SimpleDateFormat;
|
| | | import java.util.*;
|
| | | import java.util.Map.Entry;
|
| | | import java.util.function.Function;
|
| | | import java.util.stream.Collectors;
|
| | | import java.util.stream.Stream;
|
| | |
| | | private final ProjectPerformanceDetailRepository projectPerformanceDetailRepository;
|
| | | private final CostRepository costRepository;
|
| | | private final ContractProjectRepository contractProjectRepository;
|
| | | private final AttendanceBusinessTravelRepository attendanceBusinessTravelRepository;
|
| | | private final SysGoalSettingService sysGoalSettingService;
|
| | | private final WeComServiceImpl weComService;
|
| | |
|
| | |
| | | projectDto.setActualLaborCost(actualCost);
|
| | | // 项目二次处理
|
| | | projectDto = customHandle(projectDto);
|
| | |
|
| | | // 项目出差总天数
|
| | | projectDto.setTotalTravelDuration(attendanceBusinessTravelRepository.countProjectTravelDuration(project.getId()));
|
| | |
|
| | | // 返回处理好的Dto
|
| | | return projectDto;
|
| | | }
|