|
@@ -31,7 +31,6 @@ import java.util.stream.Collectors;
|
|
|
@Slf4j
|
|
|
@SpringBootTest
|
|
|
public class Standard {
|
|
|
-
|
|
|
@Autowired
|
|
|
private LogService logService;
|
|
|
|
|
@@ -77,7 +76,6 @@ public class Standard {
|
|
|
|
|
|
@Test
|
|
|
void standardByUserId() {
|
|
|
-
|
|
|
List<ChuanyunSelfWorkHourDO> userAllSelfWorkHours = chuanyunSelfWorkHourDao.findByUserId("28f1291d-b322-4983-9893-cc7f1742fcc2");
|
|
|
Map<LocalDate, Map<String, Map<String, Map<String, BigDecimal>>>> map = userAllSelfWorkHours.stream().filter(selfWorkHourDO ->
|
|
|
StringUtils.hasLength(selfWorkHourDO.getProjectId()) &&
|
|
@@ -90,8 +88,6 @@ public class Standard {
|
|
|
Collectors.groupingBy(ChuanyunSelfWorkHourDO::getProjectType,
|
|
|
Collectors.groupingBy(ChuanyunSelfWorkHourDO::getStatus, Collectors.reducing(BigDecimal.ZERO, ChuanyunSelfWorkHourDO::getStandardWorkHour, BigDecimal::add)
|
|
|
)))));
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
@Test
|
|
@@ -117,8 +113,6 @@ public class Standard {
|
|
|
userIdList2.forEach(logStandardService::standardHalfYearWorkHourByUserId);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
@Test
|
|
|
void standardAll() {
|
|
|
workHourStatistics.standardAllWorkHour();
|
|
@@ -131,7 +125,6 @@ public class Standard {
|
|
|
|
|
|
@Test
|
|
|
void standardSelfWorkHourOne() {
|
|
|
- // 3d94c30e-66f1-46e8-a2a3-fe32aa9a071d
|
|
|
logStandardService.standardSelfWorkHourByUserId("91c295cc-6de9-4a27-abd9-e3d94a5115c4");
|
|
|
}
|
|
|
|
|
@@ -155,11 +148,8 @@ public class Standard {
|
|
|
List<ChuanyunMemberHourDO> result = objectMapper.convertValue(chuanyunFindAllResponse.getReturnData().getBizObjectArray(), new TypeReference<>() {
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|