update code

dev_xds
haha 2024-08-17 13:19:04 +08:00
parent bad6e18413
commit 99c058db90
1 changed files with 1 additions and 1 deletions

View File

@ -127,6 +127,6 @@ public class PitmonitSouthsmosDataServiceImpl implements IPitmonitSouthsmosDataS
@Override
public Long monitDays(Long id) {
Date dt= pitmonitSouthsmosDataMapper.monitDays(id);
return DateUtil.between(new Date(),dt, DateUnit.DAY);
return dt==null?0: DateUtil.between(new Date(),dt, DateUnit.DAY);
}
}