| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package com.dawn.jat.illuminati.core.convert; |
||
| 25 | public PostEntity convertPostDtoToEntity(PostDto post, PostEntity postEntity) { |
||
| 26 | postEntity.setSlug(post.getSlug()); |
||
| 27 | postEntity.setAuthor(post.getAuthor()); |
||
| 28 | postEntity.setBrief(post.getBrief()); |
||
| 29 | postEntity.setTitle(post.getTitle()); |
||
| 30 | postEntity.setTime(post.getTime()); |
||
| 31 | postEntity.setContent(post.getContent()); |
||
| 32 | Map<String, Boolean> tagMap = post.getTag(); |
||
| 33 | postEntity.setTag(convertMapKeysToArray(tagMap)); |
||
| 34 | return postEntity; |
||
| 35 | } |
||
| 37 |