Commit 8551180e authored by 廖旭伟's avatar 廖旭伟

测试bug修改

parent 9f76e6ea
...@@ -104,12 +104,13 @@ public class BussinesscardController extends BaseCRUDJsonBodyMappingController<B ...@@ -104,12 +104,13 @@ public class BussinesscardController extends BaseCRUDJsonBodyMappingController<B
private void saveRecord(BussinesscardEntity entity, Context context){ private void saveRecord(BussinesscardEntity entity, Context context){
if(entity!=null){ if(entity!=null){
if(context!=null&&context.getUser()!=null){ if(context!=null&&context.getUser()!=null){
bussinesscardRecordService.saveRecord(entity, context);
UserEntity userEntity = userService.get(context.getUser().getId()); UserEntity userEntity = userService.get(context.getUser().getId());
if(userEntity!=null){ if(userEntity!=null){
//非本人浏览时才增加浏览次数 //非本人浏览时才增加浏览次数
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());
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