Commit 0ab13c31 authored by 廖旭伟's avatar 廖旭伟

测试bug修改

parent 5a3e0d93
......@@ -90,4 +90,24 @@ public class FeedbackServiceImpl extends AbstractCRUDServiceImpl<FeedbackDao, Fe
}
}
}
@Override
public FeedbackEntity get(Long key, Context context) throws AppException {
FeedbackEntity entity = this.dao.get(key);
if(entity!=null){
UserEntity userEntity = userService.get(entity.getCreateUserId());
if(userEntity!=null) {
entity.setPhotoPath(userEntity.getPhotoPath());
entity.setFeedbackName(userEntity.getRealName());
entity.setCompanyName(userEntity.getCompanyAdress());
if(StringUtils.isEmpty(entity.getEmail())){
entity.setEmail(userEntity.getEmail());
}
if(StringUtils.isEmpty(entity.getContactInfo())){
entity.setContactInfo(userEntity.getPhone());
}
}
}
return entity;
}
}
\ No newline at end of file
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