Commit 5217a48188b2cde94499e50ffee986bd20f242fc

Authored by 周伟鹏
1 parent cd8c5b9f

update

src/main/java/com/cnlive/shenhe/serviceImpl/CommentsServiceImpl.java
@@ -60,7 +60,7 @@ public class CommentsServiceImpl { @@ -60,7 +60,7 @@ public class CommentsServiceImpl {
60 } 60 }
61 61
62 public boolean impotComments(ShyComments shyComments) { 62 public boolean impotComments(ShyComments shyComments) {
63 - int result = shyCommentsMapper.insert(shyComments); 63 + int result = shyCommentsMapper.insertSelective(shyComments);
64 if (result == 0) { 64 if (result == 0) {
65 return false; 65 return false;
66 } 66 }
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
@@ -34,7 +34,7 @@ public class VideosServiceImpl { @@ -34,7 +34,7 @@ public class VideosServiceImpl {
34 ShyUsersMapper shyUsersMapper; 34 ShyUsersMapper shyUsersMapper;
35 35
36 public boolean impotVideo(ShyVideos shyVideos) { 36 public boolean impotVideo(ShyVideos shyVideos) {
37 - int result = shyVideosMapper.insert(shyVideos); 37 + int result = shyVideosMapper.insertSelective(shyVideos);
38 if (result == 0) { 38 if (result == 0) {
39 return false; 39 return false;
40 } 40 }