Commit 5217a48188b2cde94499e50ffee986bd20f242fc
1 parent
cd8c5b9f
update
Showing
2 changed files
with
2 additions
and
2 deletions
src/main/java/com/cnlive/shenhe/serviceImpl/CommentsServiceImpl.java
| ... | ... | @@ -60,7 +60,7 @@ public class CommentsServiceImpl { |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | public boolean impotComments(ShyComments shyComments) { |
| 63 | - int result = shyCommentsMapper.insert(shyComments); | |
| 63 | + int result = shyCommentsMapper.insertSelective(shyComments); | |
| 64 | 64 | if (result == 0) { |
| 65 | 65 | return false; |
| 66 | 66 | } | ... | ... |
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
| ... | ... | @@ -34,7 +34,7 @@ public class VideosServiceImpl { |
| 34 | 34 | ShyUsersMapper shyUsersMapper; |
| 35 | 35 | |
| 36 | 36 | public boolean impotVideo(ShyVideos shyVideos) { |
| 37 | - int result = shyVideosMapper.insert(shyVideos); | |
| 37 | + int result = shyVideosMapper.insertSelective(shyVideos); | |
| 38 | 38 | if (result == 0) { |
| 39 | 39 | return false; |
| 40 | 40 | } | ... | ... |