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

修改测试bug

parent 8551180e
...@@ -110,6 +110,12 @@ public class BussinesscardController extends BaseCRUDJsonBodyMappingController<B ...@@ -110,6 +110,12 @@ public class BussinesscardController extends BaseCRUDJsonBodyMappingController<B
//非本人浏览时才增加浏览次数 //非本人浏览时才增加浏览次数
if(!(userEntity.getStaffId()!=null && userEntity.getStaffId().longValue()==entity.getStaffId().longValue())){ if(!(userEntity.getStaffId()!=null && userEntity.getStaffId().longValue()==entity.getStaffId().longValue())){
staffService.saveView(entity.getStaffId()); staffService.saveView(entity.getStaffId());
Map condition = new HashMap();
condition.put("id",entity.getId());
Map data = new HashMap();
data.put("sumViewsIncrement",1);
data.put("viewsByDayIncrement",1);
service.getDao().update(data,condition);
bussinesscardRecordService.saveRecord(entity, context); bussinesscardRecordService.saveRecord(entity, context);
} }
} }
......
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