|
|
@ -296,9 +296,14 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ServiceBody<Boolean> getReturnedPhoto(ReturnedPhotoVo vo) {
|
|
|
|
public ServiceBody<Boolean> getReturnedPhoto(ReturnedPhotoVo vo) {
|
|
|
|
Boolean hasNew = false;
|
|
|
|
Boolean hasNew = false;
|
|
|
|
BigInteger photoTime = terminalPhotoDao.getLatestPhoto(vo.getTermId());
|
|
|
|
TerminalPhoto photo = terminalPhotoDao.getLatestPhoto(vo.getTermId());
|
|
|
|
BigInteger localPhotoTime = MyDateUtils.TimeMillSecond2Second(vo.getPhotoTime());
|
|
|
|
BigInteger localPhotoTime = MyDateUtils.TimeMillSecond2Second(vo.getPhotoTime());
|
|
|
|
hasNew = photoTime.compareTo(localPhotoTime) < 0 ? false : true;
|
|
|
|
hasNew = photo.getRecvTime().compareTo(localPhotoTime) < 0 ? false : true;
|
|
|
|
|
|
|
|
if(hasNew){
|
|
|
|
|
|
|
|
if(!StringUtils.isNotBlank(photo.getThumb())){
|
|
|
|
|
|
|
|
hasNew=false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return Asserts.success(hasNew);
|
|
|
|
return Asserts.success(hasNew);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|