修复bug

This commit is contained in:
wyt 2025-06-16 16:29:21 +08:00
parent d2bdf4ec48
commit af2983cd37

View File

@ -148,6 +148,10 @@ public class DistributionDeviceInfoService extends ServiceImpl<DistributionDevic
if (de.getOutageId() == null) {
throw new BusinessException("没有outageId");
}
Long count = distributionDeviceInfoDao.selectCount(Wrappers.lambdaQuery(DistributionDeviceInfoEntity.class).eq(DistributionDeviceInfoEntity::getOutageId, de.getOutageId()));
if (count > 0) {
throw new BusinessException("该停电工作已存在信息表,请勿重复上传");
}
/*LocalDate time = de.getPlanWorkTime();
LocalDateTime startTime = time.atStartOfDay();
LocalDateTime endTime = time.atTime(23, 59, 59);