进度计划

This commit is contained in:
lcj
2025-09-28 17:04:29 +08:00
parent c66d5f0789
commit 3d3df16817
3 changed files with 8 additions and 9 deletions

View File

@ -312,10 +312,10 @@ public class FacPhotovoltaicPanelServiceImpl extends ServiceImpl<FacPhotovoltaic
}
Long matrixId = matrix.getId();*/
// 去掉首字母 (T/G)
String withoutPrefix = name.substring(1);
String withoutPrefix = name.substring(2);
// 如果包含".",只取第一个"."前的数字
int dotIndex = withoutPrefix.indexOf(".");
int dotIndex = withoutPrefix.indexOf("#");
if (dotIndex != -1) {
withoutPrefix = withoutPrefix.substring(0, dotIndex);
}

View File

@ -308,7 +308,6 @@ public class PgsProgressCategoryServiceImpl extends ServiceImpl<PgsProgressCateg
// 取分组中的第一条记录的排序字段作为当前VO的排序值
List<PgsProgressCategory> value = entry.getValue();
PgsProgressCategory first = value.getFirst();
topVo.setId(first.getId());
topVo.setSort(first.getSort());
// 转换为方阵结构的VO列表
List<PgsProgressCategoryMatrixStructureTopVo> matrixVoList = value.stream().map(category -> {

View File

@ -174,11 +174,11 @@ public class PgsProgressPlanDetailServiceImpl extends ServiceImpl<PgsProgressPla
throw new ServiceException("进度计划信息不存在", HttpStatus.NOT_FOUND);
}
BigDecimal oldFinishedNumber = progressPlan.getFinishedNumber();
// 判断完成时间是否大于当前时间
// todo 判断完成时间是否大于当前时间
LocalDate planDate = progressPlanDetail.getDate();
if (planDate.isAfter(LocalDate.now())) {
/* if (planDate.isAfter(LocalDate.now())) {
throw new ServiceException("完成时间不能大于当前时间", HttpStatus.BAD_REQUEST);
}
}*/
Long projectId = progressPlanDetail.getProjectId();
Long progressCategoryId = progressPlanDetail.getProgressCategoryId();
PgsProgressCategory progressCategory = progressCategoryService.getById(progressCategoryId);
@ -361,11 +361,11 @@ public class PgsProgressPlanDetailServiceImpl extends ServiceImpl<PgsProgressPla
if (progressPlanDetail == null) {
throw new ServiceException("进度计划详情信息不存在", HttpStatus.NOT_FOUND);
}
// 判断完成时间是否大于当前时间
// todo 判断完成时间是否大于当前时间
LocalDate date = progressPlanDetail.getDate();
if (date.isAfter(LocalDate.now())) {
/* if (date.isAfter(LocalDate.now())) {
throw new ServiceException("完成时间不能大于当前时间", HttpStatus.BAD_REQUEST);
}
}*/
// 判断当前详情是否已提交
if (progressPlanDetail.getStatus().equals("3")) {
throw new ServiceException("当前详情已在施工产值中提交,无法提交", HttpStatus.BAD_REQUEST);