Commit e0e14ff0 authored by 廖旭伟's avatar 廖旭伟

防止热力图图片地址更新为空串

parent 2f330d9f
......@@ -67,7 +67,9 @@ public class PageInfoServiceImpl extends AbstractCRUDServiceImpl<PageInfoDao, Pa
doSaveImageBase64(entity,pageInfoEntity.getScreenUrl());
PageInfoEntity updateEntity = new PageInfoEntity();
updateEntity.setId(pageInfoEntity.getId());
if(StringUtils.isNotEmpty(pageInfoEntity.getScreenUrl())) {
updateEntity.setScreenUrl(pageInfoEntity.getScreenUrl());
}
updateEntity.setUpdateTime(new Date());
int iRet = this.dao.update(updateEntity);
if (iRet == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment