修复bug
This commit is contained in:
parent
d2bdf4ec48
commit
af2983cd37
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user